diff --git a/sdk/resourcemanager/keyvault/armkeyvault/CHANGELOG.md b/sdk/resourcemanager/keyvault/armkeyvault/CHANGELOG.md index 8cdd23b3c99f..a461f14d9f8a 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/CHANGELOG.md +++ b/sdk/resourcemanager/keyvault/armkeyvault/CHANGELOG.md @@ -1,5 +1,348 @@ # Release History +## 0.4.0 (2022-04-14) +### Breaking Changes + +- Function `*MHSMPrivateEndpointConnectionsClient.ListByResource` return value(s) have been changed from `(*MHSMPrivateEndpointConnectionsClientListByResourcePager)` to `(*runtime.Pager[MHSMPrivateEndpointConnectionsClientListByResourceResponse])` +- Function `*PrivateEndpointConnectionsClient.BeginDelete` return value(s) have been changed from `(PrivateEndpointConnectionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)` +- Function `*ManagedHsmsClient.BeginPurgeDeleted` return value(s) have been changed from `(ManagedHsmsClientPurgeDeletedPollerResponse, error)` to `(*armruntime.Poller[ManagedHsmsClientPurgeDeletedResponse], error)` +- Function `*MHSMPrivateEndpointConnectionsClient.BeginDelete` return value(s) have been changed from `(MHSMPrivateEndpointConnectionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[MHSMPrivateEndpointConnectionsClientDeleteResponse], error)` +- Function `*ManagedHsmsClient.ListDeleted` return value(s) have been changed from `(*ManagedHsmsClientListDeletedPager)` to `(*runtime.Pager[ManagedHsmsClientListDeletedResponse])` +- Function `NewOperationsClient` return value(s) have been changed from `(*OperationsClient)` to `(*OperationsClient, error)` +- Function `*KeysClient.ListVersions` return value(s) have been changed from `(*KeysClientListVersionsPager)` to `(*runtime.Pager[KeysClientListVersionsResponse])` +- Function `*VaultsClient.ListByResourceGroup` return value(s) have been changed from `(*VaultsClientListByResourceGroupPager)` to `(*runtime.Pager[VaultsClientListByResourceGroupResponse])` +- Function `*VaultsClient.BeginCreateOrUpdate` return value(s) have been changed from `(VaultsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[VaultsClientCreateOrUpdateResponse], error)` +- Function `*VaultsClient.ListBySubscription` return value(s) have been changed from `(*VaultsClientListBySubscriptionPager)` to `(*runtime.Pager[VaultsClientListBySubscriptionResponse])` +- Function `*SecretsClient.List` return value(s) have been changed from `(*SecretsClientListPager)` to `(*runtime.Pager[SecretsClientListResponse])` +- Function `*VaultsClient.ListDeleted` return value(s) have been changed from `(*VaultsClientListDeletedPager)` to `(*runtime.Pager[VaultsClientListDeletedResponse])` +- Function `*ManagedHsmsClient.ListByResourceGroup` return value(s) have been changed from `(*ManagedHsmsClientListByResourceGroupPager)` to `(*runtime.Pager[ManagedHsmsClientListByResourceGroupResponse])` +- Function `*ManagedHsmsClient.BeginCreateOrUpdate` return value(s) have been changed from `(ManagedHsmsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[ManagedHsmsClientCreateOrUpdateResponse], error)` +- Function `*ManagedHsmsClient.ListBySubscription` return value(s) have been changed from `(*ManagedHsmsClientListBySubscriptionPager)` to `(*runtime.Pager[ManagedHsmsClientListBySubscriptionResponse])` +- Function `*ManagedHsmsClient.BeginDelete` return value(s) have been changed from `(ManagedHsmsClientDeletePollerResponse, error)` to `(*armruntime.Poller[ManagedHsmsClientDeleteResponse], error)` +- Function `NewSecretsClient` return value(s) have been changed from `(*SecretsClient)` to `(*SecretsClient, error)` +- Function `NewKeysClient` return value(s) have been changed from `(*KeysClient)` to `(*KeysClient, error)` +- Function `NewPrivateLinkResourcesClient` return value(s) have been changed from `(*PrivateLinkResourcesClient)` to `(*PrivateLinkResourcesClient, error)` +- Function `*ManagedHsmsClient.BeginUpdate` return value(s) have been changed from `(ManagedHsmsClientUpdatePollerResponse, error)` to `(*armruntime.Poller[ManagedHsmsClientUpdateResponse], error)` +- Function `*PrivateEndpointConnectionsClient.ListByResource` return value(s) have been changed from `(*PrivateEndpointConnectionsClientListByResourcePager)` to `(*runtime.Pager[PrivateEndpointConnectionsClientListByResourceResponse])` +- Function `NewManagedHsmsClient` return value(s) have been changed from `(*ManagedHsmsClient)` to `(*ManagedHsmsClient, error)` +- Function `NewPrivateEndpointConnectionsClient` return value(s) have been changed from `(*PrivateEndpointConnectionsClient)` to `(*PrivateEndpointConnectionsClient, error)` +- Function `NewMHSMPrivateLinkResourcesClient` return value(s) have been changed from `(*MHSMPrivateLinkResourcesClient)` to `(*MHSMPrivateLinkResourcesClient, error)` +- Function `NewMHSMPrivateEndpointConnectionsClient` return value(s) have been changed from `(*MHSMPrivateEndpointConnectionsClient)` to `(*MHSMPrivateEndpointConnectionsClient, error)` +- Function `*KeysClient.List` return value(s) have been changed from `(*KeysClientListPager)` to `(*runtime.Pager[KeysClientListResponse])` +- Function `*OperationsClient.List` return value(s) have been changed from `(*OperationsClientListPager)` to `(*runtime.Pager[OperationsClientListResponse])` +- Function `*VaultsClient.List` return value(s) have been changed from `(*VaultsClientListPager)` to `(*runtime.Pager[VaultsClientListResponse])` +- Function `NewVaultsClient` return value(s) have been changed from `(*VaultsClient)` to `(*VaultsClient, error)` +- Function `*VaultsClient.BeginPurgeDeleted` return value(s) have been changed from `(VaultsClientPurgeDeletedPollerResponse, error)` to `(*armruntime.Poller[VaultsClientPurgeDeletedResponse], error)` +- Function `PrivateEndpointConnectionsClientDeletePollerResponse.PollUntilDone` has been removed +- Function `*VaultsClientListDeletedPager.NextPage` has been removed +- Function `*VaultsClientListByResourceGroupPager.NextPage` has been removed +- Function `*ManagedHsmsClientListByResourceGroupPager.PageResponse` has been removed +- Function `SKUFamily.ToPtr` has been removed +- Function `ManagedHsmsClientUpdatePollerResponse.PollUntilDone` has been removed +- Function `*ManagedHsmsClientListByResourceGroupPager.Err` has been removed +- Function `JSONWebKeyType.ToPtr` has been removed +- Function `*PrivateEndpointConnectionsClientListByResourcePager.NextPage` has been removed +- Function `JSONWebKeyOperation.ToPtr` has been removed +- Function `JSONWebKeyCurveName.ToPtr` has been removed +- Function `*ManagedHsmsClientDeletePoller.ResumeToken` has been removed +- Function `*VaultsClientCreateOrUpdatePoller.Poll` has been removed +- Function `ManagedHsmsClientPurgeDeletedPollerResponse.PollUntilDone` has been removed +- Function `*OperationsClientListPager.PageResponse` has been removed +- Function `*ManagedHsmsClientDeletePoller.Done` has been removed +- Function `*ManagedHsmsClientPurgeDeletedPoller.Poll` has been removed +- Function `KeyPermissions.ToPtr` has been removed +- Function `*OperationsClientListPager.Err` has been removed +- Function `*OperationsClientListPager.NextPage` has been removed +- Function `*ManagedHsmsClientCreateOrUpdatePoller.FinalResponse` has been removed +- Function `VaultsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed +- Function `*VaultsClientListByResourceGroupPager.Err` has been removed +- Function `*SecretsClientListPager.PageResponse` has been removed +- Function `ManagedHsmSKUFamily.ToPtr` has been removed +- Function `*ManagedHsmsClientDeletePoller.FinalResponse` has been removed +- Function `*ManagedHsmsClientListDeletedPager.Err` has been removed +- Function `*ManagedHsmsClientListByResourceGroupPager.NextPage` has been removed +- Function `*MHSMPrivateEndpointConnectionsClientDeletePollerResponse.Resume` has been removed +- Function `*VaultsClientCreateOrUpdatePollerResponse.Resume` has been removed +- Function `StoragePermissions.ToPtr` has been removed +- Function `MHSMPrivateEndpointConnectionsClientDeletePollerResponse.PollUntilDone` has been removed +- Function `*ManagedHsmsClientListDeletedPager.NextPage` has been removed +- Function `*VaultsClientPurgeDeletedPoller.ResumeToken` has been removed +- Function `PublicNetworkAccess.ToPtr` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePollerResponse.Resume` has been removed +- Function `*ManagedHsmsClientUpdatePollerResponse.Resume` has been removed +- Function `ManagedHsmSKUName.ToPtr` has been removed +- Function `*VaultsClientPurgeDeletedPoller.Poll` has been removed +- Function `NetworkRuleBypassOptions.ToPtr` has been removed +- Function `KeyRotationPolicyActionType.ToPtr` has been removed +- Function `Reason.ToPtr` has been removed +- Function `*PrivateEndpointConnectionsClientListByResourcePager.Err` has been removed +- Function `ActionsRequired.ToPtr` has been removed +- Function `*ManagedHsmsClientUpdatePoller.Poll` has been removed +- Function `*ManagedHsmsClientUpdatePoller.FinalResponse` has been removed +- Function `*ManagedHsmsClientCreateOrUpdatePoller.Done` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.FinalResponse` has been removed +- Function `*SecretsClientListPager.NextPage` has been removed +- Function `*ManagedHsmsClientUpdatePoller.ResumeToken` has been removed +- Function `*ManagedHsmsClientUpdatePoller.Done` has been removed +- Function `*MHSMPrivateEndpointConnectionsClientListByResourcePager.Err` has been removed +- Function `VaultProvisioningState.ToPtr` has been removed +- Function `*ManagedHsmsClientPurgeDeletedPoller.ResumeToken` has been removed +- Function `*VaultsClientListPager.Err` has been removed +- Function `*ManagedHsmsClientDeletePoller.Poll` has been removed +- Function `*ManagedHsmsClientPurgeDeletedPollerResponse.Resume` has been removed +- Function `CertificatePermissions.ToPtr` has been removed +- Function `*VaultsClientListPager.NextPage` has been removed +- Function `*MHSMPrivateEndpointConnectionsClientDeletePoller.FinalResponse` has been removed +- Function `CreateMode.ToPtr` has been removed +- Function `ProvisioningState.ToPtr` has been removed +- Function `*ManagedHsmsClientDeletePollerResponse.Resume` has been removed +- Function `ManagedHsmsClientDeletePollerResponse.PollUntilDone` has been removed +- Function `*KeysClientListVersionsPager.Err` has been removed +- Function `*ManagedHsmsClientListBySubscriptionPager.NextPage` has been removed +- Function `*KeysClientListPager.NextPage` has been removed +- Function `*ManagedHsmsClientListBySubscriptionPager.Err` has been removed +- Function `*ManagedHsmsClientPurgeDeletedPoller.FinalResponse` has been removed +- Function `SKUName.ToPtr` has been removed +- Function `*VaultsClientCreateOrUpdatePoller.ResumeToken` has been removed +- Function `*ManagedHsmsClientCreateOrUpdatePollerResponse.Resume` has been removed +- Function `*VaultsClientListBySubscriptionPager.NextPage` has been removed +- Function `*MHSMPrivateEndpointConnectionsClientDeletePoller.Done` has been removed +- Function `*VaultsClientPurgeDeletedPollerResponse.Resume` has been removed +- Function `*VaultsClientListDeletedPager.Err` has been removed +- Function `PrivateEndpointServiceConnectionStatus.ToPtr` has been removed +- Function `*VaultsClientCreateOrUpdatePoller.FinalResponse` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.Poll` has been removed +- Function `*ManagedHsmsClientCreateOrUpdatePoller.Poll` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.Done` has been removed +- Function `*VaultsClientPurgeDeletedPoller.Done` has been removed +- Function `*ManagedHsmsClientCreateOrUpdatePoller.ResumeToken` has been removed +- Function `*ManagedHsmsClientListDeletedPager.PageResponse` has been removed +- Function `*PrivateEndpointConnectionsClientDeletePoller.ResumeToken` has been removed +- Function `NetworkRuleAction.ToPtr` has been removed +- Function `*KeysClientListVersionsPager.PageResponse` has been removed +- Function `*VaultsClientListByResourceGroupPager.PageResponse` has been removed +- Function `*MHSMPrivateEndpointConnectionsClientListByResourcePager.NextPage` has been removed +- Function `AccessPolicyUpdateKind.ToPtr` has been removed +- Function `*VaultsClientCreateOrUpdatePoller.Done` has been removed +- Function `*KeysClientListPager.Err` has been removed +- Function `*VaultsClientListBySubscriptionPager.PageResponse` has been removed +- Function `*MHSMPrivateEndpointConnectionsClientListByResourcePager.PageResponse` has been removed +- Function `*SecretsClientListPager.Err` has been removed +- Function `ManagedHsmsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed +- Function `*KeysClientListPager.PageResponse` has been removed +- Function `DeletionRecoveryLevel.ToPtr` has been removed +- Function `PrivateEndpointConnectionProvisioningState.ToPtr` has been removed +- Function `SecretPermissions.ToPtr` has been removed +- Function `*VaultsClientListBySubscriptionPager.Err` has been removed +- Function `IdentityType.ToPtr` has been removed +- Function `*ManagedHsmsClientListBySubscriptionPager.PageResponse` has been removed +- Function `*PrivateEndpointConnectionsClientListByResourcePager.PageResponse` has been removed +- Function `*VaultsClientPurgeDeletedPoller.FinalResponse` has been removed +- Function `VaultsClientPurgeDeletedPollerResponse.PollUntilDone` has been removed +- Function `*MHSMPrivateEndpointConnectionsClientDeletePoller.ResumeToken` has been removed +- Function `*VaultsClientListDeletedPager.PageResponse` has been removed +- Function `*MHSMPrivateEndpointConnectionsClientDeletePoller.Poll` has been removed +- Function `*ManagedHsmsClientPurgeDeletedPoller.Done` has been removed +- Function `*KeysClientListVersionsPager.NextPage` has been removed +- Function `*VaultsClientListPager.PageResponse` has been removed +- Struct `KeysClientCreateIfNotExistResult` has been removed +- Struct `KeysClientGetResult` has been removed +- Struct `KeysClientGetVersionResult` has been removed +- Struct `KeysClientListPager` has been removed +- Struct `KeysClientListResult` has been removed +- Struct `KeysClientListVersionsPager` has been removed +- Struct `KeysClientListVersionsResult` has been removed +- Struct `MHSMPrivateEndpointConnectionsClientDeletePoller` has been removed +- Struct `MHSMPrivateEndpointConnectionsClientDeletePollerResponse` has been removed +- Struct `MHSMPrivateEndpointConnectionsClientDeleteResult` has been removed +- Struct `MHSMPrivateEndpointConnectionsClientGetResult` has been removed +- Struct `MHSMPrivateEndpointConnectionsClientListByResourcePager` has been removed +- Struct `MHSMPrivateEndpointConnectionsClientListByResourceResult` has been removed +- Struct `MHSMPrivateEndpointConnectionsClientPutResult` has been removed +- Struct `MHSMPrivateLinkResourcesClientListByMHSMResourceResult` has been removed +- Struct `ManagedHsmsClientCreateOrUpdatePoller` has been removed +- Struct `ManagedHsmsClientCreateOrUpdatePollerResponse` has been removed +- Struct `ManagedHsmsClientCreateOrUpdateResult` has been removed +- Struct `ManagedHsmsClientDeletePoller` has been removed +- Struct `ManagedHsmsClientDeletePollerResponse` has been removed +- Struct `ManagedHsmsClientGetDeletedResult` has been removed +- Struct `ManagedHsmsClientGetResult` has been removed +- Struct `ManagedHsmsClientListByResourceGroupPager` has been removed +- Struct `ManagedHsmsClientListByResourceGroupResult` has been removed +- Struct `ManagedHsmsClientListBySubscriptionPager` has been removed +- Struct `ManagedHsmsClientListBySubscriptionResult` has been removed +- Struct `ManagedHsmsClientListDeletedPager` has been removed +- Struct `ManagedHsmsClientListDeletedResult` has been removed +- Struct `ManagedHsmsClientPurgeDeletedPoller` has been removed +- Struct `ManagedHsmsClientPurgeDeletedPollerResponse` has been removed +- Struct `ManagedHsmsClientUpdatePoller` has been removed +- Struct `ManagedHsmsClientUpdatePollerResponse` has been removed +- Struct `ManagedHsmsClientUpdateResult` has been removed +- Struct `OperationsClientListPager` has been removed +- Struct `OperationsClientListResult` has been removed +- Struct `PrivateEndpointConnectionsClientDeletePoller` has been removed +- Struct `PrivateEndpointConnectionsClientDeletePollerResponse` has been removed +- Struct `PrivateEndpointConnectionsClientDeleteResult` has been removed +- Struct `PrivateEndpointConnectionsClientGetResult` has been removed +- Struct `PrivateEndpointConnectionsClientListByResourcePager` has been removed +- Struct `PrivateEndpointConnectionsClientListByResourceResult` has been removed +- Struct `PrivateEndpointConnectionsClientPutResult` has been removed +- Struct `PrivateLinkResourcesClientListByVaultResult` has been removed +- Struct `SecretsClientCreateOrUpdateResult` has been removed +- Struct `SecretsClientGetResult` has been removed +- Struct `SecretsClientListPager` has been removed +- Struct `SecretsClientListResult` has been removed +- Struct `SecretsClientUpdateResult` has been removed +- Struct `VaultsClientCheckNameAvailabilityResult` has been removed +- Struct `VaultsClientCreateOrUpdatePoller` has been removed +- Struct `VaultsClientCreateOrUpdatePollerResponse` has been removed +- Struct `VaultsClientCreateOrUpdateResult` has been removed +- Struct `VaultsClientGetDeletedResult` has been removed +- Struct `VaultsClientGetResult` has been removed +- Struct `VaultsClientListByResourceGroupPager` has been removed +- Struct `VaultsClientListByResourceGroupResult` has been removed +- Struct `VaultsClientListBySubscriptionPager` has been removed +- Struct `VaultsClientListBySubscriptionResult` has been removed +- Struct `VaultsClientListDeletedPager` has been removed +- Struct `VaultsClientListDeletedResult` has been removed +- Struct `VaultsClientListPager` has been removed +- Struct `VaultsClientListResult` has been removed +- Struct `VaultsClientPurgeDeletedPoller` has been removed +- Struct `VaultsClientPurgeDeletedPollerResponse` has been removed +- Struct `VaultsClientUpdateAccessPolicyResult` has been removed +- Struct `VaultsClientUpdateResult` has been removed +- Field `VaultsClientGetDeletedResult` of struct `VaultsClientGetDeletedResponse` has been removed +- Field `RawResponse` of struct `VaultsClientGetDeletedResponse` has been removed +- Field `KeysClientListVersionsResult` of struct `KeysClientListVersionsResponse` has been removed +- Field `RawResponse` of struct `KeysClientListVersionsResponse` has been removed +- Field `PrivateEndpointConnectionsClientListByResourceResult` of struct `PrivateEndpointConnectionsClientListByResourceResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientListByResourceResponse` has been removed +- Field `RawResponse` of struct `ManagedHsmsClientDeleteResponse` has been removed +- Field `VaultsClientCreateOrUpdateResult` of struct `VaultsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `VaultsClientCreateOrUpdateResponse` has been removed +- Field `PrivateEndpointConnectionsClientDeleteResult` of struct `PrivateEndpointConnectionsClientDeleteResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientDeleteResponse` has been removed +- Field `MHSMPrivateEndpointConnectionsClientGetResult` of struct `MHSMPrivateEndpointConnectionsClientGetResponse` has been removed +- Field `RawResponse` of struct `MHSMPrivateEndpointConnectionsClientGetResponse` has been removed +- Field `RawResponse` of struct `VaultsClientDeleteResponse` has been removed +- Field `VaultsClientCheckNameAvailabilityResult` of struct `VaultsClientCheckNameAvailabilityResponse` has been removed +- Field `RawResponse` of struct `VaultsClientCheckNameAvailabilityResponse` has been removed +- Field `PrivateLinkResourcesClientListByVaultResult` of struct `PrivateLinkResourcesClientListByVaultResponse` has been removed +- Field `RawResponse` of struct `PrivateLinkResourcesClientListByVaultResponse` has been removed +- Field `MHSMPrivateEndpointConnectionsClientDeleteResult` of struct `MHSMPrivateEndpointConnectionsClientDeleteResponse` has been removed +- Field `RawResponse` of struct `MHSMPrivateEndpointConnectionsClientDeleteResponse` has been removed +- Field `KeysClientListResult` of struct `KeysClientListResponse` has been removed +- Field `RawResponse` of struct `KeysClientListResponse` has been removed +- Field `VaultsClientListByResourceGroupResult` of struct `VaultsClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `VaultsClientListByResourceGroupResponse` has been removed +- Field `MHSMPrivateEndpointConnectionsClientPutResult` of struct `MHSMPrivateEndpointConnectionsClientPutResponse` has been removed +- Field `RawResponse` of struct `MHSMPrivateEndpointConnectionsClientPutResponse` has been removed +- Field `RawResponse` of struct `VaultsClientPurgeDeletedResponse` has been removed +- Field `ManagedHsmsClientCreateOrUpdateResult` of struct `ManagedHsmsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ManagedHsmsClientCreateOrUpdateResponse` has been removed +- Field `KeysClientGetVersionResult` of struct `KeysClientGetVersionResponse` has been removed +- Field `RawResponse` of struct `KeysClientGetVersionResponse` has been removed +- Field `SecretsClientListResult` of struct `SecretsClientListResponse` has been removed +- Field `RawResponse` of struct `SecretsClientListResponse` has been removed +- Field `VaultsClientListDeletedResult` of struct `VaultsClientListDeletedResponse` has been removed +- Field `RawResponse` of struct `VaultsClientListDeletedResponse` has been removed +- Field `VaultsClientUpdateResult` of struct `VaultsClientUpdateResponse` has been removed +- Field `RawResponse` of struct `VaultsClientUpdateResponse` has been removed +- Field `ManagedHsmsClientListBySubscriptionResult` of struct `ManagedHsmsClientListBySubscriptionResponse` has been removed +- Field `RawResponse` of struct `ManagedHsmsClientListBySubscriptionResponse` has been removed +- Field `OperationsClientListResult` of struct `OperationsClientListResponse` has been removed +- Field `RawResponse` of struct `OperationsClientListResponse` has been removed +- Field `PrivateEndpointConnectionsClientGetResult` of struct `PrivateEndpointConnectionsClientGetResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientGetResponse` has been removed +- Field `MHSMPrivateLinkResourcesClientListByMHSMResourceResult` of struct `MHSMPrivateLinkResourcesClientListByMHSMResourceResponse` has been removed +- Field `RawResponse` of struct `MHSMPrivateLinkResourcesClientListByMHSMResourceResponse` has been removed +- Field `SecretsClientCreateOrUpdateResult` of struct `SecretsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `SecretsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ManagedHsmsClientPurgeDeletedResponse` has been removed +- Field `ManagedHsmsClientGetResult` of struct `ManagedHsmsClientGetResponse` has been removed +- Field `RawResponse` of struct `ManagedHsmsClientGetResponse` has been removed +- Field `SecretsClientUpdateResult` of struct `SecretsClientUpdateResponse` has been removed +- Field `RawResponse` of struct `SecretsClientUpdateResponse` has been removed +- Field `KeysClientGetResult` of struct `KeysClientGetResponse` has been removed +- Field `RawResponse` of struct `KeysClientGetResponse` has been removed +- Field `ManagedHsmsClientUpdateResult` of struct `ManagedHsmsClientUpdateResponse` has been removed +- Field `RawResponse` of struct `ManagedHsmsClientUpdateResponse` has been removed +- Field `ManagedHsmsClientListDeletedResult` of struct `ManagedHsmsClientListDeletedResponse` has been removed +- Field `RawResponse` of struct `ManagedHsmsClientListDeletedResponse` has been removed +- Field `KeysClientCreateIfNotExistResult` of struct `KeysClientCreateIfNotExistResponse` has been removed +- Field `RawResponse` of struct `KeysClientCreateIfNotExistResponse` has been removed +- Field `ManagedHsmsClientGetDeletedResult` of struct `ManagedHsmsClientGetDeletedResponse` has been removed +- Field `RawResponse` of struct `ManagedHsmsClientGetDeletedResponse` has been removed +- Field `MHSMPrivateEndpointConnectionsClientListByResourceResult` of struct `MHSMPrivateEndpointConnectionsClientListByResourceResponse` has been removed +- Field `RawResponse` of struct `MHSMPrivateEndpointConnectionsClientListByResourceResponse` has been removed +- Field `VaultsClientListBySubscriptionResult` of struct `VaultsClientListBySubscriptionResponse` has been removed +- Field `RawResponse` of struct `VaultsClientListBySubscriptionResponse` has been removed +- Field `PrivateEndpointConnectionsClientPutResult` of struct `PrivateEndpointConnectionsClientPutResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientPutResponse` has been removed +- Field `SecretsClientGetResult` of struct `SecretsClientGetResponse` has been removed +- Field `RawResponse` of struct `SecretsClientGetResponse` has been removed +- Field `VaultsClientUpdateAccessPolicyResult` of struct `VaultsClientUpdateAccessPolicyResponse` has been removed +- Field `RawResponse` of struct `VaultsClientUpdateAccessPolicyResponse` has been removed +- Field `ManagedHsmsClientListByResourceGroupResult` of struct `ManagedHsmsClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `ManagedHsmsClientListByResourceGroupResponse` has been removed +- Field `VaultsClientListResult` of struct `VaultsClientListResponse` has been removed +- Field `RawResponse` of struct `VaultsClientListResponse` has been removed +- Field `VaultsClientGetResult` of struct `VaultsClientGetResponse` has been removed +- Field `RawResponse` of struct `VaultsClientGetResponse` has been removed + +### Features Added + +- New field `ResumeToken` in struct `ManagedHsmsClientBeginDeleteOptions` +- New anonymous field `Key` in struct `KeysClientGetResponse` +- New anonymous field `MHSMPrivateLinkResourceListResult` in struct `MHSMPrivateLinkResourcesClientListByMHSMResourceResponse` +- New anonymous field `PrivateEndpointConnectionListResult` in struct `PrivateEndpointConnectionsClientListByResourceResponse` +- New anonymous field `Secret` in struct `SecretsClientUpdateResponse` +- New anonymous field `ManagedHsm` in struct `ManagedHsmsClientUpdateResponse` +- New field `ResumeToken` in struct `ManagedHsmsClientBeginUpdateOptions` +- New anonymous field `VaultListResult` in struct `VaultsClientListBySubscriptionResponse` +- New anonymous field `VaultAccessPolicyParameters` in struct `VaultsClientUpdateAccessPolicyResponse` +- New anonymous field `OperationListResult` in struct `OperationsClientListResponse` +- New anonymous field `MHSMPrivateEndpointConnection` in struct `MHSMPrivateEndpointConnectionsClientPutResponse` +- New field `AzureAsyncOperation` in struct `MHSMPrivateEndpointConnectionsClientPutResponse` +- New field `RetryAfter` in struct `MHSMPrivateEndpointConnectionsClientPutResponse` +- New anonymous field `Vault` in struct `VaultsClientCreateOrUpdateResponse` +- New anonymous field `Secret` in struct `SecretsClientGetResponse` +- New anonymous field `PrivateEndpointConnection` in struct `PrivateEndpointConnectionsClientPutResponse` +- New field `AzureAsyncOperation` in struct `PrivateEndpointConnectionsClientPutResponse` +- New field `RetryAfter` in struct `PrivateEndpointConnectionsClientPutResponse` +- New anonymous field `DeletedVault` in struct `VaultsClientGetDeletedResponse` +- New field `ResumeToken` in struct `MHSMPrivateEndpointConnectionsClientBeginDeleteOptions` +- New anonymous field `MHSMPrivateEndpointConnection` in struct `MHSMPrivateEndpointConnectionsClientGetResponse` +- New anonymous field `Vault` in struct `VaultsClientGetResponse` +- New anonymous field `PrivateEndpointConnection` in struct `PrivateEndpointConnectionsClientGetResponse` +- New field `ResumeToken` in struct `ManagedHsmsClientBeginPurgeDeletedOptions` +- New anonymous field `ResourceListResult` in struct `VaultsClientListResponse` +- New anonymous field `MHSMPrivateEndpointConnectionsListResult` in struct `MHSMPrivateEndpointConnectionsClientListByResourceResponse` +- New anonymous field `PrivateEndpointConnection` in struct `PrivateEndpointConnectionsClientDeleteResponse` +- New anonymous field `ManagedHsmListResult` in struct `ManagedHsmsClientListBySubscriptionResponse` +- New anonymous field `ManagedHsm` in struct `ManagedHsmsClientGetResponse` +- New anonymous field `DeletedManagedHsmListResult` in struct `ManagedHsmsClientListDeletedResponse` +- New anonymous field `ManagedHsm` in struct `ManagedHsmsClientCreateOrUpdateResponse` +- New anonymous field `SecretListResult` in struct `SecretsClientListResponse` +- New anonymous field `Vault` in struct `VaultsClientUpdateResponse` +- New field `ResumeToken` in struct `ManagedHsmsClientBeginCreateOrUpdateOptions` +- New anonymous field `DeletedVaultListResult` in struct `VaultsClientListDeletedResponse` +- New field `ResumeToken` in struct `VaultsClientBeginCreateOrUpdateOptions` +- New anonymous field `VaultListResult` in struct `VaultsClientListByResourceGroupResponse` +- New anonymous field `KeyListResult` in struct `KeysClientListVersionsResponse` +- New anonymous field `MHSMPrivateEndpointConnection` in struct `MHSMPrivateEndpointConnectionsClientDeleteResponse` +- New field `ResumeToken` in struct `VaultsClientBeginPurgeDeletedOptions` +- New anonymous field `ManagedHsmListResult` in struct `ManagedHsmsClientListByResourceGroupResponse` +- New anonymous field `KeyListResult` in struct `KeysClientListResponse` +- New anonymous field `Secret` in struct `SecretsClientCreateOrUpdateResponse` +- New field `ResumeToken` in struct `PrivateEndpointConnectionsClientBeginDeleteOptions` +- New anonymous field `Key` in struct `KeysClientCreateIfNotExistResponse` +- New anonymous field `Key` in struct `KeysClientGetVersionResponse` +- New anonymous field `DeletedManagedHsm` in struct `ManagedHsmsClientGetDeletedResponse` +- New anonymous field `CheckNameAvailabilityResult` in struct `VaultsClientCheckNameAvailabilityResponse` +- New anonymous field `PrivateLinkResourceListResult` in struct `PrivateLinkResourcesClientListByVaultResponse` + + ## 0.3.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/keyvault/armkeyvault/README.md b/sdk/resourcemanager/keyvault/armkeyvault/README.md index c2f0df9be9bb..ed0ac4504a02 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/README.md +++ b/sdk/resourcemanager/keyvault/armkeyvault/README.md @@ -11,7 +11,7 @@ The `armkeyvault` module provides operations for working with Azure Key Vault. ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Key Vault modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armkeyvault.NewKeysClient(, cred, nil) +client, err := armkeyvault.NewKeysClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armkeyvault.NewKeysClient(, cred, &options) +client, err := armkeyvault.NewKeysClient(, cred, &options) ``` ## More sample code diff --git a/sdk/resourcemanager/keyvault/armkeyvault/autorest.md b/sdk/resourcemanager/keyvault/armkeyvault/autorest.md index 2ec3b68a72da..0c3b8be07198 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/autorest.md +++ b/sdk/resourcemanager/keyvault/armkeyvault/autorest.md @@ -5,10 +5,10 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/keyvault/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/keyvault/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/keyvault/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/keyvault/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.1 +module-version: 0.4.0 modelerfour: seal-single-value-enum-by-default: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/keyvault/armkeyvault/go.mod b/sdk/resourcemanager/keyvault/armkeyvault/go.mod index ffc3ef34551e..936a668f7414 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/go.mod +++ b/sdk/resourcemanager/keyvault/armkeyvault/go.mod @@ -1,11 +1,29 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 - github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 github.com/stretchr/testify v1.7.0 ) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect +) diff --git a/sdk/resourcemanager/keyvault/armkeyvault/go.sum b/sdk/resourcemanager/keyvault/armkeyvault/go.sum index 861905ed56b2..facd9999ed64 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/go.sum +++ b/sdk/resourcemanager/keyvault/armkeyvault/go.sum @@ -1,16 +1,13 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 h1:zBJcBJwte0x6PcPK7XaWDMvK2o2ZM2f1sMaqNNavQ5g= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 h1:RxemzI2cHD0A8WyMqHu/UnDjfpGES/cmjtPbQoktWqs= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1/go.mod h1:+nVKciyKD2J9TyVcEQ82Bo9b+3F92PiQfHrIE/zqLqM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 h1:/hWqo5bAXoNK7svf5GvgpXFPzOCpM29/Eu+WqcE34Uk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0/go.mod h1:wXFq4k1znCwV7Bw70gw4UDNYKv/nrCUr70hjUmOj1Jo= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1 h1:EXTDtCSTfPauGawsG+Ae/W46B1PkrgzuKNrcFqy4ljM= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1/go.mod h1:PoA99xQAlN13MyUjzgIPWMZEr0etHpYSuT25LmhR3zQ= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 h1:gYG7I0WxtCnHSWOFLbWCHLBWr+yzI5UeU9KuGZajf5U= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0/go.mod h1:bwEUbGO8V/7KcrqwO14ADZ0m4AkTvSKx3ma68FRc3Bg= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 h1:TSBK+EXu33WBNrYhWmOecKJAl4z1Z5dtbDmqOzd1zGk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0/go.mod h1:tt77DwGu+r0Ued27YQPhiW8h8YWpYwpfOfi5uRpRMTg= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -21,7 +18,6 @@ github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/ github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= -github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -41,21 +37,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_keys_client_test.go b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_keys_client_test.go index 4c4f21f599af..9bf42969061d 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_keys_client_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_keys_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -12,86 +12,110 @@ import ( "context" "log" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" ) -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/createKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/createKey.json func ExampleKeysClient_CreateIfNotExist() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewKeysClient("", cred, nil) + client, err := armkeyvault.NewKeysClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateIfNotExist(ctx, "", "", "", armkeyvault.KeyCreateParameters{ Properties: &armkeyvault.KeyProperties{ - Kty: armkeyvault.JSONWebKeyType("RSA").ToPtr(), + Kty: to.Ptr(armkeyvault.JSONWebKeyTypeRSA), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.KeysClientCreateIfNotExistResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getKey.json func ExampleKeysClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewKeysClient("", cred, nil) + client, err := armkeyvault.NewKeysClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.KeysClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listKeys.json func ExampleKeysClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewKeysClient("", cred, nil) + client, err := armkeyvault.NewKeysClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getKeyVersion.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getKeyVersion.json func ExampleKeysClient_GetVersion() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewKeysClient("", cred, nil) + client, err := armkeyvault.NewKeysClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetVersion(ctx, "", "", @@ -99,33 +123,39 @@ func ExampleKeysClient_GetVersion() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.KeysClientGetVersionResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listKeyVersions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listKeyVersions.json func ExampleKeysClient_ListVersions() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewKeysClient("", cred, nil) + client, err := armkeyvault.NewKeysClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListVersions("", "", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_managedhsms_client_test.go b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_managedhsms_client_test.go index 926978af2bd0..0cfff27a511d 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_managedhsms_client_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_managedhsms_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,220 +19,276 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" ) -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_CreateOrUpdate.json func ExampleManagedHsmsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewManagedHsmsClient("", cred, nil) + client, err := armkeyvault.NewManagedHsmsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginCreateOrUpdate(ctx, "", "", armkeyvault.ManagedHsm{ - Location: to.StringPtr(""), + Location: to.Ptr(""), SKU: &armkeyvault.ManagedHsmSKU{ - Name: armkeyvault.ManagedHsmSKUNameStandardB1.ToPtr(), - Family: armkeyvault.ManagedHsmSKUFamily("B").ToPtr(), + Name: to.Ptr(armkeyvault.ManagedHsmSKUNameStandardB1), + Family: to.Ptr(armkeyvault.ManagedHsmSKUFamilyB), }, Tags: map[string]*string{ - "Dept": to.StringPtr("hsm"), - "Environment": to.StringPtr("dogfood"), + "Dept": to.Ptr("hsm"), + "Environment": to.Ptr("dogfood"), }, Properties: &armkeyvault.ManagedHsmProperties{ - EnablePurgeProtection: to.BoolPtr(true), - EnableSoftDelete: to.BoolPtr(true), + EnablePurgeProtection: to.Ptr(true), + EnableSoftDelete: to.Ptr(true), InitialAdminObjectIDs: []*string{ - to.StringPtr("00000000-0000-0000-0000-000000000000")}, - SoftDeleteRetentionInDays: to.Int32Ptr(90), - TenantID: to.StringPtr(""), + to.Ptr("00000000-0000-0000-0000-000000000000")}, + SoftDeleteRetentionInDays: to.Ptr[int32](90), + TenantID: to.Ptr(""), }, }, - nil) + &armkeyvault.ManagedHsmsClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagedHsmsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_Update.json func ExampleManagedHsmsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewManagedHsmsClient("", cred, nil) + client, err := armkeyvault.NewManagedHsmsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginUpdate(ctx, "", "", armkeyvault.ManagedHsm{ Tags: map[string]*string{ - "Dept": to.StringPtr("hsm"), - "Environment": to.StringPtr("dogfood"), - "Slice": to.StringPtr("A"), + "Dept": to.Ptr("hsm"), + "Environment": to.Ptr("dogfood"), + "Slice": to.Ptr("A"), }, }, - nil) + &armkeyvault.ManagedHsmsClientBeginUpdateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagedHsmsClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_Delete.json func ExampleManagedHsmsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewManagedHsmsClient("", cred, nil) + client, err := armkeyvault.NewManagedHsmsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginDelete(ctx, "", "", - nil) + &armkeyvault.ManagedHsmsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_Get.json func ExampleManagedHsmsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewManagedHsmsClient("", cred, nil) + client, err := armkeyvault.NewManagedHsmsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagedHsmsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_ListByResourceGroup.json func ExampleManagedHsmsClient_ListByResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewManagedHsmsClient("", cred, nil) + client, err := armkeyvault.NewManagedHsmsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResourceGroup("", &armkeyvault.ManagedHsmsClientListByResourceGroupOptions{Top: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_ListBySubscription.json func ExampleManagedHsmsClient_ListBySubscription() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewManagedHsmsClient("", cred, nil) + client, err := armkeyvault.NewManagedHsmsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListBySubscription(&armkeyvault.ManagedHsmsClientListBySubscriptionOptions{Top: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/DeletedManagedHsm_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/DeletedManagedHsm_List.json func ExampleManagedHsmsClient_ListDeleted() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewManagedHsmsClient("", cred, nil) + client, err := armkeyvault.NewManagedHsmsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListDeleted(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/DeletedManagedHsm_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/DeletedManagedHsm_Get.json func ExampleManagedHsmsClient_GetDeleted() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewManagedHsmsClient("", cred, nil) + client, err := armkeyvault.NewManagedHsmsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetDeleted(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagedHsmsClientGetDeletedResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/DeletedManagedHsm_Purge.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/DeletedManagedHsm_Purge.json func ExampleManagedHsmsClient_BeginPurgeDeleted() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewManagedHsmsClient("", cred, nil) + client, err := armkeyvault.NewManagedHsmsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginPurgeDeleted(ctx, "", "", - nil) + &armkeyvault.ManagedHsmsClientBeginPurgeDeletedOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_mhsmprivateendpointconnections_client_test.go b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_mhsmprivateendpointconnections_client_test.go index f4e206ce5706..aee98309c44b 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_mhsmprivateendpointconnections_client_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_mhsmprivateendpointconnections_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,58 +19,74 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" ) -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json func ExampleMHSMPrivateEndpointConnectionsClient_ListByResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewMHSMPrivateEndpointConnectionsClient("", cred, nil) + client, err := armkeyvault.NewMHSMPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResource("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_getPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_getPrivateEndpointConnection.json func ExampleMHSMPrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewMHSMPrivateEndpointConnectionsClient("", cred, nil) + client, err := armkeyvault.NewMHSMPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.MHSMPrivateEndpointConnectionsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_putPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_putPrivateEndpointConnection.json func ExampleMHSMPrivateEndpointConnectionsClient_Put() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewMHSMPrivateEndpointConnectionsClient("", cred, nil) + client, err := armkeyvault.NewMHSMPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Put(ctx, "", "", @@ -78,37 +94,47 @@ func ExampleMHSMPrivateEndpointConnectionsClient_Put() { armkeyvault.MHSMPrivateEndpointConnection{ Properties: &armkeyvault.MHSMPrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armkeyvault.MHSMPrivateLinkServiceConnectionState{ - Description: to.StringPtr(""), - Status: armkeyvault.PrivateEndpointServiceConnectionStatus("Approved").ToPtr(), + Description: to.Ptr(""), + Status: to.Ptr(armkeyvault.PrivateEndpointServiceConnectionStatusApproved), }, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.MHSMPrivateEndpointConnectionsClientPutResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_deletePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_deletePrivateEndpointConnection.json func ExampleMHSMPrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewMHSMPrivateEndpointConnectionsClient("", cred, nil) + client, err := armkeyvault.NewMHSMPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginDelete(ctx, "", "", "", - nil) + &armkeyvault.MHSMPrivateEndpointConnectionsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.MHSMPrivateEndpointConnectionsClientDeleteResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_mhsmprivatelinkresources_client_test.go b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_mhsmprivatelinkresources_client_test.go index 03de77125115..53f66c849965 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_mhsmprivatelinkresources_client_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_mhsmprivatelinkresources_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,20 +16,27 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" ) -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_listPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_listPrivateLinkResources.json func ExampleMHSMPrivateLinkResourcesClient_ListByMHSMResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewMHSMPrivateLinkResourcesClient("", cred, nil) + client, err := armkeyvault.NewMHSMPrivateLinkResourcesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListByMHSMResource(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.MHSMPrivateLinkResourcesClientListByMHSMResourceResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_operations_client_test.go index 26de90b4bbbe..6aedd6abe4ed 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_operations_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,25 +16,29 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" ) -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listOperations.json func ExampleOperationsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewOperationsClient(cred, nil) + client, err := armkeyvault.NewOperationsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_privateendpointconnections_client_test.go index 446b62ae0e82..062710fdaf26 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_privateendpointconnections_client_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_privateendpointconnections_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,97 +19,123 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" ) -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armkeyvault.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateEndpointConnectionsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/putPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/putPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_Put() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armkeyvault.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Put(ctx, "", "", "", armkeyvault.PrivateEndpointConnection{ - Etag: to.StringPtr(""), + Etag: to.Ptr(""), Properties: &armkeyvault.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armkeyvault.PrivateLinkServiceConnectionState{ - Description: to.StringPtr(""), - Status: armkeyvault.PrivateEndpointServiceConnectionStatus("Approved").ToPtr(), + Description: to.Ptr(""), + Status: to.Ptr(armkeyvault.PrivateEndpointServiceConnectionStatusApproved), }, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateEndpointConnectionsClientPutResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/deletePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/deletePrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armkeyvault.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginDelete(ctx, "", "", "", - nil) + &armkeyvault.PrivateEndpointConnectionsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateEndpointConnectionsClientDeleteResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_ListByResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armkeyvault.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResource("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_privatelinkresources_client_test.go b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_privatelinkresources_client_test.go index 99e8ab92db46..5ec0196e0d21 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_privatelinkresources_client_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_privatelinkresources_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,20 +16,27 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" ) -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listPrivateLinkResources.json func ExamplePrivateLinkResourcesClient_ListByVault() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewPrivateLinkResourcesClient("", cred, nil) + client, err := armkeyvault.NewPrivateLinkResourcesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListByVault(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateLinkResourcesClientListByVaultResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_secrets_client_test.go b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_secrets_client_test.go index 1a4f5b57768e..355cb3189f67 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_secrets_client_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_secrets_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,94 +17,119 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" ) -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/createSecret.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/createSecret.json func ExampleSecretsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewSecretsClient("", cred, nil) + client, err := armkeyvault.NewSecretsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", "", armkeyvault.SecretCreateOrUpdateParameters{ Properties: &armkeyvault.SecretProperties{ - Value: to.StringPtr(""), + Value: to.Ptr(""), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SecretsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/updateSecret.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/updateSecret.json func ExampleSecretsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewSecretsClient("", cred, nil) + client, err := armkeyvault.NewSecretsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", "", armkeyvault.SecretPatchParameters{ Properties: &armkeyvault.SecretPatchProperties{ - Value: to.StringPtr(""), + Value: to.Ptr(""), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SecretsClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getSecret.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getSecret.json func ExampleSecretsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewSecretsClient("", cred, nil) + client, err := armkeyvault.NewSecretsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SecretsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listSecrets.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listSecrets.json func ExampleSecretsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewSecretsClient("", cred, nil) + client, err := armkeyvault.NewSecretsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", &armkeyvault.SecretsClientListOptions{Top: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_vaults_client_test.go b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_vaults_client_test.go index 9a93a4a9b7cb..7af752117d3a 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_vaults_client_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/ze_generated_example_vaults_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,98 +19,111 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" ) -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/createVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/createVault.json func ExampleVaultsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginCreateOrUpdate(ctx, "", "", armkeyvault.VaultCreateOrUpdateParameters{ - Location: to.StringPtr(""), + Location: to.Ptr(""), Properties: &armkeyvault.VaultProperties{ AccessPolicies: []*armkeyvault.AccessPolicyEntry{ { - ObjectID: to.StringPtr(""), + ObjectID: to.Ptr(""), Permissions: &armkeyvault.Permissions{ Certificates: []*armkeyvault.CertificatePermissions{ - armkeyvault.CertificatePermissions("get").ToPtr(), - armkeyvault.CertificatePermissions("list").ToPtr(), - armkeyvault.CertificatePermissions("delete").ToPtr(), - armkeyvault.CertificatePermissions("create").ToPtr(), - armkeyvault.CertificatePermissions("import").ToPtr(), - armkeyvault.CertificatePermissions("update").ToPtr(), - armkeyvault.CertificatePermissions("managecontacts").ToPtr(), - armkeyvault.CertificatePermissions("getissuers").ToPtr(), - armkeyvault.CertificatePermissions("listissuers").ToPtr(), - armkeyvault.CertificatePermissions("setissuers").ToPtr(), - armkeyvault.CertificatePermissions("deleteissuers").ToPtr(), - armkeyvault.CertificatePermissions("manageissuers").ToPtr(), - armkeyvault.CertificatePermissions("recover").ToPtr(), - armkeyvault.CertificatePermissions("purge").ToPtr()}, + to.Ptr(armkeyvault.CertificatePermissionsGet), + to.Ptr(armkeyvault.CertificatePermissionsList), + to.Ptr(armkeyvault.CertificatePermissionsDelete), + to.Ptr(armkeyvault.CertificatePermissionsCreate), + to.Ptr(armkeyvault.CertificatePermissionsImport), + to.Ptr(armkeyvault.CertificatePermissionsUpdate), + to.Ptr(armkeyvault.CertificatePermissionsManagecontacts), + to.Ptr(armkeyvault.CertificatePermissionsGetissuers), + to.Ptr(armkeyvault.CertificatePermissionsListissuers), + to.Ptr(armkeyvault.CertificatePermissionsSetissuers), + to.Ptr(armkeyvault.CertificatePermissionsDeleteissuers), + to.Ptr(armkeyvault.CertificatePermissionsManageissuers), + to.Ptr(armkeyvault.CertificatePermissionsRecover), + to.Ptr(armkeyvault.CertificatePermissionsPurge)}, Keys: []*armkeyvault.KeyPermissions{ - armkeyvault.KeyPermissions("encrypt").ToPtr(), - armkeyvault.KeyPermissions("decrypt").ToPtr(), - armkeyvault.KeyPermissions("wrapKey").ToPtr(), - armkeyvault.KeyPermissions("unwrapKey").ToPtr(), - armkeyvault.KeyPermissions("sign").ToPtr(), - armkeyvault.KeyPermissions("verify").ToPtr(), - armkeyvault.KeyPermissions("get").ToPtr(), - armkeyvault.KeyPermissions("list").ToPtr(), - armkeyvault.KeyPermissions("create").ToPtr(), - armkeyvault.KeyPermissions("update").ToPtr(), - armkeyvault.KeyPermissions("import").ToPtr(), - armkeyvault.KeyPermissions("delete").ToPtr(), - armkeyvault.KeyPermissions("backup").ToPtr(), - armkeyvault.KeyPermissions("restore").ToPtr(), - armkeyvault.KeyPermissions("recover").ToPtr(), - armkeyvault.KeyPermissions("purge").ToPtr()}, + to.Ptr(armkeyvault.KeyPermissionsEncrypt), + to.Ptr(armkeyvault.KeyPermissionsDecrypt), + to.Ptr(armkeyvault.KeyPermissionsWrapKey), + to.Ptr(armkeyvault.KeyPermissionsUnwrapKey), + to.Ptr(armkeyvault.KeyPermissionsSign), + to.Ptr(armkeyvault.KeyPermissionsVerify), + to.Ptr(armkeyvault.KeyPermissionsGet), + to.Ptr(armkeyvault.KeyPermissionsList), + to.Ptr(armkeyvault.KeyPermissionsCreate), + to.Ptr(armkeyvault.KeyPermissionsUpdate), + to.Ptr(armkeyvault.KeyPermissionsImport), + to.Ptr(armkeyvault.KeyPermissionsDelete), + to.Ptr(armkeyvault.KeyPermissionsBackup), + to.Ptr(armkeyvault.KeyPermissionsRestore), + to.Ptr(armkeyvault.KeyPermissionsRecover), + to.Ptr(armkeyvault.KeyPermissionsPurge)}, Secrets: []*armkeyvault.SecretPermissions{ - armkeyvault.SecretPermissions("get").ToPtr(), - armkeyvault.SecretPermissions("list").ToPtr(), - armkeyvault.SecretPermissions("set").ToPtr(), - armkeyvault.SecretPermissions("delete").ToPtr(), - armkeyvault.SecretPermissions("backup").ToPtr(), - armkeyvault.SecretPermissions("restore").ToPtr(), - armkeyvault.SecretPermissions("recover").ToPtr(), - armkeyvault.SecretPermissions("purge").ToPtr()}, + to.Ptr(armkeyvault.SecretPermissionsGet), + to.Ptr(armkeyvault.SecretPermissionsList), + to.Ptr(armkeyvault.SecretPermissionsSet), + to.Ptr(armkeyvault.SecretPermissionsDelete), + to.Ptr(armkeyvault.SecretPermissionsBackup), + to.Ptr(armkeyvault.SecretPermissionsRestore), + to.Ptr(armkeyvault.SecretPermissionsRecover), + to.Ptr(armkeyvault.SecretPermissionsPurge)}, }, - TenantID: to.StringPtr(""), + TenantID: to.Ptr(""), }}, - EnabledForDeployment: to.BoolPtr(true), - EnabledForDiskEncryption: to.BoolPtr(true), - EnabledForTemplateDeployment: to.BoolPtr(true), - PublicNetworkAccess: to.StringPtr(""), + EnabledForDeployment: to.Ptr(true), + EnabledForDiskEncryption: to.Ptr(true), + EnabledForTemplateDeployment: to.Ptr(true), + PublicNetworkAccess: to.Ptr(""), SKU: &armkeyvault.SKU{ - Name: armkeyvault.SKUNameStandard.ToPtr(), - Family: armkeyvault.SKUFamily("A").ToPtr(), + Name: to.Ptr(armkeyvault.SKUNameStandard), + Family: to.Ptr(armkeyvault.SKUFamilyA), }, - TenantID: to.StringPtr(""), + TenantID: to.Ptr(""), }, }, - nil) + &armkeyvault.VaultsClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.VaultsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/updateVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/updateVault.json func ExampleVaultsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", @@ -118,113 +131,133 @@ func ExampleVaultsClient_Update() { Properties: &armkeyvault.VaultPatchProperties{ AccessPolicies: []*armkeyvault.AccessPolicyEntry{ { - ObjectID: to.StringPtr(""), + ObjectID: to.Ptr(""), Permissions: &armkeyvault.Permissions{ Certificates: []*armkeyvault.CertificatePermissions{ - armkeyvault.CertificatePermissions("get").ToPtr(), - armkeyvault.CertificatePermissions("list").ToPtr(), - armkeyvault.CertificatePermissions("delete").ToPtr(), - armkeyvault.CertificatePermissions("create").ToPtr(), - armkeyvault.CertificatePermissions("import").ToPtr(), - armkeyvault.CertificatePermissions("update").ToPtr(), - armkeyvault.CertificatePermissions("managecontacts").ToPtr(), - armkeyvault.CertificatePermissions("getissuers").ToPtr(), - armkeyvault.CertificatePermissions("listissuers").ToPtr(), - armkeyvault.CertificatePermissions("setissuers").ToPtr(), - armkeyvault.CertificatePermissions("deleteissuers").ToPtr(), - armkeyvault.CertificatePermissions("manageissuers").ToPtr(), - armkeyvault.CertificatePermissions("recover").ToPtr(), - armkeyvault.CertificatePermissions("purge").ToPtr()}, + to.Ptr(armkeyvault.CertificatePermissionsGet), + to.Ptr(armkeyvault.CertificatePermissionsList), + to.Ptr(armkeyvault.CertificatePermissionsDelete), + to.Ptr(armkeyvault.CertificatePermissionsCreate), + to.Ptr(armkeyvault.CertificatePermissionsImport), + to.Ptr(armkeyvault.CertificatePermissionsUpdate), + to.Ptr(armkeyvault.CertificatePermissionsManagecontacts), + to.Ptr(armkeyvault.CertificatePermissionsGetissuers), + to.Ptr(armkeyvault.CertificatePermissionsListissuers), + to.Ptr(armkeyvault.CertificatePermissionsSetissuers), + to.Ptr(armkeyvault.CertificatePermissionsDeleteissuers), + to.Ptr(armkeyvault.CertificatePermissionsManageissuers), + to.Ptr(armkeyvault.CertificatePermissionsRecover), + to.Ptr(armkeyvault.CertificatePermissionsPurge)}, Keys: []*armkeyvault.KeyPermissions{ - armkeyvault.KeyPermissions("encrypt").ToPtr(), - armkeyvault.KeyPermissions("decrypt").ToPtr(), - armkeyvault.KeyPermissions("wrapKey").ToPtr(), - armkeyvault.KeyPermissions("unwrapKey").ToPtr(), - armkeyvault.KeyPermissions("sign").ToPtr(), - armkeyvault.KeyPermissions("verify").ToPtr(), - armkeyvault.KeyPermissions("get").ToPtr(), - armkeyvault.KeyPermissions("list").ToPtr(), - armkeyvault.KeyPermissions("create").ToPtr(), - armkeyvault.KeyPermissions("update").ToPtr(), - armkeyvault.KeyPermissions("import").ToPtr(), - armkeyvault.KeyPermissions("delete").ToPtr(), - armkeyvault.KeyPermissions("backup").ToPtr(), - armkeyvault.KeyPermissions("restore").ToPtr(), - armkeyvault.KeyPermissions("recover").ToPtr(), - armkeyvault.KeyPermissions("purge").ToPtr()}, + to.Ptr(armkeyvault.KeyPermissionsEncrypt), + to.Ptr(armkeyvault.KeyPermissionsDecrypt), + to.Ptr(armkeyvault.KeyPermissionsWrapKey), + to.Ptr(armkeyvault.KeyPermissionsUnwrapKey), + to.Ptr(armkeyvault.KeyPermissionsSign), + to.Ptr(armkeyvault.KeyPermissionsVerify), + to.Ptr(armkeyvault.KeyPermissionsGet), + to.Ptr(armkeyvault.KeyPermissionsList), + to.Ptr(armkeyvault.KeyPermissionsCreate), + to.Ptr(armkeyvault.KeyPermissionsUpdate), + to.Ptr(armkeyvault.KeyPermissionsImport), + to.Ptr(armkeyvault.KeyPermissionsDelete), + to.Ptr(armkeyvault.KeyPermissionsBackup), + to.Ptr(armkeyvault.KeyPermissionsRestore), + to.Ptr(armkeyvault.KeyPermissionsRecover), + to.Ptr(armkeyvault.KeyPermissionsPurge)}, Secrets: []*armkeyvault.SecretPermissions{ - armkeyvault.SecretPermissions("get").ToPtr(), - armkeyvault.SecretPermissions("list").ToPtr(), - armkeyvault.SecretPermissions("set").ToPtr(), - armkeyvault.SecretPermissions("delete").ToPtr(), - armkeyvault.SecretPermissions("backup").ToPtr(), - armkeyvault.SecretPermissions("restore").ToPtr(), - armkeyvault.SecretPermissions("recover").ToPtr(), - armkeyvault.SecretPermissions("purge").ToPtr()}, + to.Ptr(armkeyvault.SecretPermissionsGet), + to.Ptr(armkeyvault.SecretPermissionsList), + to.Ptr(armkeyvault.SecretPermissionsSet), + to.Ptr(armkeyvault.SecretPermissionsDelete), + to.Ptr(armkeyvault.SecretPermissionsBackup), + to.Ptr(armkeyvault.SecretPermissionsRestore), + to.Ptr(armkeyvault.SecretPermissionsRecover), + to.Ptr(armkeyvault.SecretPermissionsPurge)}, }, - TenantID: to.StringPtr(""), + TenantID: to.Ptr(""), }}, - EnabledForDeployment: to.BoolPtr(true), - EnabledForDiskEncryption: to.BoolPtr(true), - EnabledForTemplateDeployment: to.BoolPtr(true), - PublicNetworkAccess: to.StringPtr(""), + EnabledForDeployment: to.Ptr(true), + EnabledForDiskEncryption: to.Ptr(true), + EnabledForTemplateDeployment: to.Ptr(true), + PublicNetworkAccess: to.Ptr(""), SKU: &armkeyvault.SKU{ - Name: armkeyvault.SKUNameStandard.ToPtr(), - Family: armkeyvault.SKUFamily("A").ToPtr(), + Name: to.Ptr(armkeyvault.SKUNameStandard), + Family: to.Ptr(armkeyvault.SKUFamilyA), }, - TenantID: to.StringPtr(""), + TenantID: to.Ptr(""), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.VaultsClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/deleteVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/deleteVault.json func ExampleVaultsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getVault.json func ExampleVaultsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.VaultsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/updateAccessPoliciesAdd.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/updateAccessPoliciesAdd.json func ExampleVaultsClient_UpdateAccessPolicy() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.UpdateAccessPolicy(ctx, "", "", @@ -233,174 +266,213 @@ func ExampleVaultsClient_UpdateAccessPolicy() { Properties: &armkeyvault.VaultAccessPolicyProperties{ AccessPolicies: []*armkeyvault.AccessPolicyEntry{ { - ObjectID: to.StringPtr(""), + ObjectID: to.Ptr(""), Permissions: &armkeyvault.Permissions{ Certificates: []*armkeyvault.CertificatePermissions{ - armkeyvault.CertificatePermissions("get").ToPtr()}, + to.Ptr(armkeyvault.CertificatePermissionsGet)}, Keys: []*armkeyvault.KeyPermissions{ - armkeyvault.KeyPermissions("encrypt").ToPtr()}, + to.Ptr(armkeyvault.KeyPermissionsEncrypt)}, Secrets: []*armkeyvault.SecretPermissions{ - armkeyvault.SecretPermissions("get").ToPtr()}, + to.Ptr(armkeyvault.SecretPermissionsGet)}, }, - TenantID: to.StringPtr(""), + TenantID: to.Ptr(""), }}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.VaultsClientUpdateAccessPolicyResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listVaultByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listVaultByResourceGroup.json func ExampleVaultsClient_ListByResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResourceGroup("", - &armkeyvault.VaultsClientListByResourceGroupOptions{Top: to.Int32Ptr(1)}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + &armkeyvault.VaultsClientListByResourceGroupOptions{Top: to.Ptr[int32](1)}) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listVaultBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listVaultBySubscription.json func ExampleVaultsClient_ListBySubscription() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) - pager := client.ListBySubscription(&armkeyvault.VaultsClientListBySubscriptionOptions{Top: to.Int32Ptr(1)}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.ListBySubscription(&armkeyvault.VaultsClientListBySubscriptionOptions{Top: to.Ptr[int32](1)}) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listDeletedVaults.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listDeletedVaults.json func ExampleVaultsClient_ListDeleted() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListDeleted(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getDeletedVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getDeletedVault.json func ExampleVaultsClient_GetDeleted() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetDeleted(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.VaultsClientGetDeletedResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/purgeDeletedVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/purgeDeletedVault.json func ExampleVaultsClient_BeginPurgeDeleted() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginPurgeDeleted(ctx, "", "", - nil) + &armkeyvault.VaultsClientBeginPurgeDeletedOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listVault.json func ExampleVaultsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) - pager := client.List(&armkeyvault.VaultsClientListOptions{Top: to.Int32Ptr(1)}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.List(&armkeyvault.VaultsClientListOptions{Top: to.Ptr[int32](1)}) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/checkVaultNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/checkVaultNameAvailability.json func ExampleVaultsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armkeyvault.NewVaultsClient("", cred, nil) + client, err := armkeyvault.NewVaultsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CheckNameAvailability(ctx, armkeyvault.VaultCheckNameAvailabilityParameters{ - Name: to.StringPtr(""), - Type: to.StringPtr(""), + Name: to.Ptr(""), + Type: to.Ptr(""), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.VaultsClientCheckNameAvailabilityResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zt_keys_client_live_test.go b/sdk/resourcemanager/keyvault/armkeyvault/zt_keys_client_live_test.go index 26b3cd43a91a..6b3510d34af2 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zt_keys_client_live_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zt_keys_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,15 +8,14 @@ package armkeyvault_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" "github.com/stretchr/testify/suite" - "testing" - "time" ) type KeysClientTestSuite struct { @@ -57,38 +56,39 @@ func TestKeysClient(t *testing.T) { func (testsuite *KeysClientTestSuite) TestKeysCRUD() { // create vault - vaultsClient := armkeyvault.NewVaultsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + vaultsClient, err := armkeyvault.NewVaultsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) vaultName := "go-test-vault3" vPollerResp, err := vaultsClient.BeginCreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, vaultName, armkeyvault.VaultCreateOrUpdateParameters{ - Location: to.StringPtr(testsuite.location), + Location: to.Ptr(testsuite.location), Properties: &armkeyvault.VaultProperties{ SKU: &armkeyvault.SKU{ - Family: armkeyvault.SKUFamilyA.ToPtr(), - Name: armkeyvault.SKUNameStandard.ToPtr(), + Family: to.Ptr(armkeyvault.SKUFamilyA), + Name: to.Ptr(armkeyvault.SKUNameStandard), }, - TenantID: to.StringPtr(testsuite.tenantID), + TenantID: to.Ptr(testsuite.tenantID), AccessPolicies: []*armkeyvault.AccessPolicyEntry{ { - TenantID: to.StringPtr(testsuite.tenantID), - ObjectID: to.StringPtr(testsuite.objectID), + TenantID: to.Ptr(testsuite.tenantID), + ObjectID: to.Ptr(testsuite.objectID), Permissions: &armkeyvault.Permissions{ Keys: []*armkeyvault.KeyPermissions{ - armkeyvault.KeyPermissionsGet.ToPtr(), - armkeyvault.KeyPermissionsList.ToPtr(), - armkeyvault.KeyPermissionsCreate.ToPtr(), + to.Ptr(armkeyvault.KeyPermissionsGet), + to.Ptr(armkeyvault.KeyPermissionsList), + to.Ptr(armkeyvault.KeyPermissionsCreate), }, Secrets: []*armkeyvault.SecretPermissions{ - armkeyvault.SecretPermissionsGet.ToPtr(), - armkeyvault.SecretPermissionsList.ToPtr(), + to.Ptr(armkeyvault.SecretPermissionsGet), + to.Ptr(armkeyvault.SecretPermissionsList), }, Certificates: []*armkeyvault.CertificatePermissions{ - armkeyvault.CertificatePermissionsGet.ToPtr(), - armkeyvault.CertificatePermissionsList.ToPtr(), - armkeyvault.CertificatePermissionsCreate.ToPtr(), + to.Ptr(armkeyvault.CertificatePermissionsGet), + to.Ptr(armkeyvault.CertificatePermissionsList), + to.Ptr(armkeyvault.CertificatePermissionsCreate), }, }, }, @@ -98,25 +98,13 @@ func (testsuite *KeysClientTestSuite) TestKeysCRUD() { nil, ) testsuite.Require().NoError(err) - var vResp armkeyvault.VaultsClientCreateOrUpdateResponse - if recording.GetRecordMode() == recording.PlaybackMode { - for { - _, err = vPollerResp.Poller.Poll(testsuite.ctx) - testsuite.Require().NoError(err) - if vPollerResp.Poller.Done() { - vResp, err = vPollerResp.Poller.FinalResponse(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - } - } else { - vResp, err = vPollerResp.PollUntilDone(testsuite.ctx, 30*time.Second) - testsuite.Require().NoError(err) - } + vResp, err := testutil.PollForTest(testsuite.ctx, vPollerResp) + testsuite.Require().NoError(err) testsuite.Require().Equal(vaultName, *vResp.Name) // create key - keysClient := armkeyvault.NewKeysClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + keysClient, err := armkeyvault.NewKeysClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) keyName := "go-test-key" createResp, err := keysClient.CreateIfNotExist( testsuite.ctx, @@ -126,14 +114,14 @@ func (testsuite *KeysClientTestSuite) TestKeysCRUD() { armkeyvault.KeyCreateParameters{ Properties: &armkeyvault.KeyProperties{ Attributes: &armkeyvault.KeyAttributes{ - Enabled: to.BoolPtr(true), + Enabled: to.Ptr(true), }, - KeySize: to.Int32Ptr(2048), + KeySize: to.Ptr[int32](2048), KeyOps: []*armkeyvault.JSONWebKeyOperation{ - armkeyvault.JSONWebKeyOperationEncrypt.ToPtr(), - armkeyvault.JSONWebKeyOperationDecrypt.ToPtr(), + to.Ptr(armkeyvault.JSONWebKeyOperationEncrypt), + to.Ptr(armkeyvault.JSONWebKeyOperationDecrypt), }, - Kty: armkeyvault.JSONWebKeyTypeRSA.ToPtr(), + Kty: to.Ptr(armkeyvault.JSONWebKeyTypeRSA), }, }, nil, @@ -148,11 +136,9 @@ func (testsuite *KeysClientTestSuite) TestKeysCRUD() { // list list := keysClient.List(testsuite.resourceGroupName, vaultName, nil) - testsuite.Require().NoError(list.Err()) - testsuite.Require().True(list.NextPage(testsuite.ctx)) + testsuite.Require().True(list.More()) // list versions listVersions := keysClient.ListVersions(testsuite.resourceGroupName, vaultName, keyName, nil) - testsuite.Require().NoError(listVersions.Err()) - testsuite.Require().True(listVersions.NextPage(testsuite.ctx)) + testsuite.Require().True(listVersions.More()) } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zt_secrets_client_live_test.go b/sdk/resourcemanager/keyvault/armkeyvault/zt_secrets_client_live_test.go index b52aa19b9d4c..50052a8eec3e 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zt_secrets_client_live_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zt_secrets_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,15 +8,14 @@ package armkeyvault_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" "github.com/stretchr/testify/suite" - "testing" - "time" ) type SecretsClientTestSuite struct { @@ -57,38 +56,39 @@ func TestSecretsClient(t *testing.T) { func (testsuite *SecretsClientTestSuite) TestSecretsCRUD() { // create vault - vaultsClient := armkeyvault.NewVaultsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + vaultsClient, err := armkeyvault.NewVaultsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) vaultName := "go-test-vault2" vPollerResp, err := vaultsClient.BeginCreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, vaultName, armkeyvault.VaultCreateOrUpdateParameters{ - Location: to.StringPtr(testsuite.location), + Location: to.Ptr(testsuite.location), Properties: &armkeyvault.VaultProperties{ SKU: &armkeyvault.SKU{ - Family: armkeyvault.SKUFamilyA.ToPtr(), - Name: armkeyvault.SKUNameStandard.ToPtr(), + Family: to.Ptr(armkeyvault.SKUFamilyA), + Name: to.Ptr(armkeyvault.SKUNameStandard), }, - TenantID: to.StringPtr(testsuite.tenantID), + TenantID: to.Ptr(testsuite.tenantID), AccessPolicies: []*armkeyvault.AccessPolicyEntry{ { - TenantID: to.StringPtr(testsuite.tenantID), - ObjectID: to.StringPtr(testsuite.objectID), + TenantID: to.Ptr(testsuite.tenantID), + ObjectID: to.Ptr(testsuite.objectID), Permissions: &armkeyvault.Permissions{ Keys: []*armkeyvault.KeyPermissions{ - armkeyvault.KeyPermissionsGet.ToPtr(), - armkeyvault.KeyPermissionsList.ToPtr(), - armkeyvault.KeyPermissionsCreate.ToPtr(), + to.Ptr(armkeyvault.KeyPermissionsGet), + to.Ptr(armkeyvault.KeyPermissionsList), + to.Ptr(armkeyvault.KeyPermissionsCreate), }, Secrets: []*armkeyvault.SecretPermissions{ - armkeyvault.SecretPermissionsGet.ToPtr(), - armkeyvault.SecretPermissionsList.ToPtr(), + to.Ptr(armkeyvault.SecretPermissionsGet), + to.Ptr(armkeyvault.SecretPermissionsList), }, Certificates: []*armkeyvault.CertificatePermissions{ - armkeyvault.CertificatePermissionsGet.ToPtr(), - armkeyvault.CertificatePermissionsList.ToPtr(), - armkeyvault.CertificatePermissionsCreate.ToPtr(), + to.Ptr(armkeyvault.CertificatePermissionsGet), + to.Ptr(armkeyvault.CertificatePermissionsList), + to.Ptr(armkeyvault.CertificatePermissionsCreate), }, }, }, @@ -98,25 +98,13 @@ func (testsuite *SecretsClientTestSuite) TestSecretsCRUD() { nil, ) testsuite.Require().NoError(err) - var vResp armkeyvault.VaultsClientCreateOrUpdateResponse - if recording.GetRecordMode() == recording.PlaybackMode { - for { - _, err = vPollerResp.Poller.Poll(testsuite.ctx) - testsuite.Require().NoError(err) - if vPollerResp.Poller.Done() { - vResp, err = vPollerResp.Poller.FinalResponse(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - } - } else { - vResp, err = vPollerResp.PollUntilDone(testsuite.ctx, 30*time.Second) - testsuite.Require().NoError(err) - } + vResp, err := testutil.PollForTest(testsuite.ctx, vPollerResp) + testsuite.Require().NoError(err) testsuite.Require().Equal(vaultName, *vResp.Name) // create secret - secretsClient := armkeyvault.NewSecretsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + secretsClient, err := armkeyvault.NewSecretsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) secretName := "go-test-secret2" secretResp, err := secretsClient.CreateOrUpdate( testsuite.ctx, @@ -126,9 +114,9 @@ func (testsuite *SecretsClientTestSuite) TestSecretsCRUD() { armkeyvault.SecretCreateOrUpdateParameters{ Properties: &armkeyvault.SecretProperties{ Attributes: &armkeyvault.SecretAttributes{ - Enabled: to.BoolPtr(true), + Enabled: to.Ptr(true), }, - Value: to.StringPtr("sample-secret-value"), + Value: to.Ptr("sample-secret-value"), }, }, nil, @@ -144,10 +132,10 @@ func (testsuite *SecretsClientTestSuite) TestSecretsCRUD() { secretName, armkeyvault.SecretPatchParameters{ Tags: map[string]*string{ - "test": to.StringPtr("recording"), + "test": to.Ptr("recording"), }, Properties: &armkeyvault.SecretPatchProperties{ - Value: to.StringPtr("sample-secret-value-update"), + Value: to.Ptr("sample-secret-value-update"), }, }, nil, @@ -162,6 +150,5 @@ func (testsuite *SecretsClientTestSuite) TestSecretsCRUD() { // list secret secretPager := secretsClient.List(testsuite.resourceGroupName, vaultName, nil) - testsuite.Require().NoError(secretPager.Err()) - testsuite.Require().True(secretPager.NextPage(testsuite.ctx)) + testsuite.Require().True(secretPager.More()) } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zt_vaults_client_live_test.go b/sdk/resourcemanager/keyvault/armkeyvault/zt_vaults_client_live_test.go index 8966e6e2a36d..48a7bd9eed58 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zt_vaults_client_live_test.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zt_vaults_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,15 +8,14 @@ package armkeyvault_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" "github.com/stretchr/testify/suite" - "testing" - "time" ) type VaultsClientTestSuite struct { @@ -57,38 +56,39 @@ func TestVaultsClient(t *testing.T) { func (testsuite *VaultsClientTestSuite) TestVaultsCRUD() { // create vault - vaultsClient := armkeyvault.NewVaultsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + vaultsClient, err := armkeyvault.NewVaultsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) vaultName := "go-test-vault1" vPollerResp, err := vaultsClient.BeginCreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, vaultName, armkeyvault.VaultCreateOrUpdateParameters{ - Location: to.StringPtr(testsuite.location), + Location: to.Ptr(testsuite.location), Properties: &armkeyvault.VaultProperties{ SKU: &armkeyvault.SKU{ - Family: armkeyvault.SKUFamilyA.ToPtr(), - Name: armkeyvault.SKUNameStandard.ToPtr(), + Family: to.Ptr(armkeyvault.SKUFamilyA), + Name: to.Ptr(armkeyvault.SKUNameStandard), }, - TenantID: to.StringPtr(testsuite.tenantID), + TenantID: to.Ptr(testsuite.tenantID), AccessPolicies: []*armkeyvault.AccessPolicyEntry{ { - TenantID: to.StringPtr(testsuite.tenantID), - ObjectID: to.StringPtr(testsuite.objectID), + TenantID: to.Ptr(testsuite.tenantID), + ObjectID: to.Ptr(testsuite.objectID), Permissions: &armkeyvault.Permissions{ Keys: []*armkeyvault.KeyPermissions{ - armkeyvault.KeyPermissionsGet.ToPtr(), - armkeyvault.KeyPermissionsList.ToPtr(), - armkeyvault.KeyPermissionsCreate.ToPtr(), + to.Ptr(armkeyvault.KeyPermissionsGet), + to.Ptr(armkeyvault.KeyPermissionsList), + to.Ptr(armkeyvault.KeyPermissionsCreate), }, Secrets: []*armkeyvault.SecretPermissions{ - armkeyvault.SecretPermissionsGet.ToPtr(), - armkeyvault.SecretPermissionsList.ToPtr(), + to.Ptr(armkeyvault.SecretPermissionsGet), + to.Ptr(armkeyvault.SecretPermissionsList), }, Certificates: []*armkeyvault.CertificatePermissions{ - armkeyvault.CertificatePermissionsGet.ToPtr(), - armkeyvault.CertificatePermissionsList.ToPtr(), - armkeyvault.CertificatePermissionsCreate.ToPtr(), + to.Ptr(armkeyvault.CertificatePermissionsGet), + to.Ptr(armkeyvault.CertificatePermissionsList), + to.Ptr(armkeyvault.CertificatePermissionsCreate), }, }, }, @@ -98,29 +98,16 @@ func (testsuite *VaultsClientTestSuite) TestVaultsCRUD() { nil, ) testsuite.Require().NoError(err) - var vResp armkeyvault.VaultsClientCreateOrUpdateResponse - if recording.GetRecordMode() == recording.PlaybackMode { - for { - _, err = vPollerResp.Poller.Poll(testsuite.ctx) - testsuite.Require().NoError(err) - if vPollerResp.Poller.Done() { - vResp, err = vPollerResp.Poller.FinalResponse(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - } - } else { - vResp, err = vPollerResp.PollUntilDone(testsuite.ctx, 30*time.Second) - testsuite.Require().NoError(err) - } + vResp, err := testutil.PollForTest(testsuite.ctx, vPollerResp) + testsuite.Require().NoError(err) testsuite.Require().Equal(vaultName, *vResp.Name) // create vault check, err := vaultsClient.CheckNameAvailability( testsuite.ctx, armkeyvault.VaultCheckNameAvailabilityParameters{ - Name: to.StringPtr(vaultName), - Type: to.StringPtr("Microsoft.KeyVault/vaults"), + Name: to.Ptr(vaultName), + Type: to.Ptr("Microsoft.KeyVault/vaults"), }, nil, ) @@ -139,7 +126,7 @@ func (testsuite *VaultsClientTestSuite) TestVaultsCRUD() { vaultName, armkeyvault.VaultPatchParameters{ Tags: map[string]*string{ - "test": to.StringPtr("recording"), + "test": to.Ptr("recording"), }, }, nil, @@ -149,13 +136,11 @@ func (testsuite *VaultsClientTestSuite) TestVaultsCRUD() { // list vault deleted deletedPager := vaultsClient.ListDeleted(nil) - testsuite.Require().NoError(deletedPager.Err()) - testsuite.Require().True(deletedPager.NextPage(testsuite.ctx)) + testsuite.Require().True(deletedPager.More()) // delete vault - delResp, err := vaultsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, vaultName, nil) + _, err = vaultsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, vaultName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(200, delResp.RawResponse.StatusCode) // get deleted vault deletedResp, err := vaultsClient.GetDeleted(testsuite.ctx, vaultName, testsuite.location, nil) @@ -165,20 +150,6 @@ func (testsuite *VaultsClientTestSuite) TestVaultsCRUD() { // purge deleted vault purgePollerResp, err := vaultsClient.BeginPurgeDeleted(testsuite.ctx, vaultName, testsuite.location, nil) testsuite.Require().NoError(err) - var purgeResp armkeyvault.VaultsClientPurgeDeletedResponse - if recording.GetRecordMode() == recording.PlaybackMode { - for { - _, err = purgePollerResp.Poller.Poll(testsuite.ctx) - testsuite.Require().NoError(err) - if purgePollerResp.Poller.Done() { - purgeResp, err = purgePollerResp.Poller.FinalResponse(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - } - } else { - purgeResp, err = purgePollerResp.PollUntilDone(testsuite.ctx, 30*time.Second) - testsuite.Require().NoError(err) - } - testsuite.Require().Equal(200, purgeResp.RawResponse.StatusCode) + _, err = testutil.PollForTest(testsuite.ctx, purgePollerResp) + testsuite.Require().NoError(err) } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_constants.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_constants.go index 6ced58755a52..6f593f8f5933 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_constants.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,7 +10,7 @@ package armkeyvault const ( moduleName = "armkeyvault" - moduleVersion = "v0.3.1" + moduleVersion = "v0.4.0" ) type AccessPolicyUpdateKind string @@ -30,11 +30,6 @@ func PossibleAccessPolicyUpdateKindValues() []AccessPolicyUpdateKind { } } -// ToPtr returns a *AccessPolicyUpdateKind pointing to the current value. -func (c AccessPolicyUpdateKind) ToPtr() *AccessPolicyUpdateKind { - return &c -} - // ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer. type ActionsRequired string @@ -49,11 +44,6 @@ func PossibleActionsRequiredValues() []ActionsRequired { } } -// ToPtr returns a *ActionsRequired pointing to the current value. -func (c ActionsRequired) ToPtr() *ActionsRequired { - return &c -} - type CertificatePermissions string const ( @@ -99,11 +89,6 @@ func PossibleCertificatePermissionsValues() []CertificatePermissions { } } -// ToPtr returns a *CertificatePermissions pointing to the current value. -func (c CertificatePermissions) ToPtr() *CertificatePermissions { - return &c -} - // CreateMode - The vault's create mode to indicate whether the vault need to be recovered or not. type CreateMode string @@ -120,11 +105,6 @@ func PossibleCreateModeValues() []CreateMode { } } -// ToPtr returns a *CreateMode pointing to the current value. -func (c CreateMode) ToPtr() *CreateMode { - return &c -} - // DeletionRecoveryLevel - The deletion recovery level currently in effect for the object. If it contains 'Purgeable', then // the object can be permanently deleted by a privileged user; otherwise, only the system can purge the // object at the end of the retention interval. @@ -147,11 +127,6 @@ func PossibleDeletionRecoveryLevelValues() []DeletionRecoveryLevel { } } -// ToPtr returns a *DeletionRecoveryLevel pointing to the current value. -func (c DeletionRecoveryLevel) ToPtr() *DeletionRecoveryLevel { - return &c -} - // IdentityType - The type of identity. type IdentityType string @@ -172,11 +147,6 @@ func PossibleIdentityTypeValues() []IdentityType { } } -// ToPtr returns a *IdentityType pointing to the current value. -func (c IdentityType) ToPtr() *IdentityType { - return &c -} - // JSONWebKeyCurveName - The elliptic curve name. For valid values, see JsonWebKeyCurveName. type JSONWebKeyCurveName string @@ -197,11 +167,6 @@ func PossibleJSONWebKeyCurveNameValues() []JSONWebKeyCurveName { } } -// ToPtr returns a *JSONWebKeyCurveName pointing to the current value. -func (c JSONWebKeyCurveName) ToPtr() *JSONWebKeyCurveName { - return &c -} - // JSONWebKeyOperation - The permitted JSON web key operations of the key. For more information, see JsonWebKeyOperation. type JSONWebKeyOperation string @@ -230,11 +195,6 @@ func PossibleJSONWebKeyOperationValues() []JSONWebKeyOperation { } } -// ToPtr returns a *JSONWebKeyOperation pointing to the current value. -func (c JSONWebKeyOperation) ToPtr() *JSONWebKeyOperation { - return &c -} - // JSONWebKeyType - The type of the key. For valid values, see JsonWebKeyType. type JSONWebKeyType string @@ -255,11 +215,6 @@ func PossibleJSONWebKeyTypeValues() []JSONWebKeyType { } } -// ToPtr returns a *JSONWebKeyType pointing to the current value. -func (c JSONWebKeyType) ToPtr() *JSONWebKeyType { - return &c -} - type KeyPermissions string const ( @@ -313,11 +268,6 @@ func PossibleKeyPermissionsValues() []KeyPermissions { } } -// ToPtr returns a *KeyPermissions pointing to the current value. -func (c KeyPermissions) ToPtr() *KeyPermissions { - return &c -} - // KeyRotationPolicyActionType - The type of action. type KeyRotationPolicyActionType string @@ -334,11 +284,6 @@ func PossibleKeyRotationPolicyActionTypeValues() []KeyRotationPolicyActionType { } } -// ToPtr returns a *KeyRotationPolicyActionType pointing to the current value. -func (c KeyRotationPolicyActionType) ToPtr() *KeyRotationPolicyActionType { - return &c -} - // ManagedHsmSKUFamily - SKU Family of the managed HSM Pool type ManagedHsmSKUFamily string @@ -353,11 +298,6 @@ func PossibleManagedHsmSKUFamilyValues() []ManagedHsmSKUFamily { } } -// ToPtr returns a *ManagedHsmSKUFamily pointing to the current value. -func (c ManagedHsmSKUFamily) ToPtr() *ManagedHsmSKUFamily { - return &c -} - // ManagedHsmSKUName - SKU of the managed HSM Pool type ManagedHsmSKUName string @@ -374,11 +314,6 @@ func PossibleManagedHsmSKUNameValues() []ManagedHsmSKUName { } } -// ToPtr returns a *ManagedHsmSKUName pointing to the current value. -func (c ManagedHsmSKUName) ToPtr() *ManagedHsmSKUName { - return &c -} - // NetworkRuleAction - The default action when no rule from ipRules and from virtualNetworkRules match. This is only used // after the bypass property has been evaluated. type NetworkRuleAction string @@ -396,11 +331,6 @@ func PossibleNetworkRuleActionValues() []NetworkRuleAction { } } -// ToPtr returns a *NetworkRuleAction pointing to the current value. -func (c NetworkRuleAction) ToPtr() *NetworkRuleAction { - return &c -} - // NetworkRuleBypassOptions - Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified // the default is 'AzureServices'. type NetworkRuleBypassOptions string @@ -418,11 +348,6 @@ func PossibleNetworkRuleBypassOptionsValues() []NetworkRuleBypassOptions { } } -// ToPtr returns a *NetworkRuleBypassOptions pointing to the current value. -func (c NetworkRuleBypassOptions) ToPtr() *NetworkRuleBypassOptions { - return &c -} - // PrivateEndpointConnectionProvisioningState - The current provisioning state. type PrivateEndpointConnectionProvisioningState string @@ -447,11 +372,6 @@ func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpoin } } -// ToPtr returns a *PrivateEndpointConnectionProvisioningState pointing to the current value. -func (c PrivateEndpointConnectionProvisioningState) ToPtr() *PrivateEndpointConnectionProvisioningState { - return &c -} - // PrivateEndpointServiceConnectionStatus - The private endpoint connection status. type PrivateEndpointServiceConnectionStatus string @@ -472,11 +392,6 @@ func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointSer } } -// ToPtr returns a *PrivateEndpointServiceConnectionStatus pointing to the current value. -func (c PrivateEndpointServiceConnectionStatus) ToPtr() *PrivateEndpointServiceConnectionStatus { - return &c -} - // ProvisioningState - Provisioning state. type ProvisioningState string @@ -513,11 +428,6 @@ func PossibleProvisioningStateValues() []ProvisioningState { } } -// ToPtr returns a *ProvisioningState pointing to the current value. -func (c ProvisioningState) ToPtr() *ProvisioningState { - return &c -} - // PublicNetworkAccess - Control permission for data plane traffic coming from public networks while private endpoint is enabled. type PublicNetworkAccess string @@ -534,11 +444,6 @@ func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { } } -// ToPtr returns a *PublicNetworkAccess pointing to the current value. -func (c PublicNetworkAccess) ToPtr() *PublicNetworkAccess { - return &c -} - // Reason - The reason that a vault name could not be used. The Reason element is only returned if NameAvailable is false. type Reason string @@ -555,11 +460,6 @@ func PossibleReasonValues() []Reason { } } -// ToPtr returns a *Reason pointing to the current value. -func (c Reason) ToPtr() *Reason { - return &c -} - // SKUFamily - SKU family name type SKUFamily string @@ -574,11 +474,6 @@ func PossibleSKUFamilyValues() []SKUFamily { } } -// ToPtr returns a *SKUFamily pointing to the current value. -func (c SKUFamily) ToPtr() *SKUFamily { - return &c -} - // SKUName - SKU name to specify whether the key vault is a standard vault or a premium vault. type SKUName string @@ -595,11 +490,6 @@ func PossibleSKUNameValues() []SKUName { } } -// ToPtr returns a *SKUName pointing to the current value. -func (c SKUName) ToPtr() *SKUName { - return &c -} - type SecretPermissions string const ( @@ -629,11 +519,6 @@ func PossibleSecretPermissionsValues() []SecretPermissions { } } -// ToPtr returns a *SecretPermissions pointing to the current value. -func (c SecretPermissions) ToPtr() *SecretPermissions { - return &c -} - type StoragePermissions string const ( @@ -675,11 +560,6 @@ func PossibleStoragePermissionsValues() []StoragePermissions { } } -// ToPtr returns a *StoragePermissions pointing to the current value. -func (c StoragePermissions) ToPtr() *StoragePermissions { - return &c -} - // VaultProvisioningState - Provisioning state of the vault. type VaultProvisioningState string @@ -695,8 +575,3 @@ func PossibleVaultProvisioningStateValues() []VaultProvisioningState { VaultProvisioningStateSucceeded, } } - -// ToPtr returns a *VaultProvisioningState pointing to the current value. -func (c VaultProvisioningState) ToPtr() *VaultProvisioningState { - return &c -} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_keys_client.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_keys_client.go index c4264e660038..aaf75d829c24 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_keys_client.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_keys_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type KeysClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewKeysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *KeysClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewKeysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KeysClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &KeysClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateIfNotExist - Creates the first version of a new key if it does not exist. If it already exists, then the existing @@ -106,7 +111,7 @@ func (client *KeysClient) createIfNotExistCreateRequest(ctx context.Context, res // createIfNotExistHandleResponse handles the CreateIfNotExist response. func (client *KeysClient) createIfNotExistHandleResponse(resp *http.Response) (KeysClientCreateIfNotExistResponse, error) { - result := KeysClientCreateIfNotExistResponse{RawResponse: resp} + result := KeysClientCreateIfNotExistResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Key); err != nil { return KeysClientCreateIfNotExistResponse{}, err } @@ -166,7 +171,7 @@ func (client *KeysClient) getCreateRequest(ctx context.Context, resourceGroupNam // getHandleResponse handles the Get response. func (client *KeysClient) getHandleResponse(resp *http.Response) (KeysClientGetResponse, error) { - result := KeysClientGetResponse{RawResponse: resp} + result := KeysClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Key); err != nil { return KeysClientGetResponse{}, err } @@ -231,7 +236,7 @@ func (client *KeysClient) getVersionCreateRequest(ctx context.Context, resourceG // getVersionHandleResponse handles the GetVersion response. func (client *KeysClient) getVersionHandleResponse(resp *http.Response) (KeysClientGetVersionResponse, error) { - result := KeysClientGetVersionResponse{RawResponse: resp} + result := KeysClientGetVersionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Key); err != nil { return KeysClientGetVersionResponse{}, err } @@ -243,16 +248,32 @@ func (client *KeysClient) getVersionHandleResponse(resp *http.Response) (KeysCli // resourceGroupName - The name of the resource group which contains the specified key vault. // vaultName - The name of the vault which contains the keys to be retrieved. // options - KeysClientListOptions contains the optional parameters for the KeysClient.List method. -func (client *KeysClient) List(resourceGroupName string, vaultName string, options *KeysClientListOptions) *KeysClientListPager { - return &KeysClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, vaultName, options) +func (client *KeysClient) List(resourceGroupName string, vaultName string, options *KeysClientListOptions) *runtime.Pager[KeysClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[KeysClientListResponse]{ + More: func(page KeysClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp KeysClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.KeyListResult.NextLink) + Fetcher: func(ctx context.Context, page *KeysClientListResponse) (KeysClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, vaultName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return KeysClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return KeysClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return KeysClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -283,7 +304,7 @@ func (client *KeysClient) listCreateRequest(ctx context.Context, resourceGroupNa // listHandleResponse handles the List response. func (client *KeysClient) listHandleResponse(resp *http.Response) (KeysClientListResponse, error) { - result := KeysClientListResponse{RawResponse: resp} + result := KeysClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyListResult); err != nil { return KeysClientListResponse{}, err } @@ -296,16 +317,32 @@ func (client *KeysClient) listHandleResponse(resp *http.Response) (KeysClientLis // vaultName - The name of the vault which contains the key versions to be retrieved. // keyName - The name of the key versions to be retrieved. // options - KeysClientListVersionsOptions contains the optional parameters for the KeysClient.ListVersions method. -func (client *KeysClient) ListVersions(resourceGroupName string, vaultName string, keyName string, options *KeysClientListVersionsOptions) *KeysClientListVersionsPager { - return &KeysClientListVersionsPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listVersionsCreateRequest(ctx, resourceGroupName, vaultName, keyName, options) +func (client *KeysClient) ListVersions(resourceGroupName string, vaultName string, keyName string, options *KeysClientListVersionsOptions) *runtime.Pager[KeysClientListVersionsResponse] { + return runtime.NewPager(runtime.PageProcessor[KeysClientListVersionsResponse]{ + More: func(page KeysClientListVersionsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp KeysClientListVersionsResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.KeyListResult.NextLink) + Fetcher: func(ctx context.Context, page *KeysClientListVersionsResponse) (KeysClientListVersionsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listVersionsCreateRequest(ctx, resourceGroupName, vaultName, keyName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return KeysClientListVersionsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return KeysClientListVersionsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return KeysClientListVersionsResponse{}, runtime.NewResponseError(resp) + } + return client.listVersionsHandleResponse(resp) }, - } + }) } // listVersionsCreateRequest creates the ListVersions request. @@ -340,7 +377,7 @@ func (client *KeysClient) listVersionsCreateRequest(ctx context.Context, resourc // listVersionsHandleResponse handles the ListVersions response. func (client *KeysClient) listVersionsHandleResponse(resp *http.Response) (KeysClientListVersionsResponse, error) { - result := KeysClientListVersionsResponse{RawResponse: resp} + result := KeysClientListVersionsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.KeyListResult); err != nil { return KeysClientListVersionsResponse{}, err } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_managedhsms_client.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_managedhsms_client.go index 35b9196ca750..917c4d4c4211 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_managedhsms_client.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_managedhsms_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type ManagedHsmsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewManagedHsmsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ManagedHsmsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewManagedHsmsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedHsmsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ManagedHsmsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // BeginCreateOrUpdate - Create or update a managed HSM Pool in the specified subscription. @@ -58,22 +63,16 @@ func NewManagedHsmsClient(subscriptionID string, credential azcore.TokenCredenti // parameters - Parameters to create or update the managed HSM Pool // options - ManagedHsmsClientBeginCreateOrUpdateOptions contains the optional parameters for the ManagedHsmsClient.BeginCreateOrUpdate // method. -func (client *ManagedHsmsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters ManagedHsm, options *ManagedHsmsClientBeginCreateOrUpdateOptions) (ManagedHsmsClientCreateOrUpdatePollerResponse, error) { - resp, err := client.createOrUpdate(ctx, resourceGroupName, name, parameters, options) - if err != nil { - return ManagedHsmsClientCreateOrUpdatePollerResponse{}, err - } - result := ManagedHsmsClientCreateOrUpdatePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ManagedHsmsClient.CreateOrUpdate", "", resp, client.pl) - if err != nil { - return ManagedHsmsClientCreateOrUpdatePollerResponse{}, err - } - result.Poller = &ManagedHsmsClientCreateOrUpdatePoller{ - pt: pt, +func (client *ManagedHsmsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters ManagedHsm, options *ManagedHsmsClientBeginCreateOrUpdateOptions) (*armruntime.Poller[ManagedHsmsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, name, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ManagedHsmsClientCreateOrUpdateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ManagedHsmsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) } - return result, nil } // CreateOrUpdate - Create or update a managed HSM Pool in the specified subscription. @@ -124,22 +123,16 @@ func (client *ManagedHsmsClient) createOrUpdateCreateRequest(ctx context.Context // resourceGroupName - Name of the resource group that contains the managed HSM pool. // name - The name of the managed HSM Pool to delete // options - ManagedHsmsClientBeginDeleteOptions contains the optional parameters for the ManagedHsmsClient.BeginDelete method. -func (client *ManagedHsmsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, options *ManagedHsmsClientBeginDeleteOptions) (ManagedHsmsClientDeletePollerResponse, error) { - resp, err := client.deleteOperation(ctx, resourceGroupName, name, options) - if err != nil { - return ManagedHsmsClientDeletePollerResponse{}, err +func (client *ManagedHsmsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, options *ManagedHsmsClientBeginDeleteOptions) (*armruntime.Poller[ManagedHsmsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, name, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ManagedHsmsClientDeleteResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ManagedHsmsClientDeleteResponse](options.ResumeToken, client.pl, nil) } - result := ManagedHsmsClientDeletePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ManagedHsmsClient.Delete", "", resp, client.pl) - if err != nil { - return ManagedHsmsClientDeletePollerResponse{}, err - } - result.Poller = &ManagedHsmsClientDeletePoller{ - pt: pt, - } - return result, nil } // Delete - Deletes the specified managed HSM Pool. @@ -233,7 +226,7 @@ func (client *ManagedHsmsClient) getCreateRequest(ctx context.Context, resourceG // getHandleResponse handles the Get response. func (client *ManagedHsmsClient) getHandleResponse(resp *http.Response) (ManagedHsmsClientGetResponse, error) { - result := ManagedHsmsClientGetResponse{RawResponse: resp} + result := ManagedHsmsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagedHsm); err != nil { return ManagedHsmsClientGetResponse{}, err } @@ -288,7 +281,7 @@ func (client *ManagedHsmsClient) getDeletedCreateRequest(ctx context.Context, na // getDeletedHandleResponse handles the GetDeleted response. func (client *ManagedHsmsClient) getDeletedHandleResponse(resp *http.Response) (ManagedHsmsClientGetDeletedResponse, error) { - result := ManagedHsmsClientGetDeletedResponse{RawResponse: resp} + result := ManagedHsmsClientGetDeletedResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeletedManagedHsm); err != nil { return ManagedHsmsClientGetDeletedResponse{}, err } @@ -301,16 +294,32 @@ func (client *ManagedHsmsClient) getDeletedHandleResponse(resp *http.Response) ( // resourceGroupName - Name of the resource group that contains the managed HSM pool. // options - ManagedHsmsClientListByResourceGroupOptions contains the optional parameters for the ManagedHsmsClient.ListByResourceGroup // method. -func (client *ManagedHsmsClient) ListByResourceGroup(resourceGroupName string, options *ManagedHsmsClientListByResourceGroupOptions) *ManagedHsmsClientListByResourceGroupPager { - return &ManagedHsmsClientListByResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *ManagedHsmsClient) ListByResourceGroup(resourceGroupName string, options *ManagedHsmsClientListByResourceGroupOptions) *runtime.Pager[ManagedHsmsClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[ManagedHsmsClientListByResourceGroupResponse]{ + More: func(page ManagedHsmsClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ManagedHsmsClientListByResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ManagedHsmListResult.NextLink) + Fetcher: func(ctx context.Context, page *ManagedHsmsClientListByResourceGroupResponse) (ManagedHsmsClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ManagedHsmsClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ManagedHsmsClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ManagedHsmsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) }, - } + }) } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. @@ -340,7 +349,7 @@ func (client *ManagedHsmsClient) listByResourceGroupCreateRequest(ctx context.Co // listByResourceGroupHandleResponse handles the ListByResourceGroup response. func (client *ManagedHsmsClient) listByResourceGroupHandleResponse(resp *http.Response) (ManagedHsmsClientListByResourceGroupResponse, error) { - result := ManagedHsmsClientListByResourceGroupResponse{RawResponse: resp} + result := ManagedHsmsClientListByResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagedHsmListResult); err != nil { return ManagedHsmsClientListByResourceGroupResponse{}, err } @@ -351,16 +360,32 @@ func (client *ManagedHsmsClient) listByResourceGroupHandleResponse(resp *http.Re // If the operation fails it returns an *azcore.ResponseError type. // options - ManagedHsmsClientListBySubscriptionOptions contains the optional parameters for the ManagedHsmsClient.ListBySubscription // method. -func (client *ManagedHsmsClient) ListBySubscription(options *ManagedHsmsClientListBySubscriptionOptions) *ManagedHsmsClientListBySubscriptionPager { - return &ManagedHsmsClientListBySubscriptionPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listBySubscriptionCreateRequest(ctx, options) +func (client *ManagedHsmsClient) ListBySubscription(options *ManagedHsmsClientListBySubscriptionOptions) *runtime.Pager[ManagedHsmsClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PageProcessor[ManagedHsmsClientListBySubscriptionResponse]{ + More: func(page ManagedHsmsClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ManagedHsmsClientListBySubscriptionResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ManagedHsmListResult.NextLink) + Fetcher: func(ctx context.Context, page *ManagedHsmsClientListBySubscriptionResponse) (ManagedHsmsClientListBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ManagedHsmsClientListBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ManagedHsmsClientListBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ManagedHsmsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionHandleResponse(resp) }, - } + }) } // listBySubscriptionCreateRequest creates the ListBySubscription request. @@ -386,7 +411,7 @@ func (client *ManagedHsmsClient) listBySubscriptionCreateRequest(ctx context.Con // listBySubscriptionHandleResponse handles the ListBySubscription response. func (client *ManagedHsmsClient) listBySubscriptionHandleResponse(resp *http.Response) (ManagedHsmsClientListBySubscriptionResponse, error) { - result := ManagedHsmsClientListBySubscriptionResponse{RawResponse: resp} + result := ManagedHsmsClientListBySubscriptionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagedHsmListResult); err != nil { return ManagedHsmsClientListBySubscriptionResponse{}, err } @@ -396,16 +421,32 @@ func (client *ManagedHsmsClient) listBySubscriptionHandleResponse(resp *http.Res // ListDeleted - The List operation gets information about the deleted managed HSMs associated with the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ManagedHsmsClientListDeletedOptions contains the optional parameters for the ManagedHsmsClient.ListDeleted method. -func (client *ManagedHsmsClient) ListDeleted(options *ManagedHsmsClientListDeletedOptions) *ManagedHsmsClientListDeletedPager { - return &ManagedHsmsClientListDeletedPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listDeletedCreateRequest(ctx, options) +func (client *ManagedHsmsClient) ListDeleted(options *ManagedHsmsClientListDeletedOptions) *runtime.Pager[ManagedHsmsClientListDeletedResponse] { + return runtime.NewPager(runtime.PageProcessor[ManagedHsmsClientListDeletedResponse]{ + More: func(page ManagedHsmsClientListDeletedResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ManagedHsmsClientListDeletedResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.DeletedManagedHsmListResult.NextLink) + Fetcher: func(ctx context.Context, page *ManagedHsmsClientListDeletedResponse) (ManagedHsmsClientListDeletedResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listDeletedCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ManagedHsmsClientListDeletedResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ManagedHsmsClientListDeletedResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ManagedHsmsClientListDeletedResponse{}, runtime.NewResponseError(resp) + } + return client.listDeletedHandleResponse(resp) }, - } + }) } // listDeletedCreateRequest creates the ListDeleted request. @@ -428,7 +469,7 @@ func (client *ManagedHsmsClient) listDeletedCreateRequest(ctx context.Context, o // listDeletedHandleResponse handles the ListDeleted response. func (client *ManagedHsmsClient) listDeletedHandleResponse(resp *http.Response) (ManagedHsmsClientListDeletedResponse, error) { - result := ManagedHsmsClientListDeletedResponse{RawResponse: resp} + result := ManagedHsmsClientListDeletedResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeletedManagedHsmListResult); err != nil { return ManagedHsmsClientListDeletedResponse{}, err } @@ -441,22 +482,16 @@ func (client *ManagedHsmsClient) listDeletedHandleResponse(resp *http.Response) // location - The location of the soft-deleted managed HSM. // options - ManagedHsmsClientBeginPurgeDeletedOptions contains the optional parameters for the ManagedHsmsClient.BeginPurgeDeleted // method. -func (client *ManagedHsmsClient) BeginPurgeDeleted(ctx context.Context, name string, location string, options *ManagedHsmsClientBeginPurgeDeletedOptions) (ManagedHsmsClientPurgeDeletedPollerResponse, error) { - resp, err := client.purgeDeleted(ctx, name, location, options) - if err != nil { - return ManagedHsmsClientPurgeDeletedPollerResponse{}, err - } - result := ManagedHsmsClientPurgeDeletedPollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ManagedHsmsClient.PurgeDeleted", "", resp, client.pl) - if err != nil { - return ManagedHsmsClientPurgeDeletedPollerResponse{}, err - } - result.Poller = &ManagedHsmsClientPurgeDeletedPoller{ - pt: pt, +func (client *ManagedHsmsClient) BeginPurgeDeleted(ctx context.Context, name string, location string, options *ManagedHsmsClientBeginPurgeDeletedOptions) (*armruntime.Poller[ManagedHsmsClientPurgeDeletedResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.purgeDeleted(ctx, name, location, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ManagedHsmsClientPurgeDeletedResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ManagedHsmsClientPurgeDeletedResponse](options.ResumeToken, client.pl, nil) } - return result, nil } // PurgeDeleted - Permanently deletes the specified managed HSM. @@ -508,22 +543,16 @@ func (client *ManagedHsmsClient) purgeDeletedCreateRequest(ctx context.Context, // name - Name of the managed HSM Pool // parameters - Parameters to patch the managed HSM Pool // options - ManagedHsmsClientBeginUpdateOptions contains the optional parameters for the ManagedHsmsClient.BeginUpdate method. -func (client *ManagedHsmsClient) BeginUpdate(ctx context.Context, resourceGroupName string, name string, parameters ManagedHsm, options *ManagedHsmsClientBeginUpdateOptions) (ManagedHsmsClientUpdatePollerResponse, error) { - resp, err := client.update(ctx, resourceGroupName, name, parameters, options) - if err != nil { - return ManagedHsmsClientUpdatePollerResponse{}, err +func (client *ManagedHsmsClient) BeginUpdate(ctx context.Context, resourceGroupName string, name string, parameters ManagedHsm, options *ManagedHsmsClientBeginUpdateOptions) (*armruntime.Poller[ManagedHsmsClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, name, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ManagedHsmsClientUpdateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ManagedHsmsClientUpdateResponse](options.ResumeToken, client.pl, nil) } - result := ManagedHsmsClientUpdatePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ManagedHsmsClient.Update", "", resp, client.pl) - if err != nil { - return ManagedHsmsClientUpdatePollerResponse{}, err - } - result.Poller = &ManagedHsmsClientUpdatePoller{ - pt: pt, - } - return result, nil } // Update - Update a managed HSM Pool in the specified subscription. diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_mhsmprivateendpointconnections_client.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_mhsmprivateendpointconnections_client.go index e4504639493a..81858f84d4b8 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_mhsmprivateendpointconnections_client.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_mhsmprivateendpointconnections_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type MHSMPrivateEndpointConnectionsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewMHSMPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *MHSMPrivateEndpointConnectionsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewMHSMPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MHSMPrivateEndpointConnectionsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &MHSMPrivateEndpointConnectionsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // BeginDelete - Deletes the specified private endpoint connection associated with the managed hsm pool. @@ -58,22 +63,16 @@ func NewMHSMPrivateEndpointConnectionsClient(subscriptionID string, credential a // privateEndpointConnectionName - Name of the private endpoint connection associated with the managed hsm pool. // options - MHSMPrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the MHSMPrivateEndpointConnectionsClient.BeginDelete // method. -func (client *MHSMPrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *MHSMPrivateEndpointConnectionsClientBeginDeleteOptions) (MHSMPrivateEndpointConnectionsClientDeletePollerResponse, error) { - resp, err := client.deleteOperation(ctx, resourceGroupName, name, privateEndpointConnectionName, options) - if err != nil { - return MHSMPrivateEndpointConnectionsClientDeletePollerResponse{}, err - } - result := MHSMPrivateEndpointConnectionsClientDeletePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("MHSMPrivateEndpointConnectionsClient.Delete", "", resp, client.pl) - if err != nil { - return MHSMPrivateEndpointConnectionsClientDeletePollerResponse{}, err - } - result.Poller = &MHSMPrivateEndpointConnectionsClientDeletePoller{ - pt: pt, +func (client *MHSMPrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *MHSMPrivateEndpointConnectionsClientBeginDeleteOptions) (*armruntime.Poller[MHSMPrivateEndpointConnectionsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, name, privateEndpointConnectionName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[MHSMPrivateEndpointConnectionsClientDeleteResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[MHSMPrivateEndpointConnectionsClientDeleteResponse](options.ResumeToken, client.pl, nil) } - return result, nil } // Delete - Deletes the specified private endpoint connection associated with the managed hsm pool. @@ -177,7 +176,7 @@ func (client *MHSMPrivateEndpointConnectionsClient) getCreateRequest(ctx context // getHandleResponse handles the Get response. func (client *MHSMPrivateEndpointConnectionsClient) getHandleResponse(resp *http.Response) (MHSMPrivateEndpointConnectionsClientGetResponse, error) { - result := MHSMPrivateEndpointConnectionsClientGetResponse{RawResponse: resp} + result := MHSMPrivateEndpointConnectionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.MHSMPrivateEndpointConnection); err != nil { return MHSMPrivateEndpointConnectionsClientGetResponse{}, err } @@ -191,16 +190,32 @@ func (client *MHSMPrivateEndpointConnectionsClient) getHandleResponse(resp *http // name - Name of the managed HSM Pool // options - MHSMPrivateEndpointConnectionsClientListByResourceOptions contains the optional parameters for the MHSMPrivateEndpointConnectionsClient.ListByResource // method. -func (client *MHSMPrivateEndpointConnectionsClient) ListByResource(resourceGroupName string, name string, options *MHSMPrivateEndpointConnectionsClientListByResourceOptions) *MHSMPrivateEndpointConnectionsClientListByResourcePager { - return &MHSMPrivateEndpointConnectionsClientListByResourcePager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceCreateRequest(ctx, resourceGroupName, name, options) +func (client *MHSMPrivateEndpointConnectionsClient) ListByResource(resourceGroupName string, name string, options *MHSMPrivateEndpointConnectionsClientListByResourceOptions) *runtime.Pager[MHSMPrivateEndpointConnectionsClientListByResourceResponse] { + return runtime.NewPager(runtime.PageProcessor[MHSMPrivateEndpointConnectionsClientListByResourceResponse]{ + More: func(page MHSMPrivateEndpointConnectionsClientListByResourceResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp MHSMPrivateEndpointConnectionsClientListByResourceResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.MHSMPrivateEndpointConnectionsListResult.NextLink) + Fetcher: func(ctx context.Context, page *MHSMPrivateEndpointConnectionsClientListByResourceResponse) (MHSMPrivateEndpointConnectionsClientListByResourceResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceCreateRequest(ctx, resourceGroupName, name, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return MHSMPrivateEndpointConnectionsClientListByResourceResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return MHSMPrivateEndpointConnectionsClientListByResourceResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return MHSMPrivateEndpointConnectionsClientListByResourceResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceHandleResponse(resp) }, - } + }) } // listByResourceCreateRequest creates the ListByResource request. @@ -231,7 +246,7 @@ func (client *MHSMPrivateEndpointConnectionsClient) listByResourceCreateRequest( // listByResourceHandleResponse handles the ListByResource response. func (client *MHSMPrivateEndpointConnectionsClient) listByResourceHandleResponse(resp *http.Response) (MHSMPrivateEndpointConnectionsClientListByResourceResponse, error) { - result := MHSMPrivateEndpointConnectionsClientListByResourceResponse{RawResponse: resp} + result := MHSMPrivateEndpointConnectionsClientListByResourceResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.MHSMPrivateEndpointConnectionsListResult); err != nil { return MHSMPrivateEndpointConnectionsClientListByResourceResponse{}, err } @@ -293,7 +308,7 @@ func (client *MHSMPrivateEndpointConnectionsClient) putCreateRequest(ctx context // putHandleResponse handles the Put response. func (client *MHSMPrivateEndpointConnectionsClient) putHandleResponse(resp *http.Response) (MHSMPrivateEndpointConnectionsClientPutResponse, error) { - result := MHSMPrivateEndpointConnectionsClientPutResponse{RawResponse: resp} + result := MHSMPrivateEndpointConnectionsClientPutResponse{} if val := resp.Header.Get("Retry-After"); val != "" { retryAfter32, err := strconv.ParseInt(val, 10, 32) retryAfter := int32(retryAfter32) diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_mhsmprivatelinkresources_client.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_mhsmprivatelinkresources_client.go index 1f0a317ddd5f..b8c020a001c9 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_mhsmprivatelinkresources_client.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_mhsmprivatelinkresources_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type MHSMPrivateLinkResourcesClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewMHSMPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *MHSMPrivateLinkResourcesClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewMHSMPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MHSMPrivateLinkResourcesClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &MHSMPrivateLinkResourcesClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // ListByMHSMResource - Gets the private link resources supported for the managed hsm pool. @@ -99,7 +104,7 @@ func (client *MHSMPrivateLinkResourcesClient) listByMHSMResourceCreateRequest(ct // listByMHSMResourceHandleResponse handles the ListByMHSMResource response. func (client *MHSMPrivateLinkResourcesClient) listByMHSMResourceHandleResponse(resp *http.Response) (MHSMPrivateLinkResourcesClientListByMHSMResourceResponse, error) { - result := MHSMPrivateLinkResourcesClientListByMHSMResourceResponse{RawResponse: resp} + result := MHSMPrivateLinkResourcesClientListByMHSMResourceResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.MHSMPrivateLinkResourceListResult); err != nil { return MHSMPrivateLinkResourcesClientListByMHSMResourceResponse{}, err } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_models.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_models.go index 33018de62e40..251559f2b5f2 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_models.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,13 +8,7 @@ package armkeyvault -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "reflect" - "time" -) +import "time" // AccessPolicyEntry - An identity that have access to the key vault. All identities in the array must use the same tenant // ID as the key vault's tenant ID. @@ -56,49 +50,6 @@ type Attributes struct { Updated *time.Time `json:"updated,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Attributes. -func (a Attributes) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeUnix(objectMap, "created", a.Created) - populate(objectMap, "enabled", a.Enabled) - populateTimeUnix(objectMap, "exp", a.Expires) - populateTimeUnix(objectMap, "nbf", a.NotBefore) - populateTimeUnix(objectMap, "updated", a.Updated) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Attributes. -func (a *Attributes) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "created": - err = unpopulateTimeUnix(val, &a.Created) - delete(rawMsg, key) - case "enabled": - err = unpopulate(val, &a.Enabled) - delete(rawMsg, key) - case "exp": - err = unpopulateTimeUnix(val, &a.Expires) - delete(rawMsg, key) - case "nbf": - err = unpopulateTimeUnix(val, &a.NotBefore) - delete(rawMsg, key) - case "updated": - err = unpopulateTimeUnix(val, &a.Updated) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // CheckNameAvailabilityResult - The CheckNameAvailability operation response. type CheckNameAvailabilityResult struct { // READ-ONLY; An error message explaining the Reason value in more detail. @@ -150,14 +101,6 @@ type DeletedManagedHsmListResult struct { Value []*DeletedManagedHsm `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type DeletedManagedHsmListResult. -func (d DeletedManagedHsmListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", d.NextLink) - populate(objectMap, "value", d.Value) - return json.Marshal(objectMap) -} - // DeletedManagedHsmProperties - Properties of the deleted managed HSM. type DeletedManagedHsmProperties struct { // READ-ONLY; The deleted date. @@ -179,53 +122,6 @@ type DeletedManagedHsmProperties struct { Tags map[string]*string `json:"tags,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type DeletedManagedHsmProperties. -func (d DeletedManagedHsmProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "deletionDate", d.DeletionDate) - populate(objectMap, "location", d.Location) - populate(objectMap, "mhsmId", d.MhsmID) - populate(objectMap, "purgeProtectionEnabled", d.PurgeProtectionEnabled) - populateTimeRFC3339(objectMap, "scheduledPurgeDate", d.ScheduledPurgeDate) - populate(objectMap, "tags", d.Tags) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DeletedManagedHsmProperties. -func (d *DeletedManagedHsmProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "deletionDate": - err = unpopulateTimeRFC3339(val, &d.DeletionDate) - delete(rawMsg, key) - case "location": - err = unpopulate(val, &d.Location) - delete(rawMsg, key) - case "mhsmId": - err = unpopulate(val, &d.MhsmID) - delete(rawMsg, key) - case "purgeProtectionEnabled": - err = unpopulate(val, &d.PurgeProtectionEnabled) - delete(rawMsg, key) - case "scheduledPurgeDate": - err = unpopulateTimeRFC3339(val, &d.ScheduledPurgeDate) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, &d.Tags) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // DeletedVault - Deleted vault information with extended details. type DeletedVault struct { // Properties of the vault @@ -250,14 +146,6 @@ type DeletedVaultListResult struct { Value []*DeletedVault `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type DeletedVaultListResult. -func (d DeletedVaultListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", d.NextLink) - populate(objectMap, "value", d.Value) - return json.Marshal(objectMap) -} - // DeletedVaultProperties - Properties of the deleted vault. type DeletedVaultProperties struct { // READ-ONLY; The deleted date. @@ -279,53 +167,6 @@ type DeletedVaultProperties struct { VaultID *string `json:"vaultId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type DeletedVaultProperties. -func (d DeletedVaultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "deletionDate", d.DeletionDate) - populate(objectMap, "location", d.Location) - populate(objectMap, "purgeProtectionEnabled", d.PurgeProtectionEnabled) - populateTimeRFC3339(objectMap, "scheduledPurgeDate", d.ScheduledPurgeDate) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "vaultId", d.VaultID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DeletedVaultProperties. -func (d *DeletedVaultProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "deletionDate": - err = unpopulateTimeRFC3339(val, &d.DeletionDate) - delete(rawMsg, key) - case "location": - err = unpopulate(val, &d.Location) - delete(rawMsg, key) - case "purgeProtectionEnabled": - err = unpopulate(val, &d.PurgeProtectionEnabled) - delete(rawMsg, key) - case "scheduledPurgeDate": - err = unpopulateTimeRFC3339(val, &d.ScheduledPurgeDate) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, &d.Tags) - delete(rawMsg, key) - case "vaultId": - err = unpopulate(val, &d.VaultID) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // DimensionProperties - Type of operation: get, read, delete, etc. type DimensionProperties struct { // Display name of dimension. @@ -378,18 +219,6 @@ type Key struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Key. -func (k Key) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", k.ID) - populate(objectMap, "location", k.Location) - populate(objectMap, "name", k.Name) - populate(objectMap, "properties", k.Properties) - populate(objectMap, "tags", k.Tags) - populate(objectMap, "type", k.Type) - return json.Marshal(objectMap) -} - // KeyAttributes - The object attributes managed by the Azure Key Vault service. type KeyAttributes struct { // Determines whether or not the object is enabled. @@ -425,14 +254,6 @@ type KeyCreateParameters struct { Tags map[string]*string `json:"tags,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type KeyCreateParameters. -func (k KeyCreateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", k.Properties) - populate(objectMap, "tags", k.Tags) - return json.Marshal(objectMap) -} - // KeyListResult - The page of keys. type KeyListResult struct { // The URL to get the next page of keys. @@ -442,14 +263,6 @@ type KeyListResult struct { Value []*Key `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type KeyListResult. -func (k KeyListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", k.NextLink) - populate(objectMap, "value", k.Value) - return json.Marshal(objectMap) -} - // KeyProperties - The properties of the key. type KeyProperties struct { // The attributes of the key. @@ -478,21 +291,6 @@ type KeyProperties struct { KeyURIWithVersion *string `json:"keyUriWithVersion,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type KeyProperties. -func (k KeyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "attributes", k.Attributes) - populate(objectMap, "curveName", k.CurveName) - populate(objectMap, "keyOps", k.KeyOps) - populate(objectMap, "keySize", k.KeySize) - populate(objectMap, "keyUri", k.KeyURI) - populate(objectMap, "keyUriWithVersion", k.KeyURIWithVersion) - populate(objectMap, "kty", k.Kty) - populate(objectMap, "release_policy", k.ReleasePolicy) - populate(objectMap, "rotationPolicy", k.RotationPolicy) - return json.Marshal(objectMap) -} - type KeyReleasePolicy struct { // Content type and version of key release policy ContentType *string `json:"contentType,omitempty"` @@ -501,37 +299,6 @@ type KeyReleasePolicy struct { Data []byte `json:"data,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type KeyReleasePolicy. -func (k KeyReleasePolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "contentType", k.ContentType) - populateByteArray(objectMap, "data", k.Data, runtime.Base64URLFormat) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type KeyReleasePolicy. -func (k *KeyReleasePolicy) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "contentType": - err = unpopulate(val, &k.ContentType) - delete(rawMsg, key) - case "data": - err = runtime.DecodeByteArray(string(val), &k.Data, runtime.Base64URLFormat) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - type KeyRotationPolicyAttributes struct { // The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'. ExpiryTime *string `json:"expiryTime,omitempty"` @@ -611,16 +378,6 @@ type MHSMNetworkRuleSet struct { VirtualNetworkRules []*MHSMVirtualNetworkRule `json:"virtualNetworkRules,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type MHSMNetworkRuleSet. -func (m MHSMNetworkRuleSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "bypass", m.Bypass) - populate(objectMap, "defaultAction", m.DefaultAction) - populate(objectMap, "ipRules", m.IPRules) - populate(objectMap, "virtualNetworkRules", m.VirtualNetworkRules) - return json.Marshal(objectMap) -} - // MHSMPrivateEndpoint - Private endpoint object properties. type MHSMPrivateEndpoint struct { // READ-ONLY; Full identifier of the private endpoint resource. @@ -657,21 +414,6 @@ type MHSMPrivateEndpointConnection struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type MHSMPrivateEndpointConnection. -func (m MHSMPrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "etag", m.Etag) - populate(objectMap, "id", m.ID) - populate(objectMap, "location", m.Location) - populate(objectMap, "name", m.Name) - populate(objectMap, "properties", m.Properties) - populate(objectMap, "sku", m.SKU) - populate(objectMap, "systemData", m.SystemData) - populate(objectMap, "tags", m.Tags) - populate(objectMap, "type", m.Type) - return json.Marshal(objectMap) -} - // MHSMPrivateEndpointConnectionItem - Private endpoint connection item. type MHSMPrivateEndpointConnectionItem struct { // Private endpoint connection properties. @@ -693,7 +435,8 @@ type MHSMPrivateEndpointConnectionProperties struct { // MHSMPrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the MHSMPrivateEndpointConnectionsClient.BeginDelete // method. type MHSMPrivateEndpointConnectionsClientBeginDeleteOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // MHSMPrivateEndpointConnectionsClientGetOptions contains the optional parameters for the MHSMPrivateEndpointConnectionsClient.Get @@ -723,14 +466,6 @@ type MHSMPrivateEndpointConnectionsListResult struct { Value []*MHSMPrivateEndpointConnection `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type MHSMPrivateEndpointConnectionsListResult. -func (m MHSMPrivateEndpointConnectionsListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", m.NextLink) - populate(objectMap, "value", m.Value) - return json.Marshal(objectMap) -} - // MHSMPrivateLinkResource - A private link resource type MHSMPrivateLinkResource struct { // The supported Azure location where the managed HSM Pool should be created. @@ -758,33 +493,12 @@ type MHSMPrivateLinkResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type MHSMPrivateLinkResource. -func (m MHSMPrivateLinkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", m.ID) - populate(objectMap, "location", m.Location) - populate(objectMap, "name", m.Name) - populate(objectMap, "properties", m.Properties) - populate(objectMap, "sku", m.SKU) - populate(objectMap, "systemData", m.SystemData) - populate(objectMap, "tags", m.Tags) - populate(objectMap, "type", m.Type) - return json.Marshal(objectMap) -} - // MHSMPrivateLinkResourceListResult - A list of private link resources type MHSMPrivateLinkResourceListResult struct { // Array of private link resources Value []*MHSMPrivateLinkResource `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type MHSMPrivateLinkResourceListResult. -func (m MHSMPrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", m.Value) - return json.Marshal(objectMap) -} - // MHSMPrivateLinkResourceProperties - Properties of a private link resource. type MHSMPrivateLinkResourceProperties struct { // Required DNS zone names of the the private link resource. @@ -797,15 +511,6 @@ type MHSMPrivateLinkResourceProperties struct { RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type MHSMPrivateLinkResourceProperties. -func (m MHSMPrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "groupId", m.GroupID) - populate(objectMap, "requiredMembers", m.RequiredMembers) - populate(objectMap, "requiredZoneNames", m.RequiredZoneNames) - return json.Marshal(objectMap) -} - // MHSMPrivateLinkResourcesClientListByMHSMResourceOptions contains the optional parameters for the MHSMPrivateLinkResourcesClient.ListByMHSMResource // method. type MHSMPrivateLinkResourcesClientListByMHSMResourceOptions struct { @@ -857,20 +562,6 @@ type ManagedHsm struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ManagedHsm. -func (m ManagedHsm) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", m.ID) - populate(objectMap, "location", m.Location) - populate(objectMap, "name", m.Name) - populate(objectMap, "properties", m.Properties) - populate(objectMap, "sku", m.SKU) - populate(objectMap, "systemData", m.SystemData) - populate(objectMap, "tags", m.Tags) - populate(objectMap, "type", m.Type) - return json.Marshal(objectMap) -} - // ManagedHsmError - The error exception. type ManagedHsmError struct { // READ-ONLY; The server error. @@ -886,14 +577,6 @@ type ManagedHsmListResult struct { Value []*ManagedHsm `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ManagedHsmListResult. -func (m ManagedHsmListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", m.NextLink) - populate(objectMap, "value", m.Value) - return json.Marshal(objectMap) -} - // ManagedHsmProperties - Properties of the managed HSM Pool type ManagedHsmProperties struct { // The create mode to indicate whether the resource is being created or is being recovered from a deleted resource. @@ -941,81 +624,6 @@ type ManagedHsmProperties struct { StatusMessage *string `json:"statusMessage,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ManagedHsmProperties. -func (m ManagedHsmProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "createMode", m.CreateMode) - populate(objectMap, "enablePurgeProtection", m.EnablePurgeProtection) - populate(objectMap, "enableSoftDelete", m.EnableSoftDelete) - populate(objectMap, "hsmUri", m.HsmURI) - populate(objectMap, "initialAdminObjectIds", m.InitialAdminObjectIDs) - populate(objectMap, "networkAcls", m.NetworkACLs) - populate(objectMap, "privateEndpointConnections", m.PrivateEndpointConnections) - populate(objectMap, "provisioningState", m.ProvisioningState) - populate(objectMap, "publicNetworkAccess", m.PublicNetworkAccess) - populateTimeRFC3339(objectMap, "scheduledPurgeDate", m.ScheduledPurgeDate) - populate(objectMap, "softDeleteRetentionInDays", m.SoftDeleteRetentionInDays) - populate(objectMap, "statusMessage", m.StatusMessage) - populate(objectMap, "tenantId", m.TenantID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedHsmProperties. -func (m *ManagedHsmProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createMode": - err = unpopulate(val, &m.CreateMode) - delete(rawMsg, key) - case "enablePurgeProtection": - err = unpopulate(val, &m.EnablePurgeProtection) - delete(rawMsg, key) - case "enableSoftDelete": - err = unpopulate(val, &m.EnableSoftDelete) - delete(rawMsg, key) - case "hsmUri": - err = unpopulate(val, &m.HsmURI) - delete(rawMsg, key) - case "initialAdminObjectIds": - err = unpopulate(val, &m.InitialAdminObjectIDs) - delete(rawMsg, key) - case "networkAcls": - err = unpopulate(val, &m.NetworkACLs) - delete(rawMsg, key) - case "privateEndpointConnections": - err = unpopulate(val, &m.PrivateEndpointConnections) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, &m.ProvisioningState) - delete(rawMsg, key) - case "publicNetworkAccess": - err = unpopulate(val, &m.PublicNetworkAccess) - delete(rawMsg, key) - case "scheduledPurgeDate": - err = unpopulateTimeRFC3339(val, &m.ScheduledPurgeDate) - delete(rawMsg, key) - case "softDeleteRetentionInDays": - err = unpopulate(val, &m.SoftDeleteRetentionInDays) - delete(rawMsg, key) - case "statusMessage": - err = unpopulate(val, &m.StatusMessage) - delete(rawMsg, key) - case "tenantId": - err = unpopulate(val, &m.TenantID) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // ManagedHsmResource - Managed HSM resource type ManagedHsmResource struct { // The supported Azure location where the managed HSM Pool should be created. @@ -1040,19 +648,6 @@ type ManagedHsmResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ManagedHsmResource. -func (m ManagedHsmResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", m.ID) - populate(objectMap, "location", m.Location) - populate(objectMap, "name", m.Name) - populate(objectMap, "sku", m.SKU) - populate(objectMap, "systemData", m.SystemData) - populate(objectMap, "tags", m.Tags) - populate(objectMap, "type", m.Type) - return json.Marshal(objectMap) -} - // ManagedHsmSKU - SKU details type ManagedHsmSKU struct { // REQUIRED; SKU Family of the managed HSM Pool @@ -1065,23 +660,27 @@ type ManagedHsmSKU struct { // ManagedHsmsClientBeginCreateOrUpdateOptions contains the optional parameters for the ManagedHsmsClient.BeginCreateOrUpdate // method. type ManagedHsmsClientBeginCreateOrUpdateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ManagedHsmsClientBeginDeleteOptions contains the optional parameters for the ManagedHsmsClient.BeginDelete method. type ManagedHsmsClientBeginDeleteOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ManagedHsmsClientBeginPurgeDeletedOptions contains the optional parameters for the ManagedHsmsClient.BeginPurgeDeleted // method. type ManagedHsmsClientBeginPurgeDeletedOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ManagedHsmsClientBeginUpdateOptions contains the optional parameters for the ManagedHsmsClient.BeginUpdate method. type ManagedHsmsClientBeginUpdateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ManagedHsmsClientGetDeletedOptions contains the optional parameters for the ManagedHsmsClient.GetDeleted method. @@ -1149,23 +748,6 @@ type MetricSpecification struct { Unit *string `json:"unit,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type MetricSpecification. -func (m MetricSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "aggregationType", m.AggregationType) - populate(objectMap, "dimensions", m.Dimensions) - populate(objectMap, "displayDescription", m.DisplayDescription) - populate(objectMap, "displayName", m.DisplayName) - populate(objectMap, "fillGapWithZero", m.FillGapWithZero) - populate(objectMap, "internalMetricName", m.InternalMetricName) - populate(objectMap, "lockAggregationType", m.LockAggregationType) - populate(objectMap, "name", m.Name) - populate(objectMap, "supportedAggregationTypes", m.SupportedAggregationTypes) - populate(objectMap, "supportedTimeGrainTypes", m.SupportedTimeGrainTypes) - populate(objectMap, "unit", m.Unit) - return json.Marshal(objectMap) -} - // NetworkRuleSet - A set of rules governing the network accessibility of a vault. type NetworkRuleSet struct { // Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'. @@ -1182,16 +764,6 @@ type NetworkRuleSet struct { VirtualNetworkRules []*VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSet. -func (n NetworkRuleSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "bypass", n.Bypass) - populate(objectMap, "defaultAction", n.DefaultAction) - populate(objectMap, "ipRules", n.IPRules) - populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) - return json.Marshal(objectMap) -} - // Operation - Key Vault REST API operation definition. type Operation struct { // Display metadata associated with the operation. @@ -1235,14 +807,6 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type OperationListResult. -func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", o.NextLink) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - // OperationProperties - Properties of operation, include metric specifications. type OperationProperties struct { // One property of operation, include metric specifications. @@ -1269,16 +833,6 @@ type Permissions struct { Storage []*StoragePermissions `json:"storage,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type Permissions. -func (p Permissions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "certificates", p.Certificates) - populate(objectMap, "keys", p.Keys) - populate(objectMap, "secrets", p.Secrets) - populate(objectMap, "storage", p.Storage) - return json.Marshal(objectMap) -} - // PrivateEndpoint - Private endpoint object properties. type PrivateEndpoint struct { // READ-ONLY; Full identifier of the private endpoint resource. @@ -1309,19 +863,6 @@ type PrivateEndpointConnection struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection. -func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "etag", p.Etag) - populate(objectMap, "id", p.ID) - populate(objectMap, "location", p.Location) - populate(objectMap, "name", p.Name) - populate(objectMap, "properties", p.Properties) - populate(objectMap, "tags", p.Tags) - populate(objectMap, "type", p.Type) - return json.Marshal(objectMap) -} - // PrivateEndpointConnectionItem - Private endpoint connection item. type PrivateEndpointConnectionItem struct { // Modified whenever there is a change in the state of private endpoint connection. @@ -1343,14 +884,6 @@ type PrivateEndpointConnectionListResult struct { Value []*PrivateEndpointConnection `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. -func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - // PrivateEndpointConnectionProperties - Properties of the private endpoint connection resource. type PrivateEndpointConnectionProperties struct { // Properties of the private endpoint object. @@ -1366,7 +899,8 @@ type PrivateEndpointConnectionProperties struct { // PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete // method. type PrivateEndpointConnectionsClientBeginDeleteOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get @@ -1408,31 +942,12 @@ type PrivateLinkResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. -func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", p.ID) - populate(objectMap, "location", p.Location) - populate(objectMap, "name", p.Name) - populate(objectMap, "properties", p.Properties) - populate(objectMap, "tags", p.Tags) - populate(objectMap, "type", p.Type) - return json.Marshal(objectMap) -} - // PrivateLinkResourceListResult - A list of private link resources type PrivateLinkResourceListResult struct { // Array of private link resources Value []*PrivateLinkResource `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult. -func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - // PrivateLinkResourceProperties - Properties of a private link resource. type PrivateLinkResourceProperties struct { // Required DNS zone names of the the private link resource. @@ -1445,15 +960,6 @@ type PrivateLinkResourceProperties struct { RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. -func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "groupId", p.GroupID) - populate(objectMap, "requiredMembers", p.RequiredMembers) - populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) - return json.Marshal(objectMap) -} - // PrivateLinkResourcesClientListByVaultOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByVault // method. type PrivateLinkResourcesClientListByVaultOptions struct { @@ -1490,17 +996,6 @@ type Resource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - // ResourceListResult - List of vault resources. type ResourceListResult struct { // The URL to get the next set of vault resources. @@ -1510,14 +1005,6 @@ type ResourceListResult struct { Value []*Resource `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ResourceListResult. -func (r ResourceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", r.NextLink) - populate(objectMap, "value", r.Value) - return json.Marshal(objectMap) -} - type RotationPolicy struct { // The attributes of key rotation policy. Attributes *KeyRotationPolicyAttributes `json:"attributes,omitempty"` @@ -1526,14 +1013,6 @@ type RotationPolicy struct { LifetimeActions []*LifetimeAction `json:"lifetimeActions,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type RotationPolicy. -func (r RotationPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "attributes", r.Attributes) - populate(objectMap, "lifetimeActions", r.LifetimeActions) - return json.Marshal(objectMap) -} - // SKU details type SKU struct { // REQUIRED; SKU family name @@ -1564,18 +1043,6 @@ type Secret struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Secret. -func (s Secret) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", s.ID) - populate(objectMap, "location", s.Location) - populate(objectMap, "name", s.Name) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "tags", s.Tags) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - // SecretAttributes - The secret management attributes. type SecretAttributes struct { // Determines whether the object is enabled. @@ -1594,49 +1061,6 @@ type SecretAttributes struct { Updated *time.Time `json:"updated,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SecretAttributes. -func (s SecretAttributes) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeUnix(objectMap, "created", s.Created) - populate(objectMap, "enabled", s.Enabled) - populateTimeUnix(objectMap, "exp", s.Expires) - populateTimeUnix(objectMap, "nbf", s.NotBefore) - populateTimeUnix(objectMap, "updated", s.Updated) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SecretAttributes. -func (s *SecretAttributes) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "created": - err = unpopulateTimeUnix(val, &s.Created) - delete(rawMsg, key) - case "enabled": - err = unpopulate(val, &s.Enabled) - delete(rawMsg, key) - case "exp": - err = unpopulateTimeUnix(val, &s.Expires) - delete(rawMsg, key) - case "nbf": - err = unpopulateTimeUnix(val, &s.NotBefore) - delete(rawMsg, key) - case "updated": - err = unpopulateTimeUnix(val, &s.Updated) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // SecretCreateOrUpdateParameters - Parameters for creating or updating a secret type SecretCreateOrUpdateParameters struct { // REQUIRED; Properties of the secret @@ -1646,14 +1070,6 @@ type SecretCreateOrUpdateParameters struct { Tags map[string]*string `json:"tags,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SecretCreateOrUpdateParameters. -func (s SecretCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "tags", s.Tags) - return json.Marshal(objectMap) -} - // SecretListResult - List of secrets type SecretListResult struct { // The URL to get the next set of secrets. @@ -1663,14 +1079,6 @@ type SecretListResult struct { Value []*Secret `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SecretListResult. -func (s SecretListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - // SecretPatchParameters - Parameters for patching a secret type SecretPatchParameters struct { // Properties of the secret @@ -1680,14 +1088,6 @@ type SecretPatchParameters struct { Tags map[string]*string `json:"tags,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SecretPatchParameters. -func (s SecretPatchParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "tags", s.Tags) - return json.Marshal(objectMap) -} - // SecretPatchProperties - Properties of the secret type SecretPatchProperties struct { // The attributes of the secret. @@ -1750,14 +1150,6 @@ type ServiceSpecification struct { MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ServiceSpecification. -func (s ServiceSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "logSpecifications", s.LogSpecifications) - populate(objectMap, "metricSpecifications", s.MetricSpecifications) - return json.Marshal(objectMap) -} - // SystemData - Metadata pertaining to creation and last modification of the key vault resource. type SystemData struct { // The timestamp of the key vault resource creation (UTC). @@ -1779,53 +1171,6 @@ type SystemData struct { LastModifiedByType *IdentityType `json:"lastModifiedByType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - type Trigger struct { // The time duration after key creation to rotate the key. It only applies to rotate. It will be in ISO 8601 duration format. // Eg: 'P90D', 'P1Y'. @@ -1859,19 +1204,6 @@ type Vault struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Vault. -func (v Vault) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", v.ID) - populate(objectMap, "location", v.Location) - populate(objectMap, "name", v.Name) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "systemData", v.SystemData) - populate(objectMap, "tags", v.Tags) - populate(objectMap, "type", v.Type) - return json.Marshal(objectMap) -} - // VaultAccessPolicyParameters - Parameters for updating the access policy in a vault type VaultAccessPolicyParameters struct { // REQUIRED; Properties of the access policy @@ -1897,13 +1229,6 @@ type VaultAccessPolicyProperties struct { AccessPolicies []*AccessPolicyEntry `json:"accessPolicies,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type VaultAccessPolicyProperties. -func (v VaultAccessPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accessPolicies", v.AccessPolicies) - return json.Marshal(objectMap) -} - // VaultCheckNameAvailabilityParameters - The parameters used to check the availability of the vault name. type VaultCheckNameAvailabilityParameters struct { // REQUIRED; The vault name. @@ -1925,15 +1250,6 @@ type VaultCreateOrUpdateParameters struct { Tags map[string]*string `json:"tags,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type VaultCreateOrUpdateParameters. -func (v VaultCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "location", v.Location) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "tags", v.Tags) - return json.Marshal(objectMap) -} - // VaultListResult - List of vaults type VaultListResult struct { // The URL to get the next set of vaults. @@ -1943,14 +1259,6 @@ type VaultListResult struct { Value []*Vault `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type VaultListResult. -func (v VaultListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", v.NextLink) - populate(objectMap, "value", v.Value) - return json.Marshal(objectMap) -} - // VaultPatchParameters - Parameters for creating or updating a vault type VaultPatchParameters struct { // Properties of the vault @@ -1960,14 +1268,6 @@ type VaultPatchParameters struct { Tags map[string]*string `json:"tags,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type VaultPatchParameters. -func (v VaultPatchParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", v.Properties) - populate(objectMap, "tags", v.Tags) - return json.Marshal(objectMap) -} - // VaultPatchProperties - Properties of the vault type VaultPatchProperties struct { // An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant @@ -2024,25 +1324,6 @@ type VaultPatchProperties struct { TenantID *string `json:"tenantId,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type VaultPatchProperties. -func (v VaultPatchProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accessPolicies", v.AccessPolicies) - populate(objectMap, "createMode", v.CreateMode) - populate(objectMap, "enablePurgeProtection", v.EnablePurgeProtection) - populate(objectMap, "enableRbacAuthorization", v.EnableRbacAuthorization) - populate(objectMap, "enableSoftDelete", v.EnableSoftDelete) - populate(objectMap, "enabledForDeployment", v.EnabledForDeployment) - populate(objectMap, "enabledForDiskEncryption", v.EnabledForDiskEncryption) - populate(objectMap, "enabledForTemplateDeployment", v.EnabledForTemplateDeployment) - populate(objectMap, "networkAcls", v.NetworkACLs) - populate(objectMap, "publicNetworkAccess", v.PublicNetworkAccess) - populate(objectMap, "sku", v.SKU) - populate(objectMap, "softDeleteRetentionInDays", v.SoftDeleteRetentionInDays) - populate(objectMap, "tenantId", v.TenantID) - return json.Marshal(objectMap) -} - // VaultProperties - Properties of the vault type VaultProperties struct { // REQUIRED; SKU details @@ -2114,37 +1395,16 @@ type VaultProperties struct { PrivateEndpointConnections []*PrivateEndpointConnectionItem `json:"privateEndpointConnections,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type VaultProperties. -func (v VaultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accessPolicies", v.AccessPolicies) - populate(objectMap, "createMode", v.CreateMode) - populate(objectMap, "enablePurgeProtection", v.EnablePurgeProtection) - populate(objectMap, "enableRbacAuthorization", v.EnableRbacAuthorization) - populate(objectMap, "enableSoftDelete", v.EnableSoftDelete) - populate(objectMap, "enabledForDeployment", v.EnabledForDeployment) - populate(objectMap, "enabledForDiskEncryption", v.EnabledForDiskEncryption) - populate(objectMap, "enabledForTemplateDeployment", v.EnabledForTemplateDeployment) - populate(objectMap, "hsmPoolResourceId", v.HsmPoolResourceID) - populate(objectMap, "networkAcls", v.NetworkACLs) - populate(objectMap, "privateEndpointConnections", v.PrivateEndpointConnections) - populate(objectMap, "provisioningState", v.ProvisioningState) - populate(objectMap, "publicNetworkAccess", v.PublicNetworkAccess) - populate(objectMap, "sku", v.SKU) - populate(objectMap, "softDeleteRetentionInDays", v.SoftDeleteRetentionInDays) - populate(objectMap, "tenantId", v.TenantID) - populate(objectMap, "vaultUri", v.VaultURI) - return json.Marshal(objectMap) -} - // VaultsClientBeginCreateOrUpdateOptions contains the optional parameters for the VaultsClient.BeginCreateOrUpdate method. type VaultsClientBeginCreateOrUpdateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // VaultsClientBeginPurgeDeletedOptions contains the optional parameters for the VaultsClient.BeginPurgeDeleted method. type VaultsClientBeginPurgeDeletedOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // VaultsClientCheckNameAvailabilityOptions contains the optional parameters for the VaultsClient.CheckNameAvailability method. @@ -2208,30 +1468,3 @@ type VirtualNetworkRule struct { // Property to specify whether NRP will ignore the check if parent subnet has serviceEndpoints configured. IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` } - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func populateByteArray(m map[string]interface{}, k string, b []byte, f runtime.Base64Encoding) { - if azcore.IsNullValue(b) { - m[k] = nil - } else if len(b) == 0 { - return - } else { - m[k] = runtime.EncodeByteArray(b, f) - } -} - -func unpopulate(data json.RawMessage, v interface{}) error { - if data == nil { - return nil - } - return json.Unmarshal(data, v) -} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_models_serde.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_models_serde.go new file mode 100644 index 000000000000..bbe50fe344aa --- /dev/null +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_models_serde.go @@ -0,0 +1,785 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armkeyvault + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type Attributes. +func (a Attributes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeUnix(objectMap, "created", a.Created) + populate(objectMap, "enabled", a.Enabled) + populateTimeUnix(objectMap, "exp", a.Expires) + populateTimeUnix(objectMap, "nbf", a.NotBefore) + populateTimeUnix(objectMap, "updated", a.Updated) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Attributes. +func (a *Attributes) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "created": + err = unpopulateTimeUnix(val, &a.Created) + delete(rawMsg, key) + case "enabled": + err = unpopulate(val, &a.Enabled) + delete(rawMsg, key) + case "exp": + err = unpopulateTimeUnix(val, &a.Expires) + delete(rawMsg, key) + case "nbf": + err = unpopulateTimeUnix(val, &a.NotBefore) + delete(rawMsg, key) + case "updated": + err = unpopulateTimeUnix(val, &a.Updated) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DeletedManagedHsmListResult. +func (d DeletedManagedHsmListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DeletedManagedHsmProperties. +func (d DeletedManagedHsmProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "deletionDate", d.DeletionDate) + populate(objectMap, "location", d.Location) + populate(objectMap, "mhsmId", d.MhsmID) + populate(objectMap, "purgeProtectionEnabled", d.PurgeProtectionEnabled) + populateTimeRFC3339(objectMap, "scheduledPurgeDate", d.ScheduledPurgeDate) + populate(objectMap, "tags", d.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DeletedManagedHsmProperties. +func (d *DeletedManagedHsmProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "deletionDate": + err = unpopulateTimeRFC3339(val, &d.DeletionDate) + delete(rawMsg, key) + case "location": + err = unpopulate(val, &d.Location) + delete(rawMsg, key) + case "mhsmId": + err = unpopulate(val, &d.MhsmID) + delete(rawMsg, key) + case "purgeProtectionEnabled": + err = unpopulate(val, &d.PurgeProtectionEnabled) + delete(rawMsg, key) + case "scheduledPurgeDate": + err = unpopulateTimeRFC3339(val, &d.ScheduledPurgeDate) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, &d.Tags) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DeletedVaultListResult. +func (d DeletedVaultListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DeletedVaultProperties. +func (d DeletedVaultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "deletionDate", d.DeletionDate) + populate(objectMap, "location", d.Location) + populate(objectMap, "purgeProtectionEnabled", d.PurgeProtectionEnabled) + populateTimeRFC3339(objectMap, "scheduledPurgeDate", d.ScheduledPurgeDate) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "vaultId", d.VaultID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DeletedVaultProperties. +func (d *DeletedVaultProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "deletionDate": + err = unpopulateTimeRFC3339(val, &d.DeletionDate) + delete(rawMsg, key) + case "location": + err = unpopulate(val, &d.Location) + delete(rawMsg, key) + case "purgeProtectionEnabled": + err = unpopulate(val, &d.PurgeProtectionEnabled) + delete(rawMsg, key) + case "scheduledPurgeDate": + err = unpopulateTimeRFC3339(val, &d.ScheduledPurgeDate) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, &d.Tags) + delete(rawMsg, key) + case "vaultId": + err = unpopulate(val, &d.VaultID) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Key. +func (k Key) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", k.ID) + populate(objectMap, "location", k.Location) + populate(objectMap, "name", k.Name) + populate(objectMap, "properties", k.Properties) + populate(objectMap, "tags", k.Tags) + populate(objectMap, "type", k.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type KeyCreateParameters. +func (k KeyCreateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "properties", k.Properties) + populate(objectMap, "tags", k.Tags) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type KeyListResult. +func (k KeyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", k.NextLink) + populate(objectMap, "value", k.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type KeyProperties. +func (k KeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "attributes", k.Attributes) + populate(objectMap, "curveName", k.CurveName) + populate(objectMap, "keyOps", k.KeyOps) + populate(objectMap, "keySize", k.KeySize) + populate(objectMap, "keyUri", k.KeyURI) + populate(objectMap, "keyUriWithVersion", k.KeyURIWithVersion) + populate(objectMap, "kty", k.Kty) + populate(objectMap, "release_policy", k.ReleasePolicy) + populate(objectMap, "rotationPolicy", k.RotationPolicy) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type KeyReleasePolicy. +func (k KeyReleasePolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "contentType", k.ContentType) + populateByteArray(objectMap, "data", k.Data, runtime.Base64URLFormat) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyReleasePolicy. +func (k *KeyReleasePolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "contentType": + err = unpopulate(val, &k.ContentType) + delete(rawMsg, key) + case "data": + err = runtime.DecodeByteArray(string(val), &k.Data, runtime.Base64URLFormat) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type MHSMNetworkRuleSet. +func (m MHSMNetworkRuleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "bypass", m.Bypass) + populate(objectMap, "defaultAction", m.DefaultAction) + populate(objectMap, "ipRules", m.IPRules) + populate(objectMap, "virtualNetworkRules", m.VirtualNetworkRules) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type MHSMPrivateEndpointConnection. +func (m MHSMPrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "etag", m.Etag) + populate(objectMap, "id", m.ID) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "sku", m.SKU) + populate(objectMap, "systemData", m.SystemData) + populate(objectMap, "tags", m.Tags) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type MHSMPrivateEndpointConnectionsListResult. +func (m MHSMPrivateEndpointConnectionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", m.NextLink) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type MHSMPrivateLinkResource. +func (m MHSMPrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", m.ID) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "sku", m.SKU) + populate(objectMap, "systemData", m.SystemData) + populate(objectMap, "tags", m.Tags) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type MHSMPrivateLinkResourceListResult. +func (m MHSMPrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type MHSMPrivateLinkResourceProperties. +func (m MHSMPrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "groupId", m.GroupID) + populate(objectMap, "requiredMembers", m.RequiredMembers) + populate(objectMap, "requiredZoneNames", m.RequiredZoneNames) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ManagedHsm. +func (m ManagedHsm) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", m.ID) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "sku", m.SKU) + populate(objectMap, "systemData", m.SystemData) + populate(objectMap, "tags", m.Tags) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ManagedHsmListResult. +func (m ManagedHsmListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", m.NextLink) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ManagedHsmProperties. +func (m ManagedHsmProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "createMode", m.CreateMode) + populate(objectMap, "enablePurgeProtection", m.EnablePurgeProtection) + populate(objectMap, "enableSoftDelete", m.EnableSoftDelete) + populate(objectMap, "hsmUri", m.HsmURI) + populate(objectMap, "initialAdminObjectIds", m.InitialAdminObjectIDs) + populate(objectMap, "networkAcls", m.NetworkACLs) + populate(objectMap, "privateEndpointConnections", m.PrivateEndpointConnections) + populate(objectMap, "provisioningState", m.ProvisioningState) + populate(objectMap, "publicNetworkAccess", m.PublicNetworkAccess) + populateTimeRFC3339(objectMap, "scheduledPurgeDate", m.ScheduledPurgeDate) + populate(objectMap, "softDeleteRetentionInDays", m.SoftDeleteRetentionInDays) + populate(objectMap, "statusMessage", m.StatusMessage) + populate(objectMap, "tenantId", m.TenantID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedHsmProperties. +func (m *ManagedHsmProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createMode": + err = unpopulate(val, &m.CreateMode) + delete(rawMsg, key) + case "enablePurgeProtection": + err = unpopulate(val, &m.EnablePurgeProtection) + delete(rawMsg, key) + case "enableSoftDelete": + err = unpopulate(val, &m.EnableSoftDelete) + delete(rawMsg, key) + case "hsmUri": + err = unpopulate(val, &m.HsmURI) + delete(rawMsg, key) + case "initialAdminObjectIds": + err = unpopulate(val, &m.InitialAdminObjectIDs) + delete(rawMsg, key) + case "networkAcls": + err = unpopulate(val, &m.NetworkACLs) + delete(rawMsg, key) + case "privateEndpointConnections": + err = unpopulate(val, &m.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, &m.ProvisioningState) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, &m.PublicNetworkAccess) + delete(rawMsg, key) + case "scheduledPurgeDate": + err = unpopulateTimeRFC3339(val, &m.ScheduledPurgeDate) + delete(rawMsg, key) + case "softDeleteRetentionInDays": + err = unpopulate(val, &m.SoftDeleteRetentionInDays) + delete(rawMsg, key) + case "statusMessage": + err = unpopulate(val, &m.StatusMessage) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, &m.TenantID) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ManagedHsmResource. +func (m ManagedHsmResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", m.ID) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "sku", m.SKU) + populate(objectMap, "systemData", m.SystemData) + populate(objectMap, "tags", m.Tags) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type MetricSpecification. +func (m MetricSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "aggregationType", m.AggregationType) + populate(objectMap, "dimensions", m.Dimensions) + populate(objectMap, "displayDescription", m.DisplayDescription) + populate(objectMap, "displayName", m.DisplayName) + populate(objectMap, "fillGapWithZero", m.FillGapWithZero) + populate(objectMap, "internalMetricName", m.InternalMetricName) + populate(objectMap, "lockAggregationType", m.LockAggregationType) + populate(objectMap, "name", m.Name) + populate(objectMap, "supportedAggregationTypes", m.SupportedAggregationTypes) + populate(objectMap, "supportedTimeGrainTypes", m.SupportedTimeGrainTypes) + populate(objectMap, "unit", m.Unit) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSet. +func (n NetworkRuleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "bypass", n.Bypass) + populate(objectMap, "defaultAction", n.DefaultAction) + populate(objectMap, "ipRules", n.IPRules) + populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type Permissions. +func (p Permissions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "certificates", p.Certificates) + populate(objectMap, "keys", p.Keys) + populate(objectMap, "secrets", p.Secrets) + populate(objectMap, "storage", p.Storage) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection. +func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "etag", p.Etag) + populate(objectMap, "id", p.ID) + populate(objectMap, "location", p.Location) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "tags", p.Tags) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. +func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. +func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", p.ID) + populate(objectMap, "location", p.Location) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "tags", p.Tags) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult. +func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. +func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "groupId", p.GroupID) + populate(objectMap, "requiredMembers", p.RequiredMembers) + populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", r.ID) + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "tags", r.Tags) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ResourceListResult. +func (r ResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type RotationPolicy. +func (r RotationPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "attributes", r.Attributes) + populate(objectMap, "lifetimeActions", r.LifetimeActions) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type Secret. +func (s Secret) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", s.ID) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "tags", s.Tags) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SecretAttributes. +func (s SecretAttributes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeUnix(objectMap, "created", s.Created) + populate(objectMap, "enabled", s.Enabled) + populateTimeUnix(objectMap, "exp", s.Expires) + populateTimeUnix(objectMap, "nbf", s.NotBefore) + populateTimeUnix(objectMap, "updated", s.Updated) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecretAttributes. +func (s *SecretAttributes) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "created": + err = unpopulateTimeUnix(val, &s.Created) + delete(rawMsg, key) + case "enabled": + err = unpopulate(val, &s.Enabled) + delete(rawMsg, key) + case "exp": + err = unpopulateTimeUnix(val, &s.Expires) + delete(rawMsg, key) + case "nbf": + err = unpopulateTimeUnix(val, &s.NotBefore) + delete(rawMsg, key) + case "updated": + err = unpopulateTimeUnix(val, &s.Updated) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SecretCreateOrUpdateParameters. +func (s SecretCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "tags", s.Tags) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SecretListResult. +func (s SecretListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SecretPatchParameters. +func (s SecretPatchParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "tags", s.Tags) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ServiceSpecification. +func (s ServiceSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "logSpecifications", s.LogSpecifications) + populate(objectMap, "metricSpecifications", s.MetricSpecifications) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Vault. +func (v Vault) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", v.ID) + populate(objectMap, "location", v.Location) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "systemData", v.SystemData) + populate(objectMap, "tags", v.Tags) + populate(objectMap, "type", v.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type VaultAccessPolicyProperties. +func (v VaultAccessPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "accessPolicies", v.AccessPolicies) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type VaultCreateOrUpdateParameters. +func (v VaultCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "location", v.Location) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "tags", v.Tags) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type VaultListResult. +func (v VaultListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type VaultPatchParameters. +func (v VaultPatchParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "tags", v.Tags) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type VaultPatchProperties. +func (v VaultPatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "accessPolicies", v.AccessPolicies) + populate(objectMap, "createMode", v.CreateMode) + populate(objectMap, "enablePurgeProtection", v.EnablePurgeProtection) + populate(objectMap, "enableRbacAuthorization", v.EnableRbacAuthorization) + populate(objectMap, "enableSoftDelete", v.EnableSoftDelete) + populate(objectMap, "enabledForDeployment", v.EnabledForDeployment) + populate(objectMap, "enabledForDiskEncryption", v.EnabledForDiskEncryption) + populate(objectMap, "enabledForTemplateDeployment", v.EnabledForTemplateDeployment) + populate(objectMap, "networkAcls", v.NetworkACLs) + populate(objectMap, "publicNetworkAccess", v.PublicNetworkAccess) + populate(objectMap, "sku", v.SKU) + populate(objectMap, "softDeleteRetentionInDays", v.SoftDeleteRetentionInDays) + populate(objectMap, "tenantId", v.TenantID) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type VaultProperties. +func (v VaultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "accessPolicies", v.AccessPolicies) + populate(objectMap, "createMode", v.CreateMode) + populate(objectMap, "enablePurgeProtection", v.EnablePurgeProtection) + populate(objectMap, "enableRbacAuthorization", v.EnableRbacAuthorization) + populate(objectMap, "enableSoftDelete", v.EnableSoftDelete) + populate(objectMap, "enabledForDeployment", v.EnabledForDeployment) + populate(objectMap, "enabledForDiskEncryption", v.EnabledForDiskEncryption) + populate(objectMap, "enabledForTemplateDeployment", v.EnabledForTemplateDeployment) + populate(objectMap, "hsmPoolResourceId", v.HsmPoolResourceID) + populate(objectMap, "networkAcls", v.NetworkACLs) + populate(objectMap, "privateEndpointConnections", v.PrivateEndpointConnections) + populate(objectMap, "provisioningState", v.ProvisioningState) + populate(objectMap, "publicNetworkAccess", v.PublicNetworkAccess) + populate(objectMap, "sku", v.SKU) + populate(objectMap, "softDeleteRetentionInDays", v.SoftDeleteRetentionInDays) + populate(objectMap, "tenantId", v.TenantID) + populate(objectMap, "vaultUri", v.VaultURI) + return json.Marshal(objectMap) +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func populateByteArray(m map[string]interface{}, k string, b []byte, f runtime.Base64Encoding) { + if azcore.IsNullValue(b) { + m[k] = nil + } else if len(b) == 0 { + return + } else { + m[k] = runtime.EncodeByteArray(b, f) + } +} + +func unpopulate(data json.RawMessage, v interface{}) error { + if data == nil { + return nil + } + return json.Unmarshal(data, v) +} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_operations_client.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_operations_client.go index 52b479407c21..49dfbddeae05 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_operations_client.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_operations_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -13,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -28,34 +29,54 @@ type OperationsClient struct { // NewOperationsClient creates a new instance of OperationsClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &OperationsClient{ - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // List - Lists all of the available Key Vault Rest API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *OperationsClientListPager { - return &OperationsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ + More: func(page OperationsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp OperationsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.OperationListResult.NextLink) + Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return OperationsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return OperationsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return OperationsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -74,7 +95,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { - result := OperationsClientListResponse{RawResponse: resp} + result := OperationsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_pagers.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_pagers.go deleted file mode 100644 index ff1e075f695c..000000000000 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_pagers.go +++ /dev/null @@ -1,719 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armkeyvault - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// KeysClientListPager provides operations for iterating over paged responses. -type KeysClientListPager struct { - client *KeysClient - current KeysClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, KeysClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *KeysClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *KeysClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.KeyListResult.NextLink == nil || len(*p.current.KeyListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current KeysClientListResponse page. -func (p *KeysClientListPager) PageResponse() KeysClientListResponse { - return p.current -} - -// KeysClientListVersionsPager provides operations for iterating over paged responses. -type KeysClientListVersionsPager struct { - client *KeysClient - current KeysClientListVersionsResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, KeysClientListVersionsResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *KeysClientListVersionsPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *KeysClientListVersionsPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.KeyListResult.NextLink == nil || len(*p.current.KeyListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listVersionsHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current KeysClientListVersionsResponse page. -func (p *KeysClientListVersionsPager) PageResponse() KeysClientListVersionsResponse { - return p.current -} - -// MHSMPrivateEndpointConnectionsClientListByResourcePager provides operations for iterating over paged responses. -type MHSMPrivateEndpointConnectionsClientListByResourcePager struct { - client *MHSMPrivateEndpointConnectionsClient - current MHSMPrivateEndpointConnectionsClientListByResourceResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, MHSMPrivateEndpointConnectionsClientListByResourceResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *MHSMPrivateEndpointConnectionsClientListByResourcePager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *MHSMPrivateEndpointConnectionsClientListByResourcePager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.MHSMPrivateEndpointConnectionsListResult.NextLink == nil || len(*p.current.MHSMPrivateEndpointConnectionsListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current MHSMPrivateEndpointConnectionsClientListByResourceResponse page. -func (p *MHSMPrivateEndpointConnectionsClientListByResourcePager) PageResponse() MHSMPrivateEndpointConnectionsClientListByResourceResponse { - return p.current -} - -// ManagedHsmsClientListByResourceGroupPager provides operations for iterating over paged responses. -type ManagedHsmsClientListByResourceGroupPager struct { - client *ManagedHsmsClient - current ManagedHsmsClientListByResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ManagedHsmsClientListByResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ManagedHsmsClientListByResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ManagedHsmsClientListByResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ManagedHsmListResult.NextLink == nil || len(*p.current.ManagedHsmListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ManagedHsmsClientListByResourceGroupResponse page. -func (p *ManagedHsmsClientListByResourceGroupPager) PageResponse() ManagedHsmsClientListByResourceGroupResponse { - return p.current -} - -// ManagedHsmsClientListBySubscriptionPager provides operations for iterating over paged responses. -type ManagedHsmsClientListBySubscriptionPager struct { - client *ManagedHsmsClient - current ManagedHsmsClientListBySubscriptionResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ManagedHsmsClientListBySubscriptionResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ManagedHsmsClientListBySubscriptionPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ManagedHsmsClientListBySubscriptionPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ManagedHsmListResult.NextLink == nil || len(*p.current.ManagedHsmListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listBySubscriptionHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ManagedHsmsClientListBySubscriptionResponse page. -func (p *ManagedHsmsClientListBySubscriptionPager) PageResponse() ManagedHsmsClientListBySubscriptionResponse { - return p.current -} - -// ManagedHsmsClientListDeletedPager provides operations for iterating over paged responses. -type ManagedHsmsClientListDeletedPager struct { - client *ManagedHsmsClient - current ManagedHsmsClientListDeletedResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ManagedHsmsClientListDeletedResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ManagedHsmsClientListDeletedPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ManagedHsmsClientListDeletedPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.DeletedManagedHsmListResult.NextLink == nil || len(*p.current.DeletedManagedHsmListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listDeletedHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ManagedHsmsClientListDeletedResponse page. -func (p *ManagedHsmsClientListDeletedPager) PageResponse() ManagedHsmsClientListDeletedResponse { - return p.current -} - -// OperationsClientListPager provides operations for iterating over paged responses. -type OperationsClientListPager struct { - client *OperationsClient - current OperationsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, OperationsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *OperationsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *OperationsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.OperationListResult.NextLink == nil || len(*p.current.OperationListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current OperationsClientListResponse page. -func (p *OperationsClientListPager) PageResponse() OperationsClientListResponse { - return p.current -} - -// PrivateEndpointConnectionsClientListByResourcePager provides operations for iterating over paged responses. -type PrivateEndpointConnectionsClientListByResourcePager struct { - client *PrivateEndpointConnectionsClient - current PrivateEndpointConnectionsClientListByResourceResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, PrivateEndpointConnectionsClientListByResourceResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *PrivateEndpointConnectionsClientListByResourcePager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *PrivateEndpointConnectionsClientListByResourcePager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.PrivateEndpointConnectionListResult.NextLink == nil || len(*p.current.PrivateEndpointConnectionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current PrivateEndpointConnectionsClientListByResourceResponse page. -func (p *PrivateEndpointConnectionsClientListByResourcePager) PageResponse() PrivateEndpointConnectionsClientListByResourceResponse { - return p.current -} - -// SecretsClientListPager provides operations for iterating over paged responses. -type SecretsClientListPager struct { - client *SecretsClient - current SecretsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, SecretsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *SecretsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *SecretsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SecretListResult.NextLink == nil || len(*p.current.SecretListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current SecretsClientListResponse page. -func (p *SecretsClientListPager) PageResponse() SecretsClientListResponse { - return p.current -} - -// VaultsClientListByResourceGroupPager provides operations for iterating over paged responses. -type VaultsClientListByResourceGroupPager struct { - client *VaultsClient - current VaultsClientListByResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, VaultsClientListByResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *VaultsClientListByResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *VaultsClientListByResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.VaultListResult.NextLink == nil || len(*p.current.VaultListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current VaultsClientListByResourceGroupResponse page. -func (p *VaultsClientListByResourceGroupPager) PageResponse() VaultsClientListByResourceGroupResponse { - return p.current -} - -// VaultsClientListBySubscriptionPager provides operations for iterating over paged responses. -type VaultsClientListBySubscriptionPager struct { - client *VaultsClient - current VaultsClientListBySubscriptionResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, VaultsClientListBySubscriptionResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *VaultsClientListBySubscriptionPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *VaultsClientListBySubscriptionPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.VaultListResult.NextLink == nil || len(*p.current.VaultListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listBySubscriptionHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current VaultsClientListBySubscriptionResponse page. -func (p *VaultsClientListBySubscriptionPager) PageResponse() VaultsClientListBySubscriptionResponse { - return p.current -} - -// VaultsClientListDeletedPager provides operations for iterating over paged responses. -type VaultsClientListDeletedPager struct { - client *VaultsClient - current VaultsClientListDeletedResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, VaultsClientListDeletedResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *VaultsClientListDeletedPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *VaultsClientListDeletedPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.DeletedVaultListResult.NextLink == nil || len(*p.current.DeletedVaultListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listDeletedHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current VaultsClientListDeletedResponse page. -func (p *VaultsClientListDeletedPager) PageResponse() VaultsClientListDeletedResponse { - return p.current -} - -// VaultsClientListPager provides operations for iterating over paged responses. -type VaultsClientListPager struct { - client *VaultsClient - current VaultsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, VaultsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *VaultsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *VaultsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ResourceListResult.NextLink == nil || len(*p.current.ResourceListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current VaultsClientListResponse page. -func (p *VaultsClientListPager) PageResponse() VaultsClientListResponse { - return p.current -} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_pollers.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_pollers.go deleted file mode 100644 index 00528ad8e81a..000000000000 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_pollers.go +++ /dev/null @@ -1,359 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armkeyvault - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "net/http" -) - -// MHSMPrivateEndpointConnectionsClientDeletePoller provides polling facilities until the operation reaches a terminal state. -type MHSMPrivateEndpointConnectionsClientDeletePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *MHSMPrivateEndpointConnectionsClientDeletePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *MHSMPrivateEndpointConnectionsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final MHSMPrivateEndpointConnectionsClientDeleteResponse will be returned. -func (p *MHSMPrivateEndpointConnectionsClientDeletePoller) FinalResponse(ctx context.Context) (MHSMPrivateEndpointConnectionsClientDeleteResponse, error) { - respType := MHSMPrivateEndpointConnectionsClientDeleteResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.MHSMPrivateEndpointConnection) - if err != nil { - return MHSMPrivateEndpointConnectionsClientDeleteResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *MHSMPrivateEndpointConnectionsClientDeletePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ManagedHsmsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state. -type ManagedHsmsClientCreateOrUpdatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ManagedHsmsClientCreateOrUpdatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ManagedHsmsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ManagedHsmsClientCreateOrUpdateResponse will be returned. -func (p *ManagedHsmsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ManagedHsmsClientCreateOrUpdateResponse, error) { - respType := ManagedHsmsClientCreateOrUpdateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.ManagedHsm) - if err != nil { - return ManagedHsmsClientCreateOrUpdateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ManagedHsmsClientCreateOrUpdatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ManagedHsmsClientDeletePoller provides polling facilities until the operation reaches a terminal state. -type ManagedHsmsClientDeletePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ManagedHsmsClientDeletePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ManagedHsmsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ManagedHsmsClientDeleteResponse will be returned. -func (p *ManagedHsmsClientDeletePoller) FinalResponse(ctx context.Context) (ManagedHsmsClientDeleteResponse, error) { - respType := ManagedHsmsClientDeleteResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return ManagedHsmsClientDeleteResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ManagedHsmsClientDeletePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ManagedHsmsClientPurgeDeletedPoller provides polling facilities until the operation reaches a terminal state. -type ManagedHsmsClientPurgeDeletedPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ManagedHsmsClientPurgeDeletedPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ManagedHsmsClientPurgeDeletedPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ManagedHsmsClientPurgeDeletedResponse will be returned. -func (p *ManagedHsmsClientPurgeDeletedPoller) FinalResponse(ctx context.Context) (ManagedHsmsClientPurgeDeletedResponse, error) { - respType := ManagedHsmsClientPurgeDeletedResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return ManagedHsmsClientPurgeDeletedResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ManagedHsmsClientPurgeDeletedPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ManagedHsmsClientUpdatePoller provides polling facilities until the operation reaches a terminal state. -type ManagedHsmsClientUpdatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ManagedHsmsClientUpdatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ManagedHsmsClientUpdatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ManagedHsmsClientUpdateResponse will be returned. -func (p *ManagedHsmsClientUpdatePoller) FinalResponse(ctx context.Context) (ManagedHsmsClientUpdateResponse, error) { - respType := ManagedHsmsClientUpdateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.ManagedHsm) - if err != nil { - return ManagedHsmsClientUpdateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ManagedHsmsClientUpdatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// PrivateEndpointConnectionsClientDeletePoller provides polling facilities until the operation reaches a terminal state. -type PrivateEndpointConnectionsClientDeletePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *PrivateEndpointConnectionsClientDeletePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *PrivateEndpointConnectionsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final PrivateEndpointConnectionsClientDeleteResponse will be returned. -func (p *PrivateEndpointConnectionsClientDeletePoller) FinalResponse(ctx context.Context) (PrivateEndpointConnectionsClientDeleteResponse, error) { - respType := PrivateEndpointConnectionsClientDeleteResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.PrivateEndpointConnection) - if err != nil { - return PrivateEndpointConnectionsClientDeleteResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *PrivateEndpointConnectionsClientDeletePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// VaultsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state. -type VaultsClientCreateOrUpdatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *VaultsClientCreateOrUpdatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *VaultsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final VaultsClientCreateOrUpdateResponse will be returned. -func (p *VaultsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (VaultsClientCreateOrUpdateResponse, error) { - respType := VaultsClientCreateOrUpdateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.Vault) - if err != nil { - return VaultsClientCreateOrUpdateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *VaultsClientCreateOrUpdatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// VaultsClientPurgeDeletedPoller provides polling facilities until the operation reaches a terminal state. -type VaultsClientPurgeDeletedPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *VaultsClientPurgeDeletedPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *VaultsClientPurgeDeletedPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final VaultsClientPurgeDeletedResponse will be returned. -func (p *VaultsClientPurgeDeletedPoller) FinalResponse(ctx context.Context) (VaultsClientPurgeDeletedResponse, error) { - respType := VaultsClientPurgeDeletedResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return VaultsClientPurgeDeletedResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *VaultsClientPurgeDeletedPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_privateendpointconnections_client.go index 27e3e67873e2..be62867f1771 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_privateendpointconnections_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type PrivateEndpointConnectionsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PrivateEndpointConnectionsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &PrivateEndpointConnectionsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // BeginDelete - Deletes the specified private endpoint connection associated with the key vault. @@ -58,22 +63,16 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // privateEndpointConnectionName - Name of the private endpoint connection associated with the key vault. // options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete // method. -func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (PrivateEndpointConnectionsClientDeletePollerResponse, error) { - resp, err := client.deleteOperation(ctx, resourceGroupName, vaultName, privateEndpointConnectionName, options) - if err != nil { - return PrivateEndpointConnectionsClientDeletePollerResponse{}, err - } - result := PrivateEndpointConnectionsClientDeletePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("PrivateEndpointConnectionsClient.Delete", "", resp, client.pl) - if err != nil { - return PrivateEndpointConnectionsClientDeletePollerResponse{}, err - } - result.Poller = &PrivateEndpointConnectionsClientDeletePoller{ - pt: pt, +func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*armruntime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, vaultName, privateEndpointConnectionName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[PrivateEndpointConnectionsClientDeleteResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[PrivateEndpointConnectionsClientDeleteResponse](options.ResumeToken, client.pl, nil) } - return result, nil } // Delete - Deletes the specified private endpoint connection associated with the key vault. @@ -177,7 +176,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con // getHandleResponse handles the Get response. func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientGetResponse, error) { - result := PrivateEndpointConnectionsClientGetResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnection); err != nil { return PrivateEndpointConnectionsClientGetResponse{}, err } @@ -190,16 +189,32 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // vaultName - The name of the key vault. // options - PrivateEndpointConnectionsClientListByResourceOptions contains the optional parameters for the PrivateEndpointConnectionsClient.ListByResource // method. -func (client *PrivateEndpointConnectionsClient) ListByResource(resourceGroupName string, vaultName string, options *PrivateEndpointConnectionsClientListByResourceOptions) *PrivateEndpointConnectionsClientListByResourcePager { - return &PrivateEndpointConnectionsClientListByResourcePager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceCreateRequest(ctx, resourceGroupName, vaultName, options) +func (client *PrivateEndpointConnectionsClient) ListByResource(resourceGroupName string, vaultName string, options *PrivateEndpointConnectionsClientListByResourceOptions) *runtime.Pager[PrivateEndpointConnectionsClientListByResourceResponse] { + return runtime.NewPager(runtime.PageProcessor[PrivateEndpointConnectionsClientListByResourceResponse]{ + More: func(page PrivateEndpointConnectionsClientListByResourceResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp PrivateEndpointConnectionsClientListByResourceResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.PrivateEndpointConnectionListResult.NextLink) + Fetcher: func(ctx context.Context, page *PrivateEndpointConnectionsClientListByResourceResponse) (PrivateEndpointConnectionsClientListByResourceResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceCreateRequest(ctx, resourceGroupName, vaultName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return PrivateEndpointConnectionsClientListByResourceResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return PrivateEndpointConnectionsClientListByResourceResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return PrivateEndpointConnectionsClientListByResourceResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceHandleResponse(resp) }, - } + }) } // listByResourceCreateRequest creates the ListByResource request. @@ -230,7 +245,7 @@ func (client *PrivateEndpointConnectionsClient) listByResourceCreateRequest(ctx // listByResourceHandleResponse handles the ListByResource response. func (client *PrivateEndpointConnectionsClient) listByResourceHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientListByResourceResponse, error) { - result := PrivateEndpointConnectionsClientListByResourceResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientListByResourceResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnectionListResult); err != nil { return PrivateEndpointConnectionsClientListByResourceResponse{}, err } @@ -292,7 +307,7 @@ func (client *PrivateEndpointConnectionsClient) putCreateRequest(ctx context.Con // putHandleResponse handles the Put response. func (client *PrivateEndpointConnectionsClient) putHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientPutResponse, error) { - result := PrivateEndpointConnectionsClientPutResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientPutResponse{} if val := resp.Header.Get("Retry-After"); val != "" { retryAfter32, err := strconv.ParseInt(val, 10, 32) retryAfter := int32(retryAfter32) diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_privatelinkresources_client.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_privatelinkresources_client.go index 93ac3673ae23..51a258f0d00a 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_privatelinkresources_client.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_privatelinkresources_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type PrivateLinkResourcesClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PrivateLinkResourcesClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &PrivateLinkResourcesClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // ListByVault - Gets the private link resources supported for the key vault. @@ -99,7 +104,7 @@ func (client *PrivateLinkResourcesClient) listByVaultCreateRequest(ctx context.C // listByVaultHandleResponse handles the ListByVault response. func (client *PrivateLinkResourcesClient) listByVaultHandleResponse(resp *http.Response) (PrivateLinkResourcesClientListByVaultResponse, error) { - result := PrivateLinkResourcesClientListByVaultResponse{RawResponse: resp} + result := PrivateLinkResourcesClientListByVaultResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateLinkResourceListResult); err != nil { return PrivateLinkResourcesClientListByVaultResponse{}, err } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_response_types.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_response_types.go index db61d1923ca5..7513e14035c1 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_response_types.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,158 +8,48 @@ package armkeyvault -import ( - "context" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "net/http" - "time" -) - // KeysClientCreateIfNotExistResponse contains the response from method KeysClient.CreateIfNotExist. type KeysClientCreateIfNotExistResponse struct { - KeysClientCreateIfNotExistResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// KeysClientCreateIfNotExistResult contains the result from method KeysClient.CreateIfNotExist. -type KeysClientCreateIfNotExistResult struct { Key } // KeysClientGetResponse contains the response from method KeysClient.Get. type KeysClientGetResponse struct { - KeysClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// KeysClientGetResult contains the result from method KeysClient.Get. -type KeysClientGetResult struct { Key } // KeysClientGetVersionResponse contains the response from method KeysClient.GetVersion. type KeysClientGetVersionResponse struct { - KeysClientGetVersionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// KeysClientGetVersionResult contains the result from method KeysClient.GetVersion. -type KeysClientGetVersionResult struct { Key } // KeysClientListResponse contains the response from method KeysClient.List. type KeysClientListResponse struct { - KeysClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// KeysClientListResult contains the result from method KeysClient.List. -type KeysClientListResult struct { KeyListResult } // KeysClientListVersionsResponse contains the response from method KeysClient.ListVersions. type KeysClientListVersionsResponse struct { - KeysClientListVersionsResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// KeysClientListVersionsResult contains the result from method KeysClient.ListVersions. -type KeysClientListVersionsResult struct { KeyListResult } -// MHSMPrivateEndpointConnectionsClientDeletePollerResponse contains the response from method MHSMPrivateEndpointConnectionsClient.Delete. -type MHSMPrivateEndpointConnectionsClientDeletePollerResponse struct { - // Poller contains an initialized poller. - Poller *MHSMPrivateEndpointConnectionsClientDeletePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l MHSMPrivateEndpointConnectionsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (MHSMPrivateEndpointConnectionsClientDeleteResponse, error) { - respType := MHSMPrivateEndpointConnectionsClientDeleteResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.MHSMPrivateEndpointConnection) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a MHSMPrivateEndpointConnectionsClientDeletePollerResponse from the provided client and resume token. -func (l *MHSMPrivateEndpointConnectionsClientDeletePollerResponse) Resume(ctx context.Context, client *MHSMPrivateEndpointConnectionsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("MHSMPrivateEndpointConnectionsClient.Delete", token, client.pl) - if err != nil { - return err - } - poller := &MHSMPrivateEndpointConnectionsClientDeletePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // MHSMPrivateEndpointConnectionsClientDeleteResponse contains the response from method MHSMPrivateEndpointConnectionsClient.Delete. type MHSMPrivateEndpointConnectionsClientDeleteResponse struct { - MHSMPrivateEndpointConnectionsClientDeleteResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// MHSMPrivateEndpointConnectionsClientDeleteResult contains the result from method MHSMPrivateEndpointConnectionsClient.Delete. -type MHSMPrivateEndpointConnectionsClientDeleteResult struct { MHSMPrivateEndpointConnection } // MHSMPrivateEndpointConnectionsClientGetResponse contains the response from method MHSMPrivateEndpointConnectionsClient.Get. type MHSMPrivateEndpointConnectionsClientGetResponse struct { - MHSMPrivateEndpointConnectionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// MHSMPrivateEndpointConnectionsClientGetResult contains the result from method MHSMPrivateEndpointConnectionsClient.Get. -type MHSMPrivateEndpointConnectionsClientGetResult struct { MHSMPrivateEndpointConnection } // MHSMPrivateEndpointConnectionsClientListByResourceResponse contains the response from method MHSMPrivateEndpointConnectionsClient.ListByResource. type MHSMPrivateEndpointConnectionsClientListByResourceResponse struct { - MHSMPrivateEndpointConnectionsClientListByResourceResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// MHSMPrivateEndpointConnectionsClientListByResourceResult contains the result from method MHSMPrivateEndpointConnectionsClient.ListByResource. -type MHSMPrivateEndpointConnectionsClientListByResourceResult struct { MHSMPrivateEndpointConnectionsListResult } // MHSMPrivateEndpointConnectionsClientPutResponse contains the response from method MHSMPrivateEndpointConnectionsClient.Put. type MHSMPrivateEndpointConnectionsClientPutResponse struct { - MHSMPrivateEndpointConnectionsClientPutResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// MHSMPrivateEndpointConnectionsClientPutResult contains the result from method MHSMPrivateEndpointConnectionsClient.Put. -type MHSMPrivateEndpointConnectionsClientPutResult struct { MHSMPrivateEndpointConnection // AzureAsyncOperation contains the information returned from the Azure-AsyncOperation header response. AzureAsyncOperation *string @@ -170,369 +60,76 @@ type MHSMPrivateEndpointConnectionsClientPutResult struct { // MHSMPrivateLinkResourcesClientListByMHSMResourceResponse contains the response from method MHSMPrivateLinkResourcesClient.ListByMHSMResource. type MHSMPrivateLinkResourcesClientListByMHSMResourceResponse struct { - MHSMPrivateLinkResourcesClientListByMHSMResourceResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// MHSMPrivateLinkResourcesClientListByMHSMResourceResult contains the result from method MHSMPrivateLinkResourcesClient.ListByMHSMResource. -type MHSMPrivateLinkResourcesClientListByMHSMResourceResult struct { MHSMPrivateLinkResourceListResult } -// ManagedHsmsClientCreateOrUpdatePollerResponse contains the response from method ManagedHsmsClient.CreateOrUpdate. -type ManagedHsmsClientCreateOrUpdatePollerResponse struct { - // Poller contains an initialized poller. - Poller *ManagedHsmsClientCreateOrUpdatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ManagedHsmsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagedHsmsClientCreateOrUpdateResponse, error) { - respType := ManagedHsmsClientCreateOrUpdateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.ManagedHsm) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ManagedHsmsClientCreateOrUpdatePollerResponse from the provided client and resume token. -func (l *ManagedHsmsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ManagedHsmsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ManagedHsmsClient.CreateOrUpdate", token, client.pl) - if err != nil { - return err - } - poller := &ManagedHsmsClientCreateOrUpdatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ManagedHsmsClientCreateOrUpdateResponse contains the response from method ManagedHsmsClient.CreateOrUpdate. type ManagedHsmsClientCreateOrUpdateResponse struct { - ManagedHsmsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagedHsmsClientCreateOrUpdateResult contains the result from method ManagedHsmsClient.CreateOrUpdate. -type ManagedHsmsClientCreateOrUpdateResult struct { ManagedHsm } -// ManagedHsmsClientDeletePollerResponse contains the response from method ManagedHsmsClient.Delete. -type ManagedHsmsClientDeletePollerResponse struct { - // Poller contains an initialized poller. - Poller *ManagedHsmsClientDeletePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ManagedHsmsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagedHsmsClientDeleteResponse, error) { - respType := ManagedHsmsClientDeleteResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ManagedHsmsClientDeletePollerResponse from the provided client and resume token. -func (l *ManagedHsmsClientDeletePollerResponse) Resume(ctx context.Context, client *ManagedHsmsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ManagedHsmsClient.Delete", token, client.pl) - if err != nil { - return err - } - poller := &ManagedHsmsClientDeletePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ManagedHsmsClientDeleteResponse contains the response from method ManagedHsmsClient.Delete. type ManagedHsmsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ManagedHsmsClientGetDeletedResponse contains the response from method ManagedHsmsClient.GetDeleted. type ManagedHsmsClientGetDeletedResponse struct { - ManagedHsmsClientGetDeletedResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagedHsmsClientGetDeletedResult contains the result from method ManagedHsmsClient.GetDeleted. -type ManagedHsmsClientGetDeletedResult struct { DeletedManagedHsm } // ManagedHsmsClientGetResponse contains the response from method ManagedHsmsClient.Get. type ManagedHsmsClientGetResponse struct { - ManagedHsmsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagedHsmsClientGetResult contains the result from method ManagedHsmsClient.Get. -type ManagedHsmsClientGetResult struct { ManagedHsm } // ManagedHsmsClientListByResourceGroupResponse contains the response from method ManagedHsmsClient.ListByResourceGroup. type ManagedHsmsClientListByResourceGroupResponse struct { - ManagedHsmsClientListByResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagedHsmsClientListByResourceGroupResult contains the result from method ManagedHsmsClient.ListByResourceGroup. -type ManagedHsmsClientListByResourceGroupResult struct { ManagedHsmListResult } // ManagedHsmsClientListBySubscriptionResponse contains the response from method ManagedHsmsClient.ListBySubscription. type ManagedHsmsClientListBySubscriptionResponse struct { - ManagedHsmsClientListBySubscriptionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagedHsmsClientListBySubscriptionResult contains the result from method ManagedHsmsClient.ListBySubscription. -type ManagedHsmsClientListBySubscriptionResult struct { ManagedHsmListResult } // ManagedHsmsClientListDeletedResponse contains the response from method ManagedHsmsClient.ListDeleted. type ManagedHsmsClientListDeletedResponse struct { - ManagedHsmsClientListDeletedResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagedHsmsClientListDeletedResult contains the result from method ManagedHsmsClient.ListDeleted. -type ManagedHsmsClientListDeletedResult struct { DeletedManagedHsmListResult } -// ManagedHsmsClientPurgeDeletedPollerResponse contains the response from method ManagedHsmsClient.PurgeDeleted. -type ManagedHsmsClientPurgeDeletedPollerResponse struct { - // Poller contains an initialized poller. - Poller *ManagedHsmsClientPurgeDeletedPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ManagedHsmsClientPurgeDeletedPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagedHsmsClientPurgeDeletedResponse, error) { - respType := ManagedHsmsClientPurgeDeletedResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ManagedHsmsClientPurgeDeletedPollerResponse from the provided client and resume token. -func (l *ManagedHsmsClientPurgeDeletedPollerResponse) Resume(ctx context.Context, client *ManagedHsmsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ManagedHsmsClient.PurgeDeleted", token, client.pl) - if err != nil { - return err - } - poller := &ManagedHsmsClientPurgeDeletedPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ManagedHsmsClientPurgeDeletedResponse contains the response from method ManagedHsmsClient.PurgeDeleted. type ManagedHsmsClientPurgeDeletedResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagedHsmsClientUpdatePollerResponse contains the response from method ManagedHsmsClient.Update. -type ManagedHsmsClientUpdatePollerResponse struct { - // Poller contains an initialized poller. - Poller *ManagedHsmsClientUpdatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ManagedHsmsClientUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ManagedHsmsClientUpdateResponse, error) { - respType := ManagedHsmsClientUpdateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.ManagedHsm) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ManagedHsmsClientUpdatePollerResponse from the provided client and resume token. -func (l *ManagedHsmsClientUpdatePollerResponse) Resume(ctx context.Context, client *ManagedHsmsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ManagedHsmsClient.Update", token, client.pl) - if err != nil { - return err - } - poller := &ManagedHsmsClientUpdatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil + // placeholder for future response values } // ManagedHsmsClientUpdateResponse contains the response from method ManagedHsmsClient.Update. type ManagedHsmsClientUpdateResponse struct { - ManagedHsmsClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagedHsmsClientUpdateResult contains the result from method ManagedHsmsClient.Update. -type ManagedHsmsClientUpdateResult struct { ManagedHsm } // OperationsClientListResponse contains the response from method OperationsClient.List. type OperationsClientListResponse struct { - OperationsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// OperationsClientListResult contains the result from method OperationsClient.List. -type OperationsClientListResult struct { OperationListResult } -// PrivateEndpointConnectionsClientDeletePollerResponse contains the response from method PrivateEndpointConnectionsClient.Delete. -type PrivateEndpointConnectionsClientDeletePollerResponse struct { - // Poller contains an initialized poller. - Poller *PrivateEndpointConnectionsClientDeletePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l PrivateEndpointConnectionsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (PrivateEndpointConnectionsClientDeleteResponse, error) { - respType := PrivateEndpointConnectionsClientDeleteResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.PrivateEndpointConnection) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a PrivateEndpointConnectionsClientDeletePollerResponse from the provided client and resume token. -func (l *PrivateEndpointConnectionsClientDeletePollerResponse) Resume(ctx context.Context, client *PrivateEndpointConnectionsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("PrivateEndpointConnectionsClient.Delete", token, client.pl) - if err != nil { - return err - } - poller := &PrivateEndpointConnectionsClientDeletePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete. type PrivateEndpointConnectionsClientDeleteResponse struct { - PrivateEndpointConnectionsClientDeleteResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientDeleteResult contains the result from method PrivateEndpointConnectionsClient.Delete. -type PrivateEndpointConnectionsClientDeleteResult struct { PrivateEndpointConnection } // PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get. type PrivateEndpointConnectionsClientGetResponse struct { - PrivateEndpointConnectionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientGetResult contains the result from method PrivateEndpointConnectionsClient.Get. -type PrivateEndpointConnectionsClientGetResult struct { PrivateEndpointConnection } // PrivateEndpointConnectionsClientListByResourceResponse contains the response from method PrivateEndpointConnectionsClient.ListByResource. type PrivateEndpointConnectionsClientListByResourceResponse struct { - PrivateEndpointConnectionsClientListByResourceResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientListByResourceResult contains the result from method PrivateEndpointConnectionsClient.ListByResource. -type PrivateEndpointConnectionsClientListByResourceResult struct { PrivateEndpointConnectionListResult } // PrivateEndpointConnectionsClientPutResponse contains the response from method PrivateEndpointConnectionsClient.Put. type PrivateEndpointConnectionsClientPutResponse struct { - PrivateEndpointConnectionsClientPutResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientPutResult contains the result from method PrivateEndpointConnectionsClient.Put. -type PrivateEndpointConnectionsClientPutResult struct { PrivateEndpointConnection // AzureAsyncOperation contains the information returned from the Azure-AsyncOperation header response. AzureAsyncOperation *string @@ -543,272 +140,85 @@ type PrivateEndpointConnectionsClientPutResult struct { // PrivateLinkResourcesClientListByVaultResponse contains the response from method PrivateLinkResourcesClient.ListByVault. type PrivateLinkResourcesClientListByVaultResponse struct { - PrivateLinkResourcesClientListByVaultResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateLinkResourcesClientListByVaultResult contains the result from method PrivateLinkResourcesClient.ListByVault. -type PrivateLinkResourcesClientListByVaultResult struct { PrivateLinkResourceListResult } // SecretsClientCreateOrUpdateResponse contains the response from method SecretsClient.CreateOrUpdate. type SecretsClientCreateOrUpdateResponse struct { - SecretsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SecretsClientCreateOrUpdateResult contains the result from method SecretsClient.CreateOrUpdate. -type SecretsClientCreateOrUpdateResult struct { Secret } // SecretsClientGetResponse contains the response from method SecretsClient.Get. type SecretsClientGetResponse struct { - SecretsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SecretsClientGetResult contains the result from method SecretsClient.Get. -type SecretsClientGetResult struct { Secret } // SecretsClientListResponse contains the response from method SecretsClient.List. type SecretsClientListResponse struct { - SecretsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SecretsClientListResult contains the result from method SecretsClient.List. -type SecretsClientListResult struct { SecretListResult } // SecretsClientUpdateResponse contains the response from method SecretsClient.Update. type SecretsClientUpdateResponse struct { - SecretsClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SecretsClientUpdateResult contains the result from method SecretsClient.Update. -type SecretsClientUpdateResult struct { Secret } // VaultsClientCheckNameAvailabilityResponse contains the response from method VaultsClient.CheckNameAvailability. type VaultsClientCheckNameAvailabilityResponse struct { - VaultsClientCheckNameAvailabilityResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// VaultsClientCheckNameAvailabilityResult contains the result from method VaultsClient.CheckNameAvailability. -type VaultsClientCheckNameAvailabilityResult struct { CheckNameAvailabilityResult } -// VaultsClientCreateOrUpdatePollerResponse contains the response from method VaultsClient.CreateOrUpdate. -type VaultsClientCreateOrUpdatePollerResponse struct { - // Poller contains an initialized poller. - Poller *VaultsClientCreateOrUpdatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l VaultsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (VaultsClientCreateOrUpdateResponse, error) { - respType := VaultsClientCreateOrUpdateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.Vault) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a VaultsClientCreateOrUpdatePollerResponse from the provided client and resume token. -func (l *VaultsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *VaultsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("VaultsClient.CreateOrUpdate", token, client.pl) - if err != nil { - return err - } - poller := &VaultsClientCreateOrUpdatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // VaultsClientCreateOrUpdateResponse contains the response from method VaultsClient.CreateOrUpdate. type VaultsClientCreateOrUpdateResponse struct { - VaultsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// VaultsClientCreateOrUpdateResult contains the result from method VaultsClient.CreateOrUpdate. -type VaultsClientCreateOrUpdateResult struct { Vault } // VaultsClientDeleteResponse contains the response from method VaultsClient.Delete. type VaultsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // VaultsClientGetDeletedResponse contains the response from method VaultsClient.GetDeleted. type VaultsClientGetDeletedResponse struct { - VaultsClientGetDeletedResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// VaultsClientGetDeletedResult contains the result from method VaultsClient.GetDeleted. -type VaultsClientGetDeletedResult struct { DeletedVault } // VaultsClientGetResponse contains the response from method VaultsClient.Get. type VaultsClientGetResponse struct { - VaultsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// VaultsClientGetResult contains the result from method VaultsClient.Get. -type VaultsClientGetResult struct { Vault } // VaultsClientListByResourceGroupResponse contains the response from method VaultsClient.ListByResourceGroup. type VaultsClientListByResourceGroupResponse struct { - VaultsClientListByResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// VaultsClientListByResourceGroupResult contains the result from method VaultsClient.ListByResourceGroup. -type VaultsClientListByResourceGroupResult struct { VaultListResult } // VaultsClientListBySubscriptionResponse contains the response from method VaultsClient.ListBySubscription. type VaultsClientListBySubscriptionResponse struct { - VaultsClientListBySubscriptionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// VaultsClientListBySubscriptionResult contains the result from method VaultsClient.ListBySubscription. -type VaultsClientListBySubscriptionResult struct { VaultListResult } // VaultsClientListDeletedResponse contains the response from method VaultsClient.ListDeleted. type VaultsClientListDeletedResponse struct { - VaultsClientListDeletedResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// VaultsClientListDeletedResult contains the result from method VaultsClient.ListDeleted. -type VaultsClientListDeletedResult struct { DeletedVaultListResult } // VaultsClientListResponse contains the response from method VaultsClient.List. type VaultsClientListResponse struct { - VaultsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// VaultsClientListResult contains the result from method VaultsClient.List. -type VaultsClientListResult struct { ResourceListResult } -// VaultsClientPurgeDeletedPollerResponse contains the response from method VaultsClient.PurgeDeleted. -type VaultsClientPurgeDeletedPollerResponse struct { - // Poller contains an initialized poller. - Poller *VaultsClientPurgeDeletedPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l VaultsClientPurgeDeletedPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (VaultsClientPurgeDeletedResponse, error) { - respType := VaultsClientPurgeDeletedResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a VaultsClientPurgeDeletedPollerResponse from the provided client and resume token. -func (l *VaultsClientPurgeDeletedPollerResponse) Resume(ctx context.Context, client *VaultsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("VaultsClient.PurgeDeleted", token, client.pl) - if err != nil { - return err - } - poller := &VaultsClientPurgeDeletedPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // VaultsClientPurgeDeletedResponse contains the response from method VaultsClient.PurgeDeleted. type VaultsClientPurgeDeletedResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // VaultsClientUpdateAccessPolicyResponse contains the response from method VaultsClient.UpdateAccessPolicy. type VaultsClientUpdateAccessPolicyResponse struct { - VaultsClientUpdateAccessPolicyResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// VaultsClientUpdateAccessPolicyResult contains the result from method VaultsClient.UpdateAccessPolicy. -type VaultsClientUpdateAccessPolicyResult struct { VaultAccessPolicyParameters } // VaultsClientUpdateResponse contains the response from method VaultsClient.Update. type VaultsClientUpdateResponse struct { - VaultsClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// VaultsClientUpdateResult contains the result from method VaultsClient.Update. -type VaultsClientUpdateResult struct { Vault } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_secrets_client.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_secrets_client.go index 087bf0547c87..0904b3c294a3 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_secrets_client.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_secrets_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type SecretsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewSecretsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *SecretsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewSecretsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SecretsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &SecretsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Create or update a secret in a key vault in the specified subscription. NOTE: This API is intended for @@ -107,7 +112,7 @@ func (client *SecretsClient) createOrUpdateCreateRequest(ctx context.Context, re // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *SecretsClient) createOrUpdateHandleResponse(resp *http.Response) (SecretsClientCreateOrUpdateResponse, error) { - result := SecretsClientCreateOrUpdateResponse{RawResponse: resp} + result := SecretsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Secret); err != nil { return SecretsClientCreateOrUpdateResponse{}, err } @@ -168,7 +173,7 @@ func (client *SecretsClient) getCreateRequest(ctx context.Context, resourceGroup // getHandleResponse handles the Get response. func (client *SecretsClient) getHandleResponse(resp *http.Response) (SecretsClientGetResponse, error) { - result := SecretsClientGetResponse{RawResponse: resp} + result := SecretsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Secret); err != nil { return SecretsClientGetResponse{}, err } @@ -182,16 +187,32 @@ func (client *SecretsClient) getHandleResponse(resp *http.Response) (SecretsClie // resourceGroupName - The name of the Resource Group to which the vault belongs. // vaultName - The name of the vault. // options - SecretsClientListOptions contains the optional parameters for the SecretsClient.List method. -func (client *SecretsClient) List(resourceGroupName string, vaultName string, options *SecretsClientListOptions) *SecretsClientListPager { - return &SecretsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, vaultName, options) +func (client *SecretsClient) List(resourceGroupName string, vaultName string, options *SecretsClientListOptions) *runtime.Pager[SecretsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[SecretsClientListResponse]{ + More: func(page SecretsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp SecretsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SecretListResult.NextLink) + Fetcher: func(ctx context.Context, page *SecretsClientListResponse) (SecretsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, vaultName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return SecretsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SecretsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SecretsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -225,7 +246,7 @@ func (client *SecretsClient) listCreateRequest(ctx context.Context, resourceGrou // listHandleResponse handles the List response. func (client *SecretsClient) listHandleResponse(resp *http.Response) (SecretsClientListResponse, error) { - result := SecretsClientListResponse{RawResponse: resp} + result := SecretsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SecretListResult); err != nil { return SecretsClientListResponse{}, err } @@ -287,7 +308,7 @@ func (client *SecretsClient) updateCreateRequest(ctx context.Context, resourceGr // updateHandleResponse handles the Update response. func (client *SecretsClient) updateHandleResponse(resp *http.Response) (SecretsClientUpdateResponse, error) { - result := SecretsClientUpdateResponse{RawResponse: resp} + result := SecretsClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Secret); err != nil { return SecretsClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_time_rfc3339.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_time_rfc3339.go index 9b9dc73b399d..2b0371caa54b 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_time_rfc3339.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_time_unix.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_time_unix.go index 7d0d3b0928b9..7ff3d308fd2c 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_time_unix.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_time_unix.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_vaults_client.go b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_vaults_client.go index 4068e5b69afc..9607be39b3b7 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_vaults_client.go +++ b/sdk/resourcemanager/keyvault/armkeyvault/zz_generated_vaults_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -35,20 +36,24 @@ type VaultsClient struct { // part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewVaultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *VaultsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewVaultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VaultsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &VaultsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CheckNameAvailability - Checks that the vault name is valid and is not already in use. @@ -91,7 +96,7 @@ func (client *VaultsClient) checkNameAvailabilityCreateRequest(ctx context.Conte // checkNameAvailabilityHandleResponse handles the CheckNameAvailability response. func (client *VaultsClient) checkNameAvailabilityHandleResponse(resp *http.Response) (VaultsClientCheckNameAvailabilityResponse, error) { - result := VaultsClientCheckNameAvailabilityResponse{RawResponse: resp} + result := VaultsClientCheckNameAvailabilityResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.CheckNameAvailabilityResult); err != nil { return VaultsClientCheckNameAvailabilityResponse{}, err } @@ -105,22 +110,16 @@ func (client *VaultsClient) checkNameAvailabilityHandleResponse(resp *http.Respo // parameters - Parameters to create or update the vault // options - VaultsClientBeginCreateOrUpdateOptions contains the optional parameters for the VaultsClient.BeginCreateOrUpdate // method. -func (client *VaultsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, parameters VaultCreateOrUpdateParameters, options *VaultsClientBeginCreateOrUpdateOptions) (VaultsClientCreateOrUpdatePollerResponse, error) { - resp, err := client.createOrUpdate(ctx, resourceGroupName, vaultName, parameters, options) - if err != nil { - return VaultsClientCreateOrUpdatePollerResponse{}, err - } - result := VaultsClientCreateOrUpdatePollerResponse{ - RawResponse: resp, +func (client *VaultsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, parameters VaultCreateOrUpdateParameters, options *VaultsClientBeginCreateOrUpdateOptions) (*armruntime.Poller[VaultsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, vaultName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[VaultsClientCreateOrUpdateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[VaultsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("VaultsClient.CreateOrUpdate", "", resp, client.pl) - if err != nil { - return VaultsClientCreateOrUpdatePollerResponse{}, err - } - result.Poller = &VaultsClientCreateOrUpdatePoller{ - pt: pt, - } - return result, nil } // CreateOrUpdate - Create or update a key vault in the specified subscription. @@ -183,7 +182,7 @@ func (client *VaultsClient) Delete(ctx context.Context, resourceGroupName string if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return VaultsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return VaultsClientDeleteResponse{RawResponse: resp}, nil + return VaultsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -260,7 +259,7 @@ func (client *VaultsClient) getCreateRequest(ctx context.Context, resourceGroupN // getHandleResponse handles the Get response. func (client *VaultsClient) getHandleResponse(resp *http.Response) (VaultsClientGetResponse, error) { - result := VaultsClientGetResponse{RawResponse: resp} + result := VaultsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Vault); err != nil { return VaultsClientGetResponse{}, err } @@ -315,7 +314,7 @@ func (client *VaultsClient) getDeletedCreateRequest(ctx context.Context, vaultNa // getDeletedHandleResponse handles the GetDeleted response. func (client *VaultsClient) getDeletedHandleResponse(resp *http.Response) (VaultsClientGetDeletedResponse, error) { - result := VaultsClientGetDeletedResponse{RawResponse: resp} + result := VaultsClientGetDeletedResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeletedVault); err != nil { return VaultsClientGetDeletedResponse{}, err } @@ -325,16 +324,32 @@ func (client *VaultsClient) getDeletedHandleResponse(resp *http.Response) (Vault // List - The List operation gets information about the vaults associated with the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - VaultsClientListOptions contains the optional parameters for the VaultsClient.List method. -func (client *VaultsClient) List(options *VaultsClientListOptions) *VaultsClientListPager { - return &VaultsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *VaultsClient) List(options *VaultsClientListOptions) *runtime.Pager[VaultsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[VaultsClientListResponse]{ + More: func(page VaultsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp VaultsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ResourceListResult.NextLink) + Fetcher: func(ctx context.Context, page *VaultsClientListResponse) (VaultsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return VaultsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return VaultsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return VaultsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -361,7 +376,7 @@ func (client *VaultsClient) listCreateRequest(ctx context.Context, options *Vaul // listHandleResponse handles the List response. func (client *VaultsClient) listHandleResponse(resp *http.Response) (VaultsClientListResponse, error) { - result := VaultsClientListResponse{RawResponse: resp} + result := VaultsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ResourceListResult); err != nil { return VaultsClientListResponse{}, err } @@ -374,16 +389,32 @@ func (client *VaultsClient) listHandleResponse(resp *http.Response) (VaultsClien // resourceGroupName - The name of the Resource Group to which the vault belongs. // options - VaultsClientListByResourceGroupOptions contains the optional parameters for the VaultsClient.ListByResourceGroup // method. -func (client *VaultsClient) ListByResourceGroup(resourceGroupName string, options *VaultsClientListByResourceGroupOptions) *VaultsClientListByResourceGroupPager { - return &VaultsClientListByResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *VaultsClient) ListByResourceGroup(resourceGroupName string, options *VaultsClientListByResourceGroupOptions) *runtime.Pager[VaultsClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[VaultsClientListByResourceGroupResponse]{ + More: func(page VaultsClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp VaultsClientListByResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.VaultListResult.NextLink) + Fetcher: func(ctx context.Context, page *VaultsClientListByResourceGroupResponse) (VaultsClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return VaultsClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return VaultsClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return VaultsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) }, - } + }) } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. @@ -413,7 +444,7 @@ func (client *VaultsClient) listByResourceGroupCreateRequest(ctx context.Context // listByResourceGroupHandleResponse handles the ListByResourceGroup response. func (client *VaultsClient) listByResourceGroupHandleResponse(resp *http.Response) (VaultsClientListByResourceGroupResponse, error) { - result := VaultsClientListByResourceGroupResponse{RawResponse: resp} + result := VaultsClientListByResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.VaultListResult); err != nil { return VaultsClientListByResourceGroupResponse{}, err } @@ -424,16 +455,32 @@ func (client *VaultsClient) listByResourceGroupHandleResponse(resp *http.Respons // If the operation fails it returns an *azcore.ResponseError type. // options - VaultsClientListBySubscriptionOptions contains the optional parameters for the VaultsClient.ListBySubscription // method. -func (client *VaultsClient) ListBySubscription(options *VaultsClientListBySubscriptionOptions) *VaultsClientListBySubscriptionPager { - return &VaultsClientListBySubscriptionPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listBySubscriptionCreateRequest(ctx, options) +func (client *VaultsClient) ListBySubscription(options *VaultsClientListBySubscriptionOptions) *runtime.Pager[VaultsClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PageProcessor[VaultsClientListBySubscriptionResponse]{ + More: func(page VaultsClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp VaultsClientListBySubscriptionResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.VaultListResult.NextLink) + Fetcher: func(ctx context.Context, page *VaultsClientListBySubscriptionResponse) (VaultsClientListBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return VaultsClientListBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return VaultsClientListBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return VaultsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionHandleResponse(resp) }, - } + }) } // listBySubscriptionCreateRequest creates the ListBySubscription request. @@ -459,7 +506,7 @@ func (client *VaultsClient) listBySubscriptionCreateRequest(ctx context.Context, // listBySubscriptionHandleResponse handles the ListBySubscription response. func (client *VaultsClient) listBySubscriptionHandleResponse(resp *http.Response) (VaultsClientListBySubscriptionResponse, error) { - result := VaultsClientListBySubscriptionResponse{RawResponse: resp} + result := VaultsClientListBySubscriptionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.VaultListResult); err != nil { return VaultsClientListBySubscriptionResponse{}, err } @@ -469,16 +516,32 @@ func (client *VaultsClient) listBySubscriptionHandleResponse(resp *http.Response // ListDeleted - Gets information about the deleted vaults in a subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - VaultsClientListDeletedOptions contains the optional parameters for the VaultsClient.ListDeleted method. -func (client *VaultsClient) ListDeleted(options *VaultsClientListDeletedOptions) *VaultsClientListDeletedPager { - return &VaultsClientListDeletedPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listDeletedCreateRequest(ctx, options) +func (client *VaultsClient) ListDeleted(options *VaultsClientListDeletedOptions) *runtime.Pager[VaultsClientListDeletedResponse] { + return runtime.NewPager(runtime.PageProcessor[VaultsClientListDeletedResponse]{ + More: func(page VaultsClientListDeletedResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp VaultsClientListDeletedResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.DeletedVaultListResult.NextLink) + Fetcher: func(ctx context.Context, page *VaultsClientListDeletedResponse) (VaultsClientListDeletedResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listDeletedCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return VaultsClientListDeletedResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return VaultsClientListDeletedResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return VaultsClientListDeletedResponse{}, runtime.NewResponseError(resp) + } + return client.listDeletedHandleResponse(resp) }, - } + }) } // listDeletedCreateRequest creates the ListDeleted request. @@ -501,7 +564,7 @@ func (client *VaultsClient) listDeletedCreateRequest(ctx context.Context, option // listDeletedHandleResponse handles the ListDeleted response. func (client *VaultsClient) listDeletedHandleResponse(resp *http.Response) (VaultsClientListDeletedResponse, error) { - result := VaultsClientListDeletedResponse{RawResponse: resp} + result := VaultsClientListDeletedResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeletedVaultListResult); err != nil { return VaultsClientListDeletedResponse{}, err } @@ -514,22 +577,16 @@ func (client *VaultsClient) listDeletedHandleResponse(resp *http.Response) (Vaul // location - The location of the soft-deleted vault. // options - VaultsClientBeginPurgeDeletedOptions contains the optional parameters for the VaultsClient.BeginPurgeDeleted // method. -func (client *VaultsClient) BeginPurgeDeleted(ctx context.Context, vaultName string, location string, options *VaultsClientBeginPurgeDeletedOptions) (VaultsClientPurgeDeletedPollerResponse, error) { - resp, err := client.purgeDeleted(ctx, vaultName, location, options) - if err != nil { - return VaultsClientPurgeDeletedPollerResponse{}, err - } - result := VaultsClientPurgeDeletedPollerResponse{ - RawResponse: resp, +func (client *VaultsClient) BeginPurgeDeleted(ctx context.Context, vaultName string, location string, options *VaultsClientBeginPurgeDeletedOptions) (*armruntime.Poller[VaultsClientPurgeDeletedResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.purgeDeleted(ctx, vaultName, location, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[VaultsClientPurgeDeletedResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[VaultsClientPurgeDeletedResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("VaultsClient.PurgeDeleted", "", resp, client.pl) - if err != nil { - return VaultsClientPurgeDeletedPollerResponse{}, err - } - result.Poller = &VaultsClientPurgeDeletedPoller{ - pt: pt, - } - return result, nil } // PurgeDeleted - Permanently deletes the specified vault. aka Purges the deleted Azure key vault. @@ -624,7 +681,7 @@ func (client *VaultsClient) updateCreateRequest(ctx context.Context, resourceGro // updateHandleResponse handles the Update response. func (client *VaultsClient) updateHandleResponse(resp *http.Response) (VaultsClientUpdateResponse, error) { - result := VaultsClientUpdateResponse{RawResponse: resp} + result := VaultsClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Vault); err != nil { return VaultsClientUpdateResponse{}, err } @@ -686,7 +743,7 @@ func (client *VaultsClient) updateAccessPolicyCreateRequest(ctx context.Context, // updateAccessPolicyHandleResponse handles the UpdateAccessPolicy response. func (client *VaultsClient) updateAccessPolicyHandleResponse(resp *http.Response) (VaultsClientUpdateAccessPolicyResponse, error) { - result := VaultsClientUpdateAccessPolicyResponse{RawResponse: resp} + result := VaultsClientUpdateAccessPolicyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.VaultAccessPolicyParameters); err != nil { return VaultsClientUpdateAccessPolicyResponse{}, err } diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/CHANGELOG.md b/sdk/resourcemanager/resources/armdeploymentscripts/CHANGELOG.md index 4a728e0ce1ae..11ce7e453ee2 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armdeploymentscripts/CHANGELOG.md @@ -1,5 +1,75 @@ # Release History +## 0.4.0 (2022-04-14) +### Breaking Changes + +- Function `*Client.ListByResourceGroup` return value(s) have been changed from `(*ClientListByResourceGroupPager)` to `(*runtime.Pager[ClientListByResourceGroupResponse])` +- Function `NewClient` return value(s) have been changed from `(*Client)` to `(*Client, error)` +- Function `*Client.BeginCreate` return value(s) have been changed from `(ClientCreatePollerResponse, error)` to `(*armruntime.Poller[ClientCreateResponse], error)` +- Function `*Client.ListBySubscription` return value(s) have been changed from `(*ClientListBySubscriptionPager)` to `(*runtime.Pager[ClientListBySubscriptionResponse])` +- Function `*ClientUpdateResult.UnmarshalJSON` has been removed +- Function `*ClientCreatePoller.Done` has been removed +- Function `CleanupOptions.ToPtr` has been removed +- Function `ScriptProvisioningState.ToPtr` has been removed +- Function `*ClientListBySubscriptionPager.Err` has been removed +- Function `*ClientCreatePoller.Poll` has been removed +- Function `*ClientCreatePollerResponse.Resume` has been removed +- Function `*ClientGetResult.UnmarshalJSON` has been removed +- Function `ManagedServiceIdentityType.ToPtr` has been removed +- Function `*ClientListByResourceGroupPager.PageResponse` has been removed +- Function `ClientCreatePollerResponse.PollUntilDone` has been removed +- Function `*ClientListBySubscriptionPager.PageResponse` has been removed +- Function `*ClientCreatePoller.FinalResponse` has been removed +- Function `*ClientListBySubscriptionPager.NextPage` has been removed +- Function `*ClientCreateResult.UnmarshalJSON` has been removed +- Function `*ClientListByResourceGroupPager.Err` has been removed +- Function `*ClientCreatePoller.ResumeToken` has been removed +- Function `*ClientListByResourceGroupPager.NextPage` has been removed +- Function `CreatedByType.ToPtr` has been removed +- Function `ScriptType.ToPtr` has been removed +- Struct `ClientCreatePoller` has been removed +- Struct `ClientCreatePollerResponse` has been removed +- Struct `ClientCreateResult` has been removed +- Struct `ClientGetLogsDefaultResult` has been removed +- Struct `ClientGetLogsResult` has been removed +- Struct `ClientGetResult` has been removed +- Struct `ClientListByResourceGroupPager` has been removed +- Struct `ClientListByResourceGroupResult` has been removed +- Struct `ClientListBySubscriptionPager` has been removed +- Struct `ClientListBySubscriptionResult` has been removed +- Struct `ClientUpdateResult` has been removed +- Field `ClientGetLogsDefaultResult` of struct `ClientGetLogsDefaultResponse` has been removed +- Field `RawResponse` of struct `ClientGetLogsDefaultResponse` has been removed +- Field `RawResponse` of struct `ClientDeleteResponse` has been removed +- Field `ClientListByResourceGroupResult` of struct `ClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `ClientListByResourceGroupResponse` has been removed +- Field `ClientGetResult` of struct `ClientGetResponse` has been removed +- Field `RawResponse` of struct `ClientGetResponse` has been removed +- Field `ClientCreateResult` of struct `ClientCreateResponse` has been removed +- Field `RawResponse` of struct `ClientCreateResponse` has been removed +- Field `ClientListBySubscriptionResult` of struct `ClientListBySubscriptionResponse` has been removed +- Field `RawResponse` of struct `ClientListBySubscriptionResponse` has been removed +- Field `ClientGetLogsResult` of struct `ClientGetLogsResponse` has been removed +- Field `RawResponse` of struct `ClientGetLogsResponse` has been removed +- Field `ClientUpdateResult` of struct `ClientUpdateResponse` has been removed +- Field `RawResponse` of struct `ClientUpdateResponse` has been removed + +### Features Added + +- New function `*ClientUpdateResponse.UnmarshalJSON([]byte) error` +- New function `*ClientCreateResponse.UnmarshalJSON([]byte) error` +- New function `*ClientGetResponse.UnmarshalJSON([]byte) error` +- New struct `Error` +- New anonymous field `DeploymentScriptClassification` in struct `ClientGetResponse` +- New anonymous field `ScriptLog` in struct `ClientGetLogsDefaultResponse` +- New anonymous field `DeploymentScriptListResult` in struct `ClientListByResourceGroupResponse` +- New anonymous field `ScriptLogsList` in struct `ClientGetLogsResponse` +- New anonymous field `DeploymentScriptListResult` in struct `ClientListBySubscriptionResponse` +- New anonymous field `DeploymentScriptClassification` in struct `ClientCreateResponse` +- New anonymous field `DeploymentScriptClassification` in struct `ClientUpdateResponse` +- New field `ResumeToken` in struct `ClientBeginCreateOptions` + + ## 0.3.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/README.md b/sdk/resourcemanager/resources/armdeploymentscripts/README.md index f15e22f170fb..1d1fb13d645f 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/README.md +++ b/sdk/resourcemanager/resources/armdeploymentscripts/README.md @@ -11,7 +11,7 @@ The `armdeploymentscripts` module provides operations for working with Azure Dep ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Deployment Scripts modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armdeploymentscripts.NewDeploymentScriptsClient(, cred, nil) +client, err := armdeploymentscripts.NewDeploymentScriptsClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armdeploymentscripts.NewDeploymentScriptsClient(, cred, &options) +client, err := armdeploymentscripts.NewDeploymentScriptsClient(, cred, &options) ``` ## Provide Feedback diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/autorest.md b/sdk/resourcemanager/resources/armdeploymentscripts/autorest.md index d962090416e1..d442fa68dc6e 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/autorest.md +++ b/sdk/resourcemanager/resources/armdeploymentscripts/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/a67988c1aaf3b020ef5217a37f4c169f21881d0b/specification/resources/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/a67988c1aaf3b020ef5217a37f4c169f21881d0b/specification/resources/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.1 +module-version: 0.4.0 package-deploymentscripts: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/go.mod b/sdk/resourcemanager/resources/armdeploymentscripts/go.mod index 885d987c4ea0..7792fda719b5 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/go.mod +++ b/sdk/resourcemanager/resources/armdeploymentscripts/go.mod @@ -1,12 +1,30 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 - github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.3.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.4.0 github.com/stretchr/testify v1.7.0 ) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect +) diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/go.sum b/sdk/resourcemanager/resources/armdeploymentscripts/go.sum index cd7e82fc0b90..b513e30cb877 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/go.sum +++ b/sdk/resourcemanager/resources/armdeploymentscripts/go.sum @@ -1,18 +1,15 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 h1:zBJcBJwte0x6PcPK7XaWDMvK2o2ZM2f1sMaqNNavQ5g= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 h1:RxemzI2cHD0A8WyMqHu/UnDjfpGES/cmjtPbQoktWqs= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1/go.mod h1:+nVKciyKD2J9TyVcEQ82Bo9b+3F92PiQfHrIE/zqLqM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 h1:/hWqo5bAXoNK7svf5GvgpXFPzOCpM29/Eu+WqcE34Uk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0/go.mod h1:wXFq4k1znCwV7Bw70gw4UDNYKv/nrCUr70hjUmOj1Jo= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.3.1 h1:BBbQ9XBvmXKzw4eL9uChPyNZgf+i/liXDCk9eLNlFss= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.3.1/go.mod h1:I8zxpW5dgsUDURn73KC7cexI2WC8QIsjwfJ5n+1O3Ls= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1 h1:EXTDtCSTfPauGawsG+Ae/W46B1PkrgzuKNrcFqy4ljM= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1/go.mod h1:PoA99xQAlN13MyUjzgIPWMZEr0etHpYSuT25LmhR3zQ= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 h1:gYG7I0WxtCnHSWOFLbWCHLBWr+yzI5UeU9KuGZajf5U= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0/go.mod h1:bwEUbGO8V/7KcrqwO14ADZ0m4AkTvSKx3ma68FRc3Bg= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.4.0 h1:wRP3rtixOmWSfaLJqr5aX2CqwJCZxZI1lgfqyYw6Uwo= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.4.0/go.mod h1:S2mj15SUrr7/r/3/k5g3wWC7GTtV+JL3uK6RmNOlEaY= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 h1:TSBK+EXu33WBNrYhWmOecKJAl4z1Z5dtbDmqOzd1zGk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0/go.mod h1:tt77DwGu+r0Ued27YQPhiW8h8YWpYwpfOfi5uRpRMTg= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -23,7 +20,6 @@ github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/ github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= -github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -43,21 +39,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/testdata/recordings/TestDeploymentScriptsClient.json b/sdk/resourcemanager/resources/armdeploymentscripts/testdata/recordings/TestDeploymentScriptsClient.json index 326d51a776f0..fa85243baacd 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/testdata/recordings/TestDeploymentScriptsClient.json +++ b/sdk/resourcemanager/resources/armdeploymentscripts/testdata/recordings/TestDeploymentScriptsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:49:18 GMT", + "Date": "Thu, 14 Apr 2022 03:31:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T064919Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033149Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity?api-version=2018-11-30", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity?api-version=2021-09-30-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -48,7 +48,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmsi/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armmsi/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -58,7 +58,7 @@ "Cache-Control": "no-cache", "Content-Length": "448", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:49:28 GMT", + "Date": "Thu, 14 Apr 2022 03:31:58 GMT", "Expires": "-1", "Location": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity", "Pragma": "no-cache", @@ -67,7 +67,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T064928Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033159Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity", @@ -91,7 +91,7 @@ "Authorization": "Sanitized", "Content-Length": "536", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "identity": { @@ -116,7 +116,7 @@ "Cache-Control": "no-cache", "Content-Length": "1510", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:49:33 GMT", + "Date": "Thu, 14 Apr 2022 03:32:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "17", @@ -126,7 +126,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1197", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T064934Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033204Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "kind": "AzurePowerShell", @@ -155,10 +155,10 @@ "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-10T06:49:30.9799282Z", + "createdAt": "2022-04-14T03:32:00.8966838Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-10T06:49:30.9799282Z" + "lastModifiedAt": "2022-04-14T03:32:00.8966838Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script", "type": "Microsoft.Resources/deploymentScripts", @@ -172,7 +172,7 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -180,7 +180,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:49:51 GMT", + "Date": "Thu, 14 Apr 2022 03:32:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -191,7 +191,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T064951Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033222Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", @@ -206,7 +206,7 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -214,7 +214,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:50:22 GMT", + "Date": "Thu, 14 Apr 2022 03:32:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -225,12 +225,12 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11998", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065022Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033232Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", "name": "00000000-0000-0000-0000-000000000000", - "status": "running" + "status": "provisioningResources" } }, { @@ -240,7 +240,7 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -248,7 +248,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:50:52 GMT", + "Date": "Thu, 14 Apr 2022 03:32:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -259,7 +259,109 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11997", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065052Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033243Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "status": "provisioningResources" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000?api-version=2020-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 14 Apr 2022 03:32:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033253Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "status": "provisioningResources" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000?api-version=2020-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 14 Apr 2022 03:33:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033304Z:00000000-0000-0000-0000-000000000000" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", + "name": "00000000-0000-0000-0000-000000000000", + "status": "running" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000?api-version=2020-10-01", + "RequestMethod": "GET", + "RequestHeaders": { + ":method": "GET", + "Accept-Encoding": "gzip", + "Authorization": "Sanitized", + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 14 Apr 2022 03:33:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033314Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", @@ -274,7 +376,7 @@ ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -282,7 +384,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:50:52 GMT", + "Date": "Thu, 14 Apr 2022 03:33:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -291,9 +393,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-ratelimit-remaining-subscription-reads": "11993", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065052Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033314Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "kind": "AzurePowerShell", @@ -317,11 +419,11 @@ "timeout": "PT30M", "containerSettings": {}, "status": { - "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerInstance/containerGroups/rrdnjz67xou7kazscripts", - "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/rrdnjz67xou7kazscripts", - "startTime": "2022-03-10T06:49:33.2509874Z", - "endTime": "2022-03-10T06:50:36.0425412Z", - "expirationTime": "2022-03-11T08:50:36.0425412Z" + "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerInstance/containerGroups/5btocbjc2ak5gazscripts", + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/5btocbjc2ak5gazscripts", + "startTime": "2022-04-14T03:32:04.4125201Z", + "endTime": "2022-04-14T03:33:10.6035088Z", + "expirationTime": "2022-04-15T05:33:10.6035088Z" }, "outputs": { "text": "Hello John" @@ -331,10 +433,10 @@ "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-10T06:49:30.9799282Z", + "createdAt": "2022-04-14T03:32:00.8966838Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-10T06:49:30.9799282Z" + "lastModifiedAt": "2022-04-14T03:32:00.8966838Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script", "type": "Microsoft.Resources/deploymentScripts", @@ -349,7 +451,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -357,7 +459,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:50:53 GMT", + "Date": "Thu, 14 Apr 2022 03:33:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -366,9 +468,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-ratelimit-remaining-subscription-reads": "11992", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065053Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033315Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "kind": "AzurePowerShell", @@ -392,11 +494,11 @@ "timeout": "PT30M", "containerSettings": {}, "status": { - "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerInstance/containerGroups/rrdnjz67xou7kazscripts", - "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/rrdnjz67xou7kazscripts", - "startTime": "2022-03-10T06:49:33.2509874Z", - "endTime": "2022-03-10T06:50:36.0425412Z", - "expirationTime": "2022-03-11T08:50:36.0425412Z" + "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerInstance/containerGroups/5btocbjc2ak5gazscripts", + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/5btocbjc2ak5gazscripts", + "startTime": "2022-04-14T03:32:04.4125201Z", + "endTime": "2022-04-14T03:33:10.6035088Z", + "expirationTime": "2022-04-15T05:33:10.6035088Z" }, "outputs": { "text": "Hello John" @@ -406,10 +508,10 @@ "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-10T06:49:30.9799282Z", + "createdAt": "2022-04-14T03:32:00.8966838Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-10T06:49:30.9799282Z" + "lastModifiedAt": "2022-04-14T03:32:00.8966838Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script", "type": "Microsoft.Resources/deploymentScripts", @@ -424,7 +526,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -432,7 +534,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:50:53 GMT", + "Date": "Thu, 14 Apr 2022 03:33:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -441,9 +543,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-ratelimit-remaining-subscription-reads": "11991", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065053Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033315Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "value": [ @@ -466,7 +568,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -474,7 +576,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:50:53 GMT", + "Date": "Thu, 14 Apr 2022 03:33:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -483,9 +585,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-ratelimit-remaining-subscription-reads": "11990", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065054Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033315Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "properties": { @@ -505,7 +607,7 @@ "Authorization": "Sanitized", "Content-Length": "24", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "tags": { @@ -517,7 +619,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 06:50:57 GMT", + "Date": "Thu, 14 Apr 2022 03:33:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -528,7 +630,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1196", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065057Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033319Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "kind": "AzurePowerShell", @@ -555,11 +657,11 @@ "timeout": "PT30M", "containerSettings": {}, "status": { - "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerInstance/containerGroups/rrdnjz67xou7kazscripts", - "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/rrdnjz67xou7kazscripts", - "startTime": "2022-03-10T06:49:33.2509874Z", - "endTime": "2022-03-10T06:50:36.0425412Z", - "expirationTime": "2022-03-11T08:50:36.0425412Z" + "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerInstance/containerGroups/5btocbjc2ak5gazscripts", + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/5btocbjc2ak5gazscripts", + "startTime": "2022-04-14T03:32:04.4125201Z", + "endTime": "2022-04-14T03:33:10.6035088Z", + "expirationTime": "2022-04-15T05:33:10.6035088Z" }, "outputs": { "text": "Hello John" @@ -569,10 +671,10 @@ "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-10T06:49:30.9799282Z", + "createdAt": "2022-04-14T03:32:00.8966838Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-10T06:50:54.6899371Z" + "lastModifiedAt": "2022-04-14T03:33:16.3503218Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script", "type": "Microsoft.Resources/deploymentScripts", @@ -586,14 +688,14 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 06:51:05 GMT", + "Date": "Thu, 14 Apr 2022 03:33:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -602,7 +704,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065105Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033327Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -613,16 +715,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 06:51:08 GMT", + "Date": "Thu, 14 Apr 2022 03:33:30 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MjQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -630,229 +732,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14998", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 06:51:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065124Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 06:51:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065139Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 06:51:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065155Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 06:52:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065211Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 06:52:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065226Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 06:52:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065242Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 06:52:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065257Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 06:53:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T065313Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033330Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/ze_generated_example_deploymentscripts_client_test.go b/sdk/resourcemanager/resources/armdeploymentscripts/ze_generated_example_deploymentscripts_client_test.go index 0434f0d6b882..e31e935b18c4 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/ze_generated_example_deploymentscripts_client_test.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/ze_generated_example_deploymentscripts_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,57 +19,70 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_Create.json func ExampleClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armdeploymentscripts.NewClient("", cred, nil) + client, err := armdeploymentscripts.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginCreate(ctx, "", "", &armdeploymentscripts.AzurePowerShellScript{ Identity: &armdeploymentscripts.ManagedServiceIdentity{ - Type: armdeploymentscripts.ManagedServiceIdentityType("UserAssigned").ToPtr(), + Type: to.Ptr(armdeploymentscripts.ManagedServiceIdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armdeploymentscripts.UserAssignedIdentity{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {}, }, }, - Kind: armdeploymentscripts.ScriptType("AzurePowerShell").ToPtr(), - Location: to.StringPtr(""), + Kind: to.Ptr(armdeploymentscripts.ScriptTypeAzurePowerShell), + Location: to.Ptr(""), Properties: &armdeploymentscripts.AzurePowerShellScriptProperties{ - CleanupPreference: armdeploymentscripts.CleanupOptions("Always").ToPtr(), - Arguments: to.StringPtr(""), - RetentionInterval: to.StringPtr(""), - ScriptContent: to.StringPtr(""), + CleanupPreference: to.Ptr(armdeploymentscripts.CleanupOptionsAlways), + Arguments: to.Ptr(""), + RetentionInterval: to.Ptr(""), + ScriptContent: to.Ptr(""), SupportingScriptUris: []*string{ - to.StringPtr("https://uri1.to.supporting.script"), - to.StringPtr("https://uri2.to.supporting.script")}, - Timeout: to.StringPtr(""), - AzPowerShellVersion: to.StringPtr(""), + to.Ptr("https://uri1.to.supporting.script"), + to.Ptr("https://uri2.to.supporting.script")}, + Timeout: to.Ptr(""), + AzPowerShellVersion: to.Ptr(""), }, }, - nil) + &armdeploymentscripts.ClientBeginCreateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientCreateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_Update.json func ExampleClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armdeploymentscripts.NewClient("", cred, nil) + client, err := armdeploymentscripts.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", @@ -78,125 +91,162 @@ func ExampleClient_Update() { }, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_Get.json func ExampleClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armdeploymentscripts.NewClient("", cred, nil) + client, err := armdeploymentscripts.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_Delete.json func ExampleClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armdeploymentscripts.NewClient("", cred, nil) + client, err := armdeploymentscripts.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_ListBySubscription.json func ExampleClient_ListBySubscription() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armdeploymentscripts.NewClient("", cred, nil) + client, err := armdeploymentscripts.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListBySubscription(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_GetLogs.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_GetLogs.json func ExampleClient_GetLogs() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armdeploymentscripts.NewClient("", cred, nil) + client, err := armdeploymentscripts.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetLogs(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientGetLogsResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_GetLogsDefault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_GetLogsDefault.json func ExampleClient_GetLogsDefault() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armdeploymentscripts.NewClient("", cred, nil) + client, err := armdeploymentscripts.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetLogsDefault(ctx, "", "", &armdeploymentscripts.ClientGetLogsDefaultOptions{Tail: nil}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientGetLogsDefaultResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/examples/DeploymentScripts_ListByResourceGroup.json func ExampleClient_ListByResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armdeploymentscripts.NewClient("", cred, nil) + client, err := armdeploymentscripts.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResourceGroup("", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/zt_deploymentscripts_client_live_test.go b/sdk/resourcemanager/resources/armdeploymentscripts/zt_deploymentscripts_client_live_test.go index 17fd37e9d3f1..72b51419feef 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/zt_deploymentscripts_client_live_test.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/zt_deploymentscripts_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,16 +8,15 @@ package armdeploymentscripts_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts" "github.com/stretchr/testify/suite" - "testing" - "time" ) type DeploymentScriptsClientTestSuite struct { @@ -54,14 +53,15 @@ func TestDeploymentScriptsClient(t *testing.T) { func (testsuite *DeploymentScriptsClientTestSuite) TestDeploymentScriptsCRUD() { // create identity - userAssignedIdentitiesClient := armmsi.NewUserAssignedIdentitiesClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + userAssignedIdentitiesClient, err := armmsi.NewUserAssignedIdentitiesClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) identityName := "go-test-identity" identityResp, err := userAssignedIdentitiesClient.CreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, identityName, armmsi.Identity{ - Location: to.StringPtr(testsuite.location), + Location: to.Ptr(testsuite.location), }, nil, ) @@ -69,7 +69,8 @@ func (testsuite *DeploymentScriptsClientTestSuite) TestDeploymentScriptsCRUD() { testsuite.Require().Equal(identityName, *identityResp.Name) // create deployment script - deploymentScriptsClient := armdeploymentscripts.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + deploymentScriptsClient, err := armdeploymentscripts.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) scriptName := "go-test-script" dsPollerResp, err := deploymentScriptsClient.BeginCreate( testsuite.ctx, @@ -77,39 +78,26 @@ func (testsuite *DeploymentScriptsClientTestSuite) TestDeploymentScriptsCRUD() { scriptName, &armdeploymentscripts.AzurePowerShellScript{ Identity: &armdeploymentscripts.ManagedServiceIdentity{ - Type: armdeploymentscripts.ManagedServiceIdentityTypeUserAssigned.ToPtr(), + Type: to.Ptr(armdeploymentscripts.ManagedServiceIdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armdeploymentscripts.UserAssignedIdentity{ *identityResp.ID: {}, }, }, - Kind: armdeploymentscripts.ScriptTypeAzurePowerShell.ToPtr(), - Location: to.StringPtr(testsuite.location), + Kind: to.Ptr(armdeploymentscripts.ScriptTypeAzurePowerShell), + Location: to.Ptr(testsuite.location), Properties: &armdeploymentscripts.AzurePowerShellScriptProperties{ - RetentionInterval: to.StringPtr("PT26H"), - PrimaryScriptURI: to.StringPtr("https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/deployment-script/deploymentscript-helloworld.ps1"), - Arguments: to.StringPtr("-name \"John Dole\""), - Timeout: to.StringPtr("PT30M"), - AzPowerShellVersion: to.StringPtr("3.0"), + RetentionInterval: to.Ptr("PT26H"), + PrimaryScriptURI: to.Ptr("https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/deployment-script/deploymentscript-helloworld.ps1"), + Arguments: to.Ptr("-name \"John Dole\""), + Timeout: to.Ptr("PT30M"), + AzPowerShellVersion: to.Ptr("3.0"), }, }, nil, ) testsuite.Require().NoError(err) - var dsResp armdeploymentscripts.ClientCreateResponse - if recording.GetRecordMode() == recording.PlaybackMode { - for { - _, err = dsPollerResp.Poller.Poll(testsuite.ctx) - testsuite.Require().NoError(err) - if dsPollerResp.Poller.Done() { - dsResp, err = dsPollerResp.Poller.FinalResponse(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - } - } else { - dsResp, err = dsPollerResp.PollUntilDone(testsuite.ctx, 30*time.Second) - testsuite.Require().NoError(err) - } + dsResp, err := testutil.PollForTest(testsuite.ctx, dsPollerResp) + testsuite.Require().NoError(err) testsuite.Require().Equal(scriptName, *dsResp.GetDeploymentScript().Name) // get deployment scripts @@ -135,7 +123,7 @@ func (testsuite *DeploymentScriptsClientTestSuite) TestDeploymentScriptsCRUD() { &armdeploymentscripts.ClientUpdateOptions{ DeploymentScript: &armdeploymentscripts.DeploymentScriptUpdateParameter{ Tags: map[string]*string{ - "test": to.StringPtr("live"), + "test": to.Ptr("live"), }, }, }, @@ -145,14 +133,13 @@ func (testsuite *DeploymentScriptsClientTestSuite) TestDeploymentScriptsCRUD() { // list deployment script by subscription listBySubscription := deploymentScriptsClient.ListBySubscription(nil) - testsuite.Require().NoError(listBySubscription.Err()) + testsuite.Require().True(listBySubscription.More()) // list deployment script by resource group listByResourceGroup := deploymentScriptsClient.ListByResourceGroup(testsuite.resourceGroupName, nil) - testsuite.Require().NoError(listByResourceGroup.Err()) + testsuite.Require().True(listByResourceGroup.More()) // delete deployment script - delResp, err := deploymentScriptsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, scriptName, nil) + _, err = deploymentScriptsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, scriptName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(200, delResp.RawResponse.StatusCode) } diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_client.go b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_client.go index 835dea7ccbb3..3e5b13d8d964 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_client.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type Client struct { // subscriptionID - Subscription Id which forms part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *Client { +func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &Client{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // BeginCreate - Creates a deployment script. @@ -56,22 +61,16 @@ func NewClient(subscriptionID string, credential azcore.TokenCredential, options // scriptName - Name of the deployment script. // deploymentScript - Deployment script supplied to the operation. // options - ClientBeginCreateOptions contains the optional parameters for the Client.BeginCreate method. -func (client *Client) BeginCreate(ctx context.Context, resourceGroupName string, scriptName string, deploymentScript DeploymentScriptClassification, options *ClientBeginCreateOptions) (ClientCreatePollerResponse, error) { - resp, err := client.create(ctx, resourceGroupName, scriptName, deploymentScript, options) - if err != nil { - return ClientCreatePollerResponse{}, err - } - result := ClientCreatePollerResponse{ - RawResponse: resp, +func (client *Client) BeginCreate(ctx context.Context, resourceGroupName string, scriptName string, deploymentScript DeploymentScriptClassification, options *ClientBeginCreateOptions) (*armruntime.Poller[ClientCreateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.create(ctx, resourceGroupName, scriptName, deploymentScript, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ClientCreateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ClientCreateResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("Client.Create", "", resp, client.pl) - if err != nil { - return ClientCreatePollerResponse{}, err - } - result.Poller = &ClientCreatePoller{ - pt: pt, - } - return result, nil } // Create - Creates a deployment script. @@ -134,7 +133,7 @@ func (client *Client) Delete(ctx context.Context, resourceGroupName string, scri if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ClientDeleteResponse{}, runtime.NewResponseError(resp) } - return ClientDeleteResponse{RawResponse: resp}, nil + return ClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -211,7 +210,7 @@ func (client *Client) getCreateRequest(ctx context.Context, resourceGroupName st // getHandleResponse handles the Get response. func (client *Client) getHandleResponse(resp *http.Response) (ClientGetResponse, error) { - result := ClientGetResponse{RawResponse: resp} + result := ClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result); err != nil { return ClientGetResponse{}, err } @@ -266,7 +265,7 @@ func (client *Client) getLogsCreateRequest(ctx context.Context, resourceGroupNam // getLogsHandleResponse handles the GetLogs response. func (client *Client) getLogsHandleResponse(resp *http.Response) (ClientGetLogsResponse, error) { - result := ClientGetLogsResponse{RawResponse: resp} + result := ClientGetLogsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ScriptLogsList); err != nil { return ClientGetLogsResponse{}, err } @@ -324,7 +323,7 @@ func (client *Client) getLogsDefaultCreateRequest(ctx context.Context, resourceG // getLogsDefaultHandleResponse handles the GetLogsDefault response. func (client *Client) getLogsDefaultHandleResponse(resp *http.Response) (ClientGetLogsDefaultResponse, error) { - result := ClientGetLogsDefaultResponse{RawResponse: resp} + result := ClientGetLogsDefaultResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ScriptLog); err != nil { return ClientGetLogsDefaultResponse{}, err } @@ -335,16 +334,32 @@ func (client *Client) getLogsDefaultHandleResponse(resp *http.Response) (ClientG // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // options - ClientListByResourceGroupOptions contains the optional parameters for the Client.ListByResourceGroup method. -func (client *Client) ListByResourceGroup(resourceGroupName string, options *ClientListByResourceGroupOptions) *ClientListByResourceGroupPager { - return &ClientListByResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *Client) ListByResourceGroup(resourceGroupName string, options *ClientListByResourceGroupOptions) *runtime.Pager[ClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[ClientListByResourceGroupResponse]{ + More: func(page ClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ClientListByResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.DeploymentScriptListResult.NextLink) + Fetcher: func(ctx context.Context, page *ClientListByResourceGroupResponse) (ClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) }, - } + }) } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. @@ -371,7 +386,7 @@ func (client *Client) listByResourceGroupCreateRequest(ctx context.Context, reso // listByResourceGroupHandleResponse handles the ListByResourceGroup response. func (client *Client) listByResourceGroupHandleResponse(resp *http.Response) (ClientListByResourceGroupResponse, error) { - result := ClientListByResourceGroupResponse{RawResponse: resp} + result := ClientListByResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeploymentScriptListResult); err != nil { return ClientListByResourceGroupResponse{}, err } @@ -381,16 +396,32 @@ func (client *Client) listByResourceGroupHandleResponse(resp *http.Response) (Cl // ListBySubscription - Lists all deployment scripts for a given subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ClientListBySubscriptionOptions contains the optional parameters for the Client.ListBySubscription method. -func (client *Client) ListBySubscription(options *ClientListBySubscriptionOptions) *ClientListBySubscriptionPager { - return &ClientListBySubscriptionPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listBySubscriptionCreateRequest(ctx, options) +func (client *Client) ListBySubscription(options *ClientListBySubscriptionOptions) *runtime.Pager[ClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PageProcessor[ClientListBySubscriptionResponse]{ + More: func(page ClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ClientListBySubscriptionResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.DeploymentScriptListResult.NextLink) + Fetcher: func(ctx context.Context, page *ClientListBySubscriptionResponse) (ClientListBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ClientListBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClientListBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionHandleResponse(resp) }, - } + }) } // listBySubscriptionCreateRequest creates the ListBySubscription request. @@ -413,7 +444,7 @@ func (client *Client) listBySubscriptionCreateRequest(ctx context.Context, optio // listBySubscriptionHandleResponse handles the ListBySubscription response. func (client *Client) listBySubscriptionHandleResponse(resp *http.Response) (ClientListBySubscriptionResponse, error) { - result := ClientListBySubscriptionResponse{RawResponse: resp} + result := ClientListBySubscriptionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeploymentScriptListResult); err != nil { return ClientListBySubscriptionResponse{}, err } @@ -471,7 +502,7 @@ func (client *Client) updateCreateRequest(ctx context.Context, resourceGroupName // updateHandleResponse handles the Update response. func (client *Client) updateHandleResponse(resp *http.Response) (ClientUpdateResponse, error) { - result := ClientUpdateResponse{RawResponse: resp} + result := ClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result); err != nil { return ClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_constants.go b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_constants.go index 2a83a023b704..654aeaad1062 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_constants.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,7 +10,7 @@ package armdeploymentscripts const ( moduleName = "armdeploymentscripts" - moduleVersion = "v0.3.1" + moduleVersion = "v0.4.0" ) // CleanupOptions - The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'. @@ -31,11 +31,6 @@ func PossibleCleanupOptionsValues() []CleanupOptions { } } -// ToPtr returns a *CleanupOptions pointing to the current value. -func (c CleanupOptions) ToPtr() *CleanupOptions { - return &c -} - // CreatedByType - The type of identity that created the resource. type CreatedByType string @@ -56,11 +51,6 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// ToPtr returns a *CreatedByType pointing to the current value. -func (c CreatedByType) ToPtr() *CreatedByType { - return &c -} - // ManagedServiceIdentityType - Type of the managed identity. type ManagedServiceIdentityType string @@ -75,11 +65,6 @@ func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { } } -// ToPtr returns a *ManagedServiceIdentityType pointing to the current value. -func (c ManagedServiceIdentityType) ToPtr() *ManagedServiceIdentityType { - return &c -} - // ScriptProvisioningState - State of the script execution. This only appears in the response. type ScriptProvisioningState string @@ -104,11 +89,6 @@ func PossibleScriptProvisioningStateValues() []ScriptProvisioningState { } } -// ToPtr returns a *ScriptProvisioningState pointing to the current value. -func (c ScriptProvisioningState) ToPtr() *ScriptProvisioningState { - return &c -} - // ScriptType - Type of the script. type ScriptType string @@ -124,8 +104,3 @@ func PossibleScriptTypeValues() []ScriptType { ScriptTypeAzurePowerShell, } } - -// ToPtr returns a *ScriptType pointing to the current value. -func (c ScriptType) ToPtr() *ScriptType { - return &c -} diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_models.go b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_models.go index 0f0b67adbbaa..183412f2fd7e 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_models.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,7 @@ package armdeploymentscripts -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) +import "time" // AzureCliScript - Object model for the Azure CLI script. type AzureCliScript struct { @@ -45,79 +40,6 @@ type AzureCliScript struct { Type *string `json:"type,omitempty" azure:"ro"` } -// GetDeploymentScript implements the DeploymentScriptClassification interface for type AzureCliScript. -func (a *AzureCliScript) GetDeploymentScript() *DeploymentScript { - return &DeploymentScript{ - Identity: a.Identity, - Location: a.Location, - Tags: a.Tags, - Kind: a.Kind, - SystemData: a.SystemData, - ID: a.ID, - Name: a.Name, - Type: a.Type, - } -} - -// MarshalJSON implements the json.Marshaller interface for type AzureCliScript. -func (a AzureCliScript) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", a.ID) - populate(objectMap, "identity", a.Identity) - objectMap["kind"] = ScriptTypeAzureCLI - populate(objectMap, "location", a.Location) - populate(objectMap, "name", a.Name) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "systemData", a.SystemData) - populate(objectMap, "tags", a.Tags) - populate(objectMap, "type", a.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AzureCliScript. -func (a *AzureCliScript) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, &a.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, &a.Identity) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, &a.Kind) - delete(rawMsg, key) - case "location": - err = unpopulate(val, &a.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, &a.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, &a.Properties) - delete(rawMsg, key) - case "systemData": - err = unpopulate(val, &a.SystemData) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, &a.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, &a.Type) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // AzureCliScriptProperties - Properties of the Azure CLI script object. type AzureCliScriptProperties struct { // REQUIRED; Azure CLI module version to be used. @@ -169,27 +91,6 @@ type AzureCliScriptProperties struct { Status *ScriptStatus `json:"status,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type AzureCliScriptProperties. -func (a AzureCliScriptProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "arguments", a.Arguments) - populate(objectMap, "azCliVersion", a.AzCliVersion) - populate(objectMap, "cleanupPreference", a.CleanupPreference) - populate(objectMap, "containerSettings", a.ContainerSettings) - populate(objectMap, "environmentVariables", a.EnvironmentVariables) - populate(objectMap, "forceUpdateTag", a.ForceUpdateTag) - populate(objectMap, "outputs", a.Outputs) - populate(objectMap, "primaryScriptUri", a.PrimaryScriptURI) - populate(objectMap, "provisioningState", a.ProvisioningState) - populate(objectMap, "retentionInterval", a.RetentionInterval) - populate(objectMap, "scriptContent", a.ScriptContent) - populate(objectMap, "status", a.Status) - populate(objectMap, "storageAccountSettings", a.StorageAccountSettings) - populate(objectMap, "supportingScriptUris", a.SupportingScriptUris) - populate(objectMap, "timeout", a.Timeout) - return json.Marshal(objectMap) -} - // AzurePowerShellScript - Object model for the Azure PowerShell script. type AzurePowerShellScript struct { // REQUIRED; Type of the script. @@ -220,79 +121,6 @@ type AzurePowerShellScript struct { Type *string `json:"type,omitempty" azure:"ro"` } -// GetDeploymentScript implements the DeploymentScriptClassification interface for type AzurePowerShellScript. -func (a *AzurePowerShellScript) GetDeploymentScript() *DeploymentScript { - return &DeploymentScript{ - Identity: a.Identity, - Location: a.Location, - Tags: a.Tags, - Kind: a.Kind, - SystemData: a.SystemData, - ID: a.ID, - Name: a.Name, - Type: a.Type, - } -} - -// MarshalJSON implements the json.Marshaller interface for type AzurePowerShellScript. -func (a AzurePowerShellScript) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", a.ID) - populate(objectMap, "identity", a.Identity) - objectMap["kind"] = ScriptTypeAzurePowerShell - populate(objectMap, "location", a.Location) - populate(objectMap, "name", a.Name) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "systemData", a.SystemData) - populate(objectMap, "tags", a.Tags) - populate(objectMap, "type", a.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AzurePowerShellScript. -func (a *AzurePowerShellScript) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, &a.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, &a.Identity) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, &a.Kind) - delete(rawMsg, key) - case "location": - err = unpopulate(val, &a.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, &a.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, &a.Properties) - delete(rawMsg, key) - case "systemData": - err = unpopulate(val, &a.SystemData) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, &a.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, &a.Type) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // AzurePowerShellScriptProperties - Properties of the Azure PowerShell script object. type AzurePowerShellScriptProperties struct { // REQUIRED; Azure PowerShell module version to be used. @@ -344,27 +172,6 @@ type AzurePowerShellScriptProperties struct { Status *ScriptStatus `json:"status,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type AzurePowerShellScriptProperties. -func (a AzurePowerShellScriptProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "arguments", a.Arguments) - populate(objectMap, "azPowerShellVersion", a.AzPowerShellVersion) - populate(objectMap, "cleanupPreference", a.CleanupPreference) - populate(objectMap, "containerSettings", a.ContainerSettings) - populate(objectMap, "environmentVariables", a.EnvironmentVariables) - populate(objectMap, "forceUpdateTag", a.ForceUpdateTag) - populate(objectMap, "outputs", a.Outputs) - populate(objectMap, "primaryScriptUri", a.PrimaryScriptURI) - populate(objectMap, "provisioningState", a.ProvisioningState) - populate(objectMap, "retentionInterval", a.RetentionInterval) - populate(objectMap, "scriptContent", a.ScriptContent) - populate(objectMap, "status", a.Status) - populate(objectMap, "storageAccountSettings", a.StorageAccountSettings) - populate(objectMap, "supportingScriptUris", a.SupportingScriptUris) - populate(objectMap, "timeout", a.Timeout) - return json.Marshal(objectMap) -} - // AzureResourceBase - Common properties for all Azure resources. type AzureResourceBase struct { // READ-ONLY; String Id used to locate any resource on Azure. @@ -379,7 +186,8 @@ type AzureResourceBase struct { // ClientBeginCreateOptions contains the optional parameters for the Client.BeginCreate method. type ClientBeginCreateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ClientDeleteOptions contains the optional parameters for the Client.Delete method. @@ -471,23 +279,6 @@ type DeploymentScript struct { Type *string `json:"type,omitempty" azure:"ro"` } -// GetDeploymentScript implements the DeploymentScriptClassification interface for type DeploymentScript. -func (d *DeploymentScript) GetDeploymentScript() *DeploymentScript { return d } - -// MarshalJSON implements the json.Marshaller interface for type DeploymentScript. -func (d DeploymentScript) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - populate(objectMap, "identity", d.Identity) - objectMap["kind"] = d.Kind - populate(objectMap, "location", d.Location) - populate(objectMap, "name", d.Name) - populate(objectMap, "systemData", d.SystemData) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - // DeploymentScriptListResult - List of deployment scripts. type DeploymentScriptListResult struct { // An array of deployment scripts. @@ -497,37 +288,6 @@ type DeploymentScriptListResult struct { NextLink *string `json:"nextLink,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type DeploymentScriptListResult. -func (d DeploymentScriptListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", d.NextLink) - populate(objectMap, "value", d.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentScriptListResult. -func (d *DeploymentScriptListResult) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, &d.NextLink) - delete(rawMsg, key) - case "value": - d.Value, err = unmarshalDeploymentScriptClassificationArray(val) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // DeploymentScriptPropertiesBase - Common properties for the deployment script. type DeploymentScriptPropertiesBase struct { // The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'. @@ -549,18 +309,6 @@ type DeploymentScriptPropertiesBase struct { Status *ScriptStatus `json:"status,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type DeploymentScriptPropertiesBase. -func (d DeploymentScriptPropertiesBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "cleanupPreference", d.CleanupPreference) - populate(objectMap, "containerSettings", d.ContainerSettings) - populate(objectMap, "outputs", d.Outputs) - populate(objectMap, "provisioningState", d.ProvisioningState) - populate(objectMap, "status", d.Status) - populate(objectMap, "storageAccountSettings", d.StorageAccountSettings) - return json.Marshal(objectMap) -} - // DeploymentScriptUpdateParameter - Deployment script parameters to be updated. type DeploymentScriptUpdateParameter struct { // Resource tags to be updated. @@ -576,16 +324,6 @@ type DeploymentScriptUpdateParameter struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type DeploymentScriptUpdateParameter. -func (d DeploymentScriptUpdateParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - populate(objectMap, "name", d.Name) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - // EnvironmentVariable - The environment variable to pass to the script in the container instance. type EnvironmentVariable struct { // REQUIRED; The name of the environment variable. @@ -598,6 +336,13 @@ type EnvironmentVariable struct { Value *string `json:"value,omitempty"` } +// Error - Deployment scripts error response. +type Error struct { + // Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + // the OData error response format.) + Error *ErrorResponse `json:"error,omitempty"` +} + // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. @@ -626,17 +371,6 @@ type ErrorResponse struct { Target *string `json:"target,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. -func (e ErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalInfo", e.AdditionalInfo) - populate(objectMap, "code", e.Code) - populate(objectMap, "details", e.Details) - populate(objectMap, "message", e.Message) - populate(objectMap, "target", e.Target) - return json.Marshal(objectMap) -} - // LogProperties - Script log properties. type LogProperties struct { // READ-ONLY; Script execution logs in text format. @@ -656,15 +390,6 @@ type ManagedServiceIdentity struct { TenantID *string `json:"tenantId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity. -func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "tenantId", m.TenantID) - populate(objectMap, "type", m.Type) - populate(objectMap, "userAssignedIdentities", m.UserAssignedIdentities) - return json.Marshal(objectMap) -} - // ScriptConfigurationBase - Common configuration settings for both Azure PowerShell and Azure CLI scripts. type ScriptConfigurationBase struct { // REQUIRED; Interval for which the service retains the script resource after it reaches a terminal state. Resource will be @@ -695,20 +420,6 @@ type ScriptConfigurationBase struct { Timeout *string `json:"timeout,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ScriptConfigurationBase. -func (s ScriptConfigurationBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "arguments", s.Arguments) - populate(objectMap, "environmentVariables", s.EnvironmentVariables) - populate(objectMap, "forceUpdateTag", s.ForceUpdateTag) - populate(objectMap, "primaryScriptUri", s.PrimaryScriptURI) - populate(objectMap, "retentionInterval", s.RetentionInterval) - populate(objectMap, "scriptContent", s.ScriptContent) - populate(objectMap, "supportingScriptUris", s.SupportingScriptUris) - populate(objectMap, "timeout", s.Timeout) - return json.Marshal(objectMap) -} - // ScriptLog - Script execution log object. type ScriptLog struct { // Script log properties. @@ -730,13 +441,6 @@ type ScriptLogsList struct { Value []*ScriptLog `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ScriptLogsList. -func (s ScriptLogsList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - // ScriptStatus - Generic object modeling results of script execution. type ScriptStatus struct { // Error that is relayed from the script execution. @@ -758,53 +462,6 @@ type ScriptStatus struct { StorageAccountID *string `json:"storageAccountId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ScriptStatus. -func (s ScriptStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "containerInstanceId", s.ContainerInstanceID) - populateTimeRFC3339(objectMap, "endTime", s.EndTime) - populate(objectMap, "error", s.Error) - populateTimeRFC3339(objectMap, "expirationTime", s.ExpirationTime) - populateTimeRFC3339(objectMap, "startTime", s.StartTime) - populate(objectMap, "storageAccountId", s.StorageAccountID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ScriptStatus. -func (s *ScriptStatus) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "containerInstanceId": - err = unpopulate(val, &s.ContainerInstanceID) - delete(rawMsg, key) - case "endTime": - err = unpopulateTimeRFC3339(val, &s.EndTime) - delete(rawMsg, key) - case "error": - err = unpopulate(val, &s.Error) - delete(rawMsg, key) - case "expirationTime": - err = unpopulateTimeRFC3339(val, &s.ExpirationTime) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, &s.StartTime) - delete(rawMsg, key) - case "storageAccountId": - err = unpopulate(val, &s.StorageAccountID) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // StorageAccountConfiguration - Settings to use an existing storage account. Valid storage account kinds are: Storage, StorageV2 // and FileStorage type StorageAccountConfiguration struct { @@ -836,53 +493,6 @@ type SystemData struct { LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // UserAssignedIdentity - User-assigned managed identity. type UserAssignedIdentity struct { // READ-ONLY; Client App Id associated with this identity. @@ -891,20 +501,3 @@ type UserAssignedIdentity struct { // READ-ONLY; Azure Active Directory principal ID associated with this identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` } - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, v interface{}) error { - if data == nil { - return nil - } - return json.Unmarshal(data, v) -} diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_models_serde.go b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_models_serde.go new file mode 100644 index 000000000000..2194af054566 --- /dev/null +++ b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_models_serde.go @@ -0,0 +1,425 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armdeploymentscripts + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// GetDeploymentScript implements the DeploymentScriptClassification interface for type AzureCliScript. +func (a *AzureCliScript) GetDeploymentScript() *DeploymentScript { + return &DeploymentScript{ + Identity: a.Identity, + Location: a.Location, + Tags: a.Tags, + Kind: a.Kind, + SystemData: a.SystemData, + ID: a.ID, + Name: a.Name, + Type: a.Type, + } +} + +// MarshalJSON implements the json.Marshaller interface for type AzureCliScript. +func (a AzureCliScript) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", a.ID) + populate(objectMap, "identity", a.Identity) + objectMap["kind"] = ScriptTypeAzureCLI + populate(objectMap, "location", a.Location) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "systemData", a.SystemData) + populate(objectMap, "tags", a.Tags) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureCliScript. +func (a *AzureCliScript) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, &a.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, &a.Identity) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, &a.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, &a.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, &a.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, &a.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, &a.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, &a.Type) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureCliScriptProperties. +func (a AzureCliScriptProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "arguments", a.Arguments) + populate(objectMap, "azCliVersion", a.AzCliVersion) + populate(objectMap, "cleanupPreference", a.CleanupPreference) + populate(objectMap, "containerSettings", a.ContainerSettings) + populate(objectMap, "environmentVariables", a.EnvironmentVariables) + populate(objectMap, "forceUpdateTag", a.ForceUpdateTag) + populate(objectMap, "outputs", a.Outputs) + populate(objectMap, "primaryScriptUri", a.PrimaryScriptURI) + populate(objectMap, "provisioningState", a.ProvisioningState) + populate(objectMap, "retentionInterval", a.RetentionInterval) + populate(objectMap, "scriptContent", a.ScriptContent) + populate(objectMap, "status", a.Status) + populate(objectMap, "storageAccountSettings", a.StorageAccountSettings) + populate(objectMap, "supportingScriptUris", a.SupportingScriptUris) + populate(objectMap, "timeout", a.Timeout) + return json.Marshal(objectMap) +} + +// GetDeploymentScript implements the DeploymentScriptClassification interface for type AzurePowerShellScript. +func (a *AzurePowerShellScript) GetDeploymentScript() *DeploymentScript { + return &DeploymentScript{ + Identity: a.Identity, + Location: a.Location, + Tags: a.Tags, + Kind: a.Kind, + SystemData: a.SystemData, + ID: a.ID, + Name: a.Name, + Type: a.Type, + } +} + +// MarshalJSON implements the json.Marshaller interface for type AzurePowerShellScript. +func (a AzurePowerShellScript) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", a.ID) + populate(objectMap, "identity", a.Identity) + objectMap["kind"] = ScriptTypeAzurePowerShell + populate(objectMap, "location", a.Location) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "systemData", a.SystemData) + populate(objectMap, "tags", a.Tags) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzurePowerShellScript. +func (a *AzurePowerShellScript) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, &a.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, &a.Identity) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, &a.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, &a.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, &a.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, &a.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, &a.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, &a.Type) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzurePowerShellScriptProperties. +func (a AzurePowerShellScriptProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "arguments", a.Arguments) + populate(objectMap, "azPowerShellVersion", a.AzPowerShellVersion) + populate(objectMap, "cleanupPreference", a.CleanupPreference) + populate(objectMap, "containerSettings", a.ContainerSettings) + populate(objectMap, "environmentVariables", a.EnvironmentVariables) + populate(objectMap, "forceUpdateTag", a.ForceUpdateTag) + populate(objectMap, "outputs", a.Outputs) + populate(objectMap, "primaryScriptUri", a.PrimaryScriptURI) + populate(objectMap, "provisioningState", a.ProvisioningState) + populate(objectMap, "retentionInterval", a.RetentionInterval) + populate(objectMap, "scriptContent", a.ScriptContent) + populate(objectMap, "status", a.Status) + populate(objectMap, "storageAccountSettings", a.StorageAccountSettings) + populate(objectMap, "supportingScriptUris", a.SupportingScriptUris) + populate(objectMap, "timeout", a.Timeout) + return json.Marshal(objectMap) +} + +// GetDeploymentScript implements the DeploymentScriptClassification interface for type DeploymentScript. +func (d *DeploymentScript) GetDeploymentScript() *DeploymentScript { return d } + +// MarshalJSON implements the json.Marshaller interface for type DeploymentScript. +func (d DeploymentScript) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", d.ID) + populate(objectMap, "identity", d.Identity) + objectMap["kind"] = d.Kind + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DeploymentScriptListResult. +func (d DeploymentScriptListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentScriptListResult. +func (d *DeploymentScriptListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, &d.NextLink) + delete(rawMsg, key) + case "value": + d.Value, err = unmarshalDeploymentScriptClassificationArray(val) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DeploymentScriptPropertiesBase. +func (d DeploymentScriptPropertiesBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "cleanupPreference", d.CleanupPreference) + populate(objectMap, "containerSettings", d.ContainerSettings) + populate(objectMap, "outputs", d.Outputs) + populate(objectMap, "provisioningState", d.ProvisioningState) + populate(objectMap, "status", d.Status) + populate(objectMap, "storageAccountSettings", d.StorageAccountSettings) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DeploymentScriptUpdateParameter. +func (d DeploymentScriptUpdateParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. +func (e ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity. +func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "tenantId", m.TenantID) + populate(objectMap, "type", m.Type) + populate(objectMap, "userAssignedIdentities", m.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ScriptConfigurationBase. +func (s ScriptConfigurationBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "arguments", s.Arguments) + populate(objectMap, "environmentVariables", s.EnvironmentVariables) + populate(objectMap, "forceUpdateTag", s.ForceUpdateTag) + populate(objectMap, "primaryScriptUri", s.PrimaryScriptURI) + populate(objectMap, "retentionInterval", s.RetentionInterval) + populate(objectMap, "scriptContent", s.ScriptContent) + populate(objectMap, "supportingScriptUris", s.SupportingScriptUris) + populate(objectMap, "timeout", s.Timeout) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ScriptLogsList. +func (s ScriptLogsList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ScriptStatus. +func (s ScriptStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "containerInstanceId", s.ContainerInstanceID) + populateTimeRFC3339(objectMap, "endTime", s.EndTime) + populate(objectMap, "error", s.Error) + populateTimeRFC3339(objectMap, "expirationTime", s.ExpirationTime) + populateTimeRFC3339(objectMap, "startTime", s.StartTime) + populate(objectMap, "storageAccountId", s.StorageAccountID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScriptStatus. +func (s *ScriptStatus) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "containerInstanceId": + err = unpopulate(val, &s.ContainerInstanceID) + delete(rawMsg, key) + case "endTime": + err = unpopulateTimeRFC3339(val, &s.EndTime) + delete(rawMsg, key) + case "error": + err = unpopulate(val, &s.Error) + delete(rawMsg, key) + case "expirationTime": + err = unpopulateTimeRFC3339(val, &s.ExpirationTime) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, &s.StartTime) + delete(rawMsg, key) + case "storageAccountId": + err = unpopulate(val, &s.StorageAccountID) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, v interface{}) error { + if data == nil { + return nil + } + return json.Unmarshal(data, v) +} diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_pagers.go b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_pagers.go deleted file mode 100644 index b20288804f28..000000000000 --- a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_pagers.go +++ /dev/null @@ -1,125 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdeploymentscripts - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// ClientListByResourceGroupPager provides operations for iterating over paged responses. -type ClientListByResourceGroupPager struct { - client *Client - current ClientListByResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ClientListByResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ClientListByResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ClientListByResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.DeploymentScriptListResult.NextLink == nil || len(*p.current.DeploymentScriptListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ClientListByResourceGroupResponse page. -func (p *ClientListByResourceGroupPager) PageResponse() ClientListByResourceGroupResponse { - return p.current -} - -// ClientListBySubscriptionPager provides operations for iterating over paged responses. -type ClientListBySubscriptionPager struct { - client *Client - current ClientListBySubscriptionResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ClientListBySubscriptionResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ClientListBySubscriptionPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ClientListBySubscriptionPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.DeploymentScriptListResult.NextLink == nil || len(*p.current.DeploymentScriptListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listBySubscriptionHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ClientListBySubscriptionResponse page. -func (p *ClientListBySubscriptionPager) PageResponse() ClientListBySubscriptionResponse { - return p.current -} diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_pollers.go b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_pollers.go deleted file mode 100644 index e4069b6b0b50..000000000000 --- a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_pollers.go +++ /dev/null @@ -1,58 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdeploymentscripts - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "net/http" -) - -// ClientCreatePoller provides polling facilities until the operation reaches a terminal state. -type ClientCreatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ClientCreatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ClientCreatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ClientCreateResponse will be returned. -func (p *ClientCreatePoller) FinalResponse(ctx context.Context) (ClientCreateResponse, error) { - respType := ClientCreateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.ClientCreateResult) - if err != nil { - return ClientCreateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ClientCreatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_polymorphic_helpers.go b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_polymorphic_helpers.go index 359993f93395..c4a54f97028b 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_polymorphic_helpers.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_polymorphic_helpers.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_response_types.go b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_response_types.go index 6e2c22ca8ec5..61d0e6196c27 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_response_types.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,67 +8,13 @@ package armdeploymentscripts -import ( - "context" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "net/http" - "time" -) - -// ClientCreatePollerResponse contains the response from method Client.Create. -type ClientCreatePollerResponse struct { - // Poller contains an initialized poller. - Poller *ClientCreatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ClientCreatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ClientCreateResponse, error) { - respType := ClientCreateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.ClientCreateResult) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ClientCreatePollerResponse from the provided client and resume token. -func (l *ClientCreatePollerResponse) Resume(ctx context.Context, client *Client, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("Client.Create", token, client.pl) - if err != nil { - return err - } - poller := &ClientCreatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ClientCreateResponse contains the response from method Client.Create. type ClientCreateResponse struct { - ClientCreateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientCreateResult contains the result from method Client.Create. -type ClientCreateResult struct { DeploymentScriptClassification } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientCreateResult. -func (c *ClientCreateResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientCreateResponse. +func (c *ClientCreateResponse) UnmarshalJSON(data []byte) error { res, err := unmarshalDeploymentScriptClassification(data) if err != nil { return err @@ -79,48 +25,26 @@ func (c *ClientCreateResult) UnmarshalJSON(data []byte) error { // ClientDeleteResponse contains the response from method Client.Delete. type ClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ClientGetLogsDefaultResponse contains the response from method Client.GetLogsDefault. type ClientGetLogsDefaultResponse struct { - ClientGetLogsDefaultResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientGetLogsDefaultResult contains the result from method Client.GetLogsDefault. -type ClientGetLogsDefaultResult struct { ScriptLog } // ClientGetLogsResponse contains the response from method Client.GetLogs. type ClientGetLogsResponse struct { - ClientGetLogsResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientGetLogsResult contains the result from method Client.GetLogs. -type ClientGetLogsResult struct { ScriptLogsList } // ClientGetResponse contains the response from method Client.Get. type ClientGetResponse struct { - ClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientGetResult contains the result from method Client.Get. -type ClientGetResult struct { DeploymentScriptClassification } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientGetResult. -func (c *ClientGetResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientGetResponse. +func (c *ClientGetResponse) UnmarshalJSON(data []byte) error { res, err := unmarshalDeploymentScriptClassification(data) if err != nil { return err @@ -131,42 +55,21 @@ func (c *ClientGetResult) UnmarshalJSON(data []byte) error { // ClientListByResourceGroupResponse contains the response from method Client.ListByResourceGroup. type ClientListByResourceGroupResponse struct { - ClientListByResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientListByResourceGroupResult contains the result from method Client.ListByResourceGroup. -type ClientListByResourceGroupResult struct { DeploymentScriptListResult } // ClientListBySubscriptionResponse contains the response from method Client.ListBySubscription. type ClientListBySubscriptionResponse struct { - ClientListBySubscriptionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientListBySubscriptionResult contains the result from method Client.ListBySubscription. -type ClientListBySubscriptionResult struct { DeploymentScriptListResult } // ClientUpdateResponse contains the response from method Client.Update. type ClientUpdateResponse struct { - ClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientUpdateResult contains the result from method Client.Update. -type ClientUpdateResult struct { DeploymentScriptClassification } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientUpdateResult. -func (c *ClientUpdateResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientUpdateResponse. +func (c *ClientUpdateResponse) UnmarshalJSON(data []byte) error { res, err := unmarshalDeploymentScriptClassification(data) if err != nil { return err diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_time_rfc3339.go b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_time_rfc3339.go index 4733e41e1b0d..c6df22173c13 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/resources/armdeploymentscripts/zz_generated_time_rfc3339.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/resources/armfeatures/CHANGELOG.md b/sdk/resourcemanager/resources/armfeatures/CHANGELOG.md index 1ab5bc67edf0..80371224d88a 100644 --- a/sdk/resourcemanager/resources/armfeatures/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armfeatures/CHANGELOG.md @@ -1,5 +1,84 @@ # Release History +## 0.3.0 (2022-04-14) +### Breaking Changes + +- Function `*Client.ListAll` return value(s) have been changed from `(*ClientListAllPager)` to `(*runtime.Pager[ClientListAllResponse])` +- Function `NewSubscriptionFeatureRegistrationsClient` return value(s) have been changed from `(*SubscriptionFeatureRegistrationsClient)` to `(*SubscriptionFeatureRegistrationsClient, error)` +- Function `*Client.List` return value(s) have been changed from `(*ClientListPager)` to `(*runtime.Pager[ClientListResponse])` +- Function `*SubscriptionFeatureRegistrationsClient.ListBySubscription` return value(s) have been changed from `(*SubscriptionFeatureRegistrationsClientListBySubscriptionPager)` to `(*runtime.Pager[SubscriptionFeatureRegistrationsClientListBySubscriptionResponse])` +- Function `*FeatureClient.ListOperations` return value(s) have been changed from `(*FeatureClientListOperationsPager)` to `(*runtime.Pager[FeatureClientListOperationsResponse])` +- Function `*SubscriptionFeatureRegistrationsClient.ListAllBySubscription` return value(s) have been changed from `(*SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager)` to `(*runtime.Pager[SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse])` +- Function `NewFeatureClient` return value(s) have been changed from `(*FeatureClient)` to `(*FeatureClient, error)` +- Function `NewClient` return value(s) have been changed from `(*Client)` to `(*Client, error)` +- Function `*SubscriptionFeatureRegistrationsClientListBySubscriptionPager.Err` has been removed +- Function `*SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager.PageResponse` has been removed +- Function `*ClientListPager.NextPage` has been removed +- Function `*ClientListAllPager.Err` has been removed +- Function `SubscriptionFeatureRegistrationState.ToPtr` has been removed +- Function `*ClientListPager.Err` has been removed +- Function `*SubscriptionFeatureRegistrationsClientListBySubscriptionPager.PageResponse` has been removed +- Function `*ClientListAllPager.NextPage` has been removed +- Function `*ClientListPager.PageResponse` has been removed +- Function `*SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager.NextPage` has been removed +- Function `*SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager.Err` has been removed +- Function `SubscriptionFeatureRegistrationApprovalType.ToPtr` has been removed +- Function `*FeatureClientListOperationsPager.Err` has been removed +- Function `*SubscriptionFeatureRegistrationsClientListBySubscriptionPager.NextPage` has been removed +- Function `*FeatureClientListOperationsPager.NextPage` has been removed +- Function `*ClientListAllPager.PageResponse` has been removed +- Function `*FeatureClientListOperationsPager.PageResponse` has been removed +- Struct `ClientGetResult` has been removed +- Struct `ClientListAllPager` has been removed +- Struct `ClientListAllResult` has been removed +- Struct `ClientListPager` has been removed +- Struct `ClientListResult` has been removed +- Struct `ClientRegisterResult` has been removed +- Struct `ClientUnregisterResult` has been removed +- Struct `FeatureClientListOperationsPager` has been removed +- Struct `FeatureClientListOperationsResult` has been removed +- Struct `SubscriptionFeatureRegistrationsClientCreateOrUpdateResult` has been removed +- Struct `SubscriptionFeatureRegistrationsClientGetResult` has been removed +- Struct `SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager` has been removed +- Struct `SubscriptionFeatureRegistrationsClientListAllBySubscriptionResult` has been removed +- Struct `SubscriptionFeatureRegistrationsClientListBySubscriptionPager` has been removed +- Struct `SubscriptionFeatureRegistrationsClientListBySubscriptionResult` has been removed +- Field `ClientRegisterResult` of struct `ClientRegisterResponse` has been removed +- Field `RawResponse` of struct `ClientRegisterResponse` has been removed +- Field `ClientListAllResult` of struct `ClientListAllResponse` has been removed +- Field `RawResponse` of struct `ClientListAllResponse` has been removed +- Field `SubscriptionFeatureRegistrationsClientCreateOrUpdateResult` of struct `SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse` has been removed +- Field `SubscriptionFeatureRegistrationsClientListBySubscriptionResult` of struct `SubscriptionFeatureRegistrationsClientListBySubscriptionResponse` has been removed +- Field `RawResponse` of struct `SubscriptionFeatureRegistrationsClientListBySubscriptionResponse` has been removed +- Field `SubscriptionFeatureRegistrationsClientGetResult` of struct `SubscriptionFeatureRegistrationsClientGetResponse` has been removed +- Field `RawResponse` of struct `SubscriptionFeatureRegistrationsClientGetResponse` has been removed +- Field `ClientListResult` of struct `ClientListResponse` has been removed +- Field `RawResponse` of struct `ClientListResponse` has been removed +- Field `ClientUnregisterResult` of struct `ClientUnregisterResponse` has been removed +- Field `RawResponse` of struct `ClientUnregisterResponse` has been removed +- Field `FeatureClientListOperationsResult` of struct `FeatureClientListOperationsResponse` has been removed +- Field `RawResponse` of struct `FeatureClientListOperationsResponse` has been removed +- Field `ClientGetResult` of struct `ClientGetResponse` has been removed +- Field `RawResponse` of struct `ClientGetResponse` has been removed +- Field `RawResponse` of struct `SubscriptionFeatureRegistrationsClientDeleteResponse` has been removed +- Field `SubscriptionFeatureRegistrationsClientListAllBySubscriptionResult` of struct `SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse` has been removed +- Field `RawResponse` of struct `SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse` has been removed + +### Features Added + +- New anonymous field `SubscriptionFeatureRegistration` in struct `SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse` +- New anonymous field `OperationListResult` in struct `FeatureClientListOperationsResponse` +- New anonymous field `FeatureResult` in struct `ClientRegisterResponse` +- New anonymous field `FeatureResult` in struct `ClientGetResponse` +- New anonymous field `SubscriptionFeatureRegistrationList` in struct `SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse` +- New anonymous field `FeatureOperationsListResult` in struct `ClientListAllResponse` +- New anonymous field `SubscriptionFeatureRegistrationList` in struct `SubscriptionFeatureRegistrationsClientListBySubscriptionResponse` +- New anonymous field `SubscriptionFeatureRegistration` in struct `SubscriptionFeatureRegistrationsClientGetResponse` +- New anonymous field `FeatureResult` in struct `ClientUnregisterResponse` +- New anonymous field `FeatureOperationsListResult` in struct `ClientListResponse` + + ## 0.2.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/resources/armfeatures/README.md b/sdk/resourcemanager/resources/armfeatures/README.md index b0b623f666ae..9398dc9914e5 100644 --- a/sdk/resourcemanager/resources/armfeatures/README.md +++ b/sdk/resourcemanager/resources/armfeatures/README.md @@ -11,7 +11,7 @@ The `armfeatures` module provides operations for working with Azure Features. ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Features modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armfeatures.NewFeaturesClient(, cred, nil) +client, err := armfeatures.NewFeaturesClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armfeatures.NewFeaturesClient(, cred, &options) +client, err := armfeatures.NewFeaturesClient(, cred, &options) ``` ## Provide Feedback diff --git a/sdk/resourcemanager/resources/armfeatures/autorest.md b/sdk/resourcemanager/resources/armfeatures/autorest.md index eb059b1e1ab5..a8de9aaa38fc 100644 --- a/sdk/resourcemanager/resources/armfeatures/autorest.md +++ b/sdk/resourcemanager/resources/armfeatures/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/resources/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/resources/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.2.1 +module-version: 0.3.0 package-features: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armfeatures/go.mod b/sdk/resourcemanager/resources/armfeatures/go.mod index be3f998cf474..e32c6677956b 100644 --- a/sdk/resourcemanager/resources/armfeatures/go.mod +++ b/sdk/resourcemanager/resources/armfeatures/go.mod @@ -1,10 +1,29 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 github.com/stretchr/testify v1.7.0 ) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect +) diff --git a/sdk/resourcemanager/resources/armfeatures/go.sum b/sdk/resourcemanager/resources/armfeatures/go.sum index 861905ed56b2..facd9999ed64 100644 --- a/sdk/resourcemanager/resources/armfeatures/go.sum +++ b/sdk/resourcemanager/resources/armfeatures/go.sum @@ -1,16 +1,13 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 h1:zBJcBJwte0x6PcPK7XaWDMvK2o2ZM2f1sMaqNNavQ5g= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 h1:RxemzI2cHD0A8WyMqHu/UnDjfpGES/cmjtPbQoktWqs= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1/go.mod h1:+nVKciyKD2J9TyVcEQ82Bo9b+3F92PiQfHrIE/zqLqM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 h1:/hWqo5bAXoNK7svf5GvgpXFPzOCpM29/Eu+WqcE34Uk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0/go.mod h1:wXFq4k1znCwV7Bw70gw4UDNYKv/nrCUr70hjUmOj1Jo= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1 h1:EXTDtCSTfPauGawsG+Ae/W46B1PkrgzuKNrcFqy4ljM= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1/go.mod h1:PoA99xQAlN13MyUjzgIPWMZEr0etHpYSuT25LmhR3zQ= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 h1:gYG7I0WxtCnHSWOFLbWCHLBWr+yzI5UeU9KuGZajf5U= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0/go.mod h1:bwEUbGO8V/7KcrqwO14ADZ0m4AkTvSKx3ma68FRc3Bg= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 h1:TSBK+EXu33WBNrYhWmOecKJAl4z1Z5dtbDmqOzd1zGk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0/go.mod h1:tt77DwGu+r0Ued27YQPhiW8h8YWpYwpfOfi5uRpRMTg= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -21,7 +18,6 @@ github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/ github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= -github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -41,21 +37,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/sdk/resourcemanager/resources/armfeatures/ze_generated_example_featureclient_client_test.go b/sdk/resourcemanager/resources/armfeatures/ze_generated_example_featureclient_client_test.go index f8419e7ff827..eca9b1e23e40 100644 --- a/sdk/resourcemanager/resources/armfeatures/ze_generated_example_featureclient_client_test.go +++ b/sdk/resourcemanager/resources/armfeatures/ze_generated_example_featureclient_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,25 +16,29 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/listFeaturesOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/listFeaturesOperations.json func ExampleFeatureClient_ListOperations() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewFeatureClient(cred, nil) + client, err := armfeatures.NewFeatureClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListOperations(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armfeatures/ze_generated_example_features_client_test.go b/sdk/resourcemanager/resources/armfeatures/ze_generated_example_features_client_test.go index 05009e807a4a..96595d7f1c51 100644 --- a/sdk/resourcemanager/resources/armfeatures/ze_generated_example_features_client_test.go +++ b/sdk/resourcemanager/resources/armfeatures/ze_generated_example_features_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,103 +16,132 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/listSubscriptionFeatures.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/listSubscriptionFeatures.json func ExampleClient_ListAll() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewClient("", cred, nil) + client, err := armfeatures.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAll(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/listProviderFeatures.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/listProviderFeatures.json func ExampleClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewClient("", cred, nil) + client, err := armfeatures.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/getFeature.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/getFeature.json func ExampleClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewClient("", cred, nil) + client, err := armfeatures.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/registerFeature.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/registerFeature.json func ExampleClient_Register() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewClient("", cred, nil) + client, err := armfeatures.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Register(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientRegisterResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/unregisterFeature.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/unregisterFeature.json func ExampleClient_Unregister() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewClient("", cred, nil) + client, err := armfeatures.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Unregister(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientUnregisterResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/resources/armfeatures/ze_generated_example_subscriptionfeatureregistrations_client_test.go b/sdk/resourcemanager/resources/armfeatures/ze_generated_example_subscriptionfeatureregistrations_client_test.go index ccaeacf5466c..c2d77501657d 100644 --- a/sdk/resourcemanager/resources/armfeatures/ze_generated_example_subscriptionfeatureregistrations_client_test.go +++ b/sdk/resourcemanager/resources/armfeatures/ze_generated_example_subscriptionfeatureregistrations_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,32 +16,44 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationGET.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationGET.json func ExampleSubscriptionFeatureRegistrationsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewSubscriptionFeatureRegistrationsClient("", cred, nil) + client, err := armfeatures.NewSubscriptionFeatureRegistrationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SubscriptionFeatureRegistrationsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationPUT.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationPUT.json func ExampleSubscriptionFeatureRegistrationsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewSubscriptionFeatureRegistrationsClient("", cred, nil) + client, err := armfeatures.NewSubscriptionFeatureRegistrationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", @@ -50,71 +62,87 @@ func ExampleSubscriptionFeatureRegistrationsClient_CreateOrUpdate() { }, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SubscriptionFeatureRegistrationsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationDELETE.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationDELETE.json func ExampleSubscriptionFeatureRegistrationsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewSubscriptionFeatureRegistrationsClient("", cred, nil) + client, err := armfeatures.NewSubscriptionFeatureRegistrationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationLIST.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationLIST.json func ExampleSubscriptionFeatureRegistrationsClient_ListBySubscription() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewSubscriptionFeatureRegistrationsClient("", cred, nil) + client, err := armfeatures.NewSubscriptionFeatureRegistrationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListBySubscription("", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationLISTALL.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationLISTALL.json func ExampleSubscriptionFeatureRegistrationsClient_ListAllBySubscription() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armfeatures.NewSubscriptionFeatureRegistrationsClient("", cred, nil) + client, err := armfeatures.NewSubscriptionFeatureRegistrationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAllBySubscription(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armfeatures/zt_features_client_live_test.go b/sdk/resourcemanager/resources/armfeatures/zt_features_client_live_test.go index c85a95777aa2..27a9738930f4 100644 --- a/sdk/resourcemanager/resources/armfeatures/zt_features_client_live_test.go +++ b/sdk/resourcemanager/resources/armfeatures/zt_features_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,13 @@ package armfeatures_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures" "github.com/stretchr/testify/suite" - "testing" ) type FeaturesClientTestSuite struct { @@ -49,18 +50,20 @@ func TestFeaturesClient(t *testing.T) { } func (testsuite *FeaturesClientTestSuite) TestFeaturesCRUD() { - featureClient := armfeatures.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + featureClient, err := armfeatures.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) // list pager := featureClient.List("Microsoft.Network", nil) - testsuite.Require().NoError(pager.Err()) + testsuite.Require().True(pager.More()) // list all listAll := featureClient.ListAll(nil) - testsuite.Require().NoError(listAll.Err()) + testsuite.Require().True(listAll.More()) // list operation - featuresClient := armfeatures.NewFeatureClient(testsuite.cred, testsuite.options) + featuresClient, err := armfeatures.NewFeatureClient(testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) listOperations := featuresClient.ListOperations(nil) - testsuite.Require().NoError(listOperations.Err()) + testsuite.Require().True(listOperations.More()) } diff --git a/sdk/resourcemanager/resources/armfeatures/zz_generated_client.go b/sdk/resourcemanager/resources/armfeatures/zz_generated_client.go index 86ff1d11748a..a0aafaad6b3c 100644 --- a/sdk/resourcemanager/resources/armfeatures/zz_generated_client.go +++ b/sdk/resourcemanager/resources/armfeatures/zz_generated_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type Client struct { // subscriptionID - The Azure subscription ID. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *Client { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &Client{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // Get - Gets the preview feature with the specified name. @@ -97,7 +102,7 @@ func (client *Client) getCreateRequest(ctx context.Context, resourceProviderName // getHandleResponse handles the Get response. func (client *Client) getHandleResponse(resp *http.Response) (ClientGetResponse, error) { - result := ClientGetResponse{RawResponse: resp} + result := ClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FeatureResult); err != nil { return ClientGetResponse{}, err } @@ -108,16 +113,32 @@ func (client *Client) getHandleResponse(resp *http.Response) (ClientGetResponse, // If the operation fails it returns an *azcore.ResponseError type. // resourceProviderNamespace - The namespace of the resource provider for getting features. // options - ClientListOptions contains the optional parameters for the Client.List method. -func (client *Client) List(resourceProviderNamespace string, options *ClientListOptions) *ClientListPager { - return &ClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceProviderNamespace, options) +func (client *Client) List(resourceProviderNamespace string, options *ClientListOptions) *runtime.Pager[ClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[ClientListResponse]{ + More: func(page ClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.FeatureOperationsListResult.NextLink) + Fetcher: func(ctx context.Context, page *ClientListResponse) (ClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceProviderNamespace, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -144,7 +165,7 @@ func (client *Client) listCreateRequest(ctx context.Context, resourceProviderNam // listHandleResponse handles the List response. func (client *Client) listHandleResponse(resp *http.Response) (ClientListResponse, error) { - result := ClientListResponse{RawResponse: resp} + result := ClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FeatureOperationsListResult); err != nil { return ClientListResponse{}, err } @@ -154,16 +175,32 @@ func (client *Client) listHandleResponse(resp *http.Response) (ClientListRespons // ListAll - Gets all the preview features that are available through AFEC for the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ClientListAllOptions contains the optional parameters for the Client.ListAll method. -func (client *Client) ListAll(options *ClientListAllOptions) *ClientListAllPager { - return &ClientListAllPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAllCreateRequest(ctx, options) +func (client *Client) ListAll(options *ClientListAllOptions) *runtime.Pager[ClientListAllResponse] { + return runtime.NewPager(runtime.PageProcessor[ClientListAllResponse]{ + More: func(page ClientListAllResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ClientListAllResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.FeatureOperationsListResult.NextLink) + Fetcher: func(ctx context.Context, page *ClientListAllResponse) (ClientListAllResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAllCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ClientListAllResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClientListAllResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClientListAllResponse{}, runtime.NewResponseError(resp) + } + return client.listAllHandleResponse(resp) }, - } + }) } // listAllCreateRequest creates the ListAll request. @@ -186,7 +223,7 @@ func (client *Client) listAllCreateRequest(ctx context.Context, options *ClientL // listAllHandleResponse handles the ListAll response. func (client *Client) listAllHandleResponse(resp *http.Response) (ClientListAllResponse, error) { - result := ClientListAllResponse{RawResponse: resp} + result := ClientListAllResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FeatureOperationsListResult); err != nil { return ClientListAllResponse{}, err } @@ -241,7 +278,7 @@ func (client *Client) registerCreateRequest(ctx context.Context, resourceProvide // registerHandleResponse handles the Register response. func (client *Client) registerHandleResponse(resp *http.Response) (ClientRegisterResponse, error) { - result := ClientRegisterResponse{RawResponse: resp} + result := ClientRegisterResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FeatureResult); err != nil { return ClientRegisterResponse{}, err } @@ -296,7 +333,7 @@ func (client *Client) unregisterCreateRequest(ctx context.Context, resourceProvi // unregisterHandleResponse handles the Unregister response. func (client *Client) unregisterHandleResponse(resp *http.Response) (ClientUnregisterResponse, error) { - result := ClientUnregisterResponse{RawResponse: resp} + result := ClientUnregisterResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FeatureResult); err != nil { return ClientUnregisterResponse{}, err } diff --git a/sdk/resourcemanager/resources/armfeatures/zz_generated_constants.go b/sdk/resourcemanager/resources/armfeatures/zz_generated_constants.go index d6c9dfa96080..877b4f1a628d 100644 --- a/sdk/resourcemanager/resources/armfeatures/zz_generated_constants.go +++ b/sdk/resourcemanager/resources/armfeatures/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,7 +10,7 @@ package armfeatures const ( moduleName = "armfeatures" - moduleVersion = "v0.2.1" + moduleVersion = "v0.3.0" ) // SubscriptionFeatureRegistrationApprovalType - The feature approval type. @@ -31,11 +31,6 @@ func PossibleSubscriptionFeatureRegistrationApprovalTypeValues() []SubscriptionF } } -// ToPtr returns a *SubscriptionFeatureRegistrationApprovalType pointing to the current value. -func (c SubscriptionFeatureRegistrationApprovalType) ToPtr() *SubscriptionFeatureRegistrationApprovalType { - return &c -} - // SubscriptionFeatureRegistrationState - The state. type SubscriptionFeatureRegistrationState string @@ -61,8 +56,3 @@ func PossibleSubscriptionFeatureRegistrationStateValues() []SubscriptionFeatureR SubscriptionFeatureRegistrationStateUnregistering, } } - -// ToPtr returns a *SubscriptionFeatureRegistrationState pointing to the current value. -func (c SubscriptionFeatureRegistrationState) ToPtr() *SubscriptionFeatureRegistrationState { - return &c -} diff --git a/sdk/resourcemanager/resources/armfeatures/zz_generated_feature_client.go b/sdk/resourcemanager/resources/armfeatures/zz_generated_feature_client.go index cac106e9a45c..2971db6307a5 100644 --- a/sdk/resourcemanager/resources/armfeatures/zz_generated_feature_client.go +++ b/sdk/resourcemanager/resources/armfeatures/zz_generated_feature_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -13,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -28,34 +29,54 @@ type FeatureClient struct { // NewFeatureClient creates a new instance of FeatureClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewFeatureClient(credential azcore.TokenCredential, options *arm.ClientOptions) *FeatureClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewFeatureClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*FeatureClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &FeatureClient{ - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // ListOperations - Lists all of the available Microsoft.Features REST API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - FeatureClientListOperationsOptions contains the optional parameters for the FeatureClient.ListOperations method. -func (client *FeatureClient) ListOperations(options *FeatureClientListOperationsOptions) *FeatureClientListOperationsPager { - return &FeatureClientListOperationsPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listOperationsCreateRequest(ctx, options) +func (client *FeatureClient) ListOperations(options *FeatureClientListOperationsOptions) *runtime.Pager[FeatureClientListOperationsResponse] { + return runtime.NewPager(runtime.PageProcessor[FeatureClientListOperationsResponse]{ + More: func(page FeatureClientListOperationsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp FeatureClientListOperationsResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.OperationListResult.NextLink) + Fetcher: func(ctx context.Context, page *FeatureClientListOperationsResponse) (FeatureClientListOperationsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listOperationsCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return FeatureClientListOperationsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return FeatureClientListOperationsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return FeatureClientListOperationsResponse{}, runtime.NewResponseError(resp) + } + return client.listOperationsHandleResponse(resp) }, - } + }) } // listOperationsCreateRequest creates the ListOperations request. @@ -74,7 +95,7 @@ func (client *FeatureClient) listOperationsCreateRequest(ctx context.Context, op // listOperationsHandleResponse handles the ListOperations response. func (client *FeatureClient) listOperationsHandleResponse(resp *http.Response) (FeatureClientListOperationsResponse, error) { - result := FeatureClientListOperationsResponse{RawResponse: resp} + result := FeatureClientListOperationsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return FeatureClientListOperationsResponse{}, err } diff --git a/sdk/resourcemanager/resources/armfeatures/zz_generated_models.go b/sdk/resourcemanager/resources/armfeatures/zz_generated_models.go index c6b201c4e80b..834b28024ca7 100644 --- a/sdk/resourcemanager/resources/armfeatures/zz_generated_models.go +++ b/sdk/resourcemanager/resources/armfeatures/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,7 @@ package armfeatures -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) +import "time" // AuthorizationProfile - Authorization Profile type AuthorizationProfile struct { @@ -33,49 +28,6 @@ type AuthorizationProfile struct { RequesterObjectID *string `json:"requesterObjectId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type AuthorizationProfile. -func (a AuthorizationProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "approvedTime", a.ApprovedTime) - populate(objectMap, "approver", a.Approver) - populateTimeRFC3339(objectMap, "requestedTime", a.RequestedTime) - populate(objectMap, "requester", a.Requester) - populate(objectMap, "requesterObjectId", a.RequesterObjectID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AuthorizationProfile. -func (a *AuthorizationProfile) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "approvedTime": - err = unpopulateTimeRFC3339(val, &a.ApprovedTime) - delete(rawMsg, key) - case "approver": - err = unpopulate(val, &a.Approver) - delete(rawMsg, key) - case "requestedTime": - err = unpopulateTimeRFC3339(val, &a.RequestedTime) - delete(rawMsg, key) - case "requester": - err = unpopulate(val, &a.Requester) - delete(rawMsg, key) - case "requesterObjectId": - err = unpopulate(val, &a.RequesterObjectID) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // ClientGetOptions contains the optional parameters for the Client.Get method. type ClientGetOptions struct { // placeholder for future optional parameters @@ -113,15 +65,6 @@ type ErrorDefinition struct { Message *string `json:"message,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ErrorDefinition. -func (e ErrorDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "code", e.Code) - populate(objectMap, "details", e.Details) - populate(objectMap, "message", e.Message) - return json.Marshal(objectMap) -} - // ErrorResponse - Error response indicates that the service is not able to process the incoming request. type ErrorResponse struct { // The error details. @@ -142,14 +85,6 @@ type FeatureOperationsListResult struct { Value []*FeatureResult `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type FeatureOperationsListResult. -func (f FeatureOperationsListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", f.NextLink) - populate(objectMap, "value", f.Value) - return json.Marshal(objectMap) -} - // FeatureProperties - Information about feature. type FeatureProperties struct { // The registration state of the feature for the subscription. @@ -202,14 +137,6 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type OperationListResult. -func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", o.NextLink) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - // ProxyResource - An Azure proxy resource. type ProxyResource struct { // READ-ONLY; Azure resource Id. @@ -245,14 +172,6 @@ type SubscriptionFeatureRegistrationList struct { Value []*SubscriptionFeatureRegistration `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SubscriptionFeatureRegistrationList. -func (s SubscriptionFeatureRegistrationList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - type SubscriptionFeatureRegistrationProperties struct { // Authorization Profile AuthorizationProfile *AuthorizationProfile `json:"authorizationProfile,omitempty"` @@ -297,85 +216,6 @@ type SubscriptionFeatureRegistrationProperties struct { TenantID *string `json:"tenantId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SubscriptionFeatureRegistrationProperties. -func (s SubscriptionFeatureRegistrationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "approvalType", s.ApprovalType) - populate(objectMap, "authorizationProfile", s.AuthorizationProfile) - populate(objectMap, "description", s.Description) - populate(objectMap, "displayName", s.DisplayName) - populate(objectMap, "documentationLink", s.DocumentationLink) - populate(objectMap, "featureName", s.FeatureName) - populate(objectMap, "metadata", s.Metadata) - populate(objectMap, "providerNamespace", s.ProviderNamespace) - populateTimeRFC3339(objectMap, "registrationDate", s.RegistrationDate) - populateTimeRFC3339(objectMap, "releaseDate", s.ReleaseDate) - populate(objectMap, "shouldFeatureDisplayInPortal", s.ShouldFeatureDisplayInPortal) - populate(objectMap, "state", s.State) - populate(objectMap, "subscriptionId", s.SubscriptionID) - populate(objectMap, "tenantId", s.TenantID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionFeatureRegistrationProperties. -func (s *SubscriptionFeatureRegistrationProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "approvalType": - err = unpopulate(val, &s.ApprovalType) - delete(rawMsg, key) - case "authorizationProfile": - err = unpopulate(val, &s.AuthorizationProfile) - delete(rawMsg, key) - case "description": - err = unpopulate(val, &s.Description) - delete(rawMsg, key) - case "displayName": - err = unpopulate(val, &s.DisplayName) - delete(rawMsg, key) - case "documentationLink": - err = unpopulate(val, &s.DocumentationLink) - delete(rawMsg, key) - case "featureName": - err = unpopulate(val, &s.FeatureName) - delete(rawMsg, key) - case "metadata": - err = unpopulate(val, &s.Metadata) - delete(rawMsg, key) - case "providerNamespace": - err = unpopulate(val, &s.ProviderNamespace) - delete(rawMsg, key) - case "registrationDate": - err = unpopulateTimeRFC3339(val, &s.RegistrationDate) - delete(rawMsg, key) - case "releaseDate": - err = unpopulateTimeRFC3339(val, &s.ReleaseDate) - delete(rawMsg, key) - case "shouldFeatureDisplayInPortal": - err = unpopulate(val, &s.ShouldFeatureDisplayInPortal) - delete(rawMsg, key) - case "state": - err = unpopulate(val, &s.State) - delete(rawMsg, key) - case "subscriptionId": - err = unpopulate(val, &s.SubscriptionID) - delete(rawMsg, key) - case "tenantId": - err = unpopulate(val, &s.TenantID) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // SubscriptionFeatureRegistrationsClientCreateOrUpdateOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.CreateOrUpdate // method. type SubscriptionFeatureRegistrationsClientCreateOrUpdateOptions struct { @@ -406,20 +246,3 @@ type SubscriptionFeatureRegistrationsClientListAllBySubscriptionOptions struct { type SubscriptionFeatureRegistrationsClientListBySubscriptionOptions struct { // placeholder for future optional parameters } - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, v interface{}) error { - if data == nil { - return nil - } - return json.Unmarshal(data, v) -} diff --git a/sdk/resourcemanager/resources/armfeatures/zz_generated_models_serde.go b/sdk/resourcemanager/resources/armfeatures/zz_generated_models_serde.go new file mode 100644 index 000000000000..35074747447e --- /dev/null +++ b/sdk/resourcemanager/resources/armfeatures/zz_generated_models_serde.go @@ -0,0 +1,187 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armfeatures + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type AuthorizationProfile. +func (a AuthorizationProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "approvedTime", a.ApprovedTime) + populate(objectMap, "approver", a.Approver) + populateTimeRFC3339(objectMap, "requestedTime", a.RequestedTime) + populate(objectMap, "requester", a.Requester) + populate(objectMap, "requesterObjectId", a.RequesterObjectID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AuthorizationProfile. +func (a *AuthorizationProfile) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "approvedTime": + err = unpopulateTimeRFC3339(val, &a.ApprovedTime) + delete(rawMsg, key) + case "approver": + err = unpopulate(val, &a.Approver) + delete(rawMsg, key) + case "requestedTime": + err = unpopulateTimeRFC3339(val, &a.RequestedTime) + delete(rawMsg, key) + case "requester": + err = unpopulate(val, &a.Requester) + delete(rawMsg, key) + case "requesterObjectId": + err = unpopulate(val, &a.RequesterObjectID) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorDefinition. +func (e ErrorDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type FeatureOperationsListResult. +func (f FeatureOperationsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", f.NextLink) + populate(objectMap, "value", f.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SubscriptionFeatureRegistrationList. +func (s SubscriptionFeatureRegistrationList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SubscriptionFeatureRegistrationProperties. +func (s SubscriptionFeatureRegistrationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "approvalType", s.ApprovalType) + populate(objectMap, "authorizationProfile", s.AuthorizationProfile) + populate(objectMap, "description", s.Description) + populate(objectMap, "displayName", s.DisplayName) + populate(objectMap, "documentationLink", s.DocumentationLink) + populate(objectMap, "featureName", s.FeatureName) + populate(objectMap, "metadata", s.Metadata) + populate(objectMap, "providerNamespace", s.ProviderNamespace) + populateTimeRFC3339(objectMap, "registrationDate", s.RegistrationDate) + populateTimeRFC3339(objectMap, "releaseDate", s.ReleaseDate) + populate(objectMap, "shouldFeatureDisplayInPortal", s.ShouldFeatureDisplayInPortal) + populate(objectMap, "state", s.State) + populate(objectMap, "subscriptionId", s.SubscriptionID) + populate(objectMap, "tenantId", s.TenantID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionFeatureRegistrationProperties. +func (s *SubscriptionFeatureRegistrationProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "approvalType": + err = unpopulate(val, &s.ApprovalType) + delete(rawMsg, key) + case "authorizationProfile": + err = unpopulate(val, &s.AuthorizationProfile) + delete(rawMsg, key) + case "description": + err = unpopulate(val, &s.Description) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, &s.DisplayName) + delete(rawMsg, key) + case "documentationLink": + err = unpopulate(val, &s.DocumentationLink) + delete(rawMsg, key) + case "featureName": + err = unpopulate(val, &s.FeatureName) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, &s.Metadata) + delete(rawMsg, key) + case "providerNamespace": + err = unpopulate(val, &s.ProviderNamespace) + delete(rawMsg, key) + case "registrationDate": + err = unpopulateTimeRFC3339(val, &s.RegistrationDate) + delete(rawMsg, key) + case "releaseDate": + err = unpopulateTimeRFC3339(val, &s.ReleaseDate) + delete(rawMsg, key) + case "shouldFeatureDisplayInPortal": + err = unpopulate(val, &s.ShouldFeatureDisplayInPortal) + delete(rawMsg, key) + case "state": + err = unpopulate(val, &s.State) + delete(rawMsg, key) + case "subscriptionId": + err = unpopulate(val, &s.SubscriptionID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, &s.TenantID) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, v interface{}) error { + if data == nil { + return nil + } + return json.Unmarshal(data, v) +} diff --git a/sdk/resourcemanager/resources/armfeatures/zz_generated_pagers.go b/sdk/resourcemanager/resources/armfeatures/zz_generated_pagers.go deleted file mode 100644 index 9d4a7982c99f..000000000000 --- a/sdk/resourcemanager/resources/armfeatures/zz_generated_pagers.go +++ /dev/null @@ -1,287 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armfeatures - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// ClientListAllPager provides operations for iterating over paged responses. -type ClientListAllPager struct { - client *Client - current ClientListAllResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ClientListAllResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ClientListAllPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ClientListAllPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.FeatureOperationsListResult.NextLink == nil || len(*p.current.FeatureOperationsListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAllHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ClientListAllResponse page. -func (p *ClientListAllPager) PageResponse() ClientListAllResponse { - return p.current -} - -// ClientListPager provides operations for iterating over paged responses. -type ClientListPager struct { - client *Client - current ClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.FeatureOperationsListResult.NextLink == nil || len(*p.current.FeatureOperationsListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ClientListResponse page. -func (p *ClientListPager) PageResponse() ClientListResponse { - return p.current -} - -// FeatureClientListOperationsPager provides operations for iterating over paged responses. -type FeatureClientListOperationsPager struct { - client *FeatureClient - current FeatureClientListOperationsResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, FeatureClientListOperationsResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *FeatureClientListOperationsPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *FeatureClientListOperationsPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.OperationListResult.NextLink == nil || len(*p.current.OperationListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listOperationsHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current FeatureClientListOperationsResponse page. -func (p *FeatureClientListOperationsPager) PageResponse() FeatureClientListOperationsResponse { - return p.current -} - -// SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager provides operations for iterating over paged responses. -type SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager struct { - client *SubscriptionFeatureRegistrationsClient - current SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SubscriptionFeatureRegistrationList.NextLink == nil || len(*p.current.SubscriptionFeatureRegistrationList.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAllBySubscriptionHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse page. -func (p *SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager) PageResponse() SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse { - return p.current -} - -// SubscriptionFeatureRegistrationsClientListBySubscriptionPager provides operations for iterating over paged responses. -type SubscriptionFeatureRegistrationsClientListBySubscriptionPager struct { - client *SubscriptionFeatureRegistrationsClient - current SubscriptionFeatureRegistrationsClientListBySubscriptionResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, SubscriptionFeatureRegistrationsClientListBySubscriptionResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *SubscriptionFeatureRegistrationsClientListBySubscriptionPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *SubscriptionFeatureRegistrationsClientListBySubscriptionPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SubscriptionFeatureRegistrationList.NextLink == nil || len(*p.current.SubscriptionFeatureRegistrationList.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listBySubscriptionHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current SubscriptionFeatureRegistrationsClientListBySubscriptionResponse page. -func (p *SubscriptionFeatureRegistrationsClientListBySubscriptionPager) PageResponse() SubscriptionFeatureRegistrationsClientListBySubscriptionResponse { - return p.current -} diff --git a/sdk/resourcemanager/resources/armfeatures/zz_generated_response_types.go b/sdk/resourcemanager/resources/armfeatures/zz_generated_response_types.go index 1a95f2646147..f3257b95432b 100644 --- a/sdk/resourcemanager/resources/armfeatures/zz_generated_response_types.go +++ b/sdk/resourcemanager/resources/armfeatures/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,130 +8,57 @@ package armfeatures -import "net/http" - // ClientGetResponse contains the response from method Client.Get. type ClientGetResponse struct { - ClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientGetResult contains the result from method Client.Get. -type ClientGetResult struct { FeatureResult } // ClientListAllResponse contains the response from method Client.ListAll. type ClientListAllResponse struct { - ClientListAllResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientListAllResult contains the result from method Client.ListAll. -type ClientListAllResult struct { FeatureOperationsListResult } // ClientListResponse contains the response from method Client.List. type ClientListResponse struct { - ClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientListResult contains the result from method Client.List. -type ClientListResult struct { FeatureOperationsListResult } // ClientRegisterResponse contains the response from method Client.Register. type ClientRegisterResponse struct { - ClientRegisterResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientRegisterResult contains the result from method Client.Register. -type ClientRegisterResult struct { FeatureResult } // ClientUnregisterResponse contains the response from method Client.Unregister. type ClientUnregisterResponse struct { - ClientUnregisterResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientUnregisterResult contains the result from method Client.Unregister. -type ClientUnregisterResult struct { FeatureResult } // FeatureClientListOperationsResponse contains the response from method FeatureClient.ListOperations. type FeatureClientListOperationsResponse struct { - FeatureClientListOperationsResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// FeatureClientListOperationsResult contains the result from method FeatureClient.ListOperations. -type FeatureClientListOperationsResult struct { OperationListResult } // SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse contains the response from method SubscriptionFeatureRegistrationsClient.CreateOrUpdate. type SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse struct { - SubscriptionFeatureRegistrationsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SubscriptionFeatureRegistrationsClientCreateOrUpdateResult contains the result from method SubscriptionFeatureRegistrationsClient.CreateOrUpdate. -type SubscriptionFeatureRegistrationsClientCreateOrUpdateResult struct { SubscriptionFeatureRegistration } // SubscriptionFeatureRegistrationsClientDeleteResponse contains the response from method SubscriptionFeatureRegistrationsClient.Delete. type SubscriptionFeatureRegistrationsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // SubscriptionFeatureRegistrationsClientGetResponse contains the response from method SubscriptionFeatureRegistrationsClient.Get. type SubscriptionFeatureRegistrationsClientGetResponse struct { - SubscriptionFeatureRegistrationsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SubscriptionFeatureRegistrationsClientGetResult contains the result from method SubscriptionFeatureRegistrationsClient.Get. -type SubscriptionFeatureRegistrationsClientGetResult struct { SubscriptionFeatureRegistration } // SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse contains the response from method SubscriptionFeatureRegistrationsClient.ListAllBySubscription. type SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse struct { - SubscriptionFeatureRegistrationsClientListAllBySubscriptionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SubscriptionFeatureRegistrationsClientListAllBySubscriptionResult contains the result from method SubscriptionFeatureRegistrationsClient.ListAllBySubscription. -type SubscriptionFeatureRegistrationsClientListAllBySubscriptionResult struct { SubscriptionFeatureRegistrationList } // SubscriptionFeatureRegistrationsClientListBySubscriptionResponse contains the response from method SubscriptionFeatureRegistrationsClient.ListBySubscription. type SubscriptionFeatureRegistrationsClientListBySubscriptionResponse struct { - SubscriptionFeatureRegistrationsClientListBySubscriptionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SubscriptionFeatureRegistrationsClientListBySubscriptionResult contains the result from method SubscriptionFeatureRegistrationsClient.ListBySubscription. -type SubscriptionFeatureRegistrationsClientListBySubscriptionResult struct { SubscriptionFeatureRegistrationList } diff --git a/sdk/resourcemanager/resources/armfeatures/zz_generated_subscriptionfeatureregistrations_client.go b/sdk/resourcemanager/resources/armfeatures/zz_generated_subscriptionfeatureregistrations_client.go index 4e22ef0b90d3..371da85de7f4 100644 --- a/sdk/resourcemanager/resources/armfeatures/zz_generated_subscriptionfeatureregistrations_client.go +++ b/sdk/resourcemanager/resources/armfeatures/zz_generated_subscriptionfeatureregistrations_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type SubscriptionFeatureRegistrationsClient struct { // subscriptionID - The Azure subscription ID. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewSubscriptionFeatureRegistrationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *SubscriptionFeatureRegistrationsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewSubscriptionFeatureRegistrationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SubscriptionFeatureRegistrationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &SubscriptionFeatureRegistrationsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Create or update a feature registration. @@ -101,7 +106,7 @@ func (client *SubscriptionFeatureRegistrationsClient) createOrUpdateCreateReques // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *SubscriptionFeatureRegistrationsClient) createOrUpdateHandleResponse(resp *http.Response) (SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse, error) { - result := SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse{RawResponse: resp} + result := SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SubscriptionFeatureRegistration); err != nil { return SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse{}, err } @@ -126,7 +131,7 @@ func (client *SubscriptionFeatureRegistrationsClient) Delete(ctx context.Context if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return SubscriptionFeatureRegistrationsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return SubscriptionFeatureRegistrationsClientDeleteResponse{RawResponse: resp}, nil + return SubscriptionFeatureRegistrationsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -204,7 +209,7 @@ func (client *SubscriptionFeatureRegistrationsClient) getCreateRequest(ctx conte // getHandleResponse handles the Get response. func (client *SubscriptionFeatureRegistrationsClient) getHandleResponse(resp *http.Response) (SubscriptionFeatureRegistrationsClientGetResponse, error) { - result := SubscriptionFeatureRegistrationsClientGetResponse{RawResponse: resp} + result := SubscriptionFeatureRegistrationsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SubscriptionFeatureRegistration); err != nil { return SubscriptionFeatureRegistrationsClientGetResponse{}, err } @@ -215,16 +220,32 @@ func (client *SubscriptionFeatureRegistrationsClient) getHandleResponse(resp *ht // If the operation fails it returns an *azcore.ResponseError type. // options - SubscriptionFeatureRegistrationsClientListAllBySubscriptionOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.ListAllBySubscription // method. -func (client *SubscriptionFeatureRegistrationsClient) ListAllBySubscription(options *SubscriptionFeatureRegistrationsClientListAllBySubscriptionOptions) *SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager { - return &SubscriptionFeatureRegistrationsClientListAllBySubscriptionPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAllBySubscriptionCreateRequest(ctx, options) +func (client *SubscriptionFeatureRegistrationsClient) ListAllBySubscription(options *SubscriptionFeatureRegistrationsClientListAllBySubscriptionOptions) *runtime.Pager[SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse] { + return runtime.NewPager(runtime.PageProcessor[SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse]{ + More: func(page SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SubscriptionFeatureRegistrationList.NextLink) + Fetcher: func(ctx context.Context, page *SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse) (SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAllBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listAllBySubscriptionHandleResponse(resp) }, - } + }) } // listAllBySubscriptionCreateRequest creates the ListAllBySubscription request. @@ -247,7 +268,7 @@ func (client *SubscriptionFeatureRegistrationsClient) listAllBySubscriptionCreat // listAllBySubscriptionHandleResponse handles the ListAllBySubscription response. func (client *SubscriptionFeatureRegistrationsClient) listAllBySubscriptionHandleResponse(resp *http.Response) (SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse, error) { - result := SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse{RawResponse: resp} + result := SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SubscriptionFeatureRegistrationList); err != nil { return SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse{}, err } @@ -259,16 +280,32 @@ func (client *SubscriptionFeatureRegistrationsClient) listAllBySubscriptionHandl // providerNamespace - The provider namespace. // options - SubscriptionFeatureRegistrationsClientListBySubscriptionOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.ListBySubscription // method. -func (client *SubscriptionFeatureRegistrationsClient) ListBySubscription(providerNamespace string, options *SubscriptionFeatureRegistrationsClientListBySubscriptionOptions) *SubscriptionFeatureRegistrationsClientListBySubscriptionPager { - return &SubscriptionFeatureRegistrationsClientListBySubscriptionPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listBySubscriptionCreateRequest(ctx, providerNamespace, options) +func (client *SubscriptionFeatureRegistrationsClient) ListBySubscription(providerNamespace string, options *SubscriptionFeatureRegistrationsClientListBySubscriptionOptions) *runtime.Pager[SubscriptionFeatureRegistrationsClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PageProcessor[SubscriptionFeatureRegistrationsClientListBySubscriptionResponse]{ + More: func(page SubscriptionFeatureRegistrationsClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp SubscriptionFeatureRegistrationsClientListBySubscriptionResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SubscriptionFeatureRegistrationList.NextLink) + Fetcher: func(ctx context.Context, page *SubscriptionFeatureRegistrationsClientListBySubscriptionResponse) (SubscriptionFeatureRegistrationsClientListBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionCreateRequest(ctx, providerNamespace, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return SubscriptionFeatureRegistrationsClientListBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SubscriptionFeatureRegistrationsClientListBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SubscriptionFeatureRegistrationsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionHandleResponse(resp) }, - } + }) } // listBySubscriptionCreateRequest creates the ListBySubscription request. @@ -295,7 +332,7 @@ func (client *SubscriptionFeatureRegistrationsClient) listBySubscriptionCreateRe // listBySubscriptionHandleResponse handles the ListBySubscription response. func (client *SubscriptionFeatureRegistrationsClient) listBySubscriptionHandleResponse(resp *http.Response) (SubscriptionFeatureRegistrationsClientListBySubscriptionResponse, error) { - result := SubscriptionFeatureRegistrationsClientListBySubscriptionResponse{RawResponse: resp} + result := SubscriptionFeatureRegistrationsClientListBySubscriptionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SubscriptionFeatureRegistrationList); err != nil { return SubscriptionFeatureRegistrationsClientListBySubscriptionResponse{}, err } diff --git a/sdk/resourcemanager/resources/armfeatures/zz_generated_time_rfc3339.go b/sdk/resourcemanager/resources/armfeatures/zz_generated_time_rfc3339.go index 4903d0adfd1e..b0000b574949 100644 --- a/sdk/resourcemanager/resources/armfeatures/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/resources/armfeatures/zz_generated_time_rfc3339.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/resources/armlinks/CHANGELOG.md b/sdk/resourcemanager/resources/armlinks/CHANGELOG.md index b341d845c5c2..cc0ab6658144 100644 --- a/sdk/resourcemanager/resources/armlinks/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armlinks/CHANGELOG.md @@ -1,5 +1,52 @@ # Release History +## 0.3.0 (2022-04-14) +### Breaking Changes + +- Function `NewResourceLinksClient` return value(s) have been changed from `(*ResourceLinksClient)` to `(*ResourceLinksClient, error)` +- Function `*ResourceLinksClient.ListAtSourceScope` return value(s) have been changed from `(*ResourceLinksClientListAtSourceScopePager)` to `(*runtime.Pager[ResourceLinksClientListAtSourceScopeResponse])` +- Function `NewOperationsClient` return value(s) have been changed from `(*OperationsClient)` to `(*OperationsClient, error)` +- Function `*OperationsClient.List` return value(s) have been changed from `(*OperationsClientListPager)` to `(*runtime.Pager[OperationsClientListResponse])` +- Function `*ResourceLinksClient.ListAtSubscription` return value(s) have been changed from `(*ResourceLinksClientListAtSubscriptionPager)` to `(*runtime.Pager[ResourceLinksClientListAtSubscriptionResponse])` +- Type of `ResourceLink.Type` has been changed from `map[string]interface{}` to `interface{}` +- Function `*ResourceLinksClientListAtSourceScopePager.NextPage` has been removed +- Function `*ResourceLinksClientListAtSubscriptionPager.Err` has been removed +- Function `*ResourceLinksClientListAtSubscriptionPager.PageResponse` has been removed +- Function `*OperationsClientListPager.Err` has been removed +- Function `*ResourceLinksClientListAtSourceScopePager.Err` has been removed +- Function `*ResourceLinksClientListAtSourceScopePager.PageResponse` has been removed +- Function `*ResourceLinksClientListAtSubscriptionPager.NextPage` has been removed +- Function `*OperationsClientListPager.NextPage` has been removed +- Function `*OperationsClientListPager.PageResponse` has been removed +- Struct `OperationsClientListPager` has been removed +- Struct `OperationsClientListResult` has been removed +- Struct `ResourceLinksClientCreateOrUpdateResult` has been removed +- Struct `ResourceLinksClientGetResult` has been removed +- Struct `ResourceLinksClientListAtSourceScopePager` has been removed +- Struct `ResourceLinksClientListAtSourceScopeResult` has been removed +- Struct `ResourceLinksClientListAtSubscriptionPager` has been removed +- Struct `ResourceLinksClientListAtSubscriptionResult` has been removed +- Field `OperationsClientListResult` of struct `OperationsClientListResponse` has been removed +- Field `RawResponse` of struct `OperationsClientListResponse` has been removed +- Field `ResourceLinksClientCreateOrUpdateResult` of struct `ResourceLinksClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ResourceLinksClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ResourceLinksClientDeleteResponse` has been removed +- Field `ResourceLinksClientListAtSubscriptionResult` of struct `ResourceLinksClientListAtSubscriptionResponse` has been removed +- Field `RawResponse` of struct `ResourceLinksClientListAtSubscriptionResponse` has been removed +- Field `ResourceLinksClientGetResult` of struct `ResourceLinksClientGetResponse` has been removed +- Field `RawResponse` of struct `ResourceLinksClientGetResponse` has been removed +- Field `ResourceLinksClientListAtSourceScopeResult` of struct `ResourceLinksClientListAtSourceScopeResponse` has been removed +- Field `RawResponse` of struct `ResourceLinksClientListAtSourceScopeResponse` has been removed + +### Features Added + +- New anonymous field `OperationListResult` in struct `OperationsClientListResponse` +- New anonymous field `ResourceLinkResult` in struct `ResourceLinksClientListAtSourceScopeResponse` +- New anonymous field `ResourceLink` in struct `ResourceLinksClientCreateOrUpdateResponse` +- New anonymous field `ResourceLinkResult` in struct `ResourceLinksClientListAtSubscriptionResponse` +- New anonymous field `ResourceLink` in struct `ResourceLinksClientGetResponse` + + ## 0.2.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/resources/armlinks/README.md b/sdk/resourcemanager/resources/armlinks/README.md index 46a82be1bfbe..66585afd306c 100644 --- a/sdk/resourcemanager/resources/armlinks/README.md +++ b/sdk/resourcemanager/resources/armlinks/README.md @@ -11,7 +11,7 @@ The `armlinks` module provides operations for working with Azure Resource Links. ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Resource Links modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armlinks.NewResourceLinksClient(, cred, nil) +client, err := armlinks.NewResourceLinksClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armlinks.NewResourceLinksClient(, cred, &options) +client, err := armlinks.NewResourceLinksClient(, cred, &options) ``` ## Provide Feedback diff --git a/sdk/resourcemanager/resources/armlinks/autorest.md b/sdk/resourcemanager/resources/armlinks/autorest.md index fb72e4c70fda..ddf145405fe9 100644 --- a/sdk/resourcemanager/resources/armlinks/autorest.md +++ b/sdk/resourcemanager/resources/armlinks/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/resources/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/resources/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.2.1 +module-version: 0.3.0 package-links: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armlinks/go.mod b/sdk/resourcemanager/resources/armlinks/go.mod index f2b2ab969525..76663368f0f5 100644 --- a/sdk/resourcemanager/resources/armlinks/go.mod +++ b/sdk/resourcemanager/resources/armlinks/go.mod @@ -1,5 +1,11 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlinks -go 1.16 +go 1.18 -require github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0 +require github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + golang.org/x/net v0.0.0-20210610132358-84b48f89b13b // indirect + golang.org/x/text v0.3.6 // indirect +) diff --git a/sdk/resourcemanager/resources/armlinks/go.sum b/sdk/resourcemanager/resources/armlinks/go.sum index e0ad585956d9..a7eaa30576c1 100644 --- a/sdk/resourcemanager/resources/armlinks/go.sum +++ b/sdk/resourcemanager/resources/armlinks/go.sum @@ -1,7 +1,7 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0 h1:8wVJL0HUP5yDFXvotdewORTw7Yu88JbreWN/mobSvsQ= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= @@ -20,9 +20,6 @@ golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= diff --git a/sdk/resourcemanager/resources/armlinks/zz_generated_constants.go b/sdk/resourcemanager/resources/armlinks/zz_generated_constants.go index e0a7d780aaee..8e41879cef73 100644 --- a/sdk/resourcemanager/resources/armlinks/zz_generated_constants.go +++ b/sdk/resourcemanager/resources/armlinks/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,5 +10,5 @@ package armlinks const ( moduleName = "armlinks" - moduleVersion = "v0.2.1" + moduleVersion = "v0.3.0" ) diff --git a/sdk/resourcemanager/resources/armlinks/zz_generated_models.go b/sdk/resourcemanager/resources/armlinks/zz_generated_models.go index e221a8383e23..a8b72785668d 100644 --- a/sdk/resourcemanager/resources/armlinks/zz_generated_models.go +++ b/sdk/resourcemanager/resources/armlinks/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,6 @@ package armlinks -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" -) - // Operation - Microsoft.Resources operation type Operation struct { // The object that represents the operation. @@ -48,14 +42,6 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type OperationListResult. -func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", o.NextLink) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - // OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. type OperationsClientListOptions struct { // placeholder for future optional parameters @@ -73,7 +59,7 @@ type ResourceLink struct { Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource link object. - Type map[string]interface{} `json:"type,omitempty" azure:"ro"` + Type interface{} `json:"type,omitempty" azure:"ro"` } // ResourceLinkFilter - Resource link filter. @@ -103,14 +89,6 @@ type ResourceLinkResult struct { NextLink *string `json:"nextLink,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ResourceLinkResult. -func (r ResourceLinkResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", r.NextLink) - populate(objectMap, "value", r.Value) - return json.Marshal(objectMap) -} - // ResourceLinksClientCreateOrUpdateOptions contains the optional parameters for the ResourceLinksClient.CreateOrUpdate method. type ResourceLinksClientCreateOrUpdateOptions struct { // placeholder for future optional parameters @@ -141,13 +119,3 @@ type ResourceLinksClientListAtSubscriptionOptions struct { // example, $filter=targetId eq {value} Filter *string } - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} diff --git a/sdk/resourcemanager/resources/armlinks/zz_generated_models_serde.go b/sdk/resourcemanager/resources/armlinks/zz_generated_models_serde.go new file mode 100644 index 000000000000..5054faa45b7a --- /dev/null +++ b/sdk/resourcemanager/resources/armlinks/zz_generated_models_serde.go @@ -0,0 +1,41 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armlinks + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ResourceLinkResult. +func (r ResourceLinkResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} diff --git a/sdk/resourcemanager/resources/armlinks/zz_generated_operations_client.go b/sdk/resourcemanager/resources/armlinks/zz_generated_operations_client.go index ecaf1d341b94..3a156f1e6ba5 100644 --- a/sdk/resourcemanager/resources/armlinks/zz_generated_operations_client.go +++ b/sdk/resourcemanager/resources/armlinks/zz_generated_operations_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -13,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -28,34 +29,54 @@ type OperationsClient struct { // NewOperationsClient creates a new instance of OperationsClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &OperationsClient{ - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // List - Lists all of the available Microsoft.Resources REST API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(options *OperationsClientListOptions) *OperationsClientListPager { - return &OperationsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ + More: func(page OperationsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp OperationsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.OperationListResult.NextLink) + Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return OperationsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return OperationsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return OperationsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -74,7 +95,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { - result := OperationsClientListResponse{RawResponse: resp} + result := OperationsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } diff --git a/sdk/resourcemanager/resources/armlinks/zz_generated_pagers.go b/sdk/resourcemanager/resources/armlinks/zz_generated_pagers.go deleted file mode 100644 index ab22f5c5adaf..000000000000 --- a/sdk/resourcemanager/resources/armlinks/zz_generated_pagers.go +++ /dev/null @@ -1,179 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armlinks - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// OperationsClientListPager provides operations for iterating over paged responses. -type OperationsClientListPager struct { - client *OperationsClient - current OperationsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, OperationsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *OperationsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *OperationsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.OperationListResult.NextLink == nil || len(*p.current.OperationListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current OperationsClientListResponse page. -func (p *OperationsClientListPager) PageResponse() OperationsClientListResponse { - return p.current -} - -// ResourceLinksClientListAtSourceScopePager provides operations for iterating over paged responses. -type ResourceLinksClientListAtSourceScopePager struct { - client *ResourceLinksClient - current ResourceLinksClientListAtSourceScopeResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ResourceLinksClientListAtSourceScopeResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ResourceLinksClientListAtSourceScopePager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ResourceLinksClientListAtSourceScopePager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ResourceLinkResult.NextLink == nil || len(*p.current.ResourceLinkResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAtSourceScopeHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ResourceLinksClientListAtSourceScopeResponse page. -func (p *ResourceLinksClientListAtSourceScopePager) PageResponse() ResourceLinksClientListAtSourceScopeResponse { - return p.current -} - -// ResourceLinksClientListAtSubscriptionPager provides operations for iterating over paged responses. -type ResourceLinksClientListAtSubscriptionPager struct { - client *ResourceLinksClient - current ResourceLinksClientListAtSubscriptionResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ResourceLinksClientListAtSubscriptionResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ResourceLinksClientListAtSubscriptionPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ResourceLinksClientListAtSubscriptionPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ResourceLinkResult.NextLink == nil || len(*p.current.ResourceLinkResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAtSubscriptionHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ResourceLinksClientListAtSubscriptionResponse page. -func (p *ResourceLinksClientListAtSubscriptionPager) PageResponse() ResourceLinksClientListAtSubscriptionResponse { - return p.current -} diff --git a/sdk/resourcemanager/resources/armlinks/zz_generated_resourcelinks_client.go b/sdk/resourcemanager/resources/armlinks/zz_generated_resourcelinks_client.go index 071613e86d8e..084e42c190ed 100644 --- a/sdk/resourcemanager/resources/armlinks/zz_generated_resourcelinks_client.go +++ b/sdk/resourcemanager/resources/armlinks/zz_generated_resourcelinks_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type ResourceLinksClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewResourceLinksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ResourceLinksClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewResourceLinksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceLinksClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ResourceLinksClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates or updates a resource link between the specified resources. @@ -90,7 +95,7 @@ func (client *ResourceLinksClient) createOrUpdateCreateRequest(ctx context.Conte // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *ResourceLinksClient) createOrUpdateHandleResponse(resp *http.Response) (ResourceLinksClientCreateOrUpdateResponse, error) { - result := ResourceLinksClientCreateOrUpdateResponse{RawResponse: resp} + result := ResourceLinksClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ResourceLink); err != nil { return ResourceLinksClientCreateOrUpdateResponse{}, err } @@ -116,7 +121,7 @@ func (client *ResourceLinksClient) Delete(ctx context.Context, linkID string, op if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ResourceLinksClientDeleteResponse{}, runtime.NewResponseError(resp) } - return ResourceLinksClientDeleteResponse{RawResponse: resp}, nil + return ResourceLinksClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -169,7 +174,7 @@ func (client *ResourceLinksClient) getCreateRequest(ctx context.Context, linkID // getHandleResponse handles the Get response. func (client *ResourceLinksClient) getHandleResponse(resp *http.Response) (ResourceLinksClientGetResponse, error) { - result := ResourceLinksClientGetResponse{RawResponse: resp} + result := ResourceLinksClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ResourceLink); err != nil { return ResourceLinksClientGetResponse{}, err } @@ -183,16 +188,32 @@ func (client *ResourceLinksClient) getHandleResponse(resp *http.Response) (Resou // /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup. // options - ResourceLinksClientListAtSourceScopeOptions contains the optional parameters for the ResourceLinksClient.ListAtSourceScope // method. -func (client *ResourceLinksClient) ListAtSourceScope(scope string, options *ResourceLinksClientListAtSourceScopeOptions) *ResourceLinksClientListAtSourceScopePager { - return &ResourceLinksClientListAtSourceScopePager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAtSourceScopeCreateRequest(ctx, scope, options) +func (client *ResourceLinksClient) ListAtSourceScope(scope string, options *ResourceLinksClientListAtSourceScopeOptions) *runtime.Pager[ResourceLinksClientListAtSourceScopeResponse] { + return runtime.NewPager(runtime.PageProcessor[ResourceLinksClientListAtSourceScopeResponse]{ + More: func(page ResourceLinksClientListAtSourceScopeResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ResourceLinksClientListAtSourceScopeResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ResourceLinkResult.NextLink) + Fetcher: func(ctx context.Context, page *ResourceLinksClientListAtSourceScopeResponse) (ResourceLinksClientListAtSourceScopeResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAtSourceScopeCreateRequest(ctx, scope, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ResourceLinksClientListAtSourceScopeResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ResourceLinksClientListAtSourceScopeResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ResourceLinksClientListAtSourceScopeResponse{}, runtime.NewResponseError(resp) + } + return client.listAtSourceScopeHandleResponse(resp) }, - } + }) } // listAtSourceScopeCreateRequest creates the ListAtSourceScope request. @@ -215,7 +236,7 @@ func (client *ResourceLinksClient) listAtSourceScopeCreateRequest(ctx context.Co // listAtSourceScopeHandleResponse handles the ListAtSourceScope response. func (client *ResourceLinksClient) listAtSourceScopeHandleResponse(resp *http.Response) (ResourceLinksClientListAtSourceScopeResponse, error) { - result := ResourceLinksClientListAtSourceScopeResponse{RawResponse: resp} + result := ResourceLinksClientListAtSourceScopeResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ResourceLinkResult); err != nil { return ResourceLinksClientListAtSourceScopeResponse{}, err } @@ -226,16 +247,32 @@ func (client *ResourceLinksClient) listAtSourceScopeHandleResponse(resp *http.Re // If the operation fails it returns an *azcore.ResponseError type. // options - ResourceLinksClientListAtSubscriptionOptions contains the optional parameters for the ResourceLinksClient.ListAtSubscription // method. -func (client *ResourceLinksClient) ListAtSubscription(options *ResourceLinksClientListAtSubscriptionOptions) *ResourceLinksClientListAtSubscriptionPager { - return &ResourceLinksClientListAtSubscriptionPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAtSubscriptionCreateRequest(ctx, options) +func (client *ResourceLinksClient) ListAtSubscription(options *ResourceLinksClientListAtSubscriptionOptions) *runtime.Pager[ResourceLinksClientListAtSubscriptionResponse] { + return runtime.NewPager(runtime.PageProcessor[ResourceLinksClientListAtSubscriptionResponse]{ + More: func(page ResourceLinksClientListAtSubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ResourceLinksClientListAtSubscriptionResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ResourceLinkResult.NextLink) + Fetcher: func(ctx context.Context, page *ResourceLinksClientListAtSubscriptionResponse) (ResourceLinksClientListAtSubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAtSubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ResourceLinksClientListAtSubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ResourceLinksClientListAtSubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ResourceLinksClientListAtSubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listAtSubscriptionHandleResponse(resp) }, - } + }) } // listAtSubscriptionCreateRequest creates the ListAtSubscription request. @@ -261,7 +298,7 @@ func (client *ResourceLinksClient) listAtSubscriptionCreateRequest(ctx context.C // listAtSubscriptionHandleResponse handles the ListAtSubscription response. func (client *ResourceLinksClient) listAtSubscriptionHandleResponse(resp *http.Response) (ResourceLinksClientListAtSubscriptionResponse, error) { - result := ResourceLinksClientListAtSubscriptionResponse{RawResponse: resp} + result := ResourceLinksClientListAtSubscriptionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ResourceLinkResult); err != nil { return ResourceLinksClientListAtSubscriptionResponse{}, err } diff --git a/sdk/resourcemanager/resources/armlinks/zz_generated_response_types.go b/sdk/resourcemanager/resources/armlinks/zz_generated_response_types.go index 4c89464a4013..8dd273290ed0 100644 --- a/sdk/resourcemanager/resources/armlinks/zz_generated_response_types.go +++ b/sdk/resourcemanager/resources/armlinks/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,70 +8,32 @@ package armlinks -import "net/http" - // OperationsClientListResponse contains the response from method OperationsClient.List. type OperationsClientListResponse struct { - OperationsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// OperationsClientListResult contains the result from method OperationsClient.List. -type OperationsClientListResult struct { OperationListResult } // ResourceLinksClientCreateOrUpdateResponse contains the response from method ResourceLinksClient.CreateOrUpdate. type ResourceLinksClientCreateOrUpdateResponse struct { - ResourceLinksClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ResourceLinksClientCreateOrUpdateResult contains the result from method ResourceLinksClient.CreateOrUpdate. -type ResourceLinksClientCreateOrUpdateResult struct { ResourceLink } // ResourceLinksClientDeleteResponse contains the response from method ResourceLinksClient.Delete. type ResourceLinksClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ResourceLinksClientGetResponse contains the response from method ResourceLinksClient.Get. type ResourceLinksClientGetResponse struct { - ResourceLinksClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ResourceLinksClientGetResult contains the result from method ResourceLinksClient.Get. -type ResourceLinksClientGetResult struct { ResourceLink } // ResourceLinksClientListAtSourceScopeResponse contains the response from method ResourceLinksClient.ListAtSourceScope. type ResourceLinksClientListAtSourceScopeResponse struct { - ResourceLinksClientListAtSourceScopeResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ResourceLinksClientListAtSourceScopeResult contains the result from method ResourceLinksClient.ListAtSourceScope. -type ResourceLinksClientListAtSourceScopeResult struct { ResourceLinkResult } // ResourceLinksClientListAtSubscriptionResponse contains the response from method ResourceLinksClient.ListAtSubscription. type ResourceLinksClientListAtSubscriptionResponse struct { - ResourceLinksClientListAtSubscriptionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ResourceLinksClientListAtSubscriptionResult contains the result from method ResourceLinksClient.ListAtSubscription. -type ResourceLinksClientListAtSubscriptionResult struct { ResourceLinkResult } diff --git a/sdk/resourcemanager/resources/armlocks/CHANGELOG.md b/sdk/resourcemanager/resources/armlocks/CHANGELOG.md index b7126b2b241f..a371078f0a76 100644 --- a/sdk/resourcemanager/resources/armlocks/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armlocks/CHANGELOG.md @@ -1,5 +1,99 @@ # Release History +## 0.3.0 (2022-04-14) +### Breaking Changes + +- Function `*ManagementLocksClient.ListAtResourceGroupLevel` return value(s) have been changed from `(*ManagementLocksClientListAtResourceGroupLevelPager)` to `(*runtime.Pager[ManagementLocksClientListAtResourceGroupLevelResponse])` +- Function `NewAuthorizationOperationsClient` return value(s) have been changed from `(*AuthorizationOperationsClient)` to `(*AuthorizationOperationsClient, error)` +- Function `*ManagementLocksClient.ListAtResourceLevel` return value(s) have been changed from `(*ManagementLocksClientListAtResourceLevelPager)` to `(*runtime.Pager[ManagementLocksClientListAtResourceLevelResponse])` +- Function `*ManagementLocksClient.ListAtSubscriptionLevel` return value(s) have been changed from `(*ManagementLocksClientListAtSubscriptionLevelPager)` to `(*runtime.Pager[ManagementLocksClientListAtSubscriptionLevelResponse])` +- Function `*AuthorizationOperationsClient.List` return value(s) have been changed from `(*AuthorizationOperationsClientListPager)` to `(*runtime.Pager[AuthorizationOperationsClientListResponse])` +- Function `NewManagementLocksClient` return value(s) have been changed from `(*ManagementLocksClient)` to `(*ManagementLocksClient, error)` +- Function `*ManagementLocksClient.ListByScope` return value(s) have been changed from `(*ManagementLocksClientListByScopePager)` to `(*runtime.Pager[ManagementLocksClientListByScopeResponse])` +- Type of `ErrorAdditionalInfo.Info` has been changed from `map[string]interface{}` to `interface{}` +- Function `*ManagementLocksClientListAtSubscriptionLevelPager.NextPage` has been removed +- Function `*ManagementLocksClientListByScopePager.Err` has been removed +- Function `*AuthorizationOperationsClientListPager.Err` has been removed +- Function `*AuthorizationOperationsClientListPager.PageResponse` has been removed +- Function `CreatedByType.ToPtr` has been removed +- Function `*ManagementLocksClientListAtResourceLevelPager.NextPage` has been removed +- Function `*ManagementLocksClientListAtResourceGroupLevelPager.Err` has been removed +- Function `*ManagementLocksClientListAtSubscriptionLevelPager.PageResponse` has been removed +- Function `*ManagementLocksClientListAtResourceLevelPager.PageResponse` has been removed +- Function `*AuthorizationOperationsClientListPager.NextPage` has been removed +- Function `*ManagementLocksClientListAtSubscriptionLevelPager.Err` has been removed +- Function `*ManagementLocksClientListAtResourceGroupLevelPager.NextPage` has been removed +- Function `*ManagementLocksClientListByScopePager.PageResponse` has been removed +- Function `LockLevel.ToPtr` has been removed +- Function `*ManagementLocksClientListByScopePager.NextPage` has been removed +- Function `*ManagementLocksClientListAtResourceLevelPager.Err` has been removed +- Function `*ManagementLocksClientListAtResourceGroupLevelPager.PageResponse` has been removed +- Struct `AuthorizationOperationsClientListPager` has been removed +- Struct `AuthorizationOperationsClientListResult` has been removed +- Struct `ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResult` has been removed +- Struct `ManagementLocksClientCreateOrUpdateAtResourceLevelResult` has been removed +- Struct `ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResult` has been removed +- Struct `ManagementLocksClientCreateOrUpdateByScopeResult` has been removed +- Struct `ManagementLocksClientGetAtResourceGroupLevelResult` has been removed +- Struct `ManagementLocksClientGetAtResourceLevelResult` has been removed +- Struct `ManagementLocksClientGetAtSubscriptionLevelResult` has been removed +- Struct `ManagementLocksClientGetByScopeResult` has been removed +- Struct `ManagementLocksClientListAtResourceGroupLevelPager` has been removed +- Struct `ManagementLocksClientListAtResourceGroupLevelResult` has been removed +- Struct `ManagementLocksClientListAtResourceLevelPager` has been removed +- Struct `ManagementLocksClientListAtResourceLevelResult` has been removed +- Struct `ManagementLocksClientListAtSubscriptionLevelPager` has been removed +- Struct `ManagementLocksClientListAtSubscriptionLevelResult` has been removed +- Struct `ManagementLocksClientListByScopePager` has been removed +- Struct `ManagementLocksClientListByScopeResult` has been removed +- Field `ManagementLocksClientCreateOrUpdateAtResourceLevelResult` of struct `ManagementLocksClientCreateOrUpdateAtResourceLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientCreateOrUpdateAtResourceLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientDeleteAtResourceGroupLevelResponse` has been removed +- Field `ManagementLocksClientCreateOrUpdateByScopeResult` of struct `ManagementLocksClientCreateOrUpdateByScopeResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientCreateOrUpdateByScopeResponse` has been removed +- Field `ManagementLocksClientListAtResourceGroupLevelResult` of struct `ManagementLocksClientListAtResourceGroupLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientListAtResourceGroupLevelResponse` has been removed +- Field `ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResult` of struct `ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResponse` has been removed +- Field `ManagementLocksClientGetAtResourceLevelResult` of struct `ManagementLocksClientGetAtResourceLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientGetAtResourceLevelResponse` has been removed +- Field `ManagementLocksClientGetAtSubscriptionLevelResult` of struct `ManagementLocksClientGetAtSubscriptionLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientGetAtSubscriptionLevelResponse` has been removed +- Field `ManagementLocksClientGetByScopeResult` of struct `ManagementLocksClientGetByScopeResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientGetByScopeResponse` has been removed +- Field `ManagementLocksClientGetAtResourceGroupLevelResult` of struct `ManagementLocksClientGetAtResourceGroupLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientGetAtResourceGroupLevelResponse` has been removed +- Field `ManagementLocksClientListByScopeResult` of struct `ManagementLocksClientListByScopeResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientListByScopeResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientDeleteAtResourceLevelResponse` has been removed +- Field `AuthorizationOperationsClientListResult` of struct `AuthorizationOperationsClientListResponse` has been removed +- Field `RawResponse` of struct `AuthorizationOperationsClientListResponse` has been removed +- Field `ManagementLocksClientListAtSubscriptionLevelResult` of struct `ManagementLocksClientListAtSubscriptionLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientListAtSubscriptionLevelResponse` has been removed +- Field `ManagementLocksClientListAtResourceLevelResult` of struct `ManagementLocksClientListAtResourceLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientListAtResourceLevelResponse` has been removed +- Field `ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResult` of struct `ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientDeleteAtSubscriptionLevelResponse` has been removed +- Field `RawResponse` of struct `ManagementLocksClientDeleteByScopeResponse` has been removed + +### Features Added + +- New anonymous field `ManagementLockObject` in struct `ManagementLocksClientCreateOrUpdateAtResourceLevelResponse` +- New anonymous field `ManagementLockObject` in struct `ManagementLocksClientGetAtResourceLevelResponse` +- New anonymous field `ManagementLockListResult` in struct `ManagementLocksClientListAtResourceGroupLevelResponse` +- New anonymous field `ManagementLockObject` in struct `ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResponse` +- New anonymous field `ManagementLockObject` in struct `ManagementLocksClientGetAtSubscriptionLevelResponse` +- New anonymous field `ManagementLockObject` in struct `ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResponse` +- New anonymous field `ManagementLockListResult` in struct `ManagementLocksClientListByScopeResponse` +- New anonymous field `ManagementLockListResult` in struct `ManagementLocksClientListAtResourceLevelResponse` +- New anonymous field `ManagementLockObject` in struct `ManagementLocksClientGetAtResourceGroupLevelResponse` +- New anonymous field `ManagementLockListResult` in struct `ManagementLocksClientListAtSubscriptionLevelResponse` +- New anonymous field `ManagementLockObject` in struct `ManagementLocksClientCreateOrUpdateByScopeResponse` +- New anonymous field `ManagementLockObject` in struct `ManagementLocksClientGetByScopeResponse` +- New anonymous field `OperationListResult` in struct `AuthorizationOperationsClientListResponse` + + ## 0.2.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/resources/armlocks/README.md b/sdk/resourcemanager/resources/armlocks/README.md index e4e2c80b0a0e..ec9b08d160a6 100644 --- a/sdk/resourcemanager/resources/armlocks/README.md +++ b/sdk/resourcemanager/resources/armlocks/README.md @@ -11,7 +11,7 @@ The `armlocks` module provides operations for working with Azure Resource Lock. ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Resource Lock modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armlocks.NewManagementLocksClient(, cred, nil) +client, err := armlocks.NewManagementLocksClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armlocks.NewManagementLocksClient(, cred, &options) +client, err := armlocks.NewManagementLocksClient(, cred, &options) ``` ## Provide Feedback diff --git a/sdk/resourcemanager/resources/armlocks/autorest.md b/sdk/resourcemanager/resources/armlocks/autorest.md index a576761760dc..32349094be1d 100644 --- a/sdk/resourcemanager/resources/armlocks/autorest.md +++ b/sdk/resourcemanager/resources/armlocks/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/resources/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/resources/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.2.1 +module-version: 0.3.0 package-locks: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armlocks/go.mod b/sdk/resourcemanager/resources/armlocks/go.mod index aa08990ab912..26cbc1fdcea7 100644 --- a/sdk/resourcemanager/resources/armlocks/go.mod +++ b/sdk/resourcemanager/resources/armlocks/go.mod @@ -1,8 +1,21 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlocks -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 +) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect ) diff --git a/sdk/resourcemanager/resources/armlocks/go.sum b/sdk/resourcemanager/resources/armlocks/go.sum index 2ce51d3b8174..56d1c32628ae 100644 --- a/sdk/resourcemanager/resources/armlocks/go.sum +++ b/sdk/resourcemanager/resources/armlocks/go.sum @@ -1,18 +1,18 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0 h1:8wVJL0HUP5yDFXvotdewORTw7Yu88JbreWN/mobSvsQ= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0 h1:bLRntPH25SkY1uZ/YZW+dmxNky9r1fAHvDFrzluo+4Q= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -32,21 +32,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -56,4 +51,3 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/resources/armlocks/ze_generated_example_authorizationoperations_client_test.go b/sdk/resourcemanager/resources/armlocks/ze_generated_example_authorizationoperations_client_test.go index 896c0577821f..bf6f7f3f5db0 100644 --- a/sdk/resourcemanager/resources/armlocks/ze_generated_example_authorizationoperations_client_test.go +++ b/sdk/resourcemanager/resources/armlocks/ze_generated_example_authorizationoperations_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,25 +16,29 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlocks" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json func ExampleAuthorizationOperationsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewAuthorizationOperationsClient(cred, nil) + client, err := armlocks.NewAuthorizationOperationsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armlocks/ze_generated_example_managementlocks_client_test.go b/sdk/resourcemanager/resources/armlocks/ze_generated_example_managementlocks_client_test.go index 813ef410b46e..92a103b76192 100644 --- a/sdk/resourcemanager/resources/armlocks/ze_generated_example_managementlocks_client_test.go +++ b/sdk/resourcemanager/resources/armlocks/ze_generated_example_managementlocks_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -12,134 +12,180 @@ import ( "context" "log" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlocks" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json func ExampleManagementLocksClient_CreateOrUpdateAtResourceGroupLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateAtResourceGroupLevel(ctx, "", "", armlocks.ManagementLockObject{ Properties: &armlocks.ManagementLockProperties{ - Level: armlocks.LockLevel("ReadOnly").ToPtr(), + Level: to.Ptr(armlocks.LockLevelReadOnly), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json func ExampleManagementLocksClient_DeleteAtResourceGroupLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteAtResourceGroupLevel(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json func ExampleManagementLocksClient_GetAtResourceGroupLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAtResourceGroupLevel(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagementLocksClientGetAtResourceGroupLevelResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json func ExampleManagementLocksClient_CreateOrUpdateByScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateByScope(ctx, "", "", armlocks.ManagementLockObject{ Properties: &armlocks.ManagementLockProperties{ - Level: armlocks.LockLevel("ReadOnly").ToPtr(), + Level: to.Ptr(armlocks.LockLevelReadOnly), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagementLocksClientCreateOrUpdateByScopeResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json func ExampleManagementLocksClient_DeleteByScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteByScope(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json func ExampleManagementLocksClient_GetByScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetByScope(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagementLocksClientGetByScopeResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json func ExampleManagementLocksClient_CreateOrUpdateAtResourceLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateAtResourceLevel(ctx, "", "", @@ -149,24 +195,31 @@ func ExampleManagementLocksClient_CreateOrUpdateAtResourceLevel() { "", armlocks.ManagementLockObject{ Properties: &armlocks.ManagementLockProperties{ - Level: armlocks.LockLevel("ReadOnly").ToPtr(), + Level: to.Ptr(armlocks.LockLevelReadOnly), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagementLocksClientCreateOrUpdateAtResourceLevelResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json func ExampleManagementLocksClient_DeleteAtResourceLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteAtResourceLevel(ctx, "", "", @@ -176,18 +229,24 @@ func ExampleManagementLocksClient_DeleteAtResourceLevel() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json func ExampleManagementLocksClient_GetAtResourceLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAtResourceLevel(ctx, "", "", @@ -197,161 +256,199 @@ func ExampleManagementLocksClient_GetAtResourceLevel() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagementLocksClientGetAtResourceLevelResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json func ExampleManagementLocksClient_CreateOrUpdateAtSubscriptionLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateAtSubscriptionLevel(ctx, "", armlocks.ManagementLockObject{ Properties: &armlocks.ManagementLockProperties{ - Level: armlocks.LockLevel("ReadOnly").ToPtr(), + Level: to.Ptr(armlocks.LockLevelReadOnly), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json func ExampleManagementLocksClient_DeleteAtSubscriptionLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteAtSubscriptionLevel(ctx, "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json func ExampleManagementLocksClient_GetAtSubscriptionLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAtSubscriptionLevel(ctx, "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagementLocksClientGetAtSubscriptionLevelResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json func ExampleManagementLocksClient_ListAtResourceGroupLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAtResourceGroupLevel("", &armlocks.ManagementLocksClientListAtResourceGroupLevelOptions{Filter: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json func ExampleManagementLocksClient_ListAtResourceLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAtResourceLevel("", "", "", "", "", &armlocks.ManagementLocksClientListAtResourceLevelOptions{Filter: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json func ExampleManagementLocksClient_ListAtSubscriptionLevel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListAtSubscriptionLevel(&armlocks.ManagementLocksClientListAtSubscriptionLevelOptions{Filter: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json func ExampleManagementLocksClient_ListByScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armlocks.NewManagementLocksClient("", cred, nil) + client, err := armlocks.NewManagementLocksClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByScope("", &armlocks.ManagementLocksClientListByScopeOptions{Filter: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armlocks/zz_generated_authorizationoperations_client.go b/sdk/resourcemanager/resources/armlocks/zz_generated_authorizationoperations_client.go index 14f213bf3a81..db32d1012e46 100644 --- a/sdk/resourcemanager/resources/armlocks/zz_generated_authorizationoperations_client.go +++ b/sdk/resourcemanager/resources/armlocks/zz_generated_authorizationoperations_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -13,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -28,35 +29,55 @@ type AuthorizationOperationsClient struct { // NewAuthorizationOperationsClient creates a new instance of AuthorizationOperationsClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewAuthorizationOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *AuthorizationOperationsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewAuthorizationOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*AuthorizationOperationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &AuthorizationOperationsClient{ - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // List - Lists all of the available Microsoft.Authorization REST API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - AuthorizationOperationsClientListOptions contains the optional parameters for the AuthorizationOperationsClient.List // method. -func (client *AuthorizationOperationsClient) List(options *AuthorizationOperationsClientListOptions) *AuthorizationOperationsClientListPager { - return &AuthorizationOperationsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *AuthorizationOperationsClient) List(options *AuthorizationOperationsClientListOptions) *runtime.Pager[AuthorizationOperationsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[AuthorizationOperationsClientListResponse]{ + More: func(page AuthorizationOperationsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp AuthorizationOperationsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.OperationListResult.NextLink) + Fetcher: func(ctx context.Context, page *AuthorizationOperationsClientListResponse) (AuthorizationOperationsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return AuthorizationOperationsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AuthorizationOperationsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AuthorizationOperationsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -75,7 +96,7 @@ func (client *AuthorizationOperationsClient) listCreateRequest(ctx context.Conte // listHandleResponse handles the List response. func (client *AuthorizationOperationsClient) listHandleResponse(resp *http.Response) (AuthorizationOperationsClientListResponse, error) { - result := AuthorizationOperationsClientListResponse{RawResponse: resp} + result := AuthorizationOperationsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return AuthorizationOperationsClientListResponse{}, err } diff --git a/sdk/resourcemanager/resources/armlocks/zz_generated_constants.go b/sdk/resourcemanager/resources/armlocks/zz_generated_constants.go index 6aac0b9396c8..b086ef5e69ad 100644 --- a/sdk/resourcemanager/resources/armlocks/zz_generated_constants.go +++ b/sdk/resourcemanager/resources/armlocks/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,7 +10,7 @@ package armlocks const ( moduleName = "armlocks" - moduleVersion = "v0.2.1" + moduleVersion = "v0.3.0" ) // CreatedByType - The type of identity that created the resource. @@ -33,11 +33,6 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// ToPtr returns a *CreatedByType pointing to the current value. -func (c CreatedByType) ToPtr() *CreatedByType { - return &c -} - // LockLevel - The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized // users are able to read and modify the resources, but not delete. ReadOnly means // authorized users can only read from a resource, but they can't modify or delete it. @@ -57,8 +52,3 @@ func PossibleLockLevelValues() []LockLevel { LockLevelReadOnly, } } - -// ToPtr returns a *LockLevel pointing to the current value. -func (c LockLevel) ToPtr() *LockLevel { - return &c -} diff --git a/sdk/resourcemanager/resources/armlocks/zz_generated_managementlocks_client.go b/sdk/resourcemanager/resources/armlocks/zz_generated_managementlocks_client.go index f52eb3910219..d4547764fd48 100644 --- a/sdk/resourcemanager/resources/armlocks/zz_generated_managementlocks_client.go +++ b/sdk/resourcemanager/resources/armlocks/zz_generated_managementlocks_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type ManagementLocksClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewManagementLocksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ManagementLocksClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewManagementLocksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagementLocksClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ManagementLocksClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdateAtResourceGroupLevel - When you apply a lock at a parent scope, all child resources inherit the same lock. @@ -102,7 +107,7 @@ func (client *ManagementLocksClient) createOrUpdateAtResourceGroupLevelCreateReq // createOrUpdateAtResourceGroupLevelHandleResponse handles the CreateOrUpdateAtResourceGroupLevel response. func (client *ManagementLocksClient) createOrUpdateAtResourceGroupLevelHandleResponse(resp *http.Response) (ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResponse, error) { - result := ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResponse{RawResponse: resp} + result := ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockObject); err != nil { return ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResponse{}, err } @@ -176,7 +181,7 @@ func (client *ManagementLocksClient) createOrUpdateAtResourceLevelCreateRequest( // createOrUpdateAtResourceLevelHandleResponse handles the CreateOrUpdateAtResourceLevel response. func (client *ManagementLocksClient) createOrUpdateAtResourceLevelHandleResponse(resp *http.Response) (ManagementLocksClientCreateOrUpdateAtResourceLevelResponse, error) { - result := ManagementLocksClientCreateOrUpdateAtResourceLevelResponse{RawResponse: resp} + result := ManagementLocksClientCreateOrUpdateAtResourceLevelResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockObject); err != nil { return ManagementLocksClientCreateOrUpdateAtResourceLevelResponse{}, err } @@ -231,7 +236,7 @@ func (client *ManagementLocksClient) createOrUpdateAtSubscriptionLevelCreateRequ // createOrUpdateAtSubscriptionLevelHandleResponse handles the CreateOrUpdateAtSubscriptionLevel response. func (client *ManagementLocksClient) createOrUpdateAtSubscriptionLevelHandleResponse(resp *http.Response) (ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResponse, error) { - result := ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResponse{RawResponse: resp} + result := ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockObject); err != nil { return ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResponse{}, err } @@ -288,7 +293,7 @@ func (client *ManagementLocksClient) createOrUpdateByScopeCreateRequest(ctx cont // createOrUpdateByScopeHandleResponse handles the CreateOrUpdateByScope response. func (client *ManagementLocksClient) createOrUpdateByScopeHandleResponse(resp *http.Response) (ManagementLocksClientCreateOrUpdateByScopeResponse, error) { - result := ManagementLocksClientCreateOrUpdateByScopeResponse{RawResponse: resp} + result := ManagementLocksClientCreateOrUpdateByScopeResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockObject); err != nil { return ManagementLocksClientCreateOrUpdateByScopeResponse{}, err } @@ -315,7 +320,7 @@ func (client *ManagementLocksClient) DeleteAtResourceGroupLevel(ctx context.Cont if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ManagementLocksClientDeleteAtResourceGroupLevelResponse{}, runtime.NewResponseError(resp) } - return ManagementLocksClientDeleteAtResourceGroupLevelResponse{RawResponse: resp}, nil + return ManagementLocksClientDeleteAtResourceGroupLevelResponse{}, nil } // deleteAtResourceGroupLevelCreateRequest creates the DeleteAtResourceGroupLevel request. @@ -368,7 +373,7 @@ func (client *ManagementLocksClient) DeleteAtResourceLevel(ctx context.Context, if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ManagementLocksClientDeleteAtResourceLevelResponse{}, runtime.NewResponseError(resp) } - return ManagementLocksClientDeleteAtResourceLevelResponse{RawResponse: resp}, nil + return ManagementLocksClientDeleteAtResourceLevelResponse{}, nil } // deleteAtResourceLevelCreateRequest creates the DeleteAtResourceLevel request. @@ -426,7 +431,7 @@ func (client *ManagementLocksClient) DeleteAtSubscriptionLevel(ctx context.Conte if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ManagementLocksClientDeleteAtSubscriptionLevelResponse{}, runtime.NewResponseError(resp) } - return ManagementLocksClientDeleteAtSubscriptionLevelResponse{RawResponse: resp}, nil + return ManagementLocksClientDeleteAtSubscriptionLevelResponse{}, nil } // deleteAtSubscriptionLevelCreateRequest creates the DeleteAtSubscriptionLevel request. @@ -469,7 +474,7 @@ func (client *ManagementLocksClient) DeleteByScope(ctx context.Context, scope st if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ManagementLocksClientDeleteByScopeResponse{}, runtime.NewResponseError(resp) } - return ManagementLocksClientDeleteByScopeResponse{RawResponse: resp}, nil + return ManagementLocksClientDeleteByScopeResponse{}, nil } // deleteByScopeCreateRequest creates the DeleteByScope request. @@ -543,7 +548,7 @@ func (client *ManagementLocksClient) getAtResourceGroupLevelCreateRequest(ctx co // getAtResourceGroupLevelHandleResponse handles the GetAtResourceGroupLevel response. func (client *ManagementLocksClient) getAtResourceGroupLevelHandleResponse(resp *http.Response) (ManagementLocksClientGetAtResourceGroupLevelResponse, error) { - result := ManagementLocksClientGetAtResourceGroupLevelResponse{RawResponse: resp} + result := ManagementLocksClientGetAtResourceGroupLevelResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockObject); err != nil { return ManagementLocksClientGetAtResourceGroupLevelResponse{}, err } @@ -613,7 +618,7 @@ func (client *ManagementLocksClient) getAtResourceLevelCreateRequest(ctx context // getAtResourceLevelHandleResponse handles the GetAtResourceLevel response. func (client *ManagementLocksClient) getAtResourceLevelHandleResponse(resp *http.Response) (ManagementLocksClientGetAtResourceLevelResponse, error) { - result := ManagementLocksClientGetAtResourceLevelResponse{RawResponse: resp} + result := ManagementLocksClientGetAtResourceLevelResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockObject); err != nil { return ManagementLocksClientGetAtResourceLevelResponse{}, err } @@ -664,7 +669,7 @@ func (client *ManagementLocksClient) getAtSubscriptionLevelCreateRequest(ctx con // getAtSubscriptionLevelHandleResponse handles the GetAtSubscriptionLevel response. func (client *ManagementLocksClient) getAtSubscriptionLevelHandleResponse(resp *http.Response) (ManagementLocksClientGetAtSubscriptionLevelResponse, error) { - result := ManagementLocksClientGetAtSubscriptionLevelResponse{RawResponse: resp} + result := ManagementLocksClientGetAtSubscriptionLevelResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockObject); err != nil { return ManagementLocksClientGetAtSubscriptionLevelResponse{}, err } @@ -716,7 +721,7 @@ func (client *ManagementLocksClient) getByScopeCreateRequest(ctx context.Context // getByScopeHandleResponse handles the GetByScope response. func (client *ManagementLocksClient) getByScopeHandleResponse(resp *http.Response) (ManagementLocksClientGetByScopeResponse, error) { - result := ManagementLocksClientGetByScopeResponse{RawResponse: resp} + result := ManagementLocksClientGetByScopeResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockObject); err != nil { return ManagementLocksClientGetByScopeResponse{}, err } @@ -728,16 +733,32 @@ func (client *ManagementLocksClient) getByScopeHandleResponse(resp *http.Respons // resourceGroupName - The name of the resource group containing the locks to get. // options - ManagementLocksClientListAtResourceGroupLevelOptions contains the optional parameters for the ManagementLocksClient.ListAtResourceGroupLevel // method. -func (client *ManagementLocksClient) ListAtResourceGroupLevel(resourceGroupName string, options *ManagementLocksClientListAtResourceGroupLevelOptions) *ManagementLocksClientListAtResourceGroupLevelPager { - return &ManagementLocksClientListAtResourceGroupLevelPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAtResourceGroupLevelCreateRequest(ctx, resourceGroupName, options) +func (client *ManagementLocksClient) ListAtResourceGroupLevel(resourceGroupName string, options *ManagementLocksClientListAtResourceGroupLevelOptions) *runtime.Pager[ManagementLocksClientListAtResourceGroupLevelResponse] { + return runtime.NewPager(runtime.PageProcessor[ManagementLocksClientListAtResourceGroupLevelResponse]{ + More: func(page ManagementLocksClientListAtResourceGroupLevelResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ManagementLocksClientListAtResourceGroupLevelResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ManagementLockListResult.NextLink) + Fetcher: func(ctx context.Context, page *ManagementLocksClientListAtResourceGroupLevelResponse) (ManagementLocksClientListAtResourceGroupLevelResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAtResourceGroupLevelCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ManagementLocksClientListAtResourceGroupLevelResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ManagementLocksClientListAtResourceGroupLevelResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ManagementLocksClientListAtResourceGroupLevelResponse{}, runtime.NewResponseError(resp) + } + return client.listAtResourceGroupLevelHandleResponse(resp) }, - } + }) } // listAtResourceGroupLevelCreateRequest creates the ListAtResourceGroupLevel request. @@ -767,7 +788,7 @@ func (client *ManagementLocksClient) listAtResourceGroupLevelCreateRequest(ctx c // listAtResourceGroupLevelHandleResponse handles the ListAtResourceGroupLevel response. func (client *ManagementLocksClient) listAtResourceGroupLevelHandleResponse(resp *http.Response) (ManagementLocksClientListAtResourceGroupLevelResponse, error) { - result := ManagementLocksClientListAtResourceGroupLevelResponse{RawResponse: resp} + result := ManagementLocksClientListAtResourceGroupLevelResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockListResult); err != nil { return ManagementLocksClientListAtResourceGroupLevelResponse{}, err } @@ -783,16 +804,32 @@ func (client *ManagementLocksClient) listAtResourceGroupLevelHandleResponse(resp // resourceName - The name of the locked resource. // options - ManagementLocksClientListAtResourceLevelOptions contains the optional parameters for the ManagementLocksClient.ListAtResourceLevel // method. -func (client *ManagementLocksClient) ListAtResourceLevel(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, options *ManagementLocksClientListAtResourceLevelOptions) *ManagementLocksClientListAtResourceLevelPager { - return &ManagementLocksClientListAtResourceLevelPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAtResourceLevelCreateRequest(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) +func (client *ManagementLocksClient) ListAtResourceLevel(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, options *ManagementLocksClientListAtResourceLevelOptions) *runtime.Pager[ManagementLocksClientListAtResourceLevelResponse] { + return runtime.NewPager(runtime.PageProcessor[ManagementLocksClientListAtResourceLevelResponse]{ + More: func(page ManagementLocksClientListAtResourceLevelResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ManagementLocksClientListAtResourceLevelResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ManagementLockListResult.NextLink) + Fetcher: func(ctx context.Context, page *ManagementLocksClientListAtResourceLevelResponse) (ManagementLocksClientListAtResourceLevelResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAtResourceLevelCreateRequest(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ManagementLocksClientListAtResourceLevelResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ManagementLocksClientListAtResourceLevelResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ManagementLocksClientListAtResourceLevelResponse{}, runtime.NewResponseError(resp) + } + return client.listAtResourceLevelHandleResponse(resp) }, - } + }) } // listAtResourceLevelCreateRequest creates the ListAtResourceLevel request. @@ -832,7 +869,7 @@ func (client *ManagementLocksClient) listAtResourceLevelCreateRequest(ctx contex // listAtResourceLevelHandleResponse handles the ListAtResourceLevel response. func (client *ManagementLocksClient) listAtResourceLevelHandleResponse(resp *http.Response) (ManagementLocksClientListAtResourceLevelResponse, error) { - result := ManagementLocksClientListAtResourceLevelResponse{RawResponse: resp} + result := ManagementLocksClientListAtResourceLevelResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockListResult); err != nil { return ManagementLocksClientListAtResourceLevelResponse{}, err } @@ -843,16 +880,32 @@ func (client *ManagementLocksClient) listAtResourceLevelHandleResponse(resp *htt // If the operation fails it returns an *azcore.ResponseError type. // options - ManagementLocksClientListAtSubscriptionLevelOptions contains the optional parameters for the ManagementLocksClient.ListAtSubscriptionLevel // method. -func (client *ManagementLocksClient) ListAtSubscriptionLevel(options *ManagementLocksClientListAtSubscriptionLevelOptions) *ManagementLocksClientListAtSubscriptionLevelPager { - return &ManagementLocksClientListAtSubscriptionLevelPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listAtSubscriptionLevelCreateRequest(ctx, options) +func (client *ManagementLocksClient) ListAtSubscriptionLevel(options *ManagementLocksClientListAtSubscriptionLevelOptions) *runtime.Pager[ManagementLocksClientListAtSubscriptionLevelResponse] { + return runtime.NewPager(runtime.PageProcessor[ManagementLocksClientListAtSubscriptionLevelResponse]{ + More: func(page ManagementLocksClientListAtSubscriptionLevelResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ManagementLocksClientListAtSubscriptionLevelResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ManagementLockListResult.NextLink) + Fetcher: func(ctx context.Context, page *ManagementLocksClientListAtSubscriptionLevelResponse) (ManagementLocksClientListAtSubscriptionLevelResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAtSubscriptionLevelCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ManagementLocksClientListAtSubscriptionLevelResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ManagementLocksClientListAtSubscriptionLevelResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ManagementLocksClientListAtSubscriptionLevelResponse{}, runtime.NewResponseError(resp) + } + return client.listAtSubscriptionLevelHandleResponse(resp) }, - } + }) } // listAtSubscriptionLevelCreateRequest creates the ListAtSubscriptionLevel request. @@ -878,7 +931,7 @@ func (client *ManagementLocksClient) listAtSubscriptionLevelCreateRequest(ctx co // listAtSubscriptionLevelHandleResponse handles the ListAtSubscriptionLevel response. func (client *ManagementLocksClient) listAtSubscriptionLevelHandleResponse(resp *http.Response) (ManagementLocksClientListAtSubscriptionLevelResponse, error) { - result := ManagementLocksClientListAtSubscriptionLevelResponse{RawResponse: resp} + result := ManagementLocksClientListAtSubscriptionLevelResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockListResult); err != nil { return ManagementLocksClientListAtSubscriptionLevelResponse{}, err } @@ -894,16 +947,32 @@ func (client *ManagementLocksClient) listAtSubscriptionLevelHandleResponse(resp // resources. // options - ManagementLocksClientListByScopeOptions contains the optional parameters for the ManagementLocksClient.ListByScope // method. -func (client *ManagementLocksClient) ListByScope(scope string, options *ManagementLocksClientListByScopeOptions) *ManagementLocksClientListByScopePager { - return &ManagementLocksClientListByScopePager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByScopeCreateRequest(ctx, scope, options) +func (client *ManagementLocksClient) ListByScope(scope string, options *ManagementLocksClientListByScopeOptions) *runtime.Pager[ManagementLocksClientListByScopeResponse] { + return runtime.NewPager(runtime.PageProcessor[ManagementLocksClientListByScopeResponse]{ + More: func(page ManagementLocksClientListByScopeResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ManagementLocksClientListByScopeResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ManagementLockListResult.NextLink) + Fetcher: func(ctx context.Context, page *ManagementLocksClientListByScopeResponse) (ManagementLocksClientListByScopeResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByScopeCreateRequest(ctx, scope, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ManagementLocksClientListByScopeResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ManagementLocksClientListByScopeResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ManagementLocksClientListByScopeResponse{}, runtime.NewResponseError(resp) + } + return client.listByScopeHandleResponse(resp) }, - } + }) } // listByScopeCreateRequest creates the ListByScope request. @@ -929,7 +998,7 @@ func (client *ManagementLocksClient) listByScopeCreateRequest(ctx context.Contex // listByScopeHandleResponse handles the ListByScope response. func (client *ManagementLocksClient) listByScopeHandleResponse(resp *http.Response) (ManagementLocksClientListByScopeResponse, error) { - result := ManagementLocksClientListByScopeResponse{RawResponse: resp} + result := ManagementLocksClientListByScopeResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementLockListResult); err != nil { return ManagementLocksClientListByScopeResponse{}, err } diff --git a/sdk/resourcemanager/resources/armlocks/zz_generated_models.go b/sdk/resourcemanager/resources/armlocks/zz_generated_models.go index 9d860f9c090a..32bbdbdefa1b 100644 --- a/sdk/resourcemanager/resources/armlocks/zz_generated_models.go +++ b/sdk/resourcemanager/resources/armlocks/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,7 @@ package armlocks -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) +import "time" // AuthorizationOperationsClientListOptions contains the optional parameters for the AuthorizationOperationsClient.List method. type AuthorizationOperationsClientListOptions struct { @@ -23,7 +18,7 @@ type AuthorizationOperationsClientListOptions struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info map[string]interface{} `json:"info,omitempty" azure:"ro"` + Info interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -47,17 +42,6 @@ type ErrorDetail struct { Target *string `json:"target,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ErrorDetail. -func (e ErrorDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalInfo", e.AdditionalInfo) - populate(objectMap, "code", e.Code) - populate(objectMap, "details", e.Details) - populate(objectMap, "message", e.Message) - populate(objectMap, "target", e.Target) - return json.Marshal(objectMap) -} - // ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. // (This also follows the OData error response format.). type ErrorResponse struct { @@ -74,14 +58,6 @@ type ManagementLockListResult struct { Value []*ManagementLockObject `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ManagementLockListResult. -func (m ManagementLockListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", m.NextLink) - populate(objectMap, "value", m.Value) - return json.Marshal(objectMap) -} - // ManagementLockObject - The lock information. type ManagementLockObject struct { // REQUIRED; The properties of the lock. @@ -120,15 +96,6 @@ type ManagementLockProperties struct { Owners []*ManagementLockOwner `json:"owners,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ManagementLockProperties. -func (m ManagementLockProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "level", m.Level) - populate(objectMap, "notes", m.Notes) - populate(objectMap, "owners", m.Owners) - return json.Marshal(objectMap) -} - // ManagementLocksClientCreateOrUpdateAtResourceGroupLevelOptions contains the optional parameters for the ManagementLocksClient.CreateOrUpdateAtResourceGroupLevel // method. type ManagementLocksClientCreateOrUpdateAtResourceGroupLevelOptions struct { @@ -258,14 +225,6 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type OperationListResult. -func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", o.NextLink) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). @@ -286,67 +245,3 @@ type SystemData struct { // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` } - -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, v interface{}) error { - if data == nil { - return nil - } - return json.Unmarshal(data, v) -} diff --git a/sdk/resourcemanager/resources/armlocks/zz_generated_models_serde.go b/sdk/resourcemanager/resources/armlocks/zz_generated_models_serde.go new file mode 100644 index 000000000000..044bb67bde05 --- /dev/null +++ b/sdk/resourcemanager/resources/armlocks/zz_generated_models_serde.go @@ -0,0 +1,115 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armlocks + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type ErrorDetail. +func (e ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ManagementLockListResult. +func (m ManagementLockListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", m.NextLink) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ManagementLockProperties. +func (m ManagementLockProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "level", m.Level) + populate(objectMap, "notes", m.Notes) + populate(objectMap, "owners", m.Owners) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, v interface{}) error { + if data == nil { + return nil + } + return json.Unmarshal(data, v) +} diff --git a/sdk/resourcemanager/resources/armlocks/zz_generated_pagers.go b/sdk/resourcemanager/resources/armlocks/zz_generated_pagers.go deleted file mode 100644 index a321a75fab61..000000000000 --- a/sdk/resourcemanager/resources/armlocks/zz_generated_pagers.go +++ /dev/null @@ -1,287 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armlocks - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// AuthorizationOperationsClientListPager provides operations for iterating over paged responses. -type AuthorizationOperationsClientListPager struct { - client *AuthorizationOperationsClient - current AuthorizationOperationsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, AuthorizationOperationsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *AuthorizationOperationsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *AuthorizationOperationsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.OperationListResult.NextLink == nil || len(*p.current.OperationListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current AuthorizationOperationsClientListResponse page. -func (p *AuthorizationOperationsClientListPager) PageResponse() AuthorizationOperationsClientListResponse { - return p.current -} - -// ManagementLocksClientListAtResourceGroupLevelPager provides operations for iterating over paged responses. -type ManagementLocksClientListAtResourceGroupLevelPager struct { - client *ManagementLocksClient - current ManagementLocksClientListAtResourceGroupLevelResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ManagementLocksClientListAtResourceGroupLevelResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ManagementLocksClientListAtResourceGroupLevelPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ManagementLocksClientListAtResourceGroupLevelPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ManagementLockListResult.NextLink == nil || len(*p.current.ManagementLockListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAtResourceGroupLevelHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ManagementLocksClientListAtResourceGroupLevelResponse page. -func (p *ManagementLocksClientListAtResourceGroupLevelPager) PageResponse() ManagementLocksClientListAtResourceGroupLevelResponse { - return p.current -} - -// ManagementLocksClientListAtResourceLevelPager provides operations for iterating over paged responses. -type ManagementLocksClientListAtResourceLevelPager struct { - client *ManagementLocksClient - current ManagementLocksClientListAtResourceLevelResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ManagementLocksClientListAtResourceLevelResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ManagementLocksClientListAtResourceLevelPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ManagementLocksClientListAtResourceLevelPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ManagementLockListResult.NextLink == nil || len(*p.current.ManagementLockListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAtResourceLevelHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ManagementLocksClientListAtResourceLevelResponse page. -func (p *ManagementLocksClientListAtResourceLevelPager) PageResponse() ManagementLocksClientListAtResourceLevelResponse { - return p.current -} - -// ManagementLocksClientListAtSubscriptionLevelPager provides operations for iterating over paged responses. -type ManagementLocksClientListAtSubscriptionLevelPager struct { - client *ManagementLocksClient - current ManagementLocksClientListAtSubscriptionLevelResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ManagementLocksClientListAtSubscriptionLevelResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ManagementLocksClientListAtSubscriptionLevelPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ManagementLocksClientListAtSubscriptionLevelPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ManagementLockListResult.NextLink == nil || len(*p.current.ManagementLockListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listAtSubscriptionLevelHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ManagementLocksClientListAtSubscriptionLevelResponse page. -func (p *ManagementLocksClientListAtSubscriptionLevelPager) PageResponse() ManagementLocksClientListAtSubscriptionLevelResponse { - return p.current -} - -// ManagementLocksClientListByScopePager provides operations for iterating over paged responses. -type ManagementLocksClientListByScopePager struct { - client *ManagementLocksClient - current ManagementLocksClientListByScopeResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ManagementLocksClientListByScopeResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ManagementLocksClientListByScopePager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ManagementLocksClientListByScopePager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ManagementLockListResult.NextLink == nil || len(*p.current.ManagementLockListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByScopeHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ManagementLocksClientListByScopeResponse page. -func (p *ManagementLocksClientListByScopePager) PageResponse() ManagementLocksClientListByScopeResponse { - return p.current -} diff --git a/sdk/resourcemanager/resources/armlocks/zz_generated_response_types.go b/sdk/resourcemanager/resources/armlocks/zz_generated_response_types.go index 7e8b03b84a67..2c89bef6ae77 100644 --- a/sdk/resourcemanager/resources/armlocks/zz_generated_response_types.go +++ b/sdk/resourcemanager/resources/armlocks/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,184 +8,87 @@ package armlocks -import "net/http" - // AuthorizationOperationsClientListResponse contains the response from method AuthorizationOperationsClient.List. type AuthorizationOperationsClientListResponse struct { - AuthorizationOperationsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AuthorizationOperationsClientListResult contains the result from method AuthorizationOperationsClient.List. -type AuthorizationOperationsClientListResult struct { OperationListResult } // ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResponse contains the response from method ManagementLocksClient.CreateOrUpdateAtResourceGroupLevel. type ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResponse struct { - ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResult contains the result from method ManagementLocksClient.CreateOrUpdateAtResourceGroupLevel. -type ManagementLocksClientCreateOrUpdateAtResourceGroupLevelResult struct { ManagementLockObject } // ManagementLocksClientCreateOrUpdateAtResourceLevelResponse contains the response from method ManagementLocksClient.CreateOrUpdateAtResourceLevel. type ManagementLocksClientCreateOrUpdateAtResourceLevelResponse struct { - ManagementLocksClientCreateOrUpdateAtResourceLevelResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientCreateOrUpdateAtResourceLevelResult contains the result from method ManagementLocksClient.CreateOrUpdateAtResourceLevel. -type ManagementLocksClientCreateOrUpdateAtResourceLevelResult struct { ManagementLockObject } // ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResponse contains the response from method ManagementLocksClient.CreateOrUpdateAtSubscriptionLevel. type ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResponse struct { - ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResult contains the result from method ManagementLocksClient.CreateOrUpdateAtSubscriptionLevel. -type ManagementLocksClientCreateOrUpdateAtSubscriptionLevelResult struct { ManagementLockObject } // ManagementLocksClientCreateOrUpdateByScopeResponse contains the response from method ManagementLocksClient.CreateOrUpdateByScope. type ManagementLocksClientCreateOrUpdateByScopeResponse struct { - ManagementLocksClientCreateOrUpdateByScopeResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientCreateOrUpdateByScopeResult contains the result from method ManagementLocksClient.CreateOrUpdateByScope. -type ManagementLocksClientCreateOrUpdateByScopeResult struct { ManagementLockObject } // ManagementLocksClientDeleteAtResourceGroupLevelResponse contains the response from method ManagementLocksClient.DeleteAtResourceGroupLevel. type ManagementLocksClientDeleteAtResourceGroupLevelResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ManagementLocksClientDeleteAtResourceLevelResponse contains the response from method ManagementLocksClient.DeleteAtResourceLevel. type ManagementLocksClientDeleteAtResourceLevelResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ManagementLocksClientDeleteAtSubscriptionLevelResponse contains the response from method ManagementLocksClient.DeleteAtSubscriptionLevel. type ManagementLocksClientDeleteAtSubscriptionLevelResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ManagementLocksClientDeleteByScopeResponse contains the response from method ManagementLocksClient.DeleteByScope. type ManagementLocksClientDeleteByScopeResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ManagementLocksClientGetAtResourceGroupLevelResponse contains the response from method ManagementLocksClient.GetAtResourceGroupLevel. type ManagementLocksClientGetAtResourceGroupLevelResponse struct { - ManagementLocksClientGetAtResourceGroupLevelResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientGetAtResourceGroupLevelResult contains the result from method ManagementLocksClient.GetAtResourceGroupLevel. -type ManagementLocksClientGetAtResourceGroupLevelResult struct { ManagementLockObject } // ManagementLocksClientGetAtResourceLevelResponse contains the response from method ManagementLocksClient.GetAtResourceLevel. type ManagementLocksClientGetAtResourceLevelResponse struct { - ManagementLocksClientGetAtResourceLevelResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientGetAtResourceLevelResult contains the result from method ManagementLocksClient.GetAtResourceLevel. -type ManagementLocksClientGetAtResourceLevelResult struct { ManagementLockObject } // ManagementLocksClientGetAtSubscriptionLevelResponse contains the response from method ManagementLocksClient.GetAtSubscriptionLevel. type ManagementLocksClientGetAtSubscriptionLevelResponse struct { - ManagementLocksClientGetAtSubscriptionLevelResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientGetAtSubscriptionLevelResult contains the result from method ManagementLocksClient.GetAtSubscriptionLevel. -type ManagementLocksClientGetAtSubscriptionLevelResult struct { ManagementLockObject } // ManagementLocksClientGetByScopeResponse contains the response from method ManagementLocksClient.GetByScope. type ManagementLocksClientGetByScopeResponse struct { - ManagementLocksClientGetByScopeResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientGetByScopeResult contains the result from method ManagementLocksClient.GetByScope. -type ManagementLocksClientGetByScopeResult struct { ManagementLockObject } // ManagementLocksClientListAtResourceGroupLevelResponse contains the response from method ManagementLocksClient.ListAtResourceGroupLevel. type ManagementLocksClientListAtResourceGroupLevelResponse struct { - ManagementLocksClientListAtResourceGroupLevelResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientListAtResourceGroupLevelResult contains the result from method ManagementLocksClient.ListAtResourceGroupLevel. -type ManagementLocksClientListAtResourceGroupLevelResult struct { ManagementLockListResult } // ManagementLocksClientListAtResourceLevelResponse contains the response from method ManagementLocksClient.ListAtResourceLevel. type ManagementLocksClientListAtResourceLevelResponse struct { - ManagementLocksClientListAtResourceLevelResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientListAtResourceLevelResult contains the result from method ManagementLocksClient.ListAtResourceLevel. -type ManagementLocksClientListAtResourceLevelResult struct { ManagementLockListResult } // ManagementLocksClientListAtSubscriptionLevelResponse contains the response from method ManagementLocksClient.ListAtSubscriptionLevel. type ManagementLocksClientListAtSubscriptionLevelResponse struct { - ManagementLocksClientListAtSubscriptionLevelResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientListAtSubscriptionLevelResult contains the result from method ManagementLocksClient.ListAtSubscriptionLevel. -type ManagementLocksClientListAtSubscriptionLevelResult struct { ManagementLockListResult } // ManagementLocksClientListByScopeResponse contains the response from method ManagementLocksClient.ListByScope. type ManagementLocksClientListByScopeResponse struct { - ManagementLocksClientListByScopeResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementLocksClientListByScopeResult contains the result from method ManagementLocksClient.ListByScope. -type ManagementLocksClientListByScopeResult struct { ManagementLockListResult } diff --git a/sdk/resourcemanager/resources/armlocks/zz_generated_time_rfc3339.go b/sdk/resourcemanager/resources/armlocks/zz_generated_time_rfc3339.go index b508d61785ce..cadf9c4389e7 100644 --- a/sdk/resourcemanager/resources/armlocks/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/resources/armlocks/zz_generated_time_rfc3339.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/resources/armmanagedapplications/CHANGELOG.md b/sdk/resourcemanager/resources/armmanagedapplications/CHANGELOG.md index 15f7c0655152..de40033c8a19 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armmanagedapplications/CHANGELOG.md @@ -1,5 +1,185 @@ # Release History +## 0.3.0 (2022-04-14) +### Breaking Changes + +- Function `*ApplicationDefinitionsClient.BeginCreateOrUpdateByID` return value(s) have been changed from `(ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse, error)` to `(*armruntime.Poller[ApplicationDefinitionsClientCreateOrUpdateByIDResponse], error)` +- Function `*ApplicationsClient.ListByResourceGroup` return value(s) have been changed from `(*ApplicationsClientListByResourceGroupPager)` to `(*runtime.Pager[ApplicationsClientListByResourceGroupResponse])` +- Function `*ApplicationDefinitionsClient.ListByResourceGroup` return value(s) have been changed from `(*ApplicationDefinitionsClientListByResourceGroupPager)` to `(*runtime.Pager[ApplicationDefinitionsClientListByResourceGroupResponse])` +- Function `*ApplicationsClient.BeginCreateOrUpdateByID` return value(s) have been changed from `(ApplicationsClientCreateOrUpdateByIDPollerResponse, error)` to `(*armruntime.Poller[ApplicationsClientCreateOrUpdateByIDResponse], error)` +- Function `*ApplicationsClient.ListBySubscription` return value(s) have been changed from `(*ApplicationsClientListBySubscriptionPager)` to `(*runtime.Pager[ApplicationsClientListBySubscriptionResponse])` +- Function `*ApplicationsClient.BeginCreateOrUpdate` return value(s) have been changed from `(ApplicationsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[ApplicationsClientCreateOrUpdateResponse], error)` +- Function `*ApplicationDefinitionsClient.BeginDelete` return value(s) have been changed from `(ApplicationDefinitionsClientDeletePollerResponse, error)` to `(*armruntime.Poller[ApplicationDefinitionsClientDeleteResponse], error)` +- Function `*ApplicationsClient.BeginDelete` return value(s) have been changed from `(ApplicationsClientDeletePollerResponse, error)` to `(*armruntime.Poller[ApplicationsClientDeleteResponse], error)` +- Function `NewApplicationDefinitionsClient` return value(s) have been changed from `(*ApplicationDefinitionsClient)` to `(*ApplicationDefinitionsClient, error)` +- Function `*ApplicationClient.ListOperations` return value(s) have been changed from `(*ApplicationClientListOperationsPager)` to `(*runtime.Pager[ApplicationClientListOperationsResponse])` +- Function `*ApplicationDefinitionsClient.BeginDeleteByID` return value(s) have been changed from `(ApplicationDefinitionsClientDeleteByIDPollerResponse, error)` to `(*armruntime.Poller[ApplicationDefinitionsClientDeleteByIDResponse], error)` +- Function `*ApplicationsClient.BeginDeleteByID` return value(s) have been changed from `(ApplicationsClientDeleteByIDPollerResponse, error)` to `(*armruntime.Poller[ApplicationsClientDeleteByIDResponse], error)` +- Function `NewApplicationClient` return value(s) have been changed from `(*ApplicationClient)` to `(*ApplicationClient, error)` +- Function `*ApplicationDefinitionsClient.BeginCreateOrUpdate` return value(s) have been changed from `(ApplicationDefinitionsClientCreateOrUpdatePollerResponse, error)` to `(*armruntime.Poller[ApplicationDefinitionsClientCreateOrUpdateResponse], error)` +- Function `NewApplicationsClient` return value(s) have been changed from `(*ApplicationsClient)` to `(*ApplicationsClient, error)` +- Type of `ApplicationDefinitionProperties.MainTemplate` has been changed from `map[string]interface{}` to `interface{}` +- Type of `ApplicationDefinitionProperties.CreateUIDefinition` has been changed from `map[string]interface{}` to `interface{}` +- Type of `ApplicationPropertiesPatchable.Outputs` has been changed from `map[string]interface{}` to `interface{}` +- Type of `ApplicationPropertiesPatchable.Parameters` has been changed from `map[string]interface{}` to `interface{}` +- Type of `ApplicationProperties.Outputs` has been changed from `map[string]interface{}` to `interface{}` +- Type of `ApplicationProperties.Parameters` has been changed from `map[string]interface{}` to `interface{}` +- Function `ApplicationsClientDeletePollerResponse.PollUntilDone` has been removed +- Function `*ApplicationsClientCreateOrUpdateByIDPoller.Done` has been removed +- Function `*ApplicationDefinitionsClientListByResourceGroupPager.NextPage` has been removed +- Function `*ApplicationsClientDeleteByIDPoller.FinalResponse` has been removed +- Function `*ApplicationDefinitionsClientListByResourceGroupPager.PageResponse` has been removed +- Function `ApplicationLockLevel.ToPtr` has been removed +- Function `*ApplicationsClientCreateOrUpdatePoller.FinalResponse` has been removed +- Function `*ApplicationDefinitionsClientDeletePollerResponse.Resume` has been removed +- Function `*ApplicationDefinitionsClientDeleteByIDPoller.FinalResponse` has been removed +- Function `*ApplicationClientListOperationsPager.PageResponse` has been removed +- Function `*ApplicationsClientCreateOrUpdateByIDPollerResponse.Resume` has been removed +- Function `ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse.PollUntilDone` has been removed +- Function `*ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse.Resume` has been removed +- Function `*ApplicationsClientListByResourceGroupPager.Err` has been removed +- Function `*ApplicationsClientDeleteByIDPoller.ResumeToken` has been removed +- Function `*ApplicationsClientListByResourceGroupPager.NextPage` has been removed +- Function `*ApplicationsClientDeletePollerResponse.Resume` has been removed +- Function `*ApplicationDefinitionsClientCreateOrUpdateByIDPoller.ResumeToken` has been removed +- Function `*ApplicationsClientListBySubscriptionPager.PageResponse` has been removed +- Function `*ApplicationDefinitionsClientCreateOrUpdatePoller.Poll` has been removed +- Function `*ApplicationDefinitionsClientDeleteByIDPoller.Poll` has been removed +- Function `*ApplicationClientListOperationsPager.Err` has been removed +- Function `*ApplicationDefinitionsClientListByResourceGroupPager.Err` has been removed +- Function `ApplicationDefinitionsClientDeletePollerResponse.PollUntilDone` has been removed +- Function `*ApplicationsClientDeleteByIDPoller.Done` has been removed +- Function `*ApplicationsClientCreateOrUpdatePoller.Poll` has been removed +- Function `ApplicationDefinitionsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed +- Function `*ApplicationDefinitionsClientCreateOrUpdatePoller.Done` has been removed +- Function `*ApplicationsClientCreateOrUpdateByIDPoller.FinalResponse` has been removed +- Function `*ApplicationDefinitionsClientDeleteByIDPoller.Done` has been removed +- Function `*ApplicationDefinitionsClientDeletePoller.Done` has been removed +- Function `*ApplicationDefinitionsClientCreateOrUpdateByIDPoller.Poll` has been removed +- Function `*ApplicationDefinitionsClientCreateOrUpdatePoller.ResumeToken` has been removed +- Function `*ApplicationDefinitionsClientDeletePoller.Poll` has been removed +- Function `*ApplicationDefinitionsClientCreateOrUpdateByIDPoller.Done` has been removed +- Function `ApplicationArtifactType.ToPtr` has been removed +- Function `*ApplicationsClientListByResourceGroupPager.PageResponse` has been removed +- Function `*ApplicationsClientCreateOrUpdateByIDPoller.ResumeToken` has been removed +- Function `*ApplicationDefinitionsClientCreateOrUpdateByIDPoller.FinalResponse` has been removed +- Function `*ApplicationDefinitionsClientCreateOrUpdatePoller.FinalResponse` has been removed +- Function `*ApplicationsClientDeleteByIDPoller.Poll` has been removed +- Function `*ApplicationsClientCreateOrUpdatePollerResponse.Resume` has been removed +- Function `*ApplicationDefinitionsClientDeletePoller.ResumeToken` has been removed +- Function `*ApplicationsClientDeletePoller.ResumeToken` has been removed +- Function `*ApplicationsClientListBySubscriptionPager.Err` has been removed +- Function `*ApplicationsClientDeleteByIDPollerResponse.Resume` has been removed +- Function `*ApplicationsClientDeletePoller.Done` has been removed +- Function `*ApplicationsClientCreateOrUpdatePoller.ResumeToken` has been removed +- Function `ApplicationsClientCreateOrUpdatePollerResponse.PollUntilDone` has been removed +- Function `*ApplicationsClientDeletePoller.FinalResponse` has been removed +- Function `*ApplicationDefinitionsClientDeletePoller.FinalResponse` has been removed +- Function `*ApplicationDefinitionsClientDeleteByIDPollerResponse.Resume` has been removed +- Function `*ApplicationsClientCreateOrUpdateByIDPoller.Poll` has been removed +- Function `ApplicationsClientDeleteByIDPollerResponse.PollUntilDone` has been removed +- Function `*ApplicationsClientDeletePoller.Poll` has been removed +- Function `*ApplicationDefinitionsClientDeleteByIDPoller.ResumeToken` has been removed +- Function `*ApplicationClientListOperationsPager.NextPage` has been removed +- Function `*ApplicationsClientListBySubscriptionPager.NextPage` has been removed +- Function `ApplicationDefinitionsClientDeleteByIDPollerResponse.PollUntilDone` has been removed +- Function `*ApplicationDefinitionsClientCreateOrUpdatePollerResponse.Resume` has been removed +- Function `*ApplicationsClientCreateOrUpdatePoller.Done` has been removed +- Function `ProvisioningState.ToPtr` has been removed +- Function `ApplicationsClientCreateOrUpdateByIDPollerResponse.PollUntilDone` has been removed +- Struct `ApplicationClientListOperationsPager` has been removed +- Struct `ApplicationClientListOperationsResult` has been removed +- Struct `ApplicationDefinitionsClientCreateOrUpdateByIDPoller` has been removed +- Struct `ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse` has been removed +- Struct `ApplicationDefinitionsClientCreateOrUpdateByIDResult` has been removed +- Struct `ApplicationDefinitionsClientCreateOrUpdatePoller` has been removed +- Struct `ApplicationDefinitionsClientCreateOrUpdatePollerResponse` has been removed +- Struct `ApplicationDefinitionsClientCreateOrUpdateResult` has been removed +- Struct `ApplicationDefinitionsClientDeleteByIDPoller` has been removed +- Struct `ApplicationDefinitionsClientDeleteByIDPollerResponse` has been removed +- Struct `ApplicationDefinitionsClientDeletePoller` has been removed +- Struct `ApplicationDefinitionsClientDeletePollerResponse` has been removed +- Struct `ApplicationDefinitionsClientGetByIDResult` has been removed +- Struct `ApplicationDefinitionsClientGetResult` has been removed +- Struct `ApplicationDefinitionsClientListByResourceGroupPager` has been removed +- Struct `ApplicationDefinitionsClientListByResourceGroupResult` has been removed +- Struct `ApplicationsClientCreateOrUpdateByIDPoller` has been removed +- Struct `ApplicationsClientCreateOrUpdateByIDPollerResponse` has been removed +- Struct `ApplicationsClientCreateOrUpdateByIDResult` has been removed +- Struct `ApplicationsClientCreateOrUpdatePoller` has been removed +- Struct `ApplicationsClientCreateOrUpdatePollerResponse` has been removed +- Struct `ApplicationsClientCreateOrUpdateResult` has been removed +- Struct `ApplicationsClientDeleteByIDPoller` has been removed +- Struct `ApplicationsClientDeleteByIDPollerResponse` has been removed +- Struct `ApplicationsClientDeletePoller` has been removed +- Struct `ApplicationsClientDeletePollerResponse` has been removed +- Struct `ApplicationsClientGetByIDResult` has been removed +- Struct `ApplicationsClientGetResult` has been removed +- Struct `ApplicationsClientListByResourceGroupPager` has been removed +- Struct `ApplicationsClientListByResourceGroupResult` has been removed +- Struct `ApplicationsClientListBySubscriptionPager` has been removed +- Struct `ApplicationsClientListBySubscriptionResult` has been removed +- Struct `ApplicationsClientUpdateByIDResult` has been removed +- Struct `ApplicationsClientUpdateResult` has been removed +- Field `ApplicationsClientCreateOrUpdateResult` of struct `ApplicationsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ApplicationsClientCreateOrUpdateResponse` has been removed +- Field `ApplicationClientListOperationsResult` of struct `ApplicationClientListOperationsResponse` has been removed +- Field `RawResponse` of struct `ApplicationClientListOperationsResponse` has been removed +- Field `ApplicationsClientListBySubscriptionResult` of struct `ApplicationsClientListBySubscriptionResponse` has been removed +- Field `RawResponse` of struct `ApplicationsClientListBySubscriptionResponse` has been removed +- Field `ApplicationsClientUpdateResult` of struct `ApplicationsClientUpdateResponse` has been removed +- Field `RawResponse` of struct `ApplicationsClientUpdateResponse` has been removed +- Field `ApplicationsClientGetByIDResult` of struct `ApplicationsClientGetByIDResponse` has been removed +- Field `RawResponse` of struct `ApplicationsClientGetByIDResponse` has been removed +- Field `ApplicationDefinitionsClientListByResourceGroupResult` of struct `ApplicationDefinitionsClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `ApplicationDefinitionsClientListByResourceGroupResponse` has been removed +- Field `ApplicationDefinitionsClientCreateOrUpdateByIDResult` of struct `ApplicationDefinitionsClientCreateOrUpdateByIDResponse` has been removed +- Field `RawResponse` of struct `ApplicationDefinitionsClientCreateOrUpdateByIDResponse` has been removed +- Field `ApplicationsClientCreateOrUpdateByIDResult` of struct `ApplicationsClientCreateOrUpdateByIDResponse` has been removed +- Field `RawResponse` of struct `ApplicationsClientCreateOrUpdateByIDResponse` has been removed +- Field `ApplicationsClientGetResult` of struct `ApplicationsClientGetResponse` has been removed +- Field `RawResponse` of struct `ApplicationsClientGetResponse` has been removed +- Field `RawResponse` of struct `ApplicationDefinitionsClientDeleteByIDResponse` has been removed +- Field `ApplicationsClientListByResourceGroupResult` of struct `ApplicationsClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `ApplicationsClientListByResourceGroupResponse` has been removed +- Field `ApplicationDefinitionsClientGetByIDResult` of struct `ApplicationDefinitionsClientGetByIDResponse` has been removed +- Field `RawResponse` of struct `ApplicationDefinitionsClientGetByIDResponse` has been removed +- Field `RawResponse` of struct `ApplicationDefinitionsClientDeleteResponse` has been removed +- Field `ApplicationDefinitionsClientCreateOrUpdateResult` of struct `ApplicationDefinitionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ApplicationDefinitionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ApplicationsClientDeleteResponse` has been removed +- Field `ApplicationsClientUpdateByIDResult` of struct `ApplicationsClientUpdateByIDResponse` has been removed +- Field `RawResponse` of struct `ApplicationsClientUpdateByIDResponse` has been removed +- Field `ApplicationDefinitionsClientGetResult` of struct `ApplicationDefinitionsClientGetResponse` has been removed +- Field `RawResponse` of struct `ApplicationDefinitionsClientGetResponse` has been removed +- Field `RawResponse` of struct `ApplicationsClientDeleteByIDResponse` has been removed + +### Features Added + +- New field `ResumeToken` in struct `ApplicationDefinitionsClientBeginCreateOrUpdateOptions` +- New field `ResumeToken` in struct `ApplicationDefinitionsClientBeginDeleteOptions` +- New field `ResumeToken` in struct `ApplicationsClientBeginDeleteOptions` +- New anonymous field `ApplicationDefinition` in struct `ApplicationDefinitionsClientCreateOrUpdateResponse` +- New anonymous field `Application` in struct `ApplicationsClientUpdateResponse` +- New anonymous field `ApplicationDefinition` in struct `ApplicationDefinitionsClientCreateOrUpdateByIDResponse` +- New field `ResumeToken` in struct `ApplicationsClientBeginDeleteByIDOptions` +- New anonymous field `Application` in struct `ApplicationsClientUpdateByIDResponse` +- New anonymous field `ApplicationListResult` in struct `ApplicationsClientListByResourceGroupResponse` +- New field `ResumeToken` in struct `ApplicationsClientBeginCreateOrUpdateByIDOptions` +- New field `ResumeToken` in struct `ApplicationsClientBeginCreateOrUpdateOptions` +- New anonymous field `Application` in struct `ApplicationsClientGetResponse` +- New anonymous field `ApplicationDefinitionListResult` in struct `ApplicationDefinitionsClientListByResourceGroupResponse` +- New field `ResumeToken` in struct `ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions` +- New field `ResumeToken` in struct `ApplicationDefinitionsClientBeginDeleteByIDOptions` +- New anonymous field `Application` in struct `ApplicationsClientCreateOrUpdateResponse` +- New anonymous field `Application` in struct `ApplicationsClientCreateOrUpdateByIDResponse` +- New anonymous field `Application` in struct `ApplicationsClientGetByIDResponse` +- New anonymous field `ApplicationDefinition` in struct `ApplicationDefinitionsClientGetByIDResponse` +- New anonymous field `ApplicationListResult` in struct `ApplicationsClientListBySubscriptionResponse` +- New anonymous field `OperationListResult` in struct `ApplicationClientListOperationsResponse` +- New anonymous field `ApplicationDefinition` in struct `ApplicationDefinitionsClientGetResponse` + + ## 0.2.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/resources/armmanagedapplications/README.md b/sdk/resourcemanager/resources/armmanagedapplications/README.md index 2c9f18f0d2dc..8c77ff08f3b7 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/README.md +++ b/sdk/resourcemanager/resources/armmanagedapplications/README.md @@ -11,7 +11,7 @@ The `armmanagedapplications` module provides operations for working with Azure M ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Managed Applications modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armmanagedapplications.NewApplicationsClient(, cred, nil) +client, err := armmanagedapplications.NewApplicationsClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armmanagedapplications.NewApplicationsClient(, cred, &options) +client, err := armmanagedapplications.NewApplicationsClient(, cred, &options) ``` ## Provide Feedback diff --git a/sdk/resourcemanager/resources/armmanagedapplications/autorest.md b/sdk/resourcemanager/resources/armmanagedapplications/autorest.md index 3d26bf178e47..8b35fb2d9661 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/autorest.md +++ b/sdk/resourcemanager/resources/armmanagedapplications/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/resources/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/resources/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.2.1 +module-version: 0.3.0 package-managedapplications: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armmanagedapplications/go.mod b/sdk/resourcemanager/resources/armmanagedapplications/go.mod index b1b6f307323b..5116079f2da3 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/go.mod +++ b/sdk/resourcemanager/resources/armmanagedapplications/go.mod @@ -1,8 +1,21 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 +) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect ) diff --git a/sdk/resourcemanager/resources/armmanagedapplications/go.sum b/sdk/resourcemanager/resources/armmanagedapplications/go.sum index 2ce51d3b8174..56d1c32628ae 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/go.sum +++ b/sdk/resourcemanager/resources/armmanagedapplications/go.sum @@ -1,18 +1,18 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0 h1:8wVJL0HUP5yDFXvotdewORTw7Yu88JbreWN/mobSvsQ= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0 h1:bLRntPH25SkY1uZ/YZW+dmxNky9r1fAHvDFrzluo+4Q= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -32,21 +32,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -56,4 +51,3 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applicationclient_client_test.go b/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applicationclient_client_test.go index 76ac44215d73..68ccc80cb620 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applicationclient_client_test.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applicationclient_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,25 +16,29 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listSolutionsOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listSolutionsOperations.json func ExampleApplicationClient_ListOperations() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationClient(cred, nil) + client, err := armmanagedapplications.NewApplicationClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListOperations(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applicationdefinitions_client_test.go b/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applicationdefinitions_client_test.go index 8c3e5ed70c29..62683f3900a6 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applicationdefinitions_client_test.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applicationdefinitions_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,101 +19,127 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationDefinition.json func ExampleApplicationDefinitionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationDefinitionsClient("", cred, nil) + client, err := armmanagedapplications.NewApplicationDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ApplicationDefinitionsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationDefinition.json func ExampleApplicationDefinitionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationDefinitionsClient("", cred, nil) + client, err := armmanagedapplications.NewApplicationDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginDelete(ctx, "", "", - nil) + &armmanagedapplications.ApplicationDefinitionsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationDefinition.json func ExampleApplicationDefinitionsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationDefinitionsClient("", cred, nil) + client, err := armmanagedapplications.NewApplicationDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginCreateOrUpdate(ctx, "", "", armmanagedapplications.ApplicationDefinition{ - Location: to.StringPtr(""), + Location: to.Ptr(""), Properties: &armmanagedapplications.ApplicationDefinitionProperties{ - Description: to.StringPtr(""), + Description: to.Ptr(""), Authorizations: []*armmanagedapplications.ApplicationProviderAuthorization{ { - PrincipalID: to.StringPtr(""), - RoleDefinitionID: to.StringPtr(""), + PrincipalID: to.Ptr(""), + RoleDefinitionID: to.Ptr(""), }}, - DisplayName: to.StringPtr(""), - LockLevel: armmanagedapplications.ApplicationLockLevelNone.ToPtr(), - PackageFileURI: to.StringPtr(""), + DisplayName: to.Ptr(""), + LockLevel: to.Ptr(armmanagedapplications.ApplicationLockLevelNone), + PackageFileURI: to.Ptr(""), }, }, - nil) + &armmanagedapplications.ApplicationDefinitionsClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.ApplicationDefinitionsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationDefinitionsByResourceGroup.json func ExampleApplicationDefinitionsClient_ListByResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationDefinitionsClient("", cred, nil) + client, err := armmanagedapplications.NewApplicationDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResourceGroup("", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applications_client_test.go b/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applications_client_test.go index 6e992a921723..0f2065b4ce72 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applications_client_test.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/ze_generated_example_applications_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,142 +19,179 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplication.json func ExampleApplicationsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationsClient("", cred, nil) + client, err := armmanagedapplications.NewApplicationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ApplicationsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json func ExampleApplicationsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationsClient("", cred, nil) + client, err := armmanagedapplications.NewApplicationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginDelete(ctx, "", "", - nil) + &armmanagedapplications.ApplicationsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplication.json func ExampleApplicationsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationsClient("", cred, nil) + client, err := armmanagedapplications.NewApplicationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginCreateOrUpdate(ctx, "", "", armmanagedapplications.Application{ - Location: to.StringPtr(""), - Kind: to.StringPtr(""), + Location: to.Ptr(""), + Kind: to.Ptr(""), Properties: &armmanagedapplications.ApplicationProperties{ - ManagedResourceGroupID: to.StringPtr(""), + ManagedResourceGroupID: to.Ptr(""), }, }, - nil) + &armmanagedapplications.ApplicationsClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.ApplicationsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json func ExampleApplicationsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationsClient("", cred, nil) + client, err := armmanagedapplications.NewApplicationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", &armmanagedapplications.ApplicationsClientUpdateOptions{Parameters: &armmanagedapplications.ApplicationPatchable{ - Kind: to.StringPtr(""), + Kind: to.Ptr(""), Properties: &armmanagedapplications.ApplicationPropertiesPatchable{ - ApplicationDefinitionID: to.StringPtr(""), - ManagedResourceGroupID: to.StringPtr(""), + ApplicationDefinitionID: to.Ptr(""), + ManagedResourceGroupID: to.Ptr(""), }, }, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ApplicationsClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsByResourceGroup.json func ExampleApplicationsClient_ListByResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationsClient("", cred, nil) + client, err := armmanagedapplications.NewApplicationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResourceGroup("", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json func ExampleApplicationsClient_ListBySubscription() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armmanagedapplications.NewApplicationsClient("", cred, nil) + client, err := armmanagedapplications.NewApplicationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListBySubscription(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_application_client.go b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_application_client.go index 865f88b9958e..a510d052a355 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_application_client.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_application_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -13,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -28,35 +29,55 @@ type ApplicationClient struct { // NewApplicationClient creates a new instance of ApplicationClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewApplicationClient(credential azcore.TokenCredential, options *arm.ClientOptions) *ApplicationClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewApplicationClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ApplicationClient{ - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // ListOperations - Lists all of the available Microsoft.Solutions REST API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - ApplicationClientListOperationsOptions contains the optional parameters for the ApplicationClient.ListOperations // method. -func (client *ApplicationClient) ListOperations(options *ApplicationClientListOperationsOptions) *ApplicationClientListOperationsPager { - return &ApplicationClientListOperationsPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listOperationsCreateRequest(ctx, options) +func (client *ApplicationClient) ListOperations(options *ApplicationClientListOperationsOptions) *runtime.Pager[ApplicationClientListOperationsResponse] { + return runtime.NewPager(runtime.PageProcessor[ApplicationClientListOperationsResponse]{ + More: func(page ApplicationClientListOperationsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ApplicationClientListOperationsResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.OperationListResult.NextLink) + Fetcher: func(ctx context.Context, page *ApplicationClientListOperationsResponse) (ApplicationClientListOperationsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listOperationsCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ApplicationClientListOperationsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ApplicationClientListOperationsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ApplicationClientListOperationsResponse{}, runtime.NewResponseError(resp) + } + return client.listOperationsHandleResponse(resp) }, - } + }) } // listOperationsCreateRequest creates the ListOperations request. @@ -75,7 +96,7 @@ func (client *ApplicationClient) listOperationsCreateRequest(ctx context.Context // listOperationsHandleResponse handles the ListOperations response. func (client *ApplicationClient) listOperationsHandleResponse(resp *http.Response) (ApplicationClientListOperationsResponse, error) { - result := ApplicationClientListOperationsResponse{RawResponse: resp} + result := ApplicationClientListOperationsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return ApplicationClientListOperationsResponse{}, err } diff --git a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_applicationdefinitions_client.go b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_applicationdefinitions_client.go index abc3c5faba27..0eb2f46adeb3 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_applicationdefinitions_client.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_applicationdefinitions_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type ApplicationDefinitionsClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewApplicationDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ApplicationDefinitionsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewApplicationDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationDefinitionsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ApplicationDefinitionsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // BeginCreateOrUpdate - Creates a new managed application definition. @@ -56,22 +61,16 @@ func NewApplicationDefinitionsClient(subscriptionID string, credential azcore.To // parameters - Parameters supplied to the create or update an managed application definition. // options - ApplicationDefinitionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginCreateOrUpdate // method. -func (client *ApplicationDefinitionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters ApplicationDefinition, options *ApplicationDefinitionsClientBeginCreateOrUpdateOptions) (ApplicationDefinitionsClientCreateOrUpdatePollerResponse, error) { - resp, err := client.createOrUpdate(ctx, resourceGroupName, applicationDefinitionName, parameters, options) - if err != nil { - return ApplicationDefinitionsClientCreateOrUpdatePollerResponse{}, err - } - result := ApplicationDefinitionsClientCreateOrUpdatePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ApplicationDefinitionsClient.CreateOrUpdate", "", resp, client.pl) - if err != nil { - return ApplicationDefinitionsClientCreateOrUpdatePollerResponse{}, err +func (client *ApplicationDefinitionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters ApplicationDefinition, options *ApplicationDefinitionsClientBeginCreateOrUpdateOptions) (*armruntime.Poller[ApplicationDefinitionsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, applicationDefinitionName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ApplicationDefinitionsClientCreateOrUpdateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ApplicationDefinitionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) } - result.Poller = &ApplicationDefinitionsClientCreateOrUpdatePoller{ - pt: pt, - } - return result, nil } // CreateOrUpdate - Creates a new managed application definition. @@ -124,22 +123,16 @@ func (client *ApplicationDefinitionsClient) createOrUpdateCreateRequest(ctx cont // parameters - Parameters supplied to the create or update a managed application definition. // options - ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginCreateOrUpdateByID // method. -func (client *ApplicationDefinitionsClient) BeginCreateOrUpdateByID(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters ApplicationDefinition, options *ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions) (ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse, error) { - resp, err := client.createOrUpdateByID(ctx, resourceGroupName, applicationDefinitionName, parameters, options) - if err != nil { - return ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse{}, err - } - result := ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ApplicationDefinitionsClient.CreateOrUpdateByID", "", resp, client.pl) - if err != nil { - return ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse{}, err - } - result.Poller = &ApplicationDefinitionsClientCreateOrUpdateByIDPoller{ - pt: pt, +func (client *ApplicationDefinitionsClient) BeginCreateOrUpdateByID(ctx context.Context, resourceGroupName string, applicationDefinitionName string, parameters ApplicationDefinition, options *ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions) (*armruntime.Poller[ApplicationDefinitionsClientCreateOrUpdateByIDResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdateByID(ctx, resourceGroupName, applicationDefinitionName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ApplicationDefinitionsClientCreateOrUpdateByIDResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ApplicationDefinitionsClientCreateOrUpdateByIDResponse](options.ResumeToken, client.pl, nil) } - return result, nil } // CreateOrUpdateByID - Creates a new managed application definition. @@ -191,22 +184,16 @@ func (client *ApplicationDefinitionsClient) createOrUpdateByIDCreateRequest(ctx // applicationDefinitionName - The name of the managed application definition to delete. // options - ApplicationDefinitionsClientBeginDeleteOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginDelete // method. -func (client *ApplicationDefinitionsClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *ApplicationDefinitionsClientBeginDeleteOptions) (ApplicationDefinitionsClientDeletePollerResponse, error) { - resp, err := client.deleteOperation(ctx, resourceGroupName, applicationDefinitionName, options) - if err != nil { - return ApplicationDefinitionsClientDeletePollerResponse{}, err +func (client *ApplicationDefinitionsClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *ApplicationDefinitionsClientBeginDeleteOptions) (*armruntime.Poller[ApplicationDefinitionsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, applicationDefinitionName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ApplicationDefinitionsClientDeleteResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ApplicationDefinitionsClientDeleteResponse](options.ResumeToken, client.pl, nil) } - result := ApplicationDefinitionsClientDeletePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ApplicationDefinitionsClient.Delete", "", resp, client.pl) - if err != nil { - return ApplicationDefinitionsClientDeletePollerResponse{}, err - } - result.Poller = &ApplicationDefinitionsClientDeletePoller{ - pt: pt, - } - return result, nil } // Delete - Deletes the managed application definition. @@ -258,22 +245,16 @@ func (client *ApplicationDefinitionsClient) deleteCreateRequest(ctx context.Cont // applicationDefinitionName - The name of the managed application definition. // options - ApplicationDefinitionsClientBeginDeleteByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginDeleteByID // method. -func (client *ApplicationDefinitionsClient) BeginDeleteByID(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *ApplicationDefinitionsClientBeginDeleteByIDOptions) (ApplicationDefinitionsClientDeleteByIDPollerResponse, error) { - resp, err := client.deleteByID(ctx, resourceGroupName, applicationDefinitionName, options) - if err != nil { - return ApplicationDefinitionsClientDeleteByIDPollerResponse{}, err - } - result := ApplicationDefinitionsClientDeleteByIDPollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ApplicationDefinitionsClient.DeleteByID", "", resp, client.pl) - if err != nil { - return ApplicationDefinitionsClientDeleteByIDPollerResponse{}, err +func (client *ApplicationDefinitionsClient) BeginDeleteByID(ctx context.Context, resourceGroupName string, applicationDefinitionName string, options *ApplicationDefinitionsClientBeginDeleteByIDOptions) (*armruntime.Poller[ApplicationDefinitionsClientDeleteByIDResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteByID(ctx, resourceGroupName, applicationDefinitionName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ApplicationDefinitionsClientDeleteByIDResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ApplicationDefinitionsClientDeleteByIDResponse](options.ResumeToken, client.pl, nil) } - result.Poller = &ApplicationDefinitionsClientDeleteByIDPoller{ - pt: pt, - } - return result, nil } // DeleteByID - Deletes the managed application definition. @@ -368,7 +349,7 @@ func (client *ApplicationDefinitionsClient) getCreateRequest(ctx context.Context // getHandleResponse handles the Get response. func (client *ApplicationDefinitionsClient) getHandleResponse(resp *http.Response) (ApplicationDefinitionsClientGetResponse, error) { - result := ApplicationDefinitionsClientGetResponse{RawResponse: resp} + result := ApplicationDefinitionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ApplicationDefinition); err != nil { return ApplicationDefinitionsClientGetResponse{}, err } @@ -424,7 +405,7 @@ func (client *ApplicationDefinitionsClient) getByIDCreateRequest(ctx context.Con // getByIDHandleResponse handles the GetByID response. func (client *ApplicationDefinitionsClient) getByIDHandleResponse(resp *http.Response) (ApplicationDefinitionsClientGetByIDResponse, error) { - result := ApplicationDefinitionsClientGetByIDResponse{RawResponse: resp} + result := ApplicationDefinitionsClientGetByIDResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ApplicationDefinition); err != nil { return ApplicationDefinitionsClientGetByIDResponse{}, err } @@ -436,16 +417,32 @@ func (client *ApplicationDefinitionsClient) getByIDHandleResponse(resp *http.Res // resourceGroupName - The name of the resource group. The name is case insensitive. // options - ApplicationDefinitionsClientListByResourceGroupOptions contains the optional parameters for the ApplicationDefinitionsClient.ListByResourceGroup // method. -func (client *ApplicationDefinitionsClient) ListByResourceGroup(resourceGroupName string, options *ApplicationDefinitionsClientListByResourceGroupOptions) *ApplicationDefinitionsClientListByResourceGroupPager { - return &ApplicationDefinitionsClientListByResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *ApplicationDefinitionsClient) ListByResourceGroup(resourceGroupName string, options *ApplicationDefinitionsClientListByResourceGroupOptions) *runtime.Pager[ApplicationDefinitionsClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[ApplicationDefinitionsClientListByResourceGroupResponse]{ + More: func(page ApplicationDefinitionsClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ApplicationDefinitionsClientListByResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ApplicationDefinitionListResult.NextLink) + Fetcher: func(ctx context.Context, page *ApplicationDefinitionsClientListByResourceGroupResponse) (ApplicationDefinitionsClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ApplicationDefinitionsClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ApplicationDefinitionsClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ApplicationDefinitionsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) }, - } + }) } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. @@ -472,7 +469,7 @@ func (client *ApplicationDefinitionsClient) listByResourceGroupCreateRequest(ctx // listByResourceGroupHandleResponse handles the ListByResourceGroup response. func (client *ApplicationDefinitionsClient) listByResourceGroupHandleResponse(resp *http.Response) (ApplicationDefinitionsClientListByResourceGroupResponse, error) { - result := ApplicationDefinitionsClientListByResourceGroupResponse{RawResponse: resp} + result := ApplicationDefinitionsClientListByResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ApplicationDefinitionListResult); err != nil { return ApplicationDefinitionsClientListByResourceGroupResponse{}, err } diff --git a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_applications_client.go b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_applications_client.go index a7192e0ed2c1..ae8f9a9d4037 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_applications_client.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_applications_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type ApplicationsClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewApplicationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ApplicationsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewApplicationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApplicationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ApplicationsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // BeginCreateOrUpdate - Creates a new managed application. @@ -56,22 +61,16 @@ func NewApplicationsClient(subscriptionID string, credential azcore.TokenCredent // parameters - Parameters supplied to the create or update a managed application. // options - ApplicationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationsClient.BeginCreateOrUpdate // method. -func (client *ApplicationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters Application, options *ApplicationsClientBeginCreateOrUpdateOptions) (ApplicationsClientCreateOrUpdatePollerResponse, error) { - resp, err := client.createOrUpdate(ctx, resourceGroupName, applicationName, parameters, options) - if err != nil { - return ApplicationsClientCreateOrUpdatePollerResponse{}, err - } - result := ApplicationsClientCreateOrUpdatePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ApplicationsClient.CreateOrUpdate", "", resp, client.pl) - if err != nil { - return ApplicationsClientCreateOrUpdatePollerResponse{}, err - } - result.Poller = &ApplicationsClientCreateOrUpdatePoller{ - pt: pt, +func (client *ApplicationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, applicationName string, parameters Application, options *ApplicationsClientBeginCreateOrUpdateOptions) (*armruntime.Poller[ApplicationsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, applicationName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ApplicationsClientCreateOrUpdateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ApplicationsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) } - return result, nil } // CreateOrUpdate - Creates a new managed application. @@ -125,22 +124,16 @@ func (client *ApplicationsClient) createOrUpdateCreateRequest(ctx context.Contex // parameters - Parameters supplied to the create or update a managed application. // options - ApplicationsClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the ApplicationsClient.BeginCreateOrUpdateByID // method. -func (client *ApplicationsClient) BeginCreateOrUpdateByID(ctx context.Context, applicationID string, parameters Application, options *ApplicationsClientBeginCreateOrUpdateByIDOptions) (ApplicationsClientCreateOrUpdateByIDPollerResponse, error) { - resp, err := client.createOrUpdateByID(ctx, applicationID, parameters, options) - if err != nil { - return ApplicationsClientCreateOrUpdateByIDPollerResponse{}, err +func (client *ApplicationsClient) BeginCreateOrUpdateByID(ctx context.Context, applicationID string, parameters Application, options *ApplicationsClientBeginCreateOrUpdateByIDOptions) (*armruntime.Poller[ApplicationsClientCreateOrUpdateByIDResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdateByID(ctx, applicationID, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ApplicationsClientCreateOrUpdateByIDResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ApplicationsClientCreateOrUpdateByIDResponse](options.ResumeToken, client.pl, nil) } - result := ApplicationsClientCreateOrUpdateByIDPollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ApplicationsClient.CreateOrUpdateByID", "", resp, client.pl) - if err != nil { - return ApplicationsClientCreateOrUpdateByIDPollerResponse{}, err - } - result.Poller = &ApplicationsClientCreateOrUpdateByIDPoller{ - pt: pt, - } - return result, nil } // CreateOrUpdateByID - Creates a new managed application. @@ -181,22 +174,16 @@ func (client *ApplicationsClient) createOrUpdateByIDCreateRequest(ctx context.Co // applicationName - The name of the managed application. // options - ApplicationsClientBeginDeleteOptions contains the optional parameters for the ApplicationsClient.BeginDelete // method. -func (client *ApplicationsClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationName string, options *ApplicationsClientBeginDeleteOptions) (ApplicationsClientDeletePollerResponse, error) { - resp, err := client.deleteOperation(ctx, resourceGroupName, applicationName, options) - if err != nil { - return ApplicationsClientDeletePollerResponse{}, err - } - result := ApplicationsClientDeletePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ApplicationsClient.Delete", "", resp, client.pl) - if err != nil { - return ApplicationsClientDeletePollerResponse{}, err +func (client *ApplicationsClient) BeginDelete(ctx context.Context, resourceGroupName string, applicationName string, options *ApplicationsClientBeginDeleteOptions) (*armruntime.Poller[ApplicationsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, applicationName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ApplicationsClientDeleteResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ApplicationsClientDeleteResponse](options.ResumeToken, client.pl, nil) } - result.Poller = &ApplicationsClientDeletePoller{ - pt: pt, - } - return result, nil } // Delete - Deletes the managed application. @@ -249,22 +236,16 @@ func (client *ApplicationsClient) deleteCreateRequest(ctx context.Context, resou // /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} // options - ApplicationsClientBeginDeleteByIDOptions contains the optional parameters for the ApplicationsClient.BeginDeleteByID // method. -func (client *ApplicationsClient) BeginDeleteByID(ctx context.Context, applicationID string, options *ApplicationsClientBeginDeleteByIDOptions) (ApplicationsClientDeleteByIDPollerResponse, error) { - resp, err := client.deleteByID(ctx, applicationID, options) - if err != nil { - return ApplicationsClientDeleteByIDPollerResponse{}, err +func (client *ApplicationsClient) BeginDeleteByID(ctx context.Context, applicationID string, options *ApplicationsClientBeginDeleteByIDOptions) (*armruntime.Poller[ApplicationsClientDeleteByIDResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteByID(ctx, applicationID, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[ApplicationsClientDeleteByIDResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[ApplicationsClientDeleteByIDResponse](options.ResumeToken, client.pl, nil) } - result := ApplicationsClientDeleteByIDPollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("ApplicationsClient.DeleteByID", "", resp, client.pl) - if err != nil { - return ApplicationsClientDeleteByIDPollerResponse{}, err - } - result.Poller = &ApplicationsClientDeleteByIDPoller{ - pt: pt, - } - return result, nil } // DeleteByID - Deletes the managed application. @@ -347,7 +328,7 @@ func (client *ApplicationsClient) getCreateRequest(ctx context.Context, resource // getHandleResponse handles the Get response. func (client *ApplicationsClient) getHandleResponse(resp *http.Response) (ApplicationsClientGetResponse, error) { - result := ApplicationsClientGetResponse{RawResponse: resp} + result := ApplicationsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Application); err != nil { return ApplicationsClientGetResponse{}, err } @@ -392,7 +373,7 @@ func (client *ApplicationsClient) getByIDCreateRequest(ctx context.Context, appl // getByIDHandleResponse handles the GetByID response. func (client *ApplicationsClient) getByIDHandleResponse(resp *http.Response) (ApplicationsClientGetByIDResponse, error) { - result := ApplicationsClientGetByIDResponse{RawResponse: resp} + result := ApplicationsClientGetByIDResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Application); err != nil { return ApplicationsClientGetByIDResponse{}, err } @@ -404,16 +385,32 @@ func (client *ApplicationsClient) getByIDHandleResponse(resp *http.Response) (Ap // resourceGroupName - The name of the resource group. The name is case insensitive. // options - ApplicationsClientListByResourceGroupOptions contains the optional parameters for the ApplicationsClient.ListByResourceGroup // method. -func (client *ApplicationsClient) ListByResourceGroup(resourceGroupName string, options *ApplicationsClientListByResourceGroupOptions) *ApplicationsClientListByResourceGroupPager { - return &ApplicationsClientListByResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *ApplicationsClient) ListByResourceGroup(resourceGroupName string, options *ApplicationsClientListByResourceGroupOptions) *runtime.Pager[ApplicationsClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[ApplicationsClientListByResourceGroupResponse]{ + More: func(page ApplicationsClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ApplicationsClientListByResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ApplicationListResult.NextLink) + Fetcher: func(ctx context.Context, page *ApplicationsClientListByResourceGroupResponse) (ApplicationsClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ApplicationsClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ApplicationsClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ApplicationsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) }, - } + }) } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. @@ -440,7 +437,7 @@ func (client *ApplicationsClient) listByResourceGroupCreateRequest(ctx context.C // listByResourceGroupHandleResponse handles the ListByResourceGroup response. func (client *ApplicationsClient) listByResourceGroupHandleResponse(resp *http.Response) (ApplicationsClientListByResourceGroupResponse, error) { - result := ApplicationsClientListByResourceGroupResponse{RawResponse: resp} + result := ApplicationsClientListByResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ApplicationListResult); err != nil { return ApplicationsClientListByResourceGroupResponse{}, err } @@ -451,16 +448,32 @@ func (client *ApplicationsClient) listByResourceGroupHandleResponse(resp *http.R // If the operation fails it returns an *azcore.ResponseError type. // options - ApplicationsClientListBySubscriptionOptions contains the optional parameters for the ApplicationsClient.ListBySubscription // method. -func (client *ApplicationsClient) ListBySubscription(options *ApplicationsClientListBySubscriptionOptions) *ApplicationsClientListBySubscriptionPager { - return &ApplicationsClientListBySubscriptionPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listBySubscriptionCreateRequest(ctx, options) +func (client *ApplicationsClient) ListBySubscription(options *ApplicationsClientListBySubscriptionOptions) *runtime.Pager[ApplicationsClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PageProcessor[ApplicationsClientListBySubscriptionResponse]{ + More: func(page ApplicationsClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ApplicationsClientListBySubscriptionResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ApplicationListResult.NextLink) + Fetcher: func(ctx context.Context, page *ApplicationsClientListBySubscriptionResponse) (ApplicationsClientListBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ApplicationsClientListBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ApplicationsClientListBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ApplicationsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionHandleResponse(resp) }, - } + }) } // listBySubscriptionCreateRequest creates the ListBySubscription request. @@ -483,7 +496,7 @@ func (client *ApplicationsClient) listBySubscriptionCreateRequest(ctx context.Co // listBySubscriptionHandleResponse handles the ListBySubscription response. func (client *ApplicationsClient) listBySubscriptionHandleResponse(resp *http.Response) (ApplicationsClientListBySubscriptionResponse, error) { - result := ApplicationsClientListBySubscriptionResponse{RawResponse: resp} + result := ApplicationsClientListBySubscriptionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ApplicationListResult); err != nil { return ApplicationsClientListBySubscriptionResponse{}, err } @@ -541,7 +554,7 @@ func (client *ApplicationsClient) updateCreateRequest(ctx context.Context, resou // updateHandleResponse handles the Update response. func (client *ApplicationsClient) updateHandleResponse(resp *http.Response) (ApplicationsClientUpdateResponse, error) { - result := ApplicationsClientUpdateResponse{RawResponse: resp} + result := ApplicationsClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Application); err != nil { return ApplicationsClientUpdateResponse{}, err } @@ -589,7 +602,7 @@ func (client *ApplicationsClient) updateByIDCreateRequest(ctx context.Context, a // updateByIDHandleResponse handles the UpdateByID response. func (client *ApplicationsClient) updateByIDHandleResponse(resp *http.Response) (ApplicationsClientUpdateByIDResponse, error) { - result := ApplicationsClientUpdateByIDResponse{RawResponse: resp} + result := ApplicationsClientUpdateByIDResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Application); err != nil { return ApplicationsClientUpdateByIDResponse{}, err } diff --git a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_constants.go b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_constants.go index 2252ffb8f62a..b94dfeff851e 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_constants.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,7 +10,7 @@ package armmanagedapplications const ( moduleName = "armmanagedapplications" - moduleVersion = "v0.2.1" + moduleVersion = "v0.3.0" ) // ApplicationArtifactType - The managed application artifact type. @@ -29,11 +29,6 @@ func PossibleApplicationArtifactTypeValues() []ApplicationArtifactType { } } -// ToPtr returns a *ApplicationArtifactType pointing to the current value. -func (c ApplicationArtifactType) ToPtr() *ApplicationArtifactType { - return &c -} - // ApplicationLockLevel - The managed application lock level. type ApplicationLockLevel string @@ -52,11 +47,6 @@ func PossibleApplicationLockLevelValues() []ApplicationLockLevel { } } -// ToPtr returns a *ApplicationLockLevel pointing to the current value. -func (c ApplicationLockLevel) ToPtr() *ApplicationLockLevel { - return &c -} - // ProvisioningState - Provisioning status of the managed application. type ProvisioningState string @@ -90,8 +80,3 @@ func PossibleProvisioningStateValues() []ProvisioningState { ProvisioningStateUpdating, } } - -// ToPtr returns a *ProvisioningState pointing to the current value. -func (c ProvisioningState) ToPtr() *ProvisioningState { - return &c -} diff --git a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_models.go b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_models.go index 9cb3d46e0fc2..b84d28b531c0 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_models.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,6 @@ package armmanagedapplications -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" -) - // Application - Information about managed application. type Application struct { // REQUIRED; The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. @@ -50,23 +44,6 @@ type Application struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Application. -func (a Application) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", a.ID) - populate(objectMap, "identity", a.Identity) - populate(objectMap, "kind", a.Kind) - populate(objectMap, "location", a.Location) - populate(objectMap, "managedBy", a.ManagedBy) - populate(objectMap, "name", a.Name) - populate(objectMap, "plan", a.Plan) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "sku", a.SKU) - populate(objectMap, "tags", a.Tags) - populate(objectMap, "type", a.Type) - return json.Marshal(objectMap) -} - // ApplicationArtifact - Managed application artifact. type ApplicationArtifact struct { // The managed application artifact name. @@ -114,21 +91,6 @@ type ApplicationDefinition struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ApplicationDefinition. -func (a ApplicationDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", a.ID) - populate(objectMap, "identity", a.Identity) - populate(objectMap, "location", a.Location) - populate(objectMap, "managedBy", a.ManagedBy) - populate(objectMap, "name", a.Name) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "sku", a.SKU) - populate(objectMap, "tags", a.Tags) - populate(objectMap, "type", a.Type) - return json.Marshal(objectMap) -} - // ApplicationDefinitionListResult - List of managed application definitions. type ApplicationDefinitionListResult struct { // The URL to use for getting the next set of results. @@ -138,14 +100,6 @@ type ApplicationDefinitionListResult struct { Value []*ApplicationDefinition `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ApplicationDefinitionListResult. -func (a ApplicationDefinitionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", a.NextLink) - populate(objectMap, "value", a.Value) - return json.Marshal(objectMap) -} - // ApplicationDefinitionProperties - The managed application definition properties. type ApplicationDefinitionProperties struct { // REQUIRED; The managed application provider authorizations. @@ -161,7 +115,7 @@ type ApplicationDefinitionProperties struct { // The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject // or well-formed JSON string. - CreateUIDefinition map[string]interface{} `json:"createUiDefinition,omitempty"` + CreateUIDefinition interface{} `json:"createUiDefinition,omitempty"` // The managed application definition description. Description *string `json:"description,omitempty"` @@ -173,49 +127,38 @@ type ApplicationDefinitionProperties struct { IsEnabled *string `json:"isEnabled,omitempty"` // The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. - MainTemplate map[string]interface{} `json:"mainTemplate,omitempty"` + MainTemplate interface{} `json:"mainTemplate,omitempty"` // The managed application definition package file Uri. Use this element PackageFileURI *string `json:"packageFileUri,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ApplicationDefinitionProperties. -func (a ApplicationDefinitionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "artifacts", a.Artifacts) - populate(objectMap, "authorizations", a.Authorizations) - populate(objectMap, "createUiDefinition", a.CreateUIDefinition) - populate(objectMap, "description", a.Description) - populate(objectMap, "displayName", a.DisplayName) - populate(objectMap, "isEnabled", a.IsEnabled) - populate(objectMap, "lockLevel", a.LockLevel) - populate(objectMap, "mainTemplate", a.MainTemplate) - populate(objectMap, "packageFileUri", a.PackageFileURI) - return json.Marshal(objectMap) -} - // ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginCreateOrUpdateByID // method. type ApplicationDefinitionsClientBeginCreateOrUpdateByIDOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ApplicationDefinitionsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginCreateOrUpdate // method. type ApplicationDefinitionsClientBeginCreateOrUpdateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ApplicationDefinitionsClientBeginDeleteByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginDeleteByID // method. type ApplicationDefinitionsClientBeginDeleteByIDOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ApplicationDefinitionsClientBeginDeleteOptions contains the optional parameters for the ApplicationDefinitionsClient.BeginDelete // method. type ApplicationDefinitionsClientBeginDeleteOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ApplicationDefinitionsClientGetByIDOptions contains the optional parameters for the ApplicationDefinitionsClient.GetByID @@ -244,14 +187,6 @@ type ApplicationListResult struct { Value []*Application `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ApplicationListResult. -func (a ApplicationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", a.NextLink) - populate(objectMap, "value", a.Value) - return json.Marshal(objectMap) -} - // ApplicationPatchable - Information about managed application. type ApplicationPatchable struct { // The identity of the resource. @@ -288,23 +223,6 @@ type ApplicationPatchable struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ApplicationPatchable. -func (a ApplicationPatchable) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", a.ID) - populate(objectMap, "identity", a.Identity) - populate(objectMap, "kind", a.Kind) - populate(objectMap, "location", a.Location) - populate(objectMap, "managedBy", a.ManagedBy) - populate(objectMap, "name", a.Name) - populate(objectMap, "plan", a.Plan) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "sku", a.SKU) - populate(objectMap, "tags", a.Tags) - populate(objectMap, "type", a.Type) - return json.Marshal(objectMap) -} - // ApplicationProperties - The managed application properties. type ApplicationProperties struct { // REQUIRED; The managed resource group Id. @@ -314,10 +232,10 @@ type ApplicationProperties struct { ApplicationDefinitionID *string `json:"applicationDefinitionId,omitempty"` // Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` // READ-ONLY; Name and value pairs that define the managed application outputs. - Outputs map[string]interface{} `json:"outputs,omitempty" azure:"ro"` + Outputs interface{} `json:"outputs,omitempty" azure:"ro"` // READ-ONLY; The managed application provisioning state. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` @@ -332,10 +250,10 @@ type ApplicationPropertiesPatchable struct { ManagedResourceGroupID *string `json:"managedResourceGroupId,omitempty"` // Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` // READ-ONLY; Name and value pairs that define the managed application outputs. - Outputs map[string]interface{} `json:"outputs,omitempty" azure:"ro"` + Outputs interface{} `json:"outputs,omitempty" azure:"ro"` // READ-ONLY; The managed application provisioning state. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` @@ -356,23 +274,27 @@ type ApplicationProviderAuthorization struct { // ApplicationsClientBeginCreateOrUpdateByIDOptions contains the optional parameters for the ApplicationsClient.BeginCreateOrUpdateByID // method. type ApplicationsClientBeginCreateOrUpdateByIDOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ApplicationsClientBeginCreateOrUpdateOptions contains the optional parameters for the ApplicationsClient.BeginCreateOrUpdate // method. type ApplicationsClientBeginCreateOrUpdateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ApplicationsClientBeginDeleteByIDOptions contains the optional parameters for the ApplicationsClient.BeginDeleteByID method. type ApplicationsClientBeginDeleteByIDOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ApplicationsClientBeginDeleteOptions contains the optional parameters for the ApplicationsClient.BeginDelete method. type ApplicationsClientBeginDeleteOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // ApplicationsClientGetByIDOptions contains the optional parameters for the ApplicationsClient.GetByID method. @@ -449,20 +371,6 @@ type GenericResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type GenericResource. -func (g GenericResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "identity", g.Identity) - populate(objectMap, "location", g.Location) - populate(objectMap, "managedBy", g.ManagedBy) - populate(objectMap, "name", g.Name) - populate(objectMap, "sku", g.SKU) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) - return json.Marshal(objectMap) -} - // Identity for the resource. type Identity struct { // The identity type. @@ -506,14 +414,6 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type OperationListResult. -func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", o.NextLink) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - // Plan for the managed application. type Plan struct { // REQUIRED; The plan name. @@ -568,17 +468,6 @@ type Resource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - // SKU for the resource. type SKU struct { // REQUIRED; The SKU name. @@ -599,13 +488,3 @@ type SKU struct { // The SKU tier. Tier *string `json:"tier,omitempty"` } - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} diff --git a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_models_serde.go b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_models_serde.go new file mode 100644 index 000000000000..a9f84ecac640 --- /dev/null +++ b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_models_serde.go @@ -0,0 +1,138 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armmanagedapplications + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type Application. +func (a Application) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", a.ID) + populate(objectMap, "identity", a.Identity) + populate(objectMap, "kind", a.Kind) + populate(objectMap, "location", a.Location) + populate(objectMap, "managedBy", a.ManagedBy) + populate(objectMap, "name", a.Name) + populate(objectMap, "plan", a.Plan) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "sku", a.SKU) + populate(objectMap, "tags", a.Tags) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ApplicationDefinition. +func (a ApplicationDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", a.ID) + populate(objectMap, "identity", a.Identity) + populate(objectMap, "location", a.Location) + populate(objectMap, "managedBy", a.ManagedBy) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "sku", a.SKU) + populate(objectMap, "tags", a.Tags) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ApplicationDefinitionListResult. +func (a ApplicationDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ApplicationDefinitionProperties. +func (a ApplicationDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "artifacts", a.Artifacts) + populate(objectMap, "authorizations", a.Authorizations) + populate(objectMap, "createUiDefinition", &a.CreateUIDefinition) + populate(objectMap, "description", a.Description) + populate(objectMap, "displayName", a.DisplayName) + populate(objectMap, "isEnabled", a.IsEnabled) + populate(objectMap, "lockLevel", a.LockLevel) + populate(objectMap, "mainTemplate", &a.MainTemplate) + populate(objectMap, "packageFileUri", a.PackageFileURI) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ApplicationListResult. +func (a ApplicationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ApplicationPatchable. +func (a ApplicationPatchable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", a.ID) + populate(objectMap, "identity", a.Identity) + populate(objectMap, "kind", a.Kind) + populate(objectMap, "location", a.Location) + populate(objectMap, "managedBy", a.ManagedBy) + populate(objectMap, "name", a.Name) + populate(objectMap, "plan", a.Plan) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "sku", a.SKU) + populate(objectMap, "tags", a.Tags) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type GenericResource. +func (g GenericResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", g.ID) + populate(objectMap, "identity", g.Identity) + populate(objectMap, "location", g.Location) + populate(objectMap, "managedBy", g.ManagedBy) + populate(objectMap, "name", g.Name) + populate(objectMap, "sku", g.SKU) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", r.ID) + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "tags", r.Tags) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} diff --git a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_pagers.go b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_pagers.go deleted file mode 100644 index f76340caeb74..000000000000 --- a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_pagers.go +++ /dev/null @@ -1,233 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armmanagedapplications - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// ApplicationClientListOperationsPager provides operations for iterating over paged responses. -type ApplicationClientListOperationsPager struct { - client *ApplicationClient - current ApplicationClientListOperationsResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ApplicationClientListOperationsResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ApplicationClientListOperationsPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ApplicationClientListOperationsPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.OperationListResult.NextLink == nil || len(*p.current.OperationListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listOperationsHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ApplicationClientListOperationsResponse page. -func (p *ApplicationClientListOperationsPager) PageResponse() ApplicationClientListOperationsResponse { - return p.current -} - -// ApplicationDefinitionsClientListByResourceGroupPager provides operations for iterating over paged responses. -type ApplicationDefinitionsClientListByResourceGroupPager struct { - client *ApplicationDefinitionsClient - current ApplicationDefinitionsClientListByResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ApplicationDefinitionsClientListByResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ApplicationDefinitionsClientListByResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ApplicationDefinitionsClientListByResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ApplicationDefinitionListResult.NextLink == nil || len(*p.current.ApplicationDefinitionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ApplicationDefinitionsClientListByResourceGroupResponse page. -func (p *ApplicationDefinitionsClientListByResourceGroupPager) PageResponse() ApplicationDefinitionsClientListByResourceGroupResponse { - return p.current -} - -// ApplicationsClientListByResourceGroupPager provides operations for iterating over paged responses. -type ApplicationsClientListByResourceGroupPager struct { - client *ApplicationsClient - current ApplicationsClientListByResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ApplicationsClientListByResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ApplicationsClientListByResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ApplicationsClientListByResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ApplicationListResult.NextLink == nil || len(*p.current.ApplicationListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ApplicationsClientListByResourceGroupResponse page. -func (p *ApplicationsClientListByResourceGroupPager) PageResponse() ApplicationsClientListByResourceGroupResponse { - return p.current -} - -// ApplicationsClientListBySubscriptionPager provides operations for iterating over paged responses. -type ApplicationsClientListBySubscriptionPager struct { - client *ApplicationsClient - current ApplicationsClientListBySubscriptionResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ApplicationsClientListBySubscriptionResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ApplicationsClientListBySubscriptionPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ApplicationsClientListBySubscriptionPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ApplicationListResult.NextLink == nil || len(*p.current.ApplicationListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listBySubscriptionHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ApplicationsClientListBySubscriptionResponse page. -func (p *ApplicationsClientListBySubscriptionPager) PageResponse() ApplicationsClientListBySubscriptionResponse { - return p.current -} diff --git a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_pollers.go b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_pollers.go deleted file mode 100644 index 74dca9a074c3..000000000000 --- a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_pollers.go +++ /dev/null @@ -1,359 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armmanagedapplications - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "net/http" -) - -// ApplicationDefinitionsClientCreateOrUpdateByIDPoller provides polling facilities until the operation reaches a terminal state. -type ApplicationDefinitionsClientCreateOrUpdateByIDPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ApplicationDefinitionsClientCreateOrUpdateByIDPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ApplicationDefinitionsClientCreateOrUpdateByIDPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ApplicationDefinitionsClientCreateOrUpdateByIDResponse will be returned. -func (p *ApplicationDefinitionsClientCreateOrUpdateByIDPoller) FinalResponse(ctx context.Context) (ApplicationDefinitionsClientCreateOrUpdateByIDResponse, error) { - respType := ApplicationDefinitionsClientCreateOrUpdateByIDResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.ApplicationDefinition) - if err != nil { - return ApplicationDefinitionsClientCreateOrUpdateByIDResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ApplicationDefinitionsClientCreateOrUpdateByIDPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ApplicationDefinitionsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state. -type ApplicationDefinitionsClientCreateOrUpdatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ApplicationDefinitionsClientCreateOrUpdatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ApplicationDefinitionsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ApplicationDefinitionsClientCreateOrUpdateResponse will be returned. -func (p *ApplicationDefinitionsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ApplicationDefinitionsClientCreateOrUpdateResponse, error) { - respType := ApplicationDefinitionsClientCreateOrUpdateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.ApplicationDefinition) - if err != nil { - return ApplicationDefinitionsClientCreateOrUpdateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ApplicationDefinitionsClientCreateOrUpdatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ApplicationDefinitionsClientDeleteByIDPoller provides polling facilities until the operation reaches a terminal state. -type ApplicationDefinitionsClientDeleteByIDPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ApplicationDefinitionsClientDeleteByIDPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ApplicationDefinitionsClientDeleteByIDPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ApplicationDefinitionsClientDeleteByIDResponse will be returned. -func (p *ApplicationDefinitionsClientDeleteByIDPoller) FinalResponse(ctx context.Context) (ApplicationDefinitionsClientDeleteByIDResponse, error) { - respType := ApplicationDefinitionsClientDeleteByIDResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return ApplicationDefinitionsClientDeleteByIDResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ApplicationDefinitionsClientDeleteByIDPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ApplicationDefinitionsClientDeletePoller provides polling facilities until the operation reaches a terminal state. -type ApplicationDefinitionsClientDeletePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ApplicationDefinitionsClientDeletePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ApplicationDefinitionsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ApplicationDefinitionsClientDeleteResponse will be returned. -func (p *ApplicationDefinitionsClientDeletePoller) FinalResponse(ctx context.Context) (ApplicationDefinitionsClientDeleteResponse, error) { - respType := ApplicationDefinitionsClientDeleteResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return ApplicationDefinitionsClientDeleteResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ApplicationDefinitionsClientDeletePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ApplicationsClientCreateOrUpdateByIDPoller provides polling facilities until the operation reaches a terminal state. -type ApplicationsClientCreateOrUpdateByIDPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ApplicationsClientCreateOrUpdateByIDPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ApplicationsClientCreateOrUpdateByIDPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ApplicationsClientCreateOrUpdateByIDResponse will be returned. -func (p *ApplicationsClientCreateOrUpdateByIDPoller) FinalResponse(ctx context.Context) (ApplicationsClientCreateOrUpdateByIDResponse, error) { - respType := ApplicationsClientCreateOrUpdateByIDResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.Application) - if err != nil { - return ApplicationsClientCreateOrUpdateByIDResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ApplicationsClientCreateOrUpdateByIDPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ApplicationsClientCreateOrUpdatePoller provides polling facilities until the operation reaches a terminal state. -type ApplicationsClientCreateOrUpdatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ApplicationsClientCreateOrUpdatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ApplicationsClientCreateOrUpdatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ApplicationsClientCreateOrUpdateResponse will be returned. -func (p *ApplicationsClientCreateOrUpdatePoller) FinalResponse(ctx context.Context) (ApplicationsClientCreateOrUpdateResponse, error) { - respType := ApplicationsClientCreateOrUpdateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.Application) - if err != nil { - return ApplicationsClientCreateOrUpdateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ApplicationsClientCreateOrUpdatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ApplicationsClientDeleteByIDPoller provides polling facilities until the operation reaches a terminal state. -type ApplicationsClientDeleteByIDPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ApplicationsClientDeleteByIDPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ApplicationsClientDeleteByIDPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ApplicationsClientDeleteByIDResponse will be returned. -func (p *ApplicationsClientDeleteByIDPoller) FinalResponse(ctx context.Context) (ApplicationsClientDeleteByIDResponse, error) { - respType := ApplicationsClientDeleteByIDResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return ApplicationsClientDeleteByIDResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ApplicationsClientDeleteByIDPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// ApplicationsClientDeletePoller provides polling facilities until the operation reaches a terminal state. -type ApplicationsClientDeletePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *ApplicationsClientDeletePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *ApplicationsClientDeletePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final ApplicationsClientDeleteResponse will be returned. -func (p *ApplicationsClientDeletePoller) FinalResponse(ctx context.Context) (ApplicationsClientDeleteResponse, error) { - respType := ApplicationsClientDeleteResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return ApplicationsClientDeleteResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *ApplicationsClientDeletePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} diff --git a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_response_types.go b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_response_types.go index 71ef06b7e78d..116f8b09d9c9 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_response_types.go +++ b/sdk/resourcemanager/resources/armmanagedapplications/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,521 +8,92 @@ package armmanagedapplications -import ( - "context" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "net/http" - "time" -) - // ApplicationClientListOperationsResponse contains the response from method ApplicationClient.ListOperations. type ApplicationClientListOperationsResponse struct { - ApplicationClientListOperationsResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationClientListOperationsResult contains the result from method ApplicationClient.ListOperations. -type ApplicationClientListOperationsResult struct { OperationListResult } -// ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse contains the response from method ApplicationDefinitionsClient.CreateOrUpdateByID. -type ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse struct { - // Poller contains an initialized poller. - Poller *ApplicationDefinitionsClientCreateOrUpdateByIDPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ApplicationDefinitionsClientCreateOrUpdateByIDResponse, error) { - respType := ApplicationDefinitionsClientCreateOrUpdateByIDResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.ApplicationDefinition) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse from the provided client and resume token. -func (l *ApplicationDefinitionsClientCreateOrUpdateByIDPollerResponse) Resume(ctx context.Context, client *ApplicationDefinitionsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ApplicationDefinitionsClient.CreateOrUpdateByID", token, client.pl) - if err != nil { - return err - } - poller := &ApplicationDefinitionsClientCreateOrUpdateByIDPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ApplicationDefinitionsClientCreateOrUpdateByIDResponse contains the response from method ApplicationDefinitionsClient.CreateOrUpdateByID. type ApplicationDefinitionsClientCreateOrUpdateByIDResponse struct { - ApplicationDefinitionsClientCreateOrUpdateByIDResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationDefinitionsClientCreateOrUpdateByIDResult contains the result from method ApplicationDefinitionsClient.CreateOrUpdateByID. -type ApplicationDefinitionsClientCreateOrUpdateByIDResult struct { ApplicationDefinition } -// ApplicationDefinitionsClientCreateOrUpdatePollerResponse contains the response from method ApplicationDefinitionsClient.CreateOrUpdate. -type ApplicationDefinitionsClientCreateOrUpdatePollerResponse struct { - // Poller contains an initialized poller. - Poller *ApplicationDefinitionsClientCreateOrUpdatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ApplicationDefinitionsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ApplicationDefinitionsClientCreateOrUpdateResponse, error) { - respType := ApplicationDefinitionsClientCreateOrUpdateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.ApplicationDefinition) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ApplicationDefinitionsClientCreateOrUpdatePollerResponse from the provided client and resume token. -func (l *ApplicationDefinitionsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ApplicationDefinitionsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ApplicationDefinitionsClient.CreateOrUpdate", token, client.pl) - if err != nil { - return err - } - poller := &ApplicationDefinitionsClientCreateOrUpdatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ApplicationDefinitionsClientCreateOrUpdateResponse contains the response from method ApplicationDefinitionsClient.CreateOrUpdate. type ApplicationDefinitionsClientCreateOrUpdateResponse struct { - ApplicationDefinitionsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationDefinitionsClientCreateOrUpdateResult contains the result from method ApplicationDefinitionsClient.CreateOrUpdate. -type ApplicationDefinitionsClientCreateOrUpdateResult struct { ApplicationDefinition } -// ApplicationDefinitionsClientDeleteByIDPollerResponse contains the response from method ApplicationDefinitionsClient.DeleteByID. -type ApplicationDefinitionsClientDeleteByIDPollerResponse struct { - // Poller contains an initialized poller. - Poller *ApplicationDefinitionsClientDeleteByIDPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ApplicationDefinitionsClientDeleteByIDPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ApplicationDefinitionsClientDeleteByIDResponse, error) { - respType := ApplicationDefinitionsClientDeleteByIDResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ApplicationDefinitionsClientDeleteByIDPollerResponse from the provided client and resume token. -func (l *ApplicationDefinitionsClientDeleteByIDPollerResponse) Resume(ctx context.Context, client *ApplicationDefinitionsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ApplicationDefinitionsClient.DeleteByID", token, client.pl) - if err != nil { - return err - } - poller := &ApplicationDefinitionsClientDeleteByIDPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ApplicationDefinitionsClientDeleteByIDResponse contains the response from method ApplicationDefinitionsClient.DeleteByID. type ApplicationDefinitionsClientDeleteByIDResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationDefinitionsClientDeletePollerResponse contains the response from method ApplicationDefinitionsClient.Delete. -type ApplicationDefinitionsClientDeletePollerResponse struct { - // Poller contains an initialized poller. - Poller *ApplicationDefinitionsClientDeletePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ApplicationDefinitionsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ApplicationDefinitionsClientDeleteResponse, error) { - respType := ApplicationDefinitionsClientDeleteResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ApplicationDefinitionsClientDeletePollerResponse from the provided client and resume token. -func (l *ApplicationDefinitionsClientDeletePollerResponse) Resume(ctx context.Context, client *ApplicationDefinitionsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ApplicationDefinitionsClient.Delete", token, client.pl) - if err != nil { - return err - } - poller := &ApplicationDefinitionsClientDeletePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil + // placeholder for future response values } // ApplicationDefinitionsClientDeleteResponse contains the response from method ApplicationDefinitionsClient.Delete. type ApplicationDefinitionsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ApplicationDefinitionsClientGetByIDResponse contains the response from method ApplicationDefinitionsClient.GetByID. type ApplicationDefinitionsClientGetByIDResponse struct { - ApplicationDefinitionsClientGetByIDResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationDefinitionsClientGetByIDResult contains the result from method ApplicationDefinitionsClient.GetByID. -type ApplicationDefinitionsClientGetByIDResult struct { ApplicationDefinition } // ApplicationDefinitionsClientGetResponse contains the response from method ApplicationDefinitionsClient.Get. type ApplicationDefinitionsClientGetResponse struct { - ApplicationDefinitionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationDefinitionsClientGetResult contains the result from method ApplicationDefinitionsClient.Get. -type ApplicationDefinitionsClientGetResult struct { ApplicationDefinition } // ApplicationDefinitionsClientListByResourceGroupResponse contains the response from method ApplicationDefinitionsClient.ListByResourceGroup. type ApplicationDefinitionsClientListByResourceGroupResponse struct { - ApplicationDefinitionsClientListByResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationDefinitionsClientListByResourceGroupResult contains the result from method ApplicationDefinitionsClient.ListByResourceGroup. -type ApplicationDefinitionsClientListByResourceGroupResult struct { ApplicationDefinitionListResult } -// ApplicationsClientCreateOrUpdateByIDPollerResponse contains the response from method ApplicationsClient.CreateOrUpdateByID. -type ApplicationsClientCreateOrUpdateByIDPollerResponse struct { - // Poller contains an initialized poller. - Poller *ApplicationsClientCreateOrUpdateByIDPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ApplicationsClientCreateOrUpdateByIDPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ApplicationsClientCreateOrUpdateByIDResponse, error) { - respType := ApplicationsClientCreateOrUpdateByIDResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.Application) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ApplicationsClientCreateOrUpdateByIDPollerResponse from the provided client and resume token. -func (l *ApplicationsClientCreateOrUpdateByIDPollerResponse) Resume(ctx context.Context, client *ApplicationsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ApplicationsClient.CreateOrUpdateByID", token, client.pl) - if err != nil { - return err - } - poller := &ApplicationsClientCreateOrUpdateByIDPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ApplicationsClientCreateOrUpdateByIDResponse contains the response from method ApplicationsClient.CreateOrUpdateByID. type ApplicationsClientCreateOrUpdateByIDResponse struct { - ApplicationsClientCreateOrUpdateByIDResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationsClientCreateOrUpdateByIDResult contains the result from method ApplicationsClient.CreateOrUpdateByID. -type ApplicationsClientCreateOrUpdateByIDResult struct { Application } -// ApplicationsClientCreateOrUpdatePollerResponse contains the response from method ApplicationsClient.CreateOrUpdate. -type ApplicationsClientCreateOrUpdatePollerResponse struct { - // Poller contains an initialized poller. - Poller *ApplicationsClientCreateOrUpdatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ApplicationsClientCreateOrUpdatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ApplicationsClientCreateOrUpdateResponse, error) { - respType := ApplicationsClientCreateOrUpdateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.Application) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ApplicationsClientCreateOrUpdatePollerResponse from the provided client and resume token. -func (l *ApplicationsClientCreateOrUpdatePollerResponse) Resume(ctx context.Context, client *ApplicationsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ApplicationsClient.CreateOrUpdate", token, client.pl) - if err != nil { - return err - } - poller := &ApplicationsClientCreateOrUpdatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ApplicationsClientCreateOrUpdateResponse contains the response from method ApplicationsClient.CreateOrUpdate. type ApplicationsClientCreateOrUpdateResponse struct { - ApplicationsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationsClientCreateOrUpdateResult contains the result from method ApplicationsClient.CreateOrUpdate. -type ApplicationsClientCreateOrUpdateResult struct { Application } -// ApplicationsClientDeleteByIDPollerResponse contains the response from method ApplicationsClient.DeleteByID. -type ApplicationsClientDeleteByIDPollerResponse struct { - // Poller contains an initialized poller. - Poller *ApplicationsClientDeleteByIDPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ApplicationsClientDeleteByIDPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ApplicationsClientDeleteByIDResponse, error) { - respType := ApplicationsClientDeleteByIDResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ApplicationsClientDeleteByIDPollerResponse from the provided client and resume token. -func (l *ApplicationsClientDeleteByIDPollerResponse) Resume(ctx context.Context, client *ApplicationsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ApplicationsClient.DeleteByID", token, client.pl) - if err != nil { - return err - } - poller := &ApplicationsClientDeleteByIDPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // ApplicationsClientDeleteByIDResponse contains the response from method ApplicationsClient.DeleteByID. type ApplicationsClientDeleteByIDResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationsClientDeletePollerResponse contains the response from method ApplicationsClient.Delete. -type ApplicationsClientDeletePollerResponse struct { - // Poller contains an initialized poller. - Poller *ApplicationsClientDeletePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l ApplicationsClientDeletePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (ApplicationsClientDeleteResponse, error) { - respType := ApplicationsClientDeleteResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a ApplicationsClientDeletePollerResponse from the provided client and resume token. -func (l *ApplicationsClientDeletePollerResponse) Resume(ctx context.Context, client *ApplicationsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("ApplicationsClient.Delete", token, client.pl) - if err != nil { - return err - } - poller := &ApplicationsClientDeletePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil + // placeholder for future response values } // ApplicationsClientDeleteResponse contains the response from method ApplicationsClient.Delete. type ApplicationsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ApplicationsClientGetByIDResponse contains the response from method ApplicationsClient.GetByID. type ApplicationsClientGetByIDResponse struct { - ApplicationsClientGetByIDResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationsClientGetByIDResult contains the result from method ApplicationsClient.GetByID. -type ApplicationsClientGetByIDResult struct { Application } // ApplicationsClientGetResponse contains the response from method ApplicationsClient.Get. type ApplicationsClientGetResponse struct { - ApplicationsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationsClientGetResult contains the result from method ApplicationsClient.Get. -type ApplicationsClientGetResult struct { Application } // ApplicationsClientListByResourceGroupResponse contains the response from method ApplicationsClient.ListByResourceGroup. type ApplicationsClientListByResourceGroupResponse struct { - ApplicationsClientListByResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationsClientListByResourceGroupResult contains the result from method ApplicationsClient.ListByResourceGroup. -type ApplicationsClientListByResourceGroupResult struct { ApplicationListResult } // ApplicationsClientListBySubscriptionResponse contains the response from method ApplicationsClient.ListBySubscription. type ApplicationsClientListBySubscriptionResponse struct { - ApplicationsClientListBySubscriptionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationsClientListBySubscriptionResult contains the result from method ApplicationsClient.ListBySubscription. -type ApplicationsClientListBySubscriptionResult struct { ApplicationListResult } // ApplicationsClientUpdateByIDResponse contains the response from method ApplicationsClient.UpdateByID. type ApplicationsClientUpdateByIDResponse struct { - ApplicationsClientUpdateByIDResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationsClientUpdateByIDResult contains the result from method ApplicationsClient.UpdateByID. -type ApplicationsClientUpdateByIDResult struct { Application } // ApplicationsClientUpdateResponse contains the response from method ApplicationsClient.Update. type ApplicationsClientUpdateResponse struct { - ApplicationsClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ApplicationsClientUpdateResult contains the result from method ApplicationsClient.Update. -type ApplicationsClientUpdateResult struct { Application } diff --git a/sdk/resourcemanager/resources/armpolicy/CHANGELOG.md b/sdk/resourcemanager/resources/armpolicy/CHANGELOG.md index 85724582202d..6b398f8c67b8 100644 --- a/sdk/resourcemanager/resources/armpolicy/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armpolicy/CHANGELOG.md @@ -1,5 +1,256 @@ # Release History +## 0.4.0 (2022-04-14) +### Breaking Changes + +- Function `*AssignmentsClient.List` return value(s) have been changed from `(*AssignmentsClientListPager)` to `(*runtime.Pager[AssignmentsClientListResponse])` +- Function `*SetDefinitionsClient.ListBuiltIn` return value(s) have been changed from `(*SetDefinitionsClientListBuiltInPager)` to `(*runtime.Pager[SetDefinitionsClientListBuiltInResponse])` +- Function `NewDefinitionsClient` return value(s) have been changed from `(*DefinitionsClient)` to `(*DefinitionsClient, error)` +- Function `*AssignmentsClient.ListForManagementGroup` return value(s) have been changed from `(*AssignmentsClientListForManagementGroupPager)` to `(*runtime.Pager[AssignmentsClientListForManagementGroupResponse])` +- Function `*ExemptionsClient.ListForResourceGroup` return value(s) have been changed from `(*ExemptionsClientListForResourceGroupPager)` to `(*runtime.Pager[ExemptionsClientListForResourceGroupResponse])` +- Function `*DefinitionsClient.ListByManagementGroup` return value(s) have been changed from `(*DefinitionsClientListByManagementGroupPager)` to `(*runtime.Pager[DefinitionsClientListByManagementGroupResponse])` +- Function `*ExemptionsClient.ListForResource` return value(s) have been changed from `(*ExemptionsClientListForResourcePager)` to `(*runtime.Pager[ExemptionsClientListForResourceResponse])` +- Function `NewAssignmentsClient` return value(s) have been changed from `(*AssignmentsClient)` to `(*AssignmentsClient, error)` +- Function `*AssignmentsClient.ListForResource` return value(s) have been changed from `(*AssignmentsClientListForResourcePager)` to `(*runtime.Pager[AssignmentsClientListForResourceResponse])` +- Function `*SetDefinitionsClient.ListByManagementGroup` return value(s) have been changed from `(*SetDefinitionsClientListByManagementGroupPager)` to `(*runtime.Pager[SetDefinitionsClientListByManagementGroupResponse])` +- Function `NewSetDefinitionsClient` return value(s) have been changed from `(*SetDefinitionsClient)` to `(*SetDefinitionsClient, error)` +- Function `*DataPolicyManifestsClient.List` return value(s) have been changed from `(*DataPolicyManifestsClientListPager)` to `(*runtime.Pager[DataPolicyManifestsClientListResponse])` +- Function `*DefinitionsClient.List` return value(s) have been changed from `(*DefinitionsClientListPager)` to `(*runtime.Pager[DefinitionsClientListResponse])` +- Function `*DefinitionsClient.ListBuiltIn` return value(s) have been changed from `(*DefinitionsClientListBuiltInPager)` to `(*runtime.Pager[DefinitionsClientListBuiltInResponse])` +- Function `NewExemptionsClient` return value(s) have been changed from `(*ExemptionsClient)` to `(*ExemptionsClient, error)` +- Function `NewDataPolicyManifestsClient` return value(s) have been changed from `(*DataPolicyManifestsClient)` to `(*DataPolicyManifestsClient, error)` +- Function `*SetDefinitionsClient.List` return value(s) have been changed from `(*SetDefinitionsClientListPager)` to `(*runtime.Pager[SetDefinitionsClientListResponse])` +- Function `*AssignmentsClient.ListForResourceGroup` return value(s) have been changed from `(*AssignmentsClientListForResourceGroupPager)` to `(*runtime.Pager[AssignmentsClientListForResourceGroupResponse])` +- Function `*ExemptionsClient.List` return value(s) have been changed from `(*ExemptionsClientListPager)` to `(*runtime.Pager[ExemptionsClientListResponse])` +- Function `*ExemptionsClient.ListForManagementGroup` return value(s) have been changed from `(*ExemptionsClientListForManagementGroupPager)` to `(*runtime.Pager[ExemptionsClientListForManagementGroupResponse])` +- Function `*ExemptionsClientListForResourcePager.Err` has been removed +- Function `*SetDefinitionsClientListPager.PageResponse` has been removed +- Function `*AssignmentsClientListPager.NextPage` has been removed +- Function `*DefinitionsClientListBuiltInPager.PageResponse` has been removed +- Function `AliasPathAttributes.ToPtr` has been removed +- Function `*DefinitionsClientListByManagementGroupPager.NextPage` has been removed +- Function `*SetDefinitionsClientListByManagementGroupPager.Err` has been removed +- Function `*AssignmentsClientListForResourcePager.Err` has been removed +- Function `*ExemptionsClientListForResourcePager.NextPage` has been removed +- Function `*AssignmentsClientListForResourceGroupPager.PageResponse` has been removed +- Function `AliasPathTokenType.ToPtr` has been removed +- Function `ParameterType.ToPtr` has been removed +- Function `*ExemptionsClientListForResourceGroupPager.Err` has been removed +- Function `ResourceIdentityType.ToPtr` has been removed +- Function `*ExemptionsClientListForResourceGroupPager.PageResponse` has been removed +- Function `*ExemptionsClientListForManagementGroupPager.Err` has been removed +- Function `CreatedByType.ToPtr` has been removed +- Function `*DataPolicyManifestsClientListPager.PageResponse` has been removed +- Function `AliasType.ToPtr` has been removed +- Function `EnforcementMode.ToPtr` has been removed +- Function `*ExemptionsClientListForResourcePager.PageResponse` has been removed +- Function `AliasPatternType.ToPtr` has been removed +- Function `*ExemptionsClientListForManagementGroupPager.NextPage` has been removed +- Function `*SetDefinitionsClientListByManagementGroupPager.PageResponse` has been removed +- Function `*DefinitionsClientListBuiltInPager.Err` has been removed +- Function `ExemptionCategory.ToPtr` has been removed +- Function `*AssignmentsClientListForResourceGroupPager.NextPage` has been removed +- Function `*DataPolicyManifestsClientListPager.Err` has been removed +- Function `*AssignmentsClientListForResourceGroupPager.Err` has been removed +- Function `*SetDefinitionsClientListByManagementGroupPager.NextPage` has been removed +- Function `*AssignmentsClientListForManagementGroupPager.PageResponse` has been removed +- Function `*AssignmentsClientListPager.Err` has been removed +- Function `*ExemptionsClientListPager.PageResponse` has been removed +- Function `*ExemptionsClientListPager.Err` has been removed +- Function `*AssignmentsClientListForResourcePager.NextPage` has been removed +- Function `*ExemptionsClientListForResourceGroupPager.NextPage` has been removed +- Function `*AssignmentsClientListPager.PageResponse` has been removed +- Function `PolicyType.ToPtr` has been removed +- Function `*SetDefinitionsClientListPager.NextPage` has been removed +- Function `*DefinitionsClientListPager.PageResponse` has been removed +- Function `*DefinitionsClientListByManagementGroupPager.Err` has been removed +- Function `*ExemptionsClientListForManagementGroupPager.PageResponse` has been removed +- Function `*DefinitionsClientListPager.NextPage` has been removed +- Function `*DefinitionsClientListBuiltInPager.NextPage` has been removed +- Function `*AssignmentsClientListForManagementGroupPager.NextPage` has been removed +- Function `*DefinitionsClientListPager.Err` has been removed +- Function `*SetDefinitionsClientListPager.Err` has been removed +- Function `*AssignmentsClientListForManagementGroupPager.Err` has been removed +- Function `*DefinitionsClientListByManagementGroupPager.PageResponse` has been removed +- Function `*DataPolicyManifestsClientListPager.NextPage` has been removed +- Function `*ExemptionsClientListPager.NextPage` has been removed +- Function `*SetDefinitionsClientListBuiltInPager.NextPage` has been removed +- Function `*AssignmentsClientListForResourcePager.PageResponse` has been removed +- Function `*SetDefinitionsClientListBuiltInPager.Err` has been removed +- Function `*SetDefinitionsClientListBuiltInPager.PageResponse` has been removed +- Struct `AssignmentsClientCreateByIDResult` has been removed +- Struct `AssignmentsClientCreateResult` has been removed +- Struct `AssignmentsClientDeleteByIDResult` has been removed +- Struct `AssignmentsClientDeleteResult` has been removed +- Struct `AssignmentsClientGetByIDResult` has been removed +- Struct `AssignmentsClientGetResult` has been removed +- Struct `AssignmentsClientListForManagementGroupPager` has been removed +- Struct `AssignmentsClientListForManagementGroupResult` has been removed +- Struct `AssignmentsClientListForResourceGroupPager` has been removed +- Struct `AssignmentsClientListForResourceGroupResult` has been removed +- Struct `AssignmentsClientListForResourcePager` has been removed +- Struct `AssignmentsClientListForResourceResult` has been removed +- Struct `AssignmentsClientListPager` has been removed +- Struct `AssignmentsClientListResult` has been removed +- Struct `AssignmentsClientUpdateByIDResult` has been removed +- Struct `AssignmentsClientUpdateResult` has been removed +- Struct `DataPolicyManifestsClientGetByPolicyModeResult` has been removed +- Struct `DataPolicyManifestsClientListPager` has been removed +- Struct `DataPolicyManifestsClientListResult` has been removed +- Struct `DefinitionsClientCreateOrUpdateAtManagementGroupResult` has been removed +- Struct `DefinitionsClientCreateOrUpdateResult` has been removed +- Struct `DefinitionsClientGetAtManagementGroupResult` has been removed +- Struct `DefinitionsClientGetBuiltInResult` has been removed +- Struct `DefinitionsClientGetResult` has been removed +- Struct `DefinitionsClientListBuiltInPager` has been removed +- Struct `DefinitionsClientListBuiltInResult` has been removed +- Struct `DefinitionsClientListByManagementGroupPager` has been removed +- Struct `DefinitionsClientListByManagementGroupResult` has been removed +- Struct `DefinitionsClientListPager` has been removed +- Struct `DefinitionsClientListResult` has been removed +- Struct `ExemptionsClientCreateOrUpdateResult` has been removed +- Struct `ExemptionsClientGetResult` has been removed +- Struct `ExemptionsClientListForManagementGroupPager` has been removed +- Struct `ExemptionsClientListForManagementGroupResult` has been removed +- Struct `ExemptionsClientListForResourceGroupPager` has been removed +- Struct `ExemptionsClientListForResourceGroupResult` has been removed +- Struct `ExemptionsClientListForResourcePager` has been removed +- Struct `ExemptionsClientListForResourceResult` has been removed +- Struct `ExemptionsClientListPager` has been removed +- Struct `ExemptionsClientListResult` has been removed +- Struct `SetDefinitionsClientCreateOrUpdateAtManagementGroupResult` has been removed +- Struct `SetDefinitionsClientCreateOrUpdateResult` has been removed +- Struct `SetDefinitionsClientGetAtManagementGroupResult` has been removed +- Struct `SetDefinitionsClientGetBuiltInResult` has been removed +- Struct `SetDefinitionsClientGetResult` has been removed +- Struct `SetDefinitionsClientListBuiltInPager` has been removed +- Struct `SetDefinitionsClientListBuiltInResult` has been removed +- Struct `SetDefinitionsClientListByManagementGroupPager` has been removed +- Struct `SetDefinitionsClientListByManagementGroupResult` has been removed +- Struct `SetDefinitionsClientListPager` has been removed +- Struct `SetDefinitionsClientListResult` has been removed +- Field `DefinitionsClientGetResult` of struct `DefinitionsClientGetResponse` has been removed +- Field `RawResponse` of struct `DefinitionsClientGetResponse` has been removed +- Field `SetDefinitionsClientListByManagementGroupResult` of struct `SetDefinitionsClientListByManagementGroupResponse` has been removed +- Field `RawResponse` of struct `SetDefinitionsClientListByManagementGroupResponse` has been removed +- Field `AssignmentsClientCreateResult` of struct `AssignmentsClientCreateResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientCreateResponse` has been removed +- Field `AssignmentsClientUpdateResult` of struct `AssignmentsClientUpdateResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientUpdateResponse` has been removed +- Field `ExemptionsClientListForResourceResult` of struct `ExemptionsClientListForResourceResponse` has been removed +- Field `RawResponse` of struct `ExemptionsClientListForResourceResponse` has been removed +- Field `SetDefinitionsClientGetAtManagementGroupResult` of struct `SetDefinitionsClientGetAtManagementGroupResponse` has been removed +- Field `RawResponse` of struct `SetDefinitionsClientGetAtManagementGroupResponse` has been removed +- Field `AssignmentsClientUpdateByIDResult` of struct `AssignmentsClientUpdateByIDResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientUpdateByIDResponse` has been removed +- Field `RawResponse` of struct `SetDefinitionsClientDeleteResponse` has been removed +- Field `AssignmentsClientListForManagementGroupResult` of struct `AssignmentsClientListForManagementGroupResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientListForManagementGroupResponse` has been removed +- Field `SetDefinitionsClientGetResult` of struct `SetDefinitionsClientGetResponse` has been removed +- Field `RawResponse` of struct `SetDefinitionsClientGetResponse` has been removed +- Field `RawResponse` of struct `ExemptionsClientDeleteResponse` has been removed +- Field `DataPolicyManifestsClientGetByPolicyModeResult` of struct `DataPolicyManifestsClientGetByPolicyModeResponse` has been removed +- Field `RawResponse` of struct `DataPolicyManifestsClientGetByPolicyModeResponse` has been removed +- Field `DataPolicyManifestsClientListResult` of struct `DataPolicyManifestsClientListResponse` has been removed +- Field `RawResponse` of struct `DataPolicyManifestsClientListResponse` has been removed +- Field `ExemptionsClientGetResult` of struct `ExemptionsClientGetResponse` has been removed +- Field `RawResponse` of struct `ExemptionsClientGetResponse` has been removed +- Field `ExemptionsClientListForManagementGroupResult` of struct `ExemptionsClientListForManagementGroupResponse` has been removed +- Field `RawResponse` of struct `ExemptionsClientListForManagementGroupResponse` has been removed +- Field `AssignmentsClientListForResourceResult` of struct `AssignmentsClientListForResourceResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientListForResourceResponse` has been removed +- Field `ExemptionsClientListResult` of struct `ExemptionsClientListResponse` has been removed +- Field `RawResponse` of struct `ExemptionsClientListResponse` has been removed +- Field `DefinitionsClientCreateOrUpdateAtManagementGroupResult` of struct `DefinitionsClientCreateOrUpdateAtManagementGroupResponse` has been removed +- Field `RawResponse` of struct `DefinitionsClientCreateOrUpdateAtManagementGroupResponse` has been removed +- Field `SetDefinitionsClientListBuiltInResult` of struct `SetDefinitionsClientListBuiltInResponse` has been removed +- Field `RawResponse` of struct `SetDefinitionsClientListBuiltInResponse` has been removed +- Field `AssignmentsClientGetResult` of struct `AssignmentsClientGetResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientGetResponse` has been removed +- Field `AssignmentsClientListForResourceGroupResult` of struct `AssignmentsClientListForResourceGroupResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientListForResourceGroupResponse` has been removed +- Field `DefinitionsClientListByManagementGroupResult` of struct `DefinitionsClientListByManagementGroupResponse` has been removed +- Field `RawResponse` of struct `DefinitionsClientListByManagementGroupResponse` has been removed +- Field `AssignmentsClientListResult` of struct `AssignmentsClientListResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientListResponse` has been removed +- Field `AssignmentsClientCreateByIDResult` of struct `AssignmentsClientCreateByIDResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientCreateByIDResponse` has been removed +- Field `AssignmentsClientGetByIDResult` of struct `AssignmentsClientGetByIDResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientGetByIDResponse` has been removed +- Field `DefinitionsClientListResult` of struct `DefinitionsClientListResponse` has been removed +- Field `RawResponse` of struct `DefinitionsClientListResponse` has been removed +- Field `SetDefinitionsClientListResult` of struct `SetDefinitionsClientListResponse` has been removed +- Field `RawResponse` of struct `SetDefinitionsClientListResponse` has been removed +- Field `AssignmentsClientDeleteResult` of struct `AssignmentsClientDeleteResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientDeleteResponse` has been removed +- Field `AssignmentsClientDeleteByIDResult` of struct `AssignmentsClientDeleteByIDResponse` has been removed +- Field `RawResponse` of struct `AssignmentsClientDeleteByIDResponse` has been removed +- Field `ExemptionsClientCreateOrUpdateResult` of struct `ExemptionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ExemptionsClientCreateOrUpdateResponse` has been removed +- Field `SetDefinitionsClientCreateOrUpdateResult` of struct `SetDefinitionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `SetDefinitionsClientCreateOrUpdateResponse` has been removed +- Field `DefinitionsClientGetBuiltInResult` of struct `DefinitionsClientGetBuiltInResponse` has been removed +- Field `RawResponse` of struct `DefinitionsClientGetBuiltInResponse` has been removed +- Field `SetDefinitionsClientCreateOrUpdateAtManagementGroupResult` of struct `SetDefinitionsClientCreateOrUpdateAtManagementGroupResponse` has been removed +- Field `RawResponse` of struct `SetDefinitionsClientCreateOrUpdateAtManagementGroupResponse` has been removed +- Field `RawResponse` of struct `SetDefinitionsClientDeleteAtManagementGroupResponse` has been removed +- Field `DefinitionsClientListBuiltInResult` of struct `DefinitionsClientListBuiltInResponse` has been removed +- Field `RawResponse` of struct `DefinitionsClientListBuiltInResponse` has been removed +- Field `RawResponse` of struct `DefinitionsClientDeleteAtManagementGroupResponse` has been removed +- Field `SetDefinitionsClientGetBuiltInResult` of struct `SetDefinitionsClientGetBuiltInResponse` has been removed +- Field `RawResponse` of struct `SetDefinitionsClientGetBuiltInResponse` has been removed +- Field `ExemptionsClientListForResourceGroupResult` of struct `ExemptionsClientListForResourceGroupResponse` has been removed +- Field `RawResponse` of struct `ExemptionsClientListForResourceGroupResponse` has been removed +- Field `DefinitionsClientCreateOrUpdateResult` of struct `DefinitionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `DefinitionsClientCreateOrUpdateResponse` has been removed +- Field `DefinitionsClientGetAtManagementGroupResult` of struct `DefinitionsClientGetAtManagementGroupResponse` has been removed +- Field `RawResponse` of struct `DefinitionsClientGetAtManagementGroupResponse` has been removed +- Field `RawResponse` of struct `DefinitionsClientDeleteResponse` has been removed + +### Features Added + +- New function `ErrorResponse.MarshalJSON() ([]byte, error)` +- New struct `CloudError` +- New struct `ErrorAdditionalInfo` +- New struct `ErrorResponse` +- New anonymous field `Assignment` in struct `AssignmentsClientCreateResponse` +- New anonymous field `DefinitionListResult` in struct `DefinitionsClientListResponse` +- New anonymous field `SetDefinition` in struct `SetDefinitionsClientCreateOrUpdateAtManagementGroupResponse` +- New anonymous field `Exemption` in struct `ExemptionsClientCreateOrUpdateResponse` +- New anonymous field `DefinitionListResult` in struct `DefinitionsClientListBuiltInResponse` +- New anonymous field `AssignmentListResult` in struct `AssignmentsClientListForResourceGroupResponse` +- New anonymous field `Definition` in struct `DefinitionsClientGetBuiltInResponse` +- New anonymous field `SetDefinition` in struct `SetDefinitionsClientGetBuiltInResponse` +- New anonymous field `DefinitionListResult` in struct `DefinitionsClientListByManagementGroupResponse` +- New anonymous field `AssignmentListResult` in struct `AssignmentsClientListResponse` +- New anonymous field `Assignment` in struct `AssignmentsClientCreateByIDResponse` +- New anonymous field `Assignment` in struct `AssignmentsClientGetResponse` +- New anonymous field `ExemptionListResult` in struct `ExemptionsClientListForResourceGroupResponse` +- New anonymous field `Definition` in struct `DefinitionsClientCreateOrUpdateResponse` +- New anonymous field `DataPolicyManifestListResult` in struct `DataPolicyManifestsClientListResponse` +- New anonymous field `Assignment` in struct `AssignmentsClientUpdateResponse` +- New anonymous field `SetDefinition` in struct `SetDefinitionsClientCreateOrUpdateResponse` +- New anonymous field `Assignment` in struct `AssignmentsClientGetByIDResponse` +- New anonymous field `DataPolicyManifest` in struct `DataPolicyManifestsClientGetByPolicyModeResponse` +- New anonymous field `ExemptionListResult` in struct `ExemptionsClientListForResourceResponse` +- New anonymous field `SetDefinition` in struct `SetDefinitionsClientGetResponse` +- New anonymous field `Definition` in struct `DefinitionsClientGetResponse` +- New anonymous field `ExemptionListResult` in struct `ExemptionsClientListResponse` +- New anonymous field `Definition` in struct `DefinitionsClientCreateOrUpdateAtManagementGroupResponse` +- New anonymous field `SetDefinitionListResult` in struct `SetDefinitionsClientListByManagementGroupResponse` +- New anonymous field `AssignmentListResult` in struct `AssignmentsClientListForResourceResponse` +- New anonymous field `Assignment` in struct `AssignmentsClientUpdateByIDResponse` +- New anonymous field `Exemption` in struct `ExemptionsClientGetResponse` +- New anonymous field `SetDefinitionListResult` in struct `SetDefinitionsClientListResponse` +- New anonymous field `SetDefinition` in struct `SetDefinitionsClientGetAtManagementGroupResponse` +- New anonymous field `Assignment` in struct `AssignmentsClientDeleteByIDResponse` +- New anonymous field `AssignmentListResult` in struct `AssignmentsClientListForManagementGroupResponse` +- New anonymous field `SetDefinitionListResult` in struct `SetDefinitionsClientListBuiltInResponse` +- New anonymous field `Assignment` in struct `AssignmentsClientDeleteResponse` +- New anonymous field `Definition` in struct `DefinitionsClientGetAtManagementGroupResponse` +- New anonymous field `ExemptionListResult` in struct `ExemptionsClientListForManagementGroupResponse` + + ## 0.3.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/resources/armpolicy/README.md b/sdk/resourcemanager/resources/armpolicy/README.md index 478c29f05d49..c1d39ce55db3 100644 --- a/sdk/resourcemanager/resources/armpolicy/README.md +++ b/sdk/resourcemanager/resources/armpolicy/README.md @@ -11,7 +11,7 @@ The `armpolicy` module provides operations for working with Azure Resource Polic ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Resource Policy modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armpolicy.NewPolicyDefinitionsClient(, cred, nil) +client, err := armpolicy.NewPolicyDefinitionsClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armpolicy.NewPolicyDefinitionsClient(, cred, &options) +client, err := armpolicy.NewPolicyDefinitionsClient(, cred, &options) ``` ## Provide Feedback diff --git a/sdk/resourcemanager/resources/armpolicy/autorest.md b/sdk/resourcemanager/resources/armpolicy/autorest.md index 4acf44ec2460..eb63b74b30cd 100644 --- a/sdk/resourcemanager/resources/armpolicy/autorest.md +++ b/sdk/resourcemanager/resources/armpolicy/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/1118376e6b4c59716f4a2bcf3ddea212aeee5536/specification/resources/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/1118376e6b4c59716f4a2bcf3ddea212aeee5536/specification/resources/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.3.1 +module-version: 0.4.0 package-policy: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armpolicy/go.mod b/sdk/resourcemanager/resources/armpolicy/go.mod index 1ec4a4c87eda..9edbf230193b 100644 --- a/sdk/resourcemanager/resources/armpolicy/go.mod +++ b/sdk/resourcemanager/resources/armpolicy/go.mod @@ -1,10 +1,29 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 github.com/stretchr/testify v1.7.0 ) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect +) diff --git a/sdk/resourcemanager/resources/armpolicy/go.sum b/sdk/resourcemanager/resources/armpolicy/go.sum index 861905ed56b2..facd9999ed64 100644 --- a/sdk/resourcemanager/resources/armpolicy/go.sum +++ b/sdk/resourcemanager/resources/armpolicy/go.sum @@ -1,16 +1,13 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 h1:zBJcBJwte0x6PcPK7XaWDMvK2o2ZM2f1sMaqNNavQ5g= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 h1:RxemzI2cHD0A8WyMqHu/UnDjfpGES/cmjtPbQoktWqs= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1/go.mod h1:+nVKciyKD2J9TyVcEQ82Bo9b+3F92PiQfHrIE/zqLqM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 h1:/hWqo5bAXoNK7svf5GvgpXFPzOCpM29/Eu+WqcE34Uk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0/go.mod h1:wXFq4k1znCwV7Bw70gw4UDNYKv/nrCUr70hjUmOj1Jo= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1 h1:EXTDtCSTfPauGawsG+Ae/W46B1PkrgzuKNrcFqy4ljM= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1/go.mod h1:PoA99xQAlN13MyUjzgIPWMZEr0etHpYSuT25LmhR3zQ= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 h1:gYG7I0WxtCnHSWOFLbWCHLBWr+yzI5UeU9KuGZajf5U= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0/go.mod h1:bwEUbGO8V/7KcrqwO14ADZ0m4AkTvSKx3ma68FRc3Bg= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 h1:TSBK+EXu33WBNrYhWmOecKJAl4z1Z5dtbDmqOzd1zGk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0/go.mod h1:tt77DwGu+r0Ued27YQPhiW8h8YWpYwpfOfi5uRpRMTg= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -21,7 +18,6 @@ github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/ github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= -github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -41,21 +37,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/sdk/resourcemanager/resources/armpolicy/ze_generated_example_datapolicymanifests_client_test.go b/sdk/resourcemanager/resources/armpolicy/ze_generated_example_datapolicymanifests_client_test.go index db36d48670d6..33f797be0afb 100644 --- a/sdk/resourcemanager/resources/armpolicy/ze_generated_example_datapolicymanifests_client_test.go +++ b/sdk/resourcemanager/resources/armpolicy/ze_generated_example_datapolicymanifests_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,42 +16,53 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/examples/getDataPolicyManifest.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/examples/getDataPolicyManifest.json func ExampleDataPolicyManifestsClient_GetByPolicyMode() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDataPolicyManifestsClient(cred, nil) + client, err := armpolicy.NewDataPolicyManifestsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetByPolicyMode(ctx, "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DataPolicyManifestsClientGetByPolicyModeResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/examples/listDataPolicyManifests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/examples/listDataPolicyManifests.json func ExampleDataPolicyManifestsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDataPolicyManifestsClient(cred, nil) + client, err := armpolicy.NewDataPolicyManifestsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(&armpolicy.DataPolicyManifestsClientListOptions{Filter: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policyassignments_client_test.go b/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policyassignments_client_test.go index 2ccaf7efa55d..0bd977600b68 100644 --- a/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policyassignments_client_test.go +++ b/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policyassignments_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,149 +17,175 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/deletePolicyAssignment.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/deletePolicyAssignment.json func ExampleAssignmentsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewAssignmentsClient("", cred, nil) + client, err := armpolicy.NewAssignmentsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Delete(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.AssignmentsClientDeleteResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/createPolicyAssignment.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/createPolicyAssignment.json func ExampleAssignmentsClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewAssignmentsClient("", cred, nil) + client, err := armpolicy.NewAssignmentsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Create(ctx, "", "", armpolicy.Assignment{ Properties: &armpolicy.AssignmentProperties{ - Description: to.StringPtr(""), - DisplayName: to.StringPtr(""), + Description: to.Ptr(""), + DisplayName: to.Ptr(""), Metadata: map[string]interface{}{ "assignedBy": "Special Someone", }, NonComplianceMessages: []*armpolicy.NonComplianceMessage{ { - Message: to.StringPtr(""), + Message: to.Ptr(""), }}, Parameters: map[string]*armpolicy.ParameterValuesValue{ "prefix": { - Value: map[string]interface{}{ - "0": "D", - "1": "e", - "2": "p", - "3": "t", - "4": "A", - }, + Value: "DeptA", }, "suffix": { - Value: map[string]interface{}{ - "0": "-", - "1": "L", - "2": "C", - }, + Value: "-LC", }, }, - PolicyDefinitionID: to.StringPtr(""), + PolicyDefinitionID: to.Ptr(""), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getPolicyAssignment.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getPolicyAssignment.json func ExampleAssignmentsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewAssignmentsClient("", cred, nil) + client, err := armpolicy.NewAssignmentsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.AssignmentsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/updatePolicyAssignmentWithIdentity.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/updatePolicyAssignmentWithIdentity.json func ExampleAssignmentsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewAssignmentsClient("", cred, nil) + client, err := armpolicy.NewAssignmentsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", armpolicy.AssignmentUpdate{ Identity: &armpolicy.Identity{ - Type: armpolicy.ResourceIdentityTypeSystemAssigned.ToPtr(), + Type: to.Ptr(armpolicy.ResourceIdentityTypeSystemAssigned), }, - Location: to.StringPtr(""), + Location: to.Ptr(""), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.AssignmentsClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyAssignmentsForResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyAssignmentsForResourceGroup.json func ExampleAssignmentsClient_ListForResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewAssignmentsClient("", cred, nil) + client, err := armpolicy.NewAssignmentsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListForResourceGroup("", - &armpolicy.AssignmentsClientListForResourceGroupOptions{Filter: to.StringPtr(""), + &armpolicy.AssignmentsClientListForResourceGroupOptions{Filter: to.Ptr(""), Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyAssignmentsForResource.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyAssignmentsForResource.json func ExampleAssignmentsClient_ListForResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewAssignmentsClient("", cred, nil) + client, err := armpolicy.NewAssignmentsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListForResource("", "", "", @@ -168,67 +194,74 @@ func ExampleAssignmentsClient_ListForResource() { &armpolicy.AssignmentsClientListForResourceOptions{Filter: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyAssignmentsForManagementGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyAssignmentsForManagementGroup.json func ExampleAssignmentsClient_ListForManagementGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewAssignmentsClient("", cred, nil) + client, err := armpolicy.NewAssignmentsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListForManagementGroup("", - &armpolicy.AssignmentsClientListForManagementGroupOptions{Filter: to.StringPtr(""), + &armpolicy.AssignmentsClientListForManagementGroupOptions{Filter: to.Ptr(""), Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyAssignments.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyAssignments.json func ExampleAssignmentsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewAssignmentsClient("", cred, nil) - pager := client.List(&armpolicy.AssignmentsClientListOptions{Filter: to.StringPtr(""), + client, err := armpolicy.NewAssignmentsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.List(&armpolicy.AssignmentsClientListOptions{Filter: to.Ptr(""), Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policydefinitions_client_test.go b/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policydefinitions_client_test.go index 8dd5f34db3a1..bead2581e585 100644 --- a/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policydefinitions_client_test.go +++ b/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policydefinitions_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,37 +17,42 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/createOrUpdatePolicyDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/createOrUpdatePolicyDefinition.json func ExampleDefinitionsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDefinitionsClient("", cred, nil) + client, err := armpolicy.NewDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.CreateOrUpdate(ctx, "", armpolicy.Definition{ Properties: &armpolicy.DefinitionProperties{ - Description: to.StringPtr(""), - DisplayName: to.StringPtr(""), + Description: to.Ptr(""), + DisplayName: to.Ptr(""), Metadata: map[string]interface{}{ "category": "Naming", }, - Mode: to.StringPtr(""), + Mode: to.Ptr(""), Parameters: map[string]*armpolicy.ParameterDefinitionsValue{ "prefix": { - Type: armpolicy.ParameterType("String").ToPtr(), + Type: to.Ptr(armpolicy.ParameterTypeString), Metadata: &armpolicy.ParameterDefinitionsValueMetadata{ - Description: to.StringPtr(""), - DisplayName: to.StringPtr(""), + Description: to.Ptr(""), + DisplayName: to.Ptr(""), }, }, "suffix": { - Type: armpolicy.ParameterType("String").ToPtr(), + Type: to.Ptr(armpolicy.ParameterTypeString), Metadata: &armpolicy.ParameterDefinitionsValueMetadata{ - Description: to.StringPtr(""), - DisplayName: to.StringPtr(""), + Description: to.Ptr(""), + DisplayName: to.Ptr(""), }, }, }, @@ -66,92 +71,118 @@ func ExampleDefinitionsClient_CreateOrUpdate() { }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/deletePolicyDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/deletePolicyDefinition.json func ExampleDefinitionsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDefinitionsClient("", cred, nil) + client, err := armpolicy.NewDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getPolicyDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getPolicyDefinition.json func ExampleDefinitionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDefinitionsClient("", cred, nil) + client, err := armpolicy.NewDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DefinitionsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getBuiltinPolicyDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getBuiltinPolicyDefinition.json func ExampleDefinitionsClient_GetBuiltIn() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDefinitionsClient("", cred, nil) + client, err := armpolicy.NewDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetBuiltIn(ctx, "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DefinitionsClientGetBuiltInResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/createOrUpdatePolicyDefinitionAtManagementGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/createOrUpdatePolicyDefinitionAtManagementGroup.json func ExampleDefinitionsClient_CreateOrUpdateAtManagementGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDefinitionsClient("", cred, nil) + client, err := armpolicy.NewDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.CreateOrUpdateAtManagementGroup(ctx, "", "", armpolicy.Definition{ Properties: &armpolicy.DefinitionProperties{ - Description: to.StringPtr(""), - DisplayName: to.StringPtr(""), + Description: to.Ptr(""), + DisplayName: to.Ptr(""), Metadata: map[string]interface{}{ "category": "Naming", }, - Mode: to.StringPtr(""), + Mode: to.Ptr(""), Parameters: map[string]*armpolicy.ParameterDefinitionsValue{ "prefix": { - Type: armpolicy.ParameterType("String").ToPtr(), + Type: to.Ptr(armpolicy.ParameterTypeString), Metadata: &armpolicy.ParameterDefinitionsValueMetadata{ - Description: to.StringPtr(""), - DisplayName: to.StringPtr(""), + Description: to.Ptr(""), + DisplayName: to.Ptr(""), }, }, "suffix": { - Type: armpolicy.ParameterType("String").ToPtr(), + Type: to.Ptr(armpolicy.ParameterTypeString), Metadata: &armpolicy.ParameterDefinitionsValueMetadata{ - Description: to.StringPtr(""), - DisplayName: to.StringPtr(""), + Description: to.Ptr(""), + DisplayName: to.Ptr(""), }, }, }, @@ -170,117 +201,143 @@ func ExampleDefinitionsClient_CreateOrUpdateAtManagementGroup() { }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/deletePolicyDefinitionAtManagementGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/deletePolicyDefinitionAtManagementGroup.json func ExampleDefinitionsClient_DeleteAtManagementGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDefinitionsClient("", cred, nil) + client, err := armpolicy.NewDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteAtManagementGroup(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getPolicyDefinitionAtManagementGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getPolicyDefinitionAtManagementGroup.json func ExampleDefinitionsClient_GetAtManagementGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDefinitionsClient("", cred, nil) + client, err := armpolicy.NewDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAtManagementGroup(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DefinitionsClientGetAtManagementGroupResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyDefinitions.json func ExampleDefinitionsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDefinitionsClient("", cred, nil) + client, err := armpolicy.NewDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(&armpolicy.DefinitionsClientListOptions{Filter: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listBuiltInPolicyDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listBuiltInPolicyDefinitions.json func ExampleDefinitionsClient_ListBuiltIn() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDefinitionsClient("", cred, nil) + client, err := armpolicy.NewDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListBuiltIn(&armpolicy.DefinitionsClientListBuiltInOptions{Filter: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyDefinitionsByManagementGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicyDefinitionsByManagementGroup.json func ExampleDefinitionsClient_ListByManagementGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewDefinitionsClient("", cred, nil) + client, err := armpolicy.NewDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByManagementGroup("", &armpolicy.DefinitionsClientListByManagementGroupOptions{Filter: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policyexemptions_client_test.go b/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policyexemptions_client_test.go index 23441812810f..62643571e939 100644 --- a/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policyexemptions_client_test.go +++ b/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policyexemptions_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,167 +17,203 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/deletePolicyExemption.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/deletePolicyExemption.json func ExampleExemptionsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewExemptionsClient("", cred, nil) + client, err := armpolicy.NewExemptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/createOrUpdatePolicyExemption.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/createOrUpdatePolicyExemption.json func ExampleExemptionsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewExemptionsClient("", cred, nil) + client, err := armpolicy.NewExemptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", armpolicy.Exemption{ Properties: &armpolicy.ExemptionProperties{ - Description: to.StringPtr(""), - DisplayName: to.StringPtr(""), - ExemptionCategory: armpolicy.ExemptionCategory("Waiver").ToPtr(), + Description: to.Ptr(""), + DisplayName: to.Ptr(""), + ExemptionCategory: to.Ptr(armpolicy.ExemptionCategoryWaiver), Metadata: map[string]interface{}{ "reason": "Temporary exemption for a expensive VM demo", }, - PolicyAssignmentID: to.StringPtr(""), + PolicyAssignmentID: to.Ptr(""), PolicyDefinitionReferenceIDs: []*string{ - to.StringPtr("Limit_Skus")}, + to.Ptr("Limit_Skus")}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ExemptionsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/getPolicyExemption.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/getPolicyExemption.json func ExampleExemptionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewExemptionsClient("", cred, nil) + client, err := armpolicy.NewExemptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ExemptionsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/listPolicyExemptionsForSubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/listPolicyExemptionsForSubscription.json func ExampleExemptionsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewExemptionsClient("", cred, nil) - pager := client.List(&armpolicy.ExemptionsClientListOptions{Filter: to.StringPtr("")}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + client, err := armpolicy.NewExemptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.List(&armpolicy.ExemptionsClientListOptions{Filter: to.Ptr("")}) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/listPolicyExemptionsForResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/listPolicyExemptionsForResourceGroup.json func ExampleExemptionsClient_ListForResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewExemptionsClient("", cred, nil) + client, err := armpolicy.NewExemptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListForResourceGroup("", - &armpolicy.ExemptionsClientListForResourceGroupOptions{Filter: to.StringPtr("")}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + &armpolicy.ExemptionsClientListForResourceGroupOptions{Filter: to.Ptr("")}) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/listPolicyExemptionsForResource.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/listPolicyExemptionsForResource.json func ExampleExemptionsClient_ListForResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewExemptionsClient("", cred, nil) + client, err := armpolicy.NewExemptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListForResource("", "", "", "", "", &armpolicy.ExemptionsClientListForResourceOptions{Filter: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/listPolicyExemptionsForManagementGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/preview/2020-07-01-preview/examples/listPolicyExemptionsForManagementGroup.json func ExampleExemptionsClient_ListForManagementGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewExemptionsClient("", cred, nil) + client, err := armpolicy.NewExemptionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListForManagementGroup("", - &armpolicy.ExemptionsClientListForManagementGroupOptions{Filter: to.StringPtr("")}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + &armpolicy.ExemptionsClientListForManagementGroupOptions{Filter: to.Ptr("")}) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policysetdefinitions_client_test.go b/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policysetdefinitions_client_test.go index 15fde998e955..7ffd7da3abf6 100644 --- a/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policysetdefinitions_client_test.go +++ b/sdk/resourcemanager/resources/armpolicy/ze_generated_example_policysetdefinitions_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,38 +17,34 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/createOrUpdatePolicySetDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/createOrUpdatePolicySetDefinition.json func ExampleSetDefinitionsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewSetDefinitionsClient("", cred, nil) + client, err := armpolicy.NewSetDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", armpolicy.SetDefinition{ Properties: &armpolicy.SetDefinitionProperties{ - Description: to.StringPtr(""), - DisplayName: to.StringPtr(""), + Description: to.Ptr(""), + DisplayName: to.Ptr(""), Metadata: map[string]interface{}{ "category": "Cost Management", }, Parameters: map[string]*armpolicy.ParameterDefinitionsValue{ "namePrefix": { - Type: armpolicy.ParameterType("String").ToPtr(), - DefaultValue: map[string]interface{}{ - "0": "m", - "1": "y", - "2": "P", - "3": "r", - "4": "e", - "5": "f", - "6": "i", - "7": "x", - }, + Type: to.Ptr(armpolicy.ParameterTypeString), + DefaultValue: "myPrefix", Metadata: &armpolicy.ParameterDefinitionsValueMetadata{ - DisplayName: to.StringPtr(""), + DisplayName: to.Ptr(""), }, }, }, @@ -56,182 +52,186 @@ func ExampleSetDefinitionsClient_CreateOrUpdate() { { Parameters: map[string]*armpolicy.ParameterValuesValue{ "listOfAllowedSKUs": { - Value: map[string]interface{}{ - "0": "Standard_GRS", - "1": "Standard_LRS", + Value: []interface{}{ + "Standard_GRS", + "Standard_LRS", }, }, }, - PolicyDefinitionID: to.StringPtr(""), - PolicyDefinitionReferenceID: to.StringPtr(""), + PolicyDefinitionID: to.Ptr(""), + PolicyDefinitionReferenceID: to.Ptr(""), }, { Parameters: map[string]*armpolicy.ParameterValuesValue{ "prefix": { - Value: map[string]interface{}{ - "0": "[", - "1": "p", - "2": "a", - "3": "r", - "4": "a", - "5": "m", - "6": "e", - "7": "t", - "8": "e", - "9": "r", - "10": "s", - "11": "(", - "12": "'", - "13": "n", - "14": "a", - "15": "m", - "16": "e", - "17": "P", - "18": "r", - "19": "e", - "20": "f", - "21": "i", - "22": "x", - "23": "'", - "24": ")", - "25": "]", - }, + Value: "[parameters('namePrefix')]", }, "suffix": { - Value: map[string]interface{}{ - "0": "-", - "1": "L", - "2": "C", - }, + Value: "-LC", }, }, - PolicyDefinitionID: to.StringPtr(""), - PolicyDefinitionReferenceID: to.StringPtr(""), + PolicyDefinitionID: to.Ptr(""), + PolicyDefinitionReferenceID: to.Ptr(""), }}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SetDefinitionsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/deletePolicySetDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/deletePolicySetDefinition.json func ExampleSetDefinitionsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewSetDefinitionsClient("", cred, nil) + client, err := armpolicy.NewSetDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getPolicySetDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getPolicySetDefinition.json func ExampleSetDefinitionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewSetDefinitionsClient("", cred, nil) + client, err := armpolicy.NewSetDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SetDefinitionsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getBuiltInPolicySetDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getBuiltInPolicySetDefinition.json func ExampleSetDefinitionsClient_GetBuiltIn() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewSetDefinitionsClient("", cred, nil) + client, err := armpolicy.NewSetDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetBuiltIn(ctx, "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SetDefinitionsClientGetBuiltInResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicySetDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicySetDefinitions.json func ExampleSetDefinitionsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewSetDefinitionsClient("", cred, nil) + client, err := armpolicy.NewSetDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(&armpolicy.SetDefinitionsClientListOptions{Filter: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listBuiltInPolicySetDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listBuiltInPolicySetDefinitions.json func ExampleSetDefinitionsClient_ListBuiltIn() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewSetDefinitionsClient("", cred, nil) + client, err := armpolicy.NewSetDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListBuiltIn(&armpolicy.SetDefinitionsClientListBuiltInOptions{Filter: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/createOrUpdatePolicySetDefinitionAtManagementGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/createOrUpdatePolicySetDefinitionAtManagementGroup.json func ExampleSetDefinitionsClient_CreateOrUpdateAtManagementGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewSetDefinitionsClient("", cred, nil) + client, err := armpolicy.NewSetDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateAtManagementGroup(ctx, "", "", armpolicy.SetDefinition{ Properties: &armpolicy.SetDefinitionProperties{ - Description: to.StringPtr(""), - DisplayName: to.StringPtr(""), + Description: to.Ptr(""), + DisplayName: to.Ptr(""), Metadata: map[string]interface{}{ "category": "Cost Management", }, @@ -239,103 +239,112 @@ func ExampleSetDefinitionsClient_CreateOrUpdateAtManagementGroup() { { Parameters: map[string]*armpolicy.ParameterValuesValue{ "listOfAllowedSKUs": { - Value: map[string]interface{}{ - "0": "Standard_GRS", - "1": "Standard_LRS", + Value: []interface{}{ + "Standard_GRS", + "Standard_LRS", }, }, }, - PolicyDefinitionID: to.StringPtr(""), - PolicyDefinitionReferenceID: to.StringPtr(""), + PolicyDefinitionID: to.Ptr(""), + PolicyDefinitionReferenceID: to.Ptr(""), }, { Parameters: map[string]*armpolicy.ParameterValuesValue{ "prefix": { - Value: map[string]interface{}{ - "0": "D", - "1": "e", - "2": "p", - "3": "t", - "4": "A", - }, + Value: "DeptA", }, "suffix": { - Value: map[string]interface{}{ - "0": "-", - "1": "L", - "2": "C", - }, + Value: "-LC", }, }, - PolicyDefinitionID: to.StringPtr(""), - PolicyDefinitionReferenceID: to.StringPtr(""), + PolicyDefinitionID: to.Ptr(""), + PolicyDefinitionReferenceID: to.Ptr(""), }}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SetDefinitionsClientCreateOrUpdateAtManagementGroupResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/deletePolicySetDefinitionAtManagementGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/deletePolicySetDefinitionAtManagementGroup.json func ExampleSetDefinitionsClient_DeleteAtManagementGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewSetDefinitionsClient("", cred, nil) + client, err := armpolicy.NewSetDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.DeleteAtManagementGroup(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getPolicySetDefinitionAtManagementGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/getPolicySetDefinitionAtManagementGroup.json func ExampleSetDefinitionsClient_GetAtManagementGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewSetDefinitionsClient("", cred, nil) + client, err := armpolicy.NewSetDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetAtManagementGroup(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SetDefinitionsClientGetAtManagementGroupResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicySetDefinitionsByManagementGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/examples/listPolicySetDefinitionsByManagementGroup.json func ExampleSetDefinitionsClient_ListByManagementGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armpolicy.NewSetDefinitionsClient("", cred, nil) + client, err := armpolicy.NewSetDefinitionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByManagementGroup("", &armpolicy.SetDefinitionsClientListByManagementGroupOptions{Filter: nil, Top: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armpolicy/zt_policydefinitions_client_live_test.go b/sdk/resourcemanager/resources/armpolicy/zt_policydefinitions_client_live_test.go index f172d178569c..d0acb1adedea 100644 --- a/sdk/resourcemanager/resources/armpolicy/zt_policydefinitions_client_live_test.go +++ b/sdk/resourcemanager/resources/armpolicy/zt_policydefinitions_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,13 +8,14 @@ package armpolicy_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" "github.com/stretchr/testify/suite" - "testing" ) type PolicyDefinitionsClientTestSuite struct { @@ -53,27 +54,28 @@ func TestPolicyDefinitionsClient(t *testing.T) { func (testsuite *PolicyDefinitionsClientTestSuite) TestPolicyDefinitionsCRUD() { // create policy definition policyDefinitionName := "go-test-definition" - policyDefinitionsClient := armpolicy.NewDefinitionsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + policyDefinitionsClient, err := armpolicy.NewDefinitionsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) cResp, err := policyDefinitionsClient.CreateOrUpdate( testsuite.ctx, policyDefinitionName, armpolicy.Definition{ Properties: &armpolicy.DefinitionProperties{ - PolicyType: armpolicy.PolicyTypeCustom.ToPtr(), - Description: to.StringPtr("test case"), + PolicyType: to.Ptr(armpolicy.PolicyTypeCustom), + Description: to.Ptr("test case"), Parameters: map[string]*armpolicy.ParameterDefinitionsValue{ "prefix": { - Type: armpolicy.ParameterTypeString.ToPtr(), + Type: to.Ptr(armpolicy.ParameterTypeString), Metadata: &armpolicy.ParameterDefinitionsValueMetadata{ - Description: to.StringPtr("prefix description"), - DisplayName: to.StringPtr("test case prefix"), + Description: to.Ptr("prefix description"), + DisplayName: to.Ptr("test case prefix"), }, }, "suffix": { - Type: armpolicy.ParameterTypeString.ToPtr(), + Type: to.Ptr(armpolicy.ParameterTypeString), Metadata: &armpolicy.ParameterDefinitionsValueMetadata{ - Description: to.StringPtr("suffix description"), - DisplayName: to.StringPtr("test case suffix"), + Description: to.Ptr("suffix description"), + DisplayName: to.Ptr("test case suffix"), }, }, }, @@ -102,16 +104,13 @@ func (testsuite *PolicyDefinitionsClientTestSuite) TestPolicyDefinitionsCRUD() { // list policy definition list := policyDefinitionsClient.List(nil) - testsuite.Require().NoError(list.Err()) - testsuite.Require().True(list.NextPage(testsuite.ctx)) + testsuite.Require().True(list.More()) // list policy definition listBuiltIn := policyDefinitionsClient.ListBuiltIn(nil) - testsuite.Require().NoError(listBuiltIn.Err()) - testsuite.Require().True(listBuiltIn.NextPage(testsuite.ctx)) + testsuite.Require().True(listBuiltIn.More()) // delete policy definition - delResp, err := policyDefinitionsClient.Delete(testsuite.ctx, policyDefinitionName, nil) + _, err = policyDefinitionsClient.Delete(testsuite.ctx, policyDefinitionName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(200, delResp.RawResponse.StatusCode) } diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_assignments_client.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_assignments_client.go index 4336cb9065c1..d67372be9e4e 100644 --- a/sdk/resourcemanager/resources/armpolicy/zz_generated_assignments_client.go +++ b/sdk/resourcemanager/resources/armpolicy/zz_generated_assignments_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type AssignmentsClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewAssignmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *AssignmentsClient { +func NewAssignmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AssignmentsClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &AssignmentsClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // Create - This operation creates or updates a policy assignment with the given scope and name. Policy assignments apply @@ -98,7 +103,7 @@ func (client *AssignmentsClient) createCreateRequest(ctx context.Context, scope // createHandleResponse handles the Create response. func (client *AssignmentsClient) createHandleResponse(resp *http.Response) (AssignmentsClientCreateResponse, error) { - result := AssignmentsClientCreateResponse{RawResponse: resp} + result := AssignmentsClientCreateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Assignment); err != nil { return AssignmentsClientCreateResponse{}, err } @@ -149,7 +154,7 @@ func (client *AssignmentsClient) createByIDCreateRequest(ctx context.Context, po // createByIDHandleResponse handles the CreateByID response. func (client *AssignmentsClient) createByIDHandleResponse(resp *http.Response) (AssignmentsClientCreateByIDResponse, error) { - result := AssignmentsClientCreateByIDResponse{RawResponse: resp} + result := AssignmentsClientCreateByIDResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Assignment); err != nil { return AssignmentsClientCreateByIDResponse{}, err } @@ -203,7 +208,7 @@ func (client *AssignmentsClient) deleteCreateRequest(ctx context.Context, scope // deleteHandleResponse handles the Delete response. func (client *AssignmentsClient) deleteHandleResponse(resp *http.Response) (AssignmentsClientDeleteResponse, error) { - result := AssignmentsClientDeleteResponse{RawResponse: resp} + result := AssignmentsClientDeleteResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Assignment); err != nil { return AssignmentsClientDeleteResponse{}, err } @@ -252,7 +257,7 @@ func (client *AssignmentsClient) deleteByIDCreateRequest(ctx context.Context, po // deleteByIDHandleResponse handles the DeleteByID response. func (client *AssignmentsClient) deleteByIDHandleResponse(resp *http.Response) (AssignmentsClientDeleteByIDResponse, error) { - result := AssignmentsClientDeleteByIDResponse{RawResponse: resp} + result := AssignmentsClientDeleteByIDResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Assignment); err != nil { return AssignmentsClientDeleteByIDResponse{}, err } @@ -304,7 +309,7 @@ func (client *AssignmentsClient) getCreateRequest(ctx context.Context, scope str // getHandleResponse handles the Get response. func (client *AssignmentsClient) getHandleResponse(resp *http.Response) (AssignmentsClientGetResponse, error) { - result := AssignmentsClientGetResponse{RawResponse: resp} + result := AssignmentsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Assignment); err != nil { return AssignmentsClientGetResponse{}, err } @@ -352,7 +357,7 @@ func (client *AssignmentsClient) getByIDCreateRequest(ctx context.Context, polic // getByIDHandleResponse handles the GetByID response. func (client *AssignmentsClient) getByIDHandleResponse(resp *http.Response) (AssignmentsClientGetByIDResponse, error) { - result := AssignmentsClientGetByIDResponse{RawResponse: resp} + result := AssignmentsClientGetByIDResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Assignment); err != nil { return AssignmentsClientGetByIDResponse{}, err } @@ -372,16 +377,32 @@ func (client *AssignmentsClient) getByIDHandleResponse(resp *http.Response) (Ass // definition whose id is {value}. // If the operation fails it returns an *azcore.ResponseError type. // options - AssignmentsClientListOptions contains the optional parameters for the AssignmentsClient.List method. -func (client *AssignmentsClient) List(options *AssignmentsClientListOptions) *AssignmentsClientListPager { - return &AssignmentsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *AssignmentsClient) List(options *AssignmentsClientListOptions) *runtime.Pager[AssignmentsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[AssignmentsClientListResponse]{ + More: func(page AssignmentsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp AssignmentsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.AssignmentListResult.NextLink) + Fetcher: func(ctx context.Context, page *AssignmentsClientListResponse) (AssignmentsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return AssignmentsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AssignmentsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AssignmentsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -412,7 +433,7 @@ func (client *AssignmentsClient) listCreateRequest(ctx context.Context, options // listHandleResponse handles the List response. func (client *AssignmentsClient) listHandleResponse(resp *http.Response) (AssignmentsClientListResponse, error) { - result := AssignmentsClientListResponse{RawResponse: resp} + result := AssignmentsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AssignmentListResult); err != nil { return AssignmentsClientListResponse{}, err } @@ -430,16 +451,32 @@ func (client *AssignmentsClient) listHandleResponse(resp *http.Response) (Assign // managementGroupID - The ID of the management group. // options - AssignmentsClientListForManagementGroupOptions contains the optional parameters for the AssignmentsClient.ListForManagementGroup // method. -func (client *AssignmentsClient) ListForManagementGroup(managementGroupID string, options *AssignmentsClientListForManagementGroupOptions) *AssignmentsClientListForManagementGroupPager { - return &AssignmentsClientListForManagementGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listForManagementGroupCreateRequest(ctx, managementGroupID, options) +func (client *AssignmentsClient) ListForManagementGroup(managementGroupID string, options *AssignmentsClientListForManagementGroupOptions) *runtime.Pager[AssignmentsClientListForManagementGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[AssignmentsClientListForManagementGroupResponse]{ + More: func(page AssignmentsClientListForManagementGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp AssignmentsClientListForManagementGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.AssignmentListResult.NextLink) + Fetcher: func(ctx context.Context, page *AssignmentsClientListForManagementGroupResponse) (AssignmentsClientListForManagementGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listForManagementGroupCreateRequest(ctx, managementGroupID, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return AssignmentsClientListForManagementGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AssignmentsClientListForManagementGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AssignmentsClientListForManagementGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listForManagementGroupHandleResponse(resp) }, - } + }) } // listForManagementGroupCreateRequest creates the ListForManagementGroup request. @@ -470,7 +507,7 @@ func (client *AssignmentsClient) listForManagementGroupCreateRequest(ctx context // listForManagementGroupHandleResponse handles the ListForManagementGroup response. func (client *AssignmentsClient) listForManagementGroupHandleResponse(resp *http.Response) (AssignmentsClientListForManagementGroupResponse, error) { - result := AssignmentsClientListForManagementGroupResponse{RawResponse: resp} + result := AssignmentsClientListForManagementGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AssignmentListResult); err != nil { return AssignmentsClientListForManagementGroupResponse{}, err } @@ -507,16 +544,32 @@ func (client *AssignmentsClient) listForManagementGroupHandleResponse(resp *http // resourceName - The name of the resource. // options - AssignmentsClientListForResourceOptions contains the optional parameters for the AssignmentsClient.ListForResource // method. -func (client *AssignmentsClient) ListForResource(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, options *AssignmentsClientListForResourceOptions) *AssignmentsClientListForResourcePager { - return &AssignmentsClientListForResourcePager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listForResourceCreateRequest(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) +func (client *AssignmentsClient) ListForResource(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, options *AssignmentsClientListForResourceOptions) *runtime.Pager[AssignmentsClientListForResourceResponse] { + return runtime.NewPager(runtime.PageProcessor[AssignmentsClientListForResourceResponse]{ + More: func(page AssignmentsClientListForResourceResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp AssignmentsClientListForResourceResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.AssignmentListResult.NextLink) + Fetcher: func(ctx context.Context, page *AssignmentsClientListForResourceResponse) (AssignmentsClientListForResourceResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listForResourceCreateRequest(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return AssignmentsClientListForResourceResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AssignmentsClientListForResourceResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AssignmentsClientListForResourceResponse{}, runtime.NewResponseError(resp) + } + return client.listForResourceHandleResponse(resp) }, - } + }) } // listForResourceCreateRequest creates the ListForResource request. @@ -561,7 +614,7 @@ func (client *AssignmentsClient) listForResourceCreateRequest(ctx context.Contex // listForResourceHandleResponse handles the ListForResource response. func (client *AssignmentsClient) listForResourceHandleResponse(resp *http.Response) (AssignmentsClientListForResourceResponse, error) { - result := AssignmentsClientListForResourceResponse{RawResponse: resp} + result := AssignmentsClientListForResourceResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AssignmentListResult); err != nil { return AssignmentsClientListForResourceResponse{}, err } @@ -583,16 +636,32 @@ func (client *AssignmentsClient) listForResourceHandleResponse(resp *http.Respon // resourceGroupName - The name of the resource group that contains policy assignments. // options - AssignmentsClientListForResourceGroupOptions contains the optional parameters for the AssignmentsClient.ListForResourceGroup // method. -func (client *AssignmentsClient) ListForResourceGroup(resourceGroupName string, options *AssignmentsClientListForResourceGroupOptions) *AssignmentsClientListForResourceGroupPager { - return &AssignmentsClientListForResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listForResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *AssignmentsClient) ListForResourceGroup(resourceGroupName string, options *AssignmentsClientListForResourceGroupOptions) *runtime.Pager[AssignmentsClientListForResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[AssignmentsClientListForResourceGroupResponse]{ + More: func(page AssignmentsClientListForResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp AssignmentsClientListForResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.AssignmentListResult.NextLink) + Fetcher: func(ctx context.Context, page *AssignmentsClientListForResourceGroupResponse) (AssignmentsClientListForResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listForResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return AssignmentsClientListForResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AssignmentsClientListForResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AssignmentsClientListForResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listForResourceGroupHandleResponse(resp) }, - } + }) } // listForResourceGroupCreateRequest creates the ListForResourceGroup request. @@ -627,7 +696,7 @@ func (client *AssignmentsClient) listForResourceGroupCreateRequest(ctx context.C // listForResourceGroupHandleResponse handles the ListForResourceGroup response. func (client *AssignmentsClient) listForResourceGroupHandleResponse(resp *http.Response) (AssignmentsClientListForResourceGroupResponse, error) { - result := AssignmentsClientListForResourceGroupResponse{RawResponse: resp} + result := AssignmentsClientListForResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AssignmentListResult); err != nil { return AssignmentsClientListForResourceGroupResponse{}, err } @@ -682,7 +751,7 @@ func (client *AssignmentsClient) updateCreateRequest(ctx context.Context, scope // updateHandleResponse handles the Update response. func (client *AssignmentsClient) updateHandleResponse(resp *http.Response) (AssignmentsClientUpdateResponse, error) { - result := AssignmentsClientUpdateResponse{RawResponse: resp} + result := AssignmentsClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Assignment); err != nil { return AssignmentsClientUpdateResponse{}, err } @@ -733,7 +802,7 @@ func (client *AssignmentsClient) updateByIDCreateRequest(ctx context.Context, po // updateByIDHandleResponse handles the UpdateByID response. func (client *AssignmentsClient) updateByIDHandleResponse(resp *http.Response) (AssignmentsClientUpdateByIDResponse, error) { - result := AssignmentsClientUpdateByIDResponse{RawResponse: resp} + result := AssignmentsClientUpdateByIDResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Assignment); err != nil { return AssignmentsClientUpdateByIDResponse{}, err } diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_constants.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_constants.go index b4a958e1e441..d7a5ecae5790 100644 --- a/sdk/resourcemanager/resources/armpolicy/zz_generated_constants.go +++ b/sdk/resourcemanager/resources/armpolicy/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,7 +10,7 @@ package armpolicy const ( moduleName = "armpolicy" - moduleVersion = "v0.3.1" + moduleVersion = "v0.4.0" ) // AliasPathAttributes - The attributes of the token that the alias path is referring to. @@ -31,11 +31,6 @@ func PossibleAliasPathAttributesValues() []AliasPathAttributes { } } -// ToPtr returns a *AliasPathAttributes pointing to the current value. -func (c AliasPathAttributes) ToPtr() *AliasPathAttributes { - return &c -} - // AliasPathTokenType - The type of the token that the alias path is referring to. type AliasPathTokenType string @@ -72,11 +67,6 @@ func PossibleAliasPathTokenTypeValues() []AliasPathTokenType { } } -// ToPtr returns a *AliasPathTokenType pointing to the current value. -func (c AliasPathTokenType) ToPtr() *AliasPathTokenType { - return &c -} - // AliasPatternType - The type of alias pattern type AliasPatternType string @@ -95,11 +85,6 @@ func PossibleAliasPatternTypeValues() []AliasPatternType { } } -// ToPtr returns a *AliasPatternType pointing to the current value. -func (c AliasPatternType) ToPtr() *AliasPatternType { - return &c -} - // AliasType - The type of the alias. type AliasType string @@ -121,11 +106,6 @@ func PossibleAliasTypeValues() []AliasType { } } -// ToPtr returns a *AliasType pointing to the current value. -func (c AliasType) ToPtr() *AliasType { - return &c -} - // CreatedByType - The type of identity that created the resource. type CreatedByType string @@ -146,11 +126,6 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// ToPtr returns a *CreatedByType pointing to the current value. -func (c CreatedByType) ToPtr() *CreatedByType { - return &c -} - // EnforcementMode - The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. type EnforcementMode string @@ -169,11 +144,6 @@ func PossibleEnforcementModeValues() []EnforcementMode { } } -// ToPtr returns a *EnforcementMode pointing to the current value. -func (c EnforcementMode) ToPtr() *EnforcementMode { - return &c -} - // ExemptionCategory - The policy exemption category. Possible values are Waiver and Mitigated. type ExemptionCategory string @@ -193,11 +163,6 @@ func PossibleExemptionCategoryValues() []ExemptionCategory { } } -// ToPtr returns a *ExemptionCategory pointing to the current value. -func (c ExemptionCategory) ToPtr() *ExemptionCategory { - return &c -} - // ParameterType - The data type of the parameter. type ParameterType string @@ -224,11 +189,6 @@ func PossibleParameterTypeValues() []ParameterType { } } -// ToPtr returns a *ParameterType pointing to the current value. -func (c ParameterType) ToPtr() *ParameterType { - return &c -} - // PolicyType - The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. type PolicyType string @@ -249,11 +209,6 @@ func PossiblePolicyTypeValues() []PolicyType { } } -// ToPtr returns a *PolicyType pointing to the current value. -func (c PolicyType) ToPtr() *PolicyType { - return &c -} - // ResourceIdentityType - The identity type. This is the only required field when adding a system or user assigned identity // to a resource. type ResourceIdentityType string @@ -276,8 +231,3 @@ func PossibleResourceIdentityTypeValues() []ResourceIdentityType { ResourceIdentityTypeNone, } } - -// ToPtr returns a *ResourceIdentityType pointing to the current value. -func (c ResourceIdentityType) ToPtr() *ResourceIdentityType { - return &c -} diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_datapolicymanifests_client.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_datapolicymanifests_client.go index b5f7dcc7ee05..805725df3286 100644 --- a/sdk/resourcemanager/resources/armpolicy/zz_generated_datapolicymanifests_client.go +++ b/sdk/resourcemanager/resources/armpolicy/zz_generated_datapolicymanifests_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -31,19 +32,23 @@ type DataPolicyManifestsClient struct { // NewDataPolicyManifestsClient creates a new instance of DataPolicyManifestsClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewDataPolicyManifestsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *DataPolicyManifestsClient { +func NewDataPolicyManifestsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*DataPolicyManifestsClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &DataPolicyManifestsClient{ - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // GetByPolicyMode - This operation retrieves the data policy manifest with the given policy mode. @@ -86,7 +91,7 @@ func (client *DataPolicyManifestsClient) getByPolicyModeCreateRequest(ctx contex // getByPolicyModeHandleResponse handles the GetByPolicyMode response. func (client *DataPolicyManifestsClient) getByPolicyModeHandleResponse(resp *http.Response) (DataPolicyManifestsClientGetByPolicyModeResponse, error) { - result := DataPolicyManifestsClientGetByPolicyModeResponse{RawResponse: resp} + result := DataPolicyManifestsClientGetByPolicyModeResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DataPolicyManifest); err != nil { return DataPolicyManifestsClientGetByPolicyModeResponse{}, err } @@ -101,16 +106,32 @@ func (client *DataPolicyManifestsClient) getByPolicyModeHandleResponse(resp *htt // If the operation fails it returns an *azcore.ResponseError type. // options - DataPolicyManifestsClientListOptions contains the optional parameters for the DataPolicyManifestsClient.List // method. -func (client *DataPolicyManifestsClient) List(options *DataPolicyManifestsClientListOptions) *DataPolicyManifestsClientListPager { - return &DataPolicyManifestsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *DataPolicyManifestsClient) List(options *DataPolicyManifestsClientListOptions) *runtime.Pager[DataPolicyManifestsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[DataPolicyManifestsClientListResponse]{ + More: func(page DataPolicyManifestsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp DataPolicyManifestsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.DataPolicyManifestListResult.NextLink) + Fetcher: func(ctx context.Context, page *DataPolicyManifestsClientListResponse) (DataPolicyManifestsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return DataPolicyManifestsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return DataPolicyManifestsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DataPolicyManifestsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -134,7 +155,7 @@ func (client *DataPolicyManifestsClient) listCreateRequest(ctx context.Context, // listHandleResponse handles the List response. func (client *DataPolicyManifestsClient) listHandleResponse(resp *http.Response) (DataPolicyManifestsClientListResponse, error) { - result := DataPolicyManifestsClientListResponse{RawResponse: resp} + result := DataPolicyManifestsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DataPolicyManifestListResult); err != nil { return DataPolicyManifestsClientListResponse{}, err } diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_definitions_client.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_definitions_client.go index e618297ca84d..5598d302cfa5 100644 --- a/sdk/resourcemanager/resources/armpolicy/zz_generated_definitions_client.go +++ b/sdk/resourcemanager/resources/armpolicy/zz_generated_definitions_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type DefinitionsClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *DefinitionsClient { +func NewDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DefinitionsClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &DefinitionsClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - This operation creates or updates a policy definition in the given subscription with the given name. @@ -95,7 +100,7 @@ func (client *DefinitionsClient) createOrUpdateCreateRequest(ctx context.Context // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *DefinitionsClient) createOrUpdateHandleResponse(resp *http.Response) (DefinitionsClientCreateOrUpdateResponse, error) { - result := DefinitionsClientCreateOrUpdateResponse{RawResponse: resp} + result := DefinitionsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Definition); err != nil { return DefinitionsClientCreateOrUpdateResponse{}, err } @@ -149,7 +154,7 @@ func (client *DefinitionsClient) createOrUpdateAtManagementGroupCreateRequest(ct // createOrUpdateAtManagementGroupHandleResponse handles the CreateOrUpdateAtManagementGroup response. func (client *DefinitionsClient) createOrUpdateAtManagementGroupHandleResponse(resp *http.Response) (DefinitionsClientCreateOrUpdateAtManagementGroupResponse, error) { - result := DefinitionsClientCreateOrUpdateAtManagementGroupResponse{RawResponse: resp} + result := DefinitionsClientCreateOrUpdateAtManagementGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Definition); err != nil { return DefinitionsClientCreateOrUpdateAtManagementGroupResponse{}, err } @@ -172,7 +177,7 @@ func (client *DefinitionsClient) Delete(ctx context.Context, policyDefinitionNam if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return DefinitionsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return DefinitionsClientDeleteResponse{RawResponse: resp}, nil + return DefinitionsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -215,7 +220,7 @@ func (client *DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, po if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return DefinitionsClientDeleteAtManagementGroupResponse{}, runtime.NewResponseError(resp) } - return DefinitionsClientDeleteAtManagementGroupResponse{RawResponse: resp}, nil + return DefinitionsClientDeleteAtManagementGroupResponse{}, nil } // deleteAtManagementGroupCreateRequest creates the DeleteAtManagementGroup request. @@ -283,7 +288,7 @@ func (client *DefinitionsClient) getCreateRequest(ctx context.Context, policyDef // getHandleResponse handles the Get response. func (client *DefinitionsClient) getHandleResponse(resp *http.Response) (DefinitionsClientGetResponse, error) { - result := DefinitionsClientGetResponse{RawResponse: resp} + result := DefinitionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Definition); err != nil { return DefinitionsClientGetResponse{}, err } @@ -335,7 +340,7 @@ func (client *DefinitionsClient) getAtManagementGroupCreateRequest(ctx context.C // getAtManagementGroupHandleResponse handles the GetAtManagementGroup response. func (client *DefinitionsClient) getAtManagementGroupHandleResponse(resp *http.Response) (DefinitionsClientGetAtManagementGroupResponse, error) { - result := DefinitionsClientGetAtManagementGroupResponse{RawResponse: resp} + result := DefinitionsClientGetAtManagementGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Definition); err != nil { return DefinitionsClientGetAtManagementGroupResponse{}, err } @@ -381,7 +386,7 @@ func (client *DefinitionsClient) getBuiltInCreateRequest(ctx context.Context, po // getBuiltInHandleResponse handles the GetBuiltIn response. func (client *DefinitionsClient) getBuiltInHandleResponse(resp *http.Response) (DefinitionsClientGetBuiltInResponse, error) { - result := DefinitionsClientGetBuiltInResponse{RawResponse: resp} + result := DefinitionsClientGetBuiltInResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Definition); err != nil { return DefinitionsClientGetBuiltInResponse{}, err } @@ -399,16 +404,32 @@ func (client *DefinitionsClient) getBuiltInHandleResponse(resp *http.Response) ( // {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. // If the operation fails it returns an *azcore.ResponseError type. // options - DefinitionsClientListOptions contains the optional parameters for the DefinitionsClient.List method. -func (client *DefinitionsClient) List(options *DefinitionsClientListOptions) *DefinitionsClientListPager { - return &DefinitionsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *DefinitionsClient) List(options *DefinitionsClientListOptions) *runtime.Pager[DefinitionsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[DefinitionsClientListResponse]{ + More: func(page DefinitionsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp DefinitionsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.DefinitionListResult.NextLink) + Fetcher: func(ctx context.Context, page *DefinitionsClientListResponse) (DefinitionsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return DefinitionsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return DefinitionsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DefinitionsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -439,7 +460,7 @@ func (client *DefinitionsClient) listCreateRequest(ctx context.Context, options // listHandleResponse handles the List response. func (client *DefinitionsClient) listHandleResponse(resp *http.Response) (DefinitionsClientListResponse, error) { - result := DefinitionsClientListResponse{RawResponse: resp} + result := DefinitionsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DefinitionListResult); err != nil { return DefinitionsClientListResponse{}, err } @@ -453,16 +474,32 @@ func (client *DefinitionsClient) listHandleResponse(resp *http.Response) (Defini // only includes all built-in policy definitions whose category match the {value}. // If the operation fails it returns an *azcore.ResponseError type. // options - DefinitionsClientListBuiltInOptions contains the optional parameters for the DefinitionsClient.ListBuiltIn method. -func (client *DefinitionsClient) ListBuiltIn(options *DefinitionsClientListBuiltInOptions) *DefinitionsClientListBuiltInPager { - return &DefinitionsClientListBuiltInPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listBuiltInCreateRequest(ctx, options) +func (client *DefinitionsClient) ListBuiltIn(options *DefinitionsClientListBuiltInOptions) *runtime.Pager[DefinitionsClientListBuiltInResponse] { + return runtime.NewPager(runtime.PageProcessor[DefinitionsClientListBuiltInResponse]{ + More: func(page DefinitionsClientListBuiltInResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp DefinitionsClientListBuiltInResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.DefinitionListResult.NextLink) + Fetcher: func(ctx context.Context, page *DefinitionsClientListBuiltInResponse) (DefinitionsClientListBuiltInResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBuiltInCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return DefinitionsClientListBuiltInResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return DefinitionsClientListBuiltInResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DefinitionsClientListBuiltInResponse{}, runtime.NewResponseError(resp) + } + return client.listBuiltInHandleResponse(resp) }, - } + }) } // listBuiltInCreateRequest creates the ListBuiltIn request. @@ -489,7 +526,7 @@ func (client *DefinitionsClient) listBuiltInCreateRequest(ctx context.Context, o // listBuiltInHandleResponse handles the ListBuiltIn response. func (client *DefinitionsClient) listBuiltInHandleResponse(resp *http.Response) (DefinitionsClientListBuiltInResponse, error) { - result := DefinitionsClientListBuiltInResponse{RawResponse: resp} + result := DefinitionsClientListBuiltInResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DefinitionListResult); err != nil { return DefinitionsClientListBuiltInResponse{}, err } @@ -510,16 +547,32 @@ func (client *DefinitionsClient) listBuiltInHandleResponse(resp *http.Response) // managementGroupID - The ID of the management group. // options - DefinitionsClientListByManagementGroupOptions contains the optional parameters for the DefinitionsClient.ListByManagementGroup // method. -func (client *DefinitionsClient) ListByManagementGroup(managementGroupID string, options *DefinitionsClientListByManagementGroupOptions) *DefinitionsClientListByManagementGroupPager { - return &DefinitionsClientListByManagementGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByManagementGroupCreateRequest(ctx, managementGroupID, options) +func (client *DefinitionsClient) ListByManagementGroup(managementGroupID string, options *DefinitionsClientListByManagementGroupOptions) *runtime.Pager[DefinitionsClientListByManagementGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[DefinitionsClientListByManagementGroupResponse]{ + More: func(page DefinitionsClientListByManagementGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp DefinitionsClientListByManagementGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.DefinitionListResult.NextLink) + Fetcher: func(ctx context.Context, page *DefinitionsClientListByManagementGroupResponse) (DefinitionsClientListByManagementGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByManagementGroupCreateRequest(ctx, managementGroupID, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return DefinitionsClientListByManagementGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return DefinitionsClientListByManagementGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DefinitionsClientListByManagementGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByManagementGroupHandleResponse(resp) }, - } + }) } // listByManagementGroupCreateRequest creates the ListByManagementGroup request. @@ -550,7 +603,7 @@ func (client *DefinitionsClient) listByManagementGroupCreateRequest(ctx context. // listByManagementGroupHandleResponse handles the ListByManagementGroup response. func (client *DefinitionsClient) listByManagementGroupHandleResponse(resp *http.Response) (DefinitionsClientListByManagementGroupResponse, error) { - result := DefinitionsClientListByManagementGroupResponse{RawResponse: resp} + result := DefinitionsClientListByManagementGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DefinitionListResult); err != nil { return DefinitionsClientListByManagementGroupResponse{}, err } diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_exemptions_client.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_exemptions_client.go index 926a297138b6..7e0a27026063 100644 --- a/sdk/resourcemanager/resources/armpolicy/zz_generated_exemptions_client.go +++ b/sdk/resourcemanager/resources/armpolicy/zz_generated_exemptions_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type ExemptionsClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewExemptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ExemptionsClient { +func NewExemptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExemptionsClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ExemptionsClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - This operation creates or updates a policy exemption with the given scope and name. Policy exemptions @@ -99,7 +104,7 @@ func (client *ExemptionsClient) createOrUpdateCreateRequest(ctx context.Context, // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *ExemptionsClient) createOrUpdateHandleResponse(resp *http.Response) (ExemptionsClientCreateOrUpdateResponse, error) { - result := ExemptionsClientCreateOrUpdateResponse{RawResponse: resp} + result := ExemptionsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Exemption); err != nil { return ExemptionsClientCreateOrUpdateResponse{}, err } @@ -129,7 +134,7 @@ func (client *ExemptionsClient) Delete(ctx context.Context, scope string, policy if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ExemptionsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return ExemptionsClientDeleteResponse{RawResponse: resp}, nil + return ExemptionsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -196,7 +201,7 @@ func (client *ExemptionsClient) getCreateRequest(ctx context.Context, scope stri // getHandleResponse handles the Get response. func (client *ExemptionsClient) getHandleResponse(resp *http.Response) (ExemptionsClientGetResponse, error) { - result := ExemptionsClientGetResponse{RawResponse: resp} + result := ExemptionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Exemption); err != nil { return ExemptionsClientGetResponse{}, err } @@ -211,16 +216,32 @@ func (client *ExemptionsClient) getHandleResponse(resp *http.Response) (Exemptio // the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - ExemptionsClientListOptions contains the optional parameters for the ExemptionsClient.List method. -func (client *ExemptionsClient) List(options *ExemptionsClientListOptions) *ExemptionsClientListPager { - return &ExemptionsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *ExemptionsClient) List(options *ExemptionsClientListOptions) *runtime.Pager[ExemptionsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[ExemptionsClientListResponse]{ + More: func(page ExemptionsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ExemptionsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ExemptionListResult.NextLink) + Fetcher: func(ctx context.Context, page *ExemptionsClientListResponse) (ExemptionsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ExemptionsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ExemptionsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ExemptionsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -248,7 +269,7 @@ func (client *ExemptionsClient) listCreateRequest(ctx context.Context, options * // listHandleResponse handles the List response. func (client *ExemptionsClient) listHandleResponse(resp *http.Response) (ExemptionsClientListResponse, error) { - result := ExemptionsClientListResponse{RawResponse: resp} + result := ExemptionsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ExemptionListResult); err != nil { return ExemptionsClientListResponse{}, err } @@ -264,16 +285,32 @@ func (client *ExemptionsClient) listHandleResponse(resp *http.Response) (Exempti // managementGroupID - The ID of the management group. // options - ExemptionsClientListForManagementGroupOptions contains the optional parameters for the ExemptionsClient.ListForManagementGroup // method. -func (client *ExemptionsClient) ListForManagementGroup(managementGroupID string, options *ExemptionsClientListForManagementGroupOptions) *ExemptionsClientListForManagementGroupPager { - return &ExemptionsClientListForManagementGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listForManagementGroupCreateRequest(ctx, managementGroupID, options) +func (client *ExemptionsClient) ListForManagementGroup(managementGroupID string, options *ExemptionsClientListForManagementGroupOptions) *runtime.Pager[ExemptionsClientListForManagementGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[ExemptionsClientListForManagementGroupResponse]{ + More: func(page ExemptionsClientListForManagementGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ExemptionsClientListForManagementGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ExemptionListResult.NextLink) + Fetcher: func(ctx context.Context, page *ExemptionsClientListForManagementGroupResponse) (ExemptionsClientListForManagementGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listForManagementGroupCreateRequest(ctx, managementGroupID, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ExemptionsClientListForManagementGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ExemptionsClientListForManagementGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ExemptionsClientListForManagementGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listForManagementGroupHandleResponse(resp) }, - } + }) } // listForManagementGroupCreateRequest creates the ListForManagementGroup request. @@ -301,7 +338,7 @@ func (client *ExemptionsClient) listForManagementGroupCreateRequest(ctx context. // listForManagementGroupHandleResponse handles the ListForManagementGroup response. func (client *ExemptionsClient) listForManagementGroupHandleResponse(resp *http.Response) (ExemptionsClientListForManagementGroupResponse, error) { - result := ExemptionsClientListForManagementGroupResponse{RawResponse: resp} + result := ExemptionsClientListForManagementGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ExemptionListResult); err != nil { return ExemptionsClientListForManagementGroupResponse{}, err } @@ -333,16 +370,32 @@ func (client *ExemptionsClient) listForManagementGroupHandleResponse(resp *http. // resourceName - The name of the resource. // options - ExemptionsClientListForResourceOptions contains the optional parameters for the ExemptionsClient.ListForResource // method. -func (client *ExemptionsClient) ListForResource(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, options *ExemptionsClientListForResourceOptions) *ExemptionsClientListForResourcePager { - return &ExemptionsClientListForResourcePager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listForResourceCreateRequest(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) +func (client *ExemptionsClient) ListForResource(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, options *ExemptionsClientListForResourceOptions) *runtime.Pager[ExemptionsClientListForResourceResponse] { + return runtime.NewPager(runtime.PageProcessor[ExemptionsClientListForResourceResponse]{ + More: func(page ExemptionsClientListForResourceResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ExemptionsClientListForResourceResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ExemptionListResult.NextLink) + Fetcher: func(ctx context.Context, page *ExemptionsClientListForResourceResponse) (ExemptionsClientListForResourceResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listForResourceCreateRequest(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ExemptionsClientListForResourceResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ExemptionsClientListForResourceResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ExemptionsClientListForResourceResponse{}, runtime.NewResponseError(resp) + } + return client.listForResourceHandleResponse(resp) }, - } + }) } // listForResourceCreateRequest creates the ListForResource request. @@ -384,7 +437,7 @@ func (client *ExemptionsClient) listForResourceCreateRequest(ctx context.Context // listForResourceHandleResponse handles the ListForResource response. func (client *ExemptionsClient) listForResourceHandleResponse(resp *http.Response) (ExemptionsClientListForResourceResponse, error) { - result := ExemptionsClientListForResourceResponse{RawResponse: resp} + result := ExemptionsClientListForResourceResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ExemptionListResult); err != nil { return ExemptionsClientListForResourceResponse{}, err } @@ -401,16 +454,32 @@ func (client *ExemptionsClient) listForResourceHandleResponse(resp *http.Respons // resourceGroupName - The name of the resource group containing the resource. // options - ExemptionsClientListForResourceGroupOptions contains the optional parameters for the ExemptionsClient.ListForResourceGroup // method. -func (client *ExemptionsClient) ListForResourceGroup(resourceGroupName string, options *ExemptionsClientListForResourceGroupOptions) *ExemptionsClientListForResourceGroupPager { - return &ExemptionsClientListForResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listForResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *ExemptionsClient) ListForResourceGroup(resourceGroupName string, options *ExemptionsClientListForResourceGroupOptions) *runtime.Pager[ExemptionsClientListForResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[ExemptionsClientListForResourceGroupResponse]{ + More: func(page ExemptionsClientListForResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ExemptionsClientListForResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ExemptionListResult.NextLink) + Fetcher: func(ctx context.Context, page *ExemptionsClientListForResourceGroupResponse) (ExemptionsClientListForResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listForResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ExemptionsClientListForResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ExemptionsClientListForResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ExemptionsClientListForResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listForResourceGroupHandleResponse(resp) }, - } + }) } // listForResourceGroupCreateRequest creates the ListForResourceGroup request. @@ -442,7 +511,7 @@ func (client *ExemptionsClient) listForResourceGroupCreateRequest(ctx context.Co // listForResourceGroupHandleResponse handles the ListForResourceGroup response. func (client *ExemptionsClient) listForResourceGroupHandleResponse(resp *http.Response) (ExemptionsClientListForResourceGroupResponse, error) { - result := ExemptionsClientListForResourceGroupResponse{RawResponse: resp} + result := ExemptionsClientListForResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ExemptionListResult); err != nil { return ExemptionsClientListForResourceGroupResponse{}, err } diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_models.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_models.go index 926d1e7bbc85..e80f5c9b341b 100644 --- a/sdk/resourcemanager/resources/armpolicy/zz_generated_models.go +++ b/sdk/resourcemanager/resources/armpolicy/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,7 @@ package armpolicy -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) +import "time" // Alias - The alias type. type Alias struct { @@ -36,18 +31,6 @@ type Alias struct { DefaultMetadata *AliasPathMetadata `json:"defaultMetadata,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Alias. -func (a Alias) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "defaultMetadata", a.DefaultMetadata) - populate(objectMap, "defaultPath", a.DefaultPath) - populate(objectMap, "defaultPattern", a.DefaultPattern) - populate(objectMap, "name", a.Name) - populate(objectMap, "paths", a.Paths) - populate(objectMap, "type", a.Type) - return json.Marshal(objectMap) -} - // AliasPath - The type of the paths for alias. type AliasPath struct { // The API versions. @@ -63,16 +46,6 @@ type AliasPath struct { Metadata *AliasPathMetadata `json:"metadata,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type AliasPath. -func (a AliasPath) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "apiVersions", a.APIVersions) - populate(objectMap, "metadata", a.Metadata) - populate(objectMap, "path", a.Path) - populate(objectMap, "pattern", a.Pattern) - return json.Marshal(objectMap) -} - type AliasPathMetadata struct { // READ-ONLY; The attributes of the token that the alias path is referring to. Attributes *AliasPathAttributes `json:"attributes,omitempty" azure:"ro"` @@ -126,14 +99,6 @@ type AssignmentListResult struct { Value []*Assignment `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type AssignmentListResult. -func (a AssignmentListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", a.NextLink) - populate(objectMap, "value", a.Value) - return json.Marshal(objectMap) -} - // AssignmentProperties - The policy assignment properties. type AssignmentProperties struct { // This message will be part of response in case of policy violation. @@ -164,21 +129,6 @@ type AssignmentProperties struct { Scope *string `json:"scope,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type AssignmentProperties. -func (a AssignmentProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", a.Description) - populate(objectMap, "displayName", a.DisplayName) - populate(objectMap, "enforcementMode", a.EnforcementMode) - populate(objectMap, "metadata", &a.Metadata) - populate(objectMap, "nonComplianceMessages", a.NonComplianceMessages) - populate(objectMap, "notScopes", a.NotScopes) - populate(objectMap, "parameters", a.Parameters) - populate(objectMap, "policyDefinitionId", a.PolicyDefinitionID) - populate(objectMap, "scope", a.Scope) - return json.Marshal(objectMap) -} - type AssignmentUpdate struct { // The managed identity associated with the policy assignment. Identity *Identity `json:"identity,omitempty"` @@ -187,14 +137,6 @@ type AssignmentUpdate struct { Location *string `json:"location,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type AssignmentUpdate. -func (a AssignmentUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", a.Identity) - populate(objectMap, "location", a.Location) - return json.Marshal(objectMap) -} - // AssignmentsClientCreateByIDOptions contains the optional parameters for the AssignmentsClient.CreateByID method. type AssignmentsClientCreateByIDOptions struct { // placeholder for future optional parameters @@ -293,6 +235,13 @@ type AssignmentsClientUpdateOptions struct { // placeholder for future optional parameters } +// CloudError - An error response from a policy operation. +type CloudError struct { + // Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + // the OData error response format.) + Error *ErrorResponse `json:"error,omitempty"` +} + // DataEffect - The data effect definition. type DataEffect struct { // The data effect details schema. @@ -319,16 +268,6 @@ type DataManifestCustomResourceFunctionDefinition struct { Name *string `json:"name,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type DataManifestCustomResourceFunctionDefinition. -func (d DataManifestCustomResourceFunctionDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowCustomProperties", d.AllowCustomProperties) - populate(objectMap, "defaultProperties", d.DefaultProperties) - populate(objectMap, "fullyQualifiedResourceType", d.FullyQualifiedResourceType) - populate(objectMap, "name", d.Name) - return json.Marshal(objectMap) -} - // DataManifestResourceFunctionsDefinition - The resource functions supported by a manifest type DataManifestResourceFunctionsDefinition struct { // An array of data manifest custom resource definition. @@ -338,14 +277,6 @@ type DataManifestResourceFunctionsDefinition struct { Standard []*string `json:"standard,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type DataManifestResourceFunctionsDefinition. -func (d DataManifestResourceFunctionsDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "custom", d.Custom) - populate(objectMap, "standard", d.Standard) - return json.Marshal(objectMap) -} - // DataPolicyManifest - The data policy manifest. type DataPolicyManifest struct { // The data policy manifest properties. @@ -370,14 +301,6 @@ type DataPolicyManifestListResult struct { Value []*DataPolicyManifest `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type DataPolicyManifestListResult. -func (d DataPolicyManifestListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", d.NextLink) - populate(objectMap, "value", d.Value) - return json.Marshal(objectMap) -} - // DataPolicyManifestProperties - The properties of the data policy manifest. type DataPolicyManifestProperties struct { // The effect definition. @@ -402,19 +325,6 @@ type DataPolicyManifestProperties struct { ResourceTypeAliases []*ResourceTypeAliases `json:"resourceTypeAliases,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type DataPolicyManifestProperties. -func (d DataPolicyManifestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "effects", d.Effects) - populate(objectMap, "fieldValues", d.FieldValues) - populate(objectMap, "isBuiltInOnly", d.IsBuiltInOnly) - populate(objectMap, "namespaces", d.Namespaces) - populate(objectMap, "policyMode", d.PolicyMode) - populate(objectMap, "resourceFunctions", d.ResourceFunctions) - populate(objectMap, "resourceTypeAliases", d.ResourceTypeAliases) - return json.Marshal(objectMap) -} - // DataPolicyManifestsClientGetByPolicyModeOptions contains the optional parameters for the DataPolicyManifestsClient.GetByPolicyMode // method. type DataPolicyManifestsClientGetByPolicyModeOptions struct { @@ -474,14 +384,6 @@ type DefinitionListResult struct { Value []*Definition `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type DefinitionListResult. -func (d DefinitionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", d.NextLink) - populate(objectMap, "value", d.Value) - return json.Marshal(objectMap) -} - // DefinitionProperties - The policy definition properties. type DefinitionProperties struct { // The policy definition description. @@ -506,19 +408,6 @@ type DefinitionProperties struct { PolicyType *PolicyType `json:"policyType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type DefinitionProperties. -func (d DefinitionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", d.Description) - populate(objectMap, "displayName", d.DisplayName) - populate(objectMap, "metadata", &d.Metadata) - populate(objectMap, "mode", d.Mode) - populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "policyRule", &d.PolicyRule) - populate(objectMap, "policyType", d.PolicyType) - return json.Marshal(objectMap) -} - // DefinitionReference - The policy definition reference. type DefinitionReference struct { // REQUIRED; The ID of the policy definition or policy set definition. @@ -534,16 +423,6 @@ type DefinitionReference struct { PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type DefinitionReference. -func (d DefinitionReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "groupNames", d.GroupNames) - populate(objectMap, "parameters", d.Parameters) - populate(objectMap, "policyDefinitionId", d.PolicyDefinitionID) - populate(objectMap, "policyDefinitionReferenceId", d.PolicyDefinitionReferenceID) - return json.Marshal(objectMap) -} - // DefinitionsClientCreateOrUpdateAtManagementGroupOptions contains the optional parameters for the DefinitionsClient.CreateOrUpdateAtManagementGroup // method. type DefinitionsClientCreateOrUpdateAtManagementGroupOptions struct { @@ -625,6 +504,34 @@ type DefinitionsClientListOptions struct { Top *int32 } +// ErrorAdditionalInfo - The resource management error additional info. +type ErrorAdditionalInfo struct { + // READ-ONLY; The additional info. + Info interface{} `json:"info,omitempty" azure:"ro"` + + // READ-ONLY; The additional info type. + Type *string `json:"type,omitempty" azure:"ro"` +} + +// ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. +// (This also follows the OData error response format.) +type ErrorResponse struct { + // READ-ONLY; The error additional info. + AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` + + // READ-ONLY; The error code. + Code *string `json:"code,omitempty" azure:"ro"` + + // READ-ONLY; The error details. + Details []*ErrorResponse `json:"details,omitempty" azure:"ro"` + + // READ-ONLY; The error message. + Message *string `json:"message,omitempty" azure:"ro"` + + // READ-ONLY; The error target. + Target *string `json:"target,omitempty" azure:"ro"` +} + // Exemption - The policy exemption. type Exemption struct { // REQUIRED; Properties for the policy exemption. @@ -652,14 +559,6 @@ type ExemptionListResult struct { NextLink *string `json:"nextLink,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ExemptionListResult. -func (e ExemptionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", e.NextLink) - populate(objectMap, "value", e.Value) - return json.Marshal(objectMap) -} - // ExemptionProperties - The policy exemption properties. type ExemptionProperties struct { // REQUIRED; The policy exemption category. Possible values are Waiver and Mitigated. @@ -684,57 +583,6 @@ type ExemptionProperties struct { PolicyDefinitionReferenceIDs []*string `json:"policyDefinitionReferenceIds,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ExemptionProperties. -func (e ExemptionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", e.Description) - populate(objectMap, "displayName", e.DisplayName) - populate(objectMap, "exemptionCategory", e.ExemptionCategory) - populateTimeRFC3339(objectMap, "expiresOn", e.ExpiresOn) - populate(objectMap, "metadata", &e.Metadata) - populate(objectMap, "policyAssignmentId", e.PolicyAssignmentID) - populate(objectMap, "policyDefinitionReferenceIds", e.PolicyDefinitionReferenceIDs) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ExemptionProperties. -func (e *ExemptionProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "description": - err = unpopulate(val, &e.Description) - delete(rawMsg, key) - case "displayName": - err = unpopulate(val, &e.DisplayName) - delete(rawMsg, key) - case "exemptionCategory": - err = unpopulate(val, &e.ExemptionCategory) - delete(rawMsg, key) - case "expiresOn": - err = unpopulateTimeRFC3339(val, &e.ExpiresOn) - delete(rawMsg, key) - case "metadata": - err = unpopulate(val, &e.Metadata) - delete(rawMsg, key) - case "policyAssignmentId": - err = unpopulate(val, &e.PolicyAssignmentID) - delete(rawMsg, key) - case "policyDefinitionReferenceIds": - err = unpopulate(val, &e.PolicyDefinitionReferenceIDs) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // ExemptionsClientCreateOrUpdateOptions contains the optional parameters for the ExemptionsClient.CreateOrUpdate method. type ExemptionsClientCreateOrUpdateOptions struct { // placeholder for future optional parameters @@ -834,16 +682,6 @@ type Identity struct { TenantID *string `json:"tenantId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Identity. -func (i Identity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", i.PrincipalID) - populate(objectMap, "tenantId", i.TenantID) - populate(objectMap, "type", i.Type) - populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) - return json.Marshal(objectMap) -} - // NonComplianceMessage - A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' // error messages and on resource's non-compliant compliance results. type NonComplianceMessage struct { @@ -872,16 +710,6 @@ type ParameterDefinitionsValue struct { Type *ParameterType `json:"type,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ParameterDefinitionsValue. -func (p ParameterDefinitionsValue) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowedValues", p.AllowedValues) - populate(objectMap, "defaultValue", &p.DefaultValue) - populate(objectMap, "metadata", p.Metadata) - populate(objectMap, "type", p.Type) - return json.Marshal(objectMap) -} - // ParameterDefinitionsValueMetadata - General metadata for the parameter. type ParameterDefinitionsValueMetadata struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. @@ -903,60 +731,6 @@ type ParameterDefinitionsValueMetadata struct { StrongType *string `json:"strongType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ParameterDefinitionsValueMetadata. -func (p ParameterDefinitionsValueMetadata) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "assignPermissions", p.AssignPermissions) - populate(objectMap, "description", p.Description) - populate(objectMap, "displayName", p.DisplayName) - populate(objectMap, "strongType", p.StrongType) - if p.AdditionalProperties != nil { - for key, val := range p.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ParameterDefinitionsValueMetadata. -func (p *ParameterDefinitionsValueMetadata) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "assignPermissions": - err = unpopulate(val, &p.AssignPermissions) - delete(rawMsg, key) - case "description": - err = unpopulate(val, &p.Description) - delete(rawMsg, key) - case "displayName": - err = unpopulate(val, &p.DisplayName) - delete(rawMsg, key) - case "strongType": - err = unpopulate(val, &p.StrongType) - delete(rawMsg, key) - default: - if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - p.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // ParameterValuesValue - The value of a parameter. type ParameterValuesValue struct { // The value of the parameter. @@ -972,14 +746,6 @@ type ResourceTypeAliases struct { ResourceType *string `json:"resourceType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ResourceTypeAliases. -func (r ResourceTypeAliases) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "aliases", r.Aliases) - populate(objectMap, "resourceType", r.ResourceType) - return json.Marshal(objectMap) -} - // SetDefinition - The policy set definition. type SetDefinition struct { // The policy definition properties. @@ -1007,14 +773,6 @@ type SetDefinitionListResult struct { Value []*SetDefinition `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SetDefinitionListResult. -func (s SetDefinitionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - // SetDefinitionProperties - The policy set definition properties. type SetDefinitionProperties struct { // REQUIRED; An array of policy definition references. @@ -1039,19 +797,6 @@ type SetDefinitionProperties struct { PolicyType *PolicyType `json:"policyType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SetDefinitionProperties. -func (s SetDefinitionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", s.Description) - populate(objectMap, "displayName", s.DisplayName) - populate(objectMap, "metadata", &s.Metadata) - populate(objectMap, "parameters", s.Parameters) - populate(objectMap, "policyDefinitionGroups", s.PolicyDefinitionGroups) - populate(objectMap, "policyDefinitions", s.PolicyDefinitions) - populate(objectMap, "policyType", s.PolicyType) - return json.Marshal(objectMap) -} - // SetDefinitionsClientCreateOrUpdateAtManagementGroupOptions contains the optional parameters for the SetDefinitionsClient.CreateOrUpdateAtManagementGroup // method. type SetDefinitionsClientCreateOrUpdateAtManagementGroupOptions struct { @@ -1155,53 +900,6 @@ type SystemData struct { LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - type UserAssignedIdentitiesValue struct { // READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty" azure:"ro"` @@ -1209,20 +907,3 @@ type UserAssignedIdentitiesValue struct { // READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` } - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, v interface{}) error { - if data == nil { - return nil - } - return json.Unmarshal(data, v) -} diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_models_serde.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_models_serde.go new file mode 100644 index 000000000000..10023aca2f83 --- /dev/null +++ b/sdk/resourcemanager/resources/armpolicy/zz_generated_models_serde.go @@ -0,0 +1,375 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armpolicy + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type Alias. +func (a Alias) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "defaultMetadata", a.DefaultMetadata) + populate(objectMap, "defaultPath", a.DefaultPath) + populate(objectMap, "defaultPattern", a.DefaultPattern) + populate(objectMap, "name", a.Name) + populate(objectMap, "paths", a.Paths) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AliasPath. +func (a AliasPath) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "apiVersions", a.APIVersions) + populate(objectMap, "metadata", a.Metadata) + populate(objectMap, "path", a.Path) + populate(objectMap, "pattern", a.Pattern) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AssignmentListResult. +func (a AssignmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AssignmentProperties. +func (a AssignmentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", a.Description) + populate(objectMap, "displayName", a.DisplayName) + populate(objectMap, "enforcementMode", a.EnforcementMode) + populate(objectMap, "metadata", &a.Metadata) + populate(objectMap, "nonComplianceMessages", a.NonComplianceMessages) + populate(objectMap, "notScopes", a.NotScopes) + populate(objectMap, "parameters", a.Parameters) + populate(objectMap, "policyDefinitionId", a.PolicyDefinitionID) + populate(objectMap, "scope", a.Scope) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AssignmentUpdate. +func (a AssignmentUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "identity", a.Identity) + populate(objectMap, "location", a.Location) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DataManifestCustomResourceFunctionDefinition. +func (d DataManifestCustomResourceFunctionDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "allowCustomProperties", d.AllowCustomProperties) + populate(objectMap, "defaultProperties", d.DefaultProperties) + populate(objectMap, "fullyQualifiedResourceType", d.FullyQualifiedResourceType) + populate(objectMap, "name", d.Name) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DataManifestResourceFunctionsDefinition. +func (d DataManifestResourceFunctionsDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "custom", d.Custom) + populate(objectMap, "standard", d.Standard) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DataPolicyManifestListResult. +func (d DataPolicyManifestListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DataPolicyManifestProperties. +func (d DataPolicyManifestProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "effects", d.Effects) + populate(objectMap, "fieldValues", d.FieldValues) + populate(objectMap, "isBuiltInOnly", d.IsBuiltInOnly) + populate(objectMap, "namespaces", d.Namespaces) + populate(objectMap, "policyMode", d.PolicyMode) + populate(objectMap, "resourceFunctions", d.ResourceFunctions) + populate(objectMap, "resourceTypeAliases", d.ResourceTypeAliases) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DefinitionListResult. +func (d DefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DefinitionProperties. +func (d DefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", d.Description) + populate(objectMap, "displayName", d.DisplayName) + populate(objectMap, "metadata", &d.Metadata) + populate(objectMap, "mode", d.Mode) + populate(objectMap, "parameters", d.Parameters) + populate(objectMap, "policyRule", &d.PolicyRule) + populate(objectMap, "policyType", d.PolicyType) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DefinitionReference. +func (d DefinitionReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "groupNames", d.GroupNames) + populate(objectMap, "parameters", d.Parameters) + populate(objectMap, "policyDefinitionId", d.PolicyDefinitionID) + populate(objectMap, "policyDefinitionReferenceId", d.PolicyDefinitionReferenceID) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. +func (e ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ExemptionListResult. +func (e ExemptionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", e.NextLink) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ExemptionProperties. +func (e ExemptionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", e.Description) + populate(objectMap, "displayName", e.DisplayName) + populate(objectMap, "exemptionCategory", e.ExemptionCategory) + populateTimeRFC3339(objectMap, "expiresOn", e.ExpiresOn) + populate(objectMap, "metadata", &e.Metadata) + populate(objectMap, "policyAssignmentId", e.PolicyAssignmentID) + populate(objectMap, "policyDefinitionReferenceIds", e.PolicyDefinitionReferenceIDs) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExemptionProperties. +func (e *ExemptionProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, &e.Description) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, &e.DisplayName) + delete(rawMsg, key) + case "exemptionCategory": + err = unpopulate(val, &e.ExemptionCategory) + delete(rawMsg, key) + case "expiresOn": + err = unpopulateTimeRFC3339(val, &e.ExpiresOn) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, &e.Metadata) + delete(rawMsg, key) + case "policyAssignmentId": + err = unpopulate(val, &e.PolicyAssignmentID) + delete(rawMsg, key) + case "policyDefinitionReferenceIds": + err = unpopulate(val, &e.PolicyDefinitionReferenceIDs) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Identity. +func (i Identity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "principalId", i.PrincipalID) + populate(objectMap, "tenantId", i.TenantID) + populate(objectMap, "type", i.Type) + populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ParameterDefinitionsValue. +func (p ParameterDefinitionsValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "allowedValues", p.AllowedValues) + populate(objectMap, "defaultValue", &p.DefaultValue) + populate(objectMap, "metadata", p.Metadata) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ParameterDefinitionsValueMetadata. +func (p ParameterDefinitionsValueMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "assignPermissions", p.AssignPermissions) + populate(objectMap, "description", p.Description) + populate(objectMap, "displayName", p.DisplayName) + populate(objectMap, "strongType", p.StrongType) + if p.AdditionalProperties != nil { + for key, val := range p.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ParameterDefinitionsValueMetadata. +func (p *ParameterDefinitionsValueMetadata) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "assignPermissions": + err = unpopulate(val, &p.AssignPermissions) + delete(rawMsg, key) + case "description": + err = unpopulate(val, &p.Description) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, &p.DisplayName) + delete(rawMsg, key) + case "strongType": + err = unpopulate(val, &p.StrongType) + delete(rawMsg, key) + default: + if p.AdditionalProperties == nil { + p.AdditionalProperties = map[string]interface{}{} + } + if val != nil { + var aux interface{} + err = json.Unmarshal(val, &aux) + p.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ResourceTypeAliases. +func (r ResourceTypeAliases) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "aliases", r.Aliases) + populate(objectMap, "resourceType", r.ResourceType) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SetDefinitionListResult. +func (s SetDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SetDefinitionProperties. +func (s SetDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", s.Description) + populate(objectMap, "displayName", s.DisplayName) + populate(objectMap, "metadata", &s.Metadata) + populate(objectMap, "parameters", s.Parameters) + populate(objectMap, "policyDefinitionGroups", s.PolicyDefinitionGroups) + populate(objectMap, "policyDefinitions", s.PolicyDefinitions) + populate(objectMap, "policyType", s.PolicyType) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, v interface{}) error { + if data == nil { + return nil + } + return json.Unmarshal(data, v) +} diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_pagers.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_pagers.go deleted file mode 100644 index da9f15b9c2aa..000000000000 --- a/sdk/resourcemanager/resources/armpolicy/zz_generated_pagers.go +++ /dev/null @@ -1,827 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armpolicy - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// AssignmentsClientListForManagementGroupPager provides operations for iterating over paged responses. -type AssignmentsClientListForManagementGroupPager struct { - client *AssignmentsClient - current AssignmentsClientListForManagementGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, AssignmentsClientListForManagementGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *AssignmentsClientListForManagementGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *AssignmentsClientListForManagementGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.AssignmentListResult.NextLink == nil || len(*p.current.AssignmentListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listForManagementGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current AssignmentsClientListForManagementGroupResponse page. -func (p *AssignmentsClientListForManagementGroupPager) PageResponse() AssignmentsClientListForManagementGroupResponse { - return p.current -} - -// AssignmentsClientListForResourceGroupPager provides operations for iterating over paged responses. -type AssignmentsClientListForResourceGroupPager struct { - client *AssignmentsClient - current AssignmentsClientListForResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, AssignmentsClientListForResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *AssignmentsClientListForResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *AssignmentsClientListForResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.AssignmentListResult.NextLink == nil || len(*p.current.AssignmentListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listForResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current AssignmentsClientListForResourceGroupResponse page. -func (p *AssignmentsClientListForResourceGroupPager) PageResponse() AssignmentsClientListForResourceGroupResponse { - return p.current -} - -// AssignmentsClientListForResourcePager provides operations for iterating over paged responses. -type AssignmentsClientListForResourcePager struct { - client *AssignmentsClient - current AssignmentsClientListForResourceResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, AssignmentsClientListForResourceResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *AssignmentsClientListForResourcePager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *AssignmentsClientListForResourcePager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.AssignmentListResult.NextLink == nil || len(*p.current.AssignmentListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listForResourceHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current AssignmentsClientListForResourceResponse page. -func (p *AssignmentsClientListForResourcePager) PageResponse() AssignmentsClientListForResourceResponse { - return p.current -} - -// AssignmentsClientListPager provides operations for iterating over paged responses. -type AssignmentsClientListPager struct { - client *AssignmentsClient - current AssignmentsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, AssignmentsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *AssignmentsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *AssignmentsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.AssignmentListResult.NextLink == nil || len(*p.current.AssignmentListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current AssignmentsClientListResponse page. -func (p *AssignmentsClientListPager) PageResponse() AssignmentsClientListResponse { - return p.current -} - -// DataPolicyManifestsClientListPager provides operations for iterating over paged responses. -type DataPolicyManifestsClientListPager struct { - client *DataPolicyManifestsClient - current DataPolicyManifestsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, DataPolicyManifestsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *DataPolicyManifestsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *DataPolicyManifestsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.DataPolicyManifestListResult.NextLink == nil || len(*p.current.DataPolicyManifestListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current DataPolicyManifestsClientListResponse page. -func (p *DataPolicyManifestsClientListPager) PageResponse() DataPolicyManifestsClientListResponse { - return p.current -} - -// DefinitionsClientListBuiltInPager provides operations for iterating over paged responses. -type DefinitionsClientListBuiltInPager struct { - client *DefinitionsClient - current DefinitionsClientListBuiltInResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, DefinitionsClientListBuiltInResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *DefinitionsClientListBuiltInPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *DefinitionsClientListBuiltInPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.DefinitionListResult.NextLink == nil || len(*p.current.DefinitionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listBuiltInHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current DefinitionsClientListBuiltInResponse page. -func (p *DefinitionsClientListBuiltInPager) PageResponse() DefinitionsClientListBuiltInResponse { - return p.current -} - -// DefinitionsClientListByManagementGroupPager provides operations for iterating over paged responses. -type DefinitionsClientListByManagementGroupPager struct { - client *DefinitionsClient - current DefinitionsClientListByManagementGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, DefinitionsClientListByManagementGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *DefinitionsClientListByManagementGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *DefinitionsClientListByManagementGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.DefinitionListResult.NextLink == nil || len(*p.current.DefinitionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByManagementGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current DefinitionsClientListByManagementGroupResponse page. -func (p *DefinitionsClientListByManagementGroupPager) PageResponse() DefinitionsClientListByManagementGroupResponse { - return p.current -} - -// DefinitionsClientListPager provides operations for iterating over paged responses. -type DefinitionsClientListPager struct { - client *DefinitionsClient - current DefinitionsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, DefinitionsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *DefinitionsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *DefinitionsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.DefinitionListResult.NextLink == nil || len(*p.current.DefinitionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current DefinitionsClientListResponse page. -func (p *DefinitionsClientListPager) PageResponse() DefinitionsClientListResponse { - return p.current -} - -// ExemptionsClientListForManagementGroupPager provides operations for iterating over paged responses. -type ExemptionsClientListForManagementGroupPager struct { - client *ExemptionsClient - current ExemptionsClientListForManagementGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ExemptionsClientListForManagementGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ExemptionsClientListForManagementGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ExemptionsClientListForManagementGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ExemptionListResult.NextLink == nil || len(*p.current.ExemptionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listForManagementGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ExemptionsClientListForManagementGroupResponse page. -func (p *ExemptionsClientListForManagementGroupPager) PageResponse() ExemptionsClientListForManagementGroupResponse { - return p.current -} - -// ExemptionsClientListForResourceGroupPager provides operations for iterating over paged responses. -type ExemptionsClientListForResourceGroupPager struct { - client *ExemptionsClient - current ExemptionsClientListForResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ExemptionsClientListForResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ExemptionsClientListForResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ExemptionsClientListForResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ExemptionListResult.NextLink == nil || len(*p.current.ExemptionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listForResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ExemptionsClientListForResourceGroupResponse page. -func (p *ExemptionsClientListForResourceGroupPager) PageResponse() ExemptionsClientListForResourceGroupResponse { - return p.current -} - -// ExemptionsClientListForResourcePager provides operations for iterating over paged responses. -type ExemptionsClientListForResourcePager struct { - client *ExemptionsClient - current ExemptionsClientListForResourceResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ExemptionsClientListForResourceResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ExemptionsClientListForResourcePager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ExemptionsClientListForResourcePager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ExemptionListResult.NextLink == nil || len(*p.current.ExemptionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listForResourceHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ExemptionsClientListForResourceResponse page. -func (p *ExemptionsClientListForResourcePager) PageResponse() ExemptionsClientListForResourceResponse { - return p.current -} - -// ExemptionsClientListPager provides operations for iterating over paged responses. -type ExemptionsClientListPager struct { - client *ExemptionsClient - current ExemptionsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ExemptionsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ExemptionsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ExemptionsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ExemptionListResult.NextLink == nil || len(*p.current.ExemptionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ExemptionsClientListResponse page. -func (p *ExemptionsClientListPager) PageResponse() ExemptionsClientListResponse { - return p.current -} - -// SetDefinitionsClientListBuiltInPager provides operations for iterating over paged responses. -type SetDefinitionsClientListBuiltInPager struct { - client *SetDefinitionsClient - current SetDefinitionsClientListBuiltInResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, SetDefinitionsClientListBuiltInResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *SetDefinitionsClientListBuiltInPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *SetDefinitionsClientListBuiltInPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SetDefinitionListResult.NextLink == nil || len(*p.current.SetDefinitionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listBuiltInHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current SetDefinitionsClientListBuiltInResponse page. -func (p *SetDefinitionsClientListBuiltInPager) PageResponse() SetDefinitionsClientListBuiltInResponse { - return p.current -} - -// SetDefinitionsClientListByManagementGroupPager provides operations for iterating over paged responses. -type SetDefinitionsClientListByManagementGroupPager struct { - client *SetDefinitionsClient - current SetDefinitionsClientListByManagementGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, SetDefinitionsClientListByManagementGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *SetDefinitionsClientListByManagementGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *SetDefinitionsClientListByManagementGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SetDefinitionListResult.NextLink == nil || len(*p.current.SetDefinitionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByManagementGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current SetDefinitionsClientListByManagementGroupResponse page. -func (p *SetDefinitionsClientListByManagementGroupPager) PageResponse() SetDefinitionsClientListByManagementGroupResponse { - return p.current -} - -// SetDefinitionsClientListPager provides operations for iterating over paged responses. -type SetDefinitionsClientListPager struct { - client *SetDefinitionsClient - current SetDefinitionsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, SetDefinitionsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *SetDefinitionsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *SetDefinitionsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SetDefinitionListResult.NextLink == nil || len(*p.current.SetDefinitionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current SetDefinitionsClientListResponse page. -func (p *SetDefinitionsClientListPager) PageResponse() SetDefinitionsClientListResponse { - return p.current -} diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_response_types.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_response_types.go index bef8b5f2a11a..1c2641b09b03 100644 --- a/sdk/resourcemanager/resources/armpolicy/zz_generated_response_types.go +++ b/sdk/resourcemanager/resources/armpolicy/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,466 +8,207 @@ package armpolicy -import "net/http" - // AssignmentsClientCreateByIDResponse contains the response from method AssignmentsClient.CreateByID. type AssignmentsClientCreateByIDResponse struct { - AssignmentsClientCreateByIDResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientCreateByIDResult contains the result from method AssignmentsClient.CreateByID. -type AssignmentsClientCreateByIDResult struct { Assignment } // AssignmentsClientCreateResponse contains the response from method AssignmentsClient.Create. type AssignmentsClientCreateResponse struct { - AssignmentsClientCreateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientCreateResult contains the result from method AssignmentsClient.Create. -type AssignmentsClientCreateResult struct { Assignment } // AssignmentsClientDeleteByIDResponse contains the response from method AssignmentsClient.DeleteByID. type AssignmentsClientDeleteByIDResponse struct { - AssignmentsClientDeleteByIDResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientDeleteByIDResult contains the result from method AssignmentsClient.DeleteByID. -type AssignmentsClientDeleteByIDResult struct { Assignment } // AssignmentsClientDeleteResponse contains the response from method AssignmentsClient.Delete. type AssignmentsClientDeleteResponse struct { - AssignmentsClientDeleteResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientDeleteResult contains the result from method AssignmentsClient.Delete. -type AssignmentsClientDeleteResult struct { Assignment } // AssignmentsClientGetByIDResponse contains the response from method AssignmentsClient.GetByID. type AssignmentsClientGetByIDResponse struct { - AssignmentsClientGetByIDResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientGetByIDResult contains the result from method AssignmentsClient.GetByID. -type AssignmentsClientGetByIDResult struct { Assignment } // AssignmentsClientGetResponse contains the response from method AssignmentsClient.Get. type AssignmentsClientGetResponse struct { - AssignmentsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientGetResult contains the result from method AssignmentsClient.Get. -type AssignmentsClientGetResult struct { Assignment } // AssignmentsClientListForManagementGroupResponse contains the response from method AssignmentsClient.ListForManagementGroup. type AssignmentsClientListForManagementGroupResponse struct { - AssignmentsClientListForManagementGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientListForManagementGroupResult contains the result from method AssignmentsClient.ListForManagementGroup. -type AssignmentsClientListForManagementGroupResult struct { AssignmentListResult } // AssignmentsClientListForResourceGroupResponse contains the response from method AssignmentsClient.ListForResourceGroup. type AssignmentsClientListForResourceGroupResponse struct { - AssignmentsClientListForResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientListForResourceGroupResult contains the result from method AssignmentsClient.ListForResourceGroup. -type AssignmentsClientListForResourceGroupResult struct { AssignmentListResult } // AssignmentsClientListForResourceResponse contains the response from method AssignmentsClient.ListForResource. type AssignmentsClientListForResourceResponse struct { - AssignmentsClientListForResourceResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientListForResourceResult contains the result from method AssignmentsClient.ListForResource. -type AssignmentsClientListForResourceResult struct { AssignmentListResult } // AssignmentsClientListResponse contains the response from method AssignmentsClient.List. type AssignmentsClientListResponse struct { - AssignmentsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientListResult contains the result from method AssignmentsClient.List. -type AssignmentsClientListResult struct { AssignmentListResult } // AssignmentsClientUpdateByIDResponse contains the response from method AssignmentsClient.UpdateByID. type AssignmentsClientUpdateByIDResponse struct { - AssignmentsClientUpdateByIDResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientUpdateByIDResult contains the result from method AssignmentsClient.UpdateByID. -type AssignmentsClientUpdateByIDResult struct { Assignment } // AssignmentsClientUpdateResponse contains the response from method AssignmentsClient.Update. type AssignmentsClientUpdateResponse struct { - AssignmentsClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AssignmentsClientUpdateResult contains the result from method AssignmentsClient.Update. -type AssignmentsClientUpdateResult struct { Assignment } // DataPolicyManifestsClientGetByPolicyModeResponse contains the response from method DataPolicyManifestsClient.GetByPolicyMode. type DataPolicyManifestsClientGetByPolicyModeResponse struct { - DataPolicyManifestsClientGetByPolicyModeResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DataPolicyManifestsClientGetByPolicyModeResult contains the result from method DataPolicyManifestsClient.GetByPolicyMode. -type DataPolicyManifestsClientGetByPolicyModeResult struct { DataPolicyManifest } // DataPolicyManifestsClientListResponse contains the response from method DataPolicyManifestsClient.List. type DataPolicyManifestsClientListResponse struct { - DataPolicyManifestsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DataPolicyManifestsClientListResult contains the result from method DataPolicyManifestsClient.List. -type DataPolicyManifestsClientListResult struct { DataPolicyManifestListResult } // DefinitionsClientCreateOrUpdateAtManagementGroupResponse contains the response from method DefinitionsClient.CreateOrUpdateAtManagementGroup. type DefinitionsClientCreateOrUpdateAtManagementGroupResponse struct { - DefinitionsClientCreateOrUpdateAtManagementGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DefinitionsClientCreateOrUpdateAtManagementGroupResult contains the result from method DefinitionsClient.CreateOrUpdateAtManagementGroup. -type DefinitionsClientCreateOrUpdateAtManagementGroupResult struct { Definition } // DefinitionsClientCreateOrUpdateResponse contains the response from method DefinitionsClient.CreateOrUpdate. type DefinitionsClientCreateOrUpdateResponse struct { - DefinitionsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DefinitionsClientCreateOrUpdateResult contains the result from method DefinitionsClient.CreateOrUpdate. -type DefinitionsClientCreateOrUpdateResult struct { Definition } // DefinitionsClientDeleteAtManagementGroupResponse contains the response from method DefinitionsClient.DeleteAtManagementGroup. type DefinitionsClientDeleteAtManagementGroupResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // DefinitionsClientDeleteResponse contains the response from method DefinitionsClient.Delete. type DefinitionsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // DefinitionsClientGetAtManagementGroupResponse contains the response from method DefinitionsClient.GetAtManagementGroup. type DefinitionsClientGetAtManagementGroupResponse struct { - DefinitionsClientGetAtManagementGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DefinitionsClientGetAtManagementGroupResult contains the result from method DefinitionsClient.GetAtManagementGroup. -type DefinitionsClientGetAtManagementGroupResult struct { Definition } // DefinitionsClientGetBuiltInResponse contains the response from method DefinitionsClient.GetBuiltIn. type DefinitionsClientGetBuiltInResponse struct { - DefinitionsClientGetBuiltInResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DefinitionsClientGetBuiltInResult contains the result from method DefinitionsClient.GetBuiltIn. -type DefinitionsClientGetBuiltInResult struct { Definition } // DefinitionsClientGetResponse contains the response from method DefinitionsClient.Get. type DefinitionsClientGetResponse struct { - DefinitionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DefinitionsClientGetResult contains the result from method DefinitionsClient.Get. -type DefinitionsClientGetResult struct { Definition } // DefinitionsClientListBuiltInResponse contains the response from method DefinitionsClient.ListBuiltIn. type DefinitionsClientListBuiltInResponse struct { - DefinitionsClientListBuiltInResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DefinitionsClientListBuiltInResult contains the result from method DefinitionsClient.ListBuiltIn. -type DefinitionsClientListBuiltInResult struct { DefinitionListResult } // DefinitionsClientListByManagementGroupResponse contains the response from method DefinitionsClient.ListByManagementGroup. type DefinitionsClientListByManagementGroupResponse struct { - DefinitionsClientListByManagementGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DefinitionsClientListByManagementGroupResult contains the result from method DefinitionsClient.ListByManagementGroup. -type DefinitionsClientListByManagementGroupResult struct { DefinitionListResult } // DefinitionsClientListResponse contains the response from method DefinitionsClient.List. type DefinitionsClientListResponse struct { - DefinitionsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DefinitionsClientListResult contains the result from method DefinitionsClient.List. -type DefinitionsClientListResult struct { DefinitionListResult } // ExemptionsClientCreateOrUpdateResponse contains the response from method ExemptionsClient.CreateOrUpdate. type ExemptionsClientCreateOrUpdateResponse struct { - ExemptionsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ExemptionsClientCreateOrUpdateResult contains the result from method ExemptionsClient.CreateOrUpdate. -type ExemptionsClientCreateOrUpdateResult struct { Exemption } // ExemptionsClientDeleteResponse contains the response from method ExemptionsClient.Delete. type ExemptionsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ExemptionsClientGetResponse contains the response from method ExemptionsClient.Get. type ExemptionsClientGetResponse struct { - ExemptionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ExemptionsClientGetResult contains the result from method ExemptionsClient.Get. -type ExemptionsClientGetResult struct { Exemption } // ExemptionsClientListForManagementGroupResponse contains the response from method ExemptionsClient.ListForManagementGroup. type ExemptionsClientListForManagementGroupResponse struct { - ExemptionsClientListForManagementGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ExemptionsClientListForManagementGroupResult contains the result from method ExemptionsClient.ListForManagementGroup. -type ExemptionsClientListForManagementGroupResult struct { ExemptionListResult } // ExemptionsClientListForResourceGroupResponse contains the response from method ExemptionsClient.ListForResourceGroup. type ExemptionsClientListForResourceGroupResponse struct { - ExemptionsClientListForResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ExemptionsClientListForResourceGroupResult contains the result from method ExemptionsClient.ListForResourceGroup. -type ExemptionsClientListForResourceGroupResult struct { ExemptionListResult } // ExemptionsClientListForResourceResponse contains the response from method ExemptionsClient.ListForResource. type ExemptionsClientListForResourceResponse struct { - ExemptionsClientListForResourceResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ExemptionsClientListForResourceResult contains the result from method ExemptionsClient.ListForResource. -type ExemptionsClientListForResourceResult struct { ExemptionListResult } // ExemptionsClientListResponse contains the response from method ExemptionsClient.List. type ExemptionsClientListResponse struct { - ExemptionsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ExemptionsClientListResult contains the result from method ExemptionsClient.List. -type ExemptionsClientListResult struct { ExemptionListResult } // SetDefinitionsClientCreateOrUpdateAtManagementGroupResponse contains the response from method SetDefinitionsClient.CreateOrUpdateAtManagementGroup. type SetDefinitionsClientCreateOrUpdateAtManagementGroupResponse struct { - SetDefinitionsClientCreateOrUpdateAtManagementGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SetDefinitionsClientCreateOrUpdateAtManagementGroupResult contains the result from method SetDefinitionsClient.CreateOrUpdateAtManagementGroup. -type SetDefinitionsClientCreateOrUpdateAtManagementGroupResult struct { SetDefinition } // SetDefinitionsClientCreateOrUpdateResponse contains the response from method SetDefinitionsClient.CreateOrUpdate. type SetDefinitionsClientCreateOrUpdateResponse struct { - SetDefinitionsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SetDefinitionsClientCreateOrUpdateResult contains the result from method SetDefinitionsClient.CreateOrUpdate. -type SetDefinitionsClientCreateOrUpdateResult struct { SetDefinition } // SetDefinitionsClientDeleteAtManagementGroupResponse contains the response from method SetDefinitionsClient.DeleteAtManagementGroup. type SetDefinitionsClientDeleteAtManagementGroupResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // SetDefinitionsClientDeleteResponse contains the response from method SetDefinitionsClient.Delete. type SetDefinitionsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // SetDefinitionsClientGetAtManagementGroupResponse contains the response from method SetDefinitionsClient.GetAtManagementGroup. type SetDefinitionsClientGetAtManagementGroupResponse struct { - SetDefinitionsClientGetAtManagementGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SetDefinitionsClientGetAtManagementGroupResult contains the result from method SetDefinitionsClient.GetAtManagementGroup. -type SetDefinitionsClientGetAtManagementGroupResult struct { SetDefinition } // SetDefinitionsClientGetBuiltInResponse contains the response from method SetDefinitionsClient.GetBuiltIn. type SetDefinitionsClientGetBuiltInResponse struct { - SetDefinitionsClientGetBuiltInResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SetDefinitionsClientGetBuiltInResult contains the result from method SetDefinitionsClient.GetBuiltIn. -type SetDefinitionsClientGetBuiltInResult struct { SetDefinition } // SetDefinitionsClientGetResponse contains the response from method SetDefinitionsClient.Get. type SetDefinitionsClientGetResponse struct { - SetDefinitionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SetDefinitionsClientGetResult contains the result from method SetDefinitionsClient.Get. -type SetDefinitionsClientGetResult struct { SetDefinition } // SetDefinitionsClientListBuiltInResponse contains the response from method SetDefinitionsClient.ListBuiltIn. type SetDefinitionsClientListBuiltInResponse struct { - SetDefinitionsClientListBuiltInResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SetDefinitionsClientListBuiltInResult contains the result from method SetDefinitionsClient.ListBuiltIn. -type SetDefinitionsClientListBuiltInResult struct { SetDefinitionListResult } // SetDefinitionsClientListByManagementGroupResponse contains the response from method SetDefinitionsClient.ListByManagementGroup. type SetDefinitionsClientListByManagementGroupResponse struct { - SetDefinitionsClientListByManagementGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SetDefinitionsClientListByManagementGroupResult contains the result from method SetDefinitionsClient.ListByManagementGroup. -type SetDefinitionsClientListByManagementGroupResult struct { SetDefinitionListResult } // SetDefinitionsClientListResponse contains the response from method SetDefinitionsClient.List. type SetDefinitionsClientListResponse struct { - SetDefinitionsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SetDefinitionsClientListResult contains the result from method SetDefinitionsClient.List. -type SetDefinitionsClientListResult struct { SetDefinitionListResult } diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_setdefinitions_client.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_setdefinitions_client.go index 146e731c9cf1..336002827ab4 100644 --- a/sdk/resourcemanager/resources/armpolicy/zz_generated_setdefinitions_client.go +++ b/sdk/resourcemanager/resources/armpolicy/zz_generated_setdefinitions_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -34,20 +35,24 @@ type SetDefinitionsClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewSetDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *SetDefinitionsClient { +func NewSetDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SetDefinitionsClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &SetDefinitionsClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - This operation creates or updates a policy set definition in the given subscription with the given name. @@ -95,7 +100,7 @@ func (client *SetDefinitionsClient) createOrUpdateCreateRequest(ctx context.Cont // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *SetDefinitionsClient) createOrUpdateHandleResponse(resp *http.Response) (SetDefinitionsClientCreateOrUpdateResponse, error) { - result := SetDefinitionsClientCreateOrUpdateResponse{RawResponse: resp} + result := SetDefinitionsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SetDefinition); err != nil { return SetDefinitionsClientCreateOrUpdateResponse{}, err } @@ -149,7 +154,7 @@ func (client *SetDefinitionsClient) createOrUpdateAtManagementGroupCreateRequest // createOrUpdateAtManagementGroupHandleResponse handles the CreateOrUpdateAtManagementGroup response. func (client *SetDefinitionsClient) createOrUpdateAtManagementGroupHandleResponse(resp *http.Response) (SetDefinitionsClientCreateOrUpdateAtManagementGroupResponse, error) { - result := SetDefinitionsClientCreateOrUpdateAtManagementGroupResponse{RawResponse: resp} + result := SetDefinitionsClientCreateOrUpdateAtManagementGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SetDefinition); err != nil { return SetDefinitionsClientCreateOrUpdateAtManagementGroupResponse{}, err } @@ -172,7 +177,7 @@ func (client *SetDefinitionsClient) Delete(ctx context.Context, policySetDefinit if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return SetDefinitionsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return SetDefinitionsClientDeleteResponse{RawResponse: resp}, nil + return SetDefinitionsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -216,7 +221,7 @@ func (client *SetDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return SetDefinitionsClientDeleteAtManagementGroupResponse{}, runtime.NewResponseError(resp) } - return SetDefinitionsClientDeleteAtManagementGroupResponse{RawResponse: resp}, nil + return SetDefinitionsClientDeleteAtManagementGroupResponse{}, nil } // deleteAtManagementGroupCreateRequest creates the DeleteAtManagementGroup request. @@ -284,7 +289,7 @@ func (client *SetDefinitionsClient) getCreateRequest(ctx context.Context, policy // getHandleResponse handles the Get response. func (client *SetDefinitionsClient) getHandleResponse(resp *http.Response) (SetDefinitionsClientGetResponse, error) { - result := SetDefinitionsClientGetResponse{RawResponse: resp} + result := SetDefinitionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SetDefinition); err != nil { return SetDefinitionsClientGetResponse{}, err } @@ -337,7 +342,7 @@ func (client *SetDefinitionsClient) getAtManagementGroupCreateRequest(ctx contex // getAtManagementGroupHandleResponse handles the GetAtManagementGroup response. func (client *SetDefinitionsClient) getAtManagementGroupHandleResponse(resp *http.Response) (SetDefinitionsClientGetAtManagementGroupResponse, error) { - result := SetDefinitionsClientGetAtManagementGroupResponse{RawResponse: resp} + result := SetDefinitionsClientGetAtManagementGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SetDefinition); err != nil { return SetDefinitionsClientGetAtManagementGroupResponse{}, err } @@ -384,7 +389,7 @@ func (client *SetDefinitionsClient) getBuiltInCreateRequest(ctx context.Context, // getBuiltInHandleResponse handles the GetBuiltIn response. func (client *SetDefinitionsClient) getBuiltInHandleResponse(resp *http.Response) (SetDefinitionsClientGetBuiltInResponse, error) { - result := SetDefinitionsClientGetBuiltInResponse{RawResponse: resp} + result := SetDefinitionsClientGetBuiltInResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SetDefinition); err != nil { return SetDefinitionsClientGetBuiltInResponse{}, err } @@ -403,16 +408,32 @@ func (client *SetDefinitionsClient) getBuiltInHandleResponse(resp *http.Response // match the {value}. // If the operation fails it returns an *azcore.ResponseError type. // options - SetDefinitionsClientListOptions contains the optional parameters for the SetDefinitionsClient.List method. -func (client *SetDefinitionsClient) List(options *SetDefinitionsClientListOptions) *SetDefinitionsClientListPager { - return &SetDefinitionsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *SetDefinitionsClient) List(options *SetDefinitionsClientListOptions) *runtime.Pager[SetDefinitionsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[SetDefinitionsClientListResponse]{ + More: func(page SetDefinitionsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp SetDefinitionsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SetDefinitionListResult.NextLink) + Fetcher: func(ctx context.Context, page *SetDefinitionsClientListResponse) (SetDefinitionsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return SetDefinitionsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SetDefinitionsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SetDefinitionsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -443,7 +464,7 @@ func (client *SetDefinitionsClient) listCreateRequest(ctx context.Context, optio // listHandleResponse handles the List response. func (client *SetDefinitionsClient) listHandleResponse(resp *http.Response) (SetDefinitionsClientListResponse, error) { - result := SetDefinitionsClientListResponse{RawResponse: resp} + result := SetDefinitionsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SetDefinitionListResult); err != nil { return SetDefinitionsClientListResponse{}, err } @@ -456,16 +477,32 @@ func (client *SetDefinitionsClient) listHandleResponse(resp *http.Response) (Set // If the operation fails it returns an *azcore.ResponseError type. // options - SetDefinitionsClientListBuiltInOptions contains the optional parameters for the SetDefinitionsClient.ListBuiltIn // method. -func (client *SetDefinitionsClient) ListBuiltIn(options *SetDefinitionsClientListBuiltInOptions) *SetDefinitionsClientListBuiltInPager { - return &SetDefinitionsClientListBuiltInPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listBuiltInCreateRequest(ctx, options) +func (client *SetDefinitionsClient) ListBuiltIn(options *SetDefinitionsClientListBuiltInOptions) *runtime.Pager[SetDefinitionsClientListBuiltInResponse] { + return runtime.NewPager(runtime.PageProcessor[SetDefinitionsClientListBuiltInResponse]{ + More: func(page SetDefinitionsClientListBuiltInResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp SetDefinitionsClientListBuiltInResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SetDefinitionListResult.NextLink) + Fetcher: func(ctx context.Context, page *SetDefinitionsClientListBuiltInResponse) (SetDefinitionsClientListBuiltInResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBuiltInCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return SetDefinitionsClientListBuiltInResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SetDefinitionsClientListBuiltInResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SetDefinitionsClientListBuiltInResponse{}, runtime.NewResponseError(resp) + } + return client.listBuiltInHandleResponse(resp) }, - } + }) } // listBuiltInCreateRequest creates the ListBuiltIn request. @@ -492,7 +529,7 @@ func (client *SetDefinitionsClient) listBuiltInCreateRequest(ctx context.Context // listBuiltInHandleResponse handles the ListBuiltIn response. func (client *SetDefinitionsClient) listBuiltInHandleResponse(resp *http.Response) (SetDefinitionsClientListBuiltInResponse, error) { - result := SetDefinitionsClientListBuiltInResponse{RawResponse: resp} + result := SetDefinitionsClientListBuiltInResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SetDefinitionListResult); err != nil { return SetDefinitionsClientListBuiltInResponse{}, err } @@ -513,16 +550,32 @@ func (client *SetDefinitionsClient) listBuiltInHandleResponse(resp *http.Respons // managementGroupID - The ID of the management group. // options - SetDefinitionsClientListByManagementGroupOptions contains the optional parameters for the SetDefinitionsClient.ListByManagementGroup // method. -func (client *SetDefinitionsClient) ListByManagementGroup(managementGroupID string, options *SetDefinitionsClientListByManagementGroupOptions) *SetDefinitionsClientListByManagementGroupPager { - return &SetDefinitionsClientListByManagementGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByManagementGroupCreateRequest(ctx, managementGroupID, options) +func (client *SetDefinitionsClient) ListByManagementGroup(managementGroupID string, options *SetDefinitionsClientListByManagementGroupOptions) *runtime.Pager[SetDefinitionsClientListByManagementGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[SetDefinitionsClientListByManagementGroupResponse]{ + More: func(page SetDefinitionsClientListByManagementGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp SetDefinitionsClientListByManagementGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SetDefinitionListResult.NextLink) + Fetcher: func(ctx context.Context, page *SetDefinitionsClientListByManagementGroupResponse) (SetDefinitionsClientListByManagementGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByManagementGroupCreateRequest(ctx, managementGroupID, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return SetDefinitionsClientListByManagementGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SetDefinitionsClientListByManagementGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SetDefinitionsClientListByManagementGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByManagementGroupHandleResponse(resp) }, - } + }) } // listByManagementGroupCreateRequest creates the ListByManagementGroup request. @@ -553,7 +606,7 @@ func (client *SetDefinitionsClient) listByManagementGroupCreateRequest(ctx conte // listByManagementGroupHandleResponse handles the ListByManagementGroup response. func (client *SetDefinitionsClient) listByManagementGroupHandleResponse(resp *http.Response) (SetDefinitionsClientListByManagementGroupResponse, error) { - result := SetDefinitionsClientListByManagementGroupResponse{RawResponse: resp} + result := SetDefinitionsClientListByManagementGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SetDefinitionListResult); err != nil { return SetDefinitionsClientListByManagementGroupResponse{}, err } diff --git a/sdk/resourcemanager/resources/armpolicy/zz_generated_time_rfc3339.go b/sdk/resourcemanager/resources/armpolicy/zz_generated_time_rfc3339.go index d94878a4a380..d846881aabad 100644 --- a/sdk/resourcemanager/resources/armpolicy/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/resources/armpolicy/zz_generated_time_rfc3339.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/resources/armsubscriptions/CHANGELOG.md b/sdk/resourcemanager/resources/armsubscriptions/CHANGELOG.md index ee7c6a573ec8..dfb33e203171 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armsubscriptions/CHANGELOG.md @@ -1,5 +1,60 @@ # Release History +## 0.3.0 (2022-04-14) +### Breaking Changes + +- Function `*TenantsClient.List` return value(s) have been changed from `(*TenantsClientListPager)` to `(*runtime.Pager[TenantsClientListResponse])` +- Function `NewClient` return value(s) have been changed from `(*Client)` to `(*Client, error)` +- Function `*Client.ListLocations` parameter(s) have been changed from `(context.Context, string, *ClientListLocationsOptions)` to `(string, *ClientListLocationsOptions)` +- Function `*Client.ListLocations` return value(s) have been changed from `(ClientListLocationsResponse, error)` to `(*runtime.Pager[ClientListLocationsResponse])` +- Function `*Client.List` return value(s) have been changed from `(*ClientListPager)` to `(*runtime.Pager[ClientListResponse])` +- Function `NewSubscriptionClient` return value(s) have been changed from `(*SubscriptionClient)` to `(*SubscriptionClient, error)` +- Function `NewTenantsClient` return value(s) have been changed from `(*TenantsClient)` to `(*TenantsClient, error)` +- Type of `ErrorAdditionalInfo.Info` has been changed from `map[string]interface{}` to `interface{}` +- Function `ResourceNameStatus.ToPtr` has been removed +- Function `RegionType.ToPtr` has been removed +- Function `*ClientListPager.Err` has been removed +- Function `RegionCategory.ToPtr` has been removed +- Function `SubscriptionState.ToPtr` has been removed +- Function `TenantCategory.ToPtr` has been removed +- Function `*TenantsClientListPager.NextPage` has been removed +- Function `*TenantsClientListPager.PageResponse` has been removed +- Function `*ClientListPager.NextPage` has been removed +- Function `*TenantsClientListPager.Err` has been removed +- Function `SpendingLimit.ToPtr` has been removed +- Function `*ClientListPager.PageResponse` has been removed +- Function `LocationType.ToPtr` has been removed +- Struct `ClientCheckZonePeersResult` has been removed +- Struct `ClientGetResult` has been removed +- Struct `ClientListLocationsResult` has been removed +- Struct `ClientListPager` has been removed +- Struct `ClientListResult` has been removed +- Struct `SubscriptionClientCheckResourceNameResult` has been removed +- Struct `TenantsClientListPager` has been removed +- Struct `TenantsClientListResult` has been removed +- Field `ClientListResult` of struct `ClientListResponse` has been removed +- Field `RawResponse` of struct `ClientListResponse` has been removed +- Field `ClientCheckZonePeersResult` of struct `ClientCheckZonePeersResponse` has been removed +- Field `RawResponse` of struct `ClientCheckZonePeersResponse` has been removed +- Field `ClientGetResult` of struct `ClientGetResponse` has been removed +- Field `RawResponse` of struct `ClientGetResponse` has been removed +- Field `TenantsClientListResult` of struct `TenantsClientListResponse` has been removed +- Field `RawResponse` of struct `TenantsClientListResponse` has been removed +- Field `ClientListLocationsResult` of struct `ClientListLocationsResponse` has been removed +- Field `RawResponse` of struct `ClientListLocationsResponse` has been removed +- Field `SubscriptionClientCheckResourceNameResult` of struct `SubscriptionClientCheckResourceNameResponse` has been removed +- Field `RawResponse` of struct `SubscriptionClientCheckResourceNameResponse` has been removed + +### Features Added + +- New anonymous field `Subscription` in struct `ClientGetResponse` +- New anonymous field `CheckZonePeersResult` in struct `ClientCheckZonePeersResponse` +- New anonymous field `TenantListResult` in struct `TenantsClientListResponse` +- New anonymous field `SubscriptionListResult` in struct `ClientListResponse` +- New anonymous field `LocationListResult` in struct `ClientListLocationsResponse` +- New anonymous field `CheckResourceNameResult` in struct `SubscriptionClientCheckResourceNameResponse` + + ## 0.2.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/resources/armsubscriptions/README.md b/sdk/resourcemanager/resources/armsubscriptions/README.md index 402b500e8b70..12fdc149a010 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/README.md +++ b/sdk/resourcemanager/resources/armsubscriptions/README.md @@ -11,7 +11,7 @@ The `armsubscriptions` module provides operations for working with Azure Subscri ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Subscriptions modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armsubscriptions.NewSubscriptionsClient(, cred, nil) +client, err := armsubscriptions.NewSubscriptionsClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armsubscriptions.NewSubscriptionsClient(, cred, &options) +client, err := armsubscriptions.NewSubscriptionsClient(, cred, &options) ``` ## Provide Feedback diff --git a/sdk/resourcemanager/resources/armsubscriptions/autorest.md b/sdk/resourcemanager/resources/armsubscriptions/autorest.md index 2d708d95d78e..1477329fe2fc 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/autorest.md +++ b/sdk/resourcemanager/resources/armsubscriptions/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/35453a0a130097acc53af066f340c53c86c76e96/specification/resources/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/35453a0a130097acc53af066f340c53c86c76e96/specification/resources/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.2.1 +module-version: 0.3.0 package-subscriptions: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armsubscriptions/go.mod b/sdk/resourcemanager/resources/armsubscriptions/go.mod index 21e86e0962e3..1c9dba19204d 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/go.mod +++ b/sdk/resourcemanager/resources/armsubscriptions/go.mod @@ -1,10 +1,29 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 github.com/stretchr/testify v1.7.0 ) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect +) diff --git a/sdk/resourcemanager/resources/armsubscriptions/go.sum b/sdk/resourcemanager/resources/armsubscriptions/go.sum index 861905ed56b2..facd9999ed64 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/go.sum +++ b/sdk/resourcemanager/resources/armsubscriptions/go.sum @@ -1,16 +1,13 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 h1:zBJcBJwte0x6PcPK7XaWDMvK2o2ZM2f1sMaqNNavQ5g= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 h1:RxemzI2cHD0A8WyMqHu/UnDjfpGES/cmjtPbQoktWqs= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1/go.mod h1:+nVKciyKD2J9TyVcEQ82Bo9b+3F92PiQfHrIE/zqLqM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 h1:/hWqo5bAXoNK7svf5GvgpXFPzOCpM29/Eu+WqcE34Uk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0/go.mod h1:wXFq4k1znCwV7Bw70gw4UDNYKv/nrCUr70hjUmOj1Jo= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1 h1:EXTDtCSTfPauGawsG+Ae/W46B1PkrgzuKNrcFqy4ljM= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1/go.mod h1:PoA99xQAlN13MyUjzgIPWMZEr0etHpYSuT25LmhR3zQ= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 h1:gYG7I0WxtCnHSWOFLbWCHLBWr+yzI5UeU9KuGZajf5U= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0/go.mod h1:bwEUbGO8V/7KcrqwO14ADZ0m4AkTvSKx3ma68FRc3Bg= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 h1:TSBK+EXu33WBNrYhWmOecKJAl4z1Z5dtbDmqOzd1zGk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0/go.mod h1:tt77DwGu+r0Ued27YQPhiW8h8YWpYwpfOfi5uRpRMTg= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -21,7 +18,6 @@ github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/ github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= -github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -41,21 +37,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestSubscriptionsClient.json b/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestSubscriptionsClient.json index 3e48149a27c8..2dc3101f8a7d 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestSubscriptionsClient.json +++ b/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestSubscriptionsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:53:27 GMT", + "Date": "Thu, 14 Apr 2022 05:28:59 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T065328Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052859Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -47,31 +47,34 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armsubscriptions/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armsubscriptions/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Encoding": "gzip", - "Content-Length": "434", + "Content-Length": "481", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:53:28 GMT", + "Date": "Thu, 14 Apr 2022 05:28:59 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T065328Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052859Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000", "authorizationSource": "RoleBased", "managedByTenants": [], - "tags": {}, + "tags": { + "tagKey1": "tag-value-1", + "tagKey2": "tag-value-2" + }, "subscriptionId": "00000000-0000-0000-0000-000000000000", "tenantId": "00000000-0000-0000-0000-000000000000", "displayName": "NodeJS and Go Mgmt SDK Test with TTL = 1 day", @@ -83,1341 +86,6 @@ } } }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2021-01-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armsubscriptions/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "29983", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:53:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T065329Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus", - "name": "eastus", - "type": "Region", - "displayName": "East US", - "regionalDisplayName": "(US) East US", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "US", - "longitude": "-79.8164", - "latitude": "37.3719", - "physicalLocation": "Virginia", - "pairedRegion": [ - { - "name": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2", - "name": "eastus2", - "type": "Region", - "displayName": "East US 2", - "regionalDisplayName": "(US) East US 2", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "US", - "longitude": "-78.3889", - "latitude": "36.6681", - "physicalLocation": "Virginia", - "pairedRegion": [ - { - "name": "centralus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus", - "name": "southcentralus", - "type": "Region", - "displayName": "South Central US", - "regionalDisplayName": "(US) South Central US", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "US", - "longitude": "-98.5", - "latitude": "29.4167", - "physicalLocation": "Texas", - "pairedRegion": [ - { - "name": "northcentralus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2", - "name": "westus2", - "type": "Region", - "displayName": "West US 2", - "regionalDisplayName": "(US) West US 2", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "US", - "longitude": "-119.852", - "latitude": "47.233", - "physicalLocation": "Washington", - "pairedRegion": [ - { - "name": "westcentralus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus3", - "name": "westus3", - "type": "Region", - "displayName": "West US 3", - "regionalDisplayName": "(US) West US 3", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "US", - "longitude": "-112.074036", - "latitude": "33.448376", - "physicalLocation": "Phoenix", - "pairedRegion": [ - { - "name": "eastus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast", - "name": "australiaeast", - "type": "Region", - "displayName": "Australia East", - "regionalDisplayName": "(Asia Pacific) Australia East", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Asia Pacific", - "longitude": "151.2094", - "latitude": "-33.86", - "physicalLocation": "New South Wales", - "pairedRegion": [ - { - "name": "australiasoutheast", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia", - "name": "southeastasia", - "type": "Region", - "displayName": "Southeast Asia", - "regionalDisplayName": "(Asia Pacific) Southeast Asia", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Asia Pacific", - "longitude": "103.833", - "latitude": "1.283", - "physicalLocation": "Singapore", - "pairedRegion": [ - { - "name": "eastasia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope", - "name": "northeurope", - "type": "Region", - "displayName": "North Europe", - "regionalDisplayName": "(Europe) North Europe", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Europe", - "longitude": "-6.2597", - "latitude": "53.3478", - "physicalLocation": "Ireland", - "pairedRegion": [ - { - "name": "westeurope", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedencentral", - "name": "swedencentral", - "type": "Region", - "displayName": "Sweden Central", - "regionalDisplayName": "(Europe) Sweden Central", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Europe", - "longitude": "17.14127", - "latitude": "60.67488", - "physicalLocation": "G\u00E4vle", - "pairedRegion": [ - { - "name": "swedensouth", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/swedensouth" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth", - "name": "uksouth", - "type": "Region", - "displayName": "UK South", - "regionalDisplayName": "(Europe) UK South", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Europe", - "longitude": "-0.799", - "latitude": "50.941", - "physicalLocation": "London", - "pairedRegion": [ - { - "name": "ukwest", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope", - "name": "westeurope", - "type": "Region", - "displayName": "West Europe", - "regionalDisplayName": "(Europe) West Europe", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Europe", - "longitude": "4.9", - "latitude": "52.3667", - "physicalLocation": "Netherlands", - "pairedRegion": [ - { - "name": "northeurope", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus", - "name": "centralus", - "type": "Region", - "displayName": "Central US", - "regionalDisplayName": "(US) Central US", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "US", - "longitude": "-93.6208", - "latitude": "41.5908", - "physicalLocation": "Iowa", - "pairedRegion": [ - { - "name": "eastus2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus", - "name": "northcentralus", - "type": "Region", - "displayName": "North Central US", - "regionalDisplayName": "(US) North Central US", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "US", - "longitude": "-87.6278", - "latitude": "41.8819", - "physicalLocation": "Illinois", - "pairedRegion": [ - { - "name": "southcentralus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus", - "name": "westus", - "type": "Region", - "displayName": "West US", - "regionalDisplayName": "(US) West US", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "US", - "longitude": "-122.417", - "latitude": "37.783", - "physicalLocation": "California", - "pairedRegion": [ - { - "name": "eastus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth", - "name": "southafricanorth", - "type": "Region", - "displayName": "South Africa North", - "regionalDisplayName": "(Africa) South Africa North", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Africa", - "longitude": "28.218370", - "latitude": "-25.731340", - "physicalLocation": "Johannesburg", - "pairedRegion": [ - { - "name": "southafricawest", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia", - "name": "centralindia", - "type": "Region", - "displayName": "Central India", - "regionalDisplayName": "(Asia Pacific) Central India", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Asia Pacific", - "longitude": "73.9197", - "latitude": "18.5822", - "physicalLocation": "Pune", - "pairedRegion": [ - { - "name": "southindia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia", - "name": "eastasia", - "type": "Region", - "displayName": "East Asia", - "regionalDisplayName": "(Asia Pacific) East Asia", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Asia Pacific", - "longitude": "114.188", - "latitude": "22.267", - "physicalLocation": "Hong Kong", - "pairedRegion": [ - { - "name": "southeastasia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast", - "name": "japaneast", - "type": "Region", - "displayName": "Japan East", - "regionalDisplayName": "(Asia Pacific) Japan East", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Asia Pacific", - "longitude": "139.77", - "latitude": "35.68", - "physicalLocation": "Tokyo, Saitama", - "pairedRegion": [ - { - "name": "japanwest", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiawest", - "name": "jioindiawest", - "type": "Region", - "displayName": "Jio India West", - "regionalDisplayName": "(Asia Pacific) Jio India West", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Asia Pacific", - "longitude": "70.05773", - "latitude": "22.470701", - "physicalLocation": "Jamnagar", - "pairedRegion": [ - { - "name": "jioindiacentral", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiacentral" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral", - "name": "koreacentral", - "type": "Region", - "displayName": "Korea Central", - "regionalDisplayName": "(Asia Pacific) Korea Central", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Asia Pacific", - "longitude": "126.9780", - "latitude": "37.5665", - "physicalLocation": "Seoul", - "pairedRegion": [ - { - "name": "koreasouth", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral", - "name": "canadacentral", - "type": "Region", - "displayName": "Canada Central", - "regionalDisplayName": "(Canada) Canada Central", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Canada", - "longitude": "-79.383", - "latitude": "43.653", - "physicalLocation": "Toronto", - "pairedRegion": [ - { - "name": "canadaeast", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral", - "name": "francecentral", - "type": "Region", - "displayName": "France Central", - "regionalDisplayName": "(Europe) France Central", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Europe", - "longitude": "2.3730", - "latitude": "46.3772", - "physicalLocation": "Paris", - "pairedRegion": [ - { - "name": "francesouth", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral", - "name": "germanywestcentral", - "type": "Region", - "displayName": "Germany West Central", - "regionalDisplayName": "(Europe) Germany West Central", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Europe", - "longitude": "8.682127", - "latitude": "50.110924", - "physicalLocation": "Frankfurt", - "pairedRegion": [ - { - "name": "germanynorth", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast", - "name": "norwayeast", - "type": "Region", - "displayName": "Norway East", - "regionalDisplayName": "(Europe) Norway East", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Europe", - "longitude": "10.752245", - "latitude": "59.913868", - "physicalLocation": "Norway", - "pairedRegion": [ - { - "name": "norwaywest", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth", - "name": "switzerlandnorth", - "type": "Region", - "displayName": "Switzerland North", - "regionalDisplayName": "(Europe) Switzerland North", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Europe", - "longitude": "8.564572", - "latitude": "47.451542", - "physicalLocation": "Zurich", - "pairedRegion": [ - { - "name": "switzerlandwest", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth", - "name": "uaenorth", - "type": "Region", - "displayName": "UAE North", - "regionalDisplayName": "(Middle East) UAE North", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "Middle East", - "longitude": "55.316666", - "latitude": "25.266666", - "physicalLocation": "Dubai", - "pairedRegion": [ - { - "name": "uaecentral", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth", - "name": "brazilsouth", - "type": "Region", - "displayName": "Brazil South", - "regionalDisplayName": "(South America) Brazil South", - "metadata": { - "regionType": "Physical", - "regionCategory": "Recommended", - "geographyGroup": "South America", - "longitude": "-46.633", - "latitude": "-23.55", - "physicalLocation": "Sao Paulo State", - "pairedRegion": [ - { - "name": "southcentralus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralusstage", - "name": "centralusstage", - "type": "Region", - "displayName": "Central US (Stage)", - "regionalDisplayName": "(US) Central US (Stage)", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other", - "geographyGroup": "US" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastusstage", - "name": "eastusstage", - "type": "Region", - "displayName": "East US (Stage)", - "regionalDisplayName": "(US) East US (Stage)", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other", - "geographyGroup": "US" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2stage", - "name": "eastus2stage", - "type": "Region", - "displayName": "East US 2 (Stage)", - "regionalDisplayName": "(US) East US 2 (Stage)", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other", - "geographyGroup": "US" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralusstage", - "name": "northcentralusstage", - "type": "Region", - "displayName": "North Central US (Stage)", - "regionalDisplayName": "(US) North Central US (Stage)", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other", - "geographyGroup": "US" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralusstage", - "name": "southcentralusstage", - "type": "Region", - "displayName": "South Central US (Stage)", - "regionalDisplayName": "(US) South Central US (Stage)", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other", - "geographyGroup": "US" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westusstage", - "name": "westusstage", - "type": "Region", - "displayName": "West US (Stage)", - "regionalDisplayName": "(US) West US (Stage)", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other", - "geographyGroup": "US" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2stage", - "name": "westus2stage", - "type": "Region", - "displayName": "West US 2 (Stage)", - "regionalDisplayName": "(US) West US 2 (Stage)", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other", - "geographyGroup": "US" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/asia", - "name": "asia", - "type": "Region", - "displayName": "Asia", - "regionalDisplayName": "Asia", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/asiapacific", - "name": "asiapacific", - "type": "Region", - "displayName": "Asia Pacific", - "regionalDisplayName": "Asia Pacific", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/australia", - "name": "australia", - "type": "Region", - "displayName": "Australia", - "regionalDisplayName": "Australia", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazil", - "name": "brazil", - "type": "Region", - "displayName": "Brazil", - "regionalDisplayName": "Brazil", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/canada", - "name": "canada", - "type": "Region", - "displayName": "Canada", - "regionalDisplayName": "Canada", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/europe", - "name": "europe", - "type": "Region", - "displayName": "Europe", - "regionalDisplayName": "Europe", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/france", - "name": "france", - "type": "Region", - "displayName": "France", - "regionalDisplayName": "France", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/germany", - "name": "germany", - "type": "Region", - "displayName": "Germany", - "regionalDisplayName": "Germany", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/global", - "name": "global", - "type": "Region", - "displayName": "Global", - "regionalDisplayName": "Global", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/india", - "name": "india", - "type": "Region", - "displayName": "India", - "regionalDisplayName": "India", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/japan", - "name": "japan", - "type": "Region", - "displayName": "Japan", - "regionalDisplayName": "Japan", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/korea", - "name": "korea", - "type": "Region", - "displayName": "Korea", - "regionalDisplayName": "Korea", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/norway", - "name": "norway", - "type": "Region", - "displayName": "Norway", - "regionalDisplayName": "Norway", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafrica", - "name": "southafrica", - "type": "Region", - "displayName": "South Africa", - "regionalDisplayName": "South Africa", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerland", - "name": "switzerland", - "type": "Region", - "displayName": "Switzerland", - "regionalDisplayName": "Switzerland", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/uae", - "name": "uae", - "type": "Region", - "displayName": "United Arab Emirates", - "regionalDisplayName": "United Arab Emirates", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/uk", - "name": "uk", - "type": "Region", - "displayName": "United Kingdom", - "regionalDisplayName": "United Kingdom", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/unitedstates", - "name": "unitedstates", - "type": "Region", - "displayName": "United States", - "regionalDisplayName": "United States", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/unitedstateseuap", - "name": "unitedstateseuap", - "type": "Region", - "displayName": "United States EUAP", - "regionalDisplayName": "United States EUAP", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasiastage", - "name": "eastasiastage", - "type": "Region", - "displayName": "East Asia (Stage)", - "regionalDisplayName": "(Asia Pacific) East Asia (Stage)", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other", - "geographyGroup": "Asia Pacific" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasiastage", - "name": "southeastasiastage", - "type": "Region", - "displayName": "Southeast Asia (Stage)", - "regionalDisplayName": "(Asia Pacific) Southeast Asia (Stage)", - "metadata": { - "regionType": "Logical", - "regionCategory": "Other", - "geographyGroup": "Asia Pacific" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/centraluseuap", - "name": "centraluseuap", - "type": "Region", - "displayName": "Central US EUAP", - "regionalDisplayName": "(US) Central US EUAP", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "US", - "longitude": "-93.6208", - "latitude": "41.5908", - "pairedRegion": [ - { - "name": "eastus2euap", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2euap" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2euap", - "name": "eastus2euap", - "type": "Region", - "displayName": "East US 2 EUAP", - "regionalDisplayName": "(US) East US 2 EUAP", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "US", - "longitude": "-78.3889", - "latitude": "36.6681", - "pairedRegion": [ - { - "name": "centraluseuap", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/centraluseuap" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus", - "name": "westcentralus", - "type": "Region", - "displayName": "West Central US", - "regionalDisplayName": "(US) West Central US", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "US", - "longitude": "-110.234", - "latitude": "40.890", - "physicalLocation": "Wyoming", - "pairedRegion": [ - { - "name": "westus2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest", - "name": "southafricawest", - "type": "Region", - "displayName": "South Africa West", - "regionalDisplayName": "(Africa) South Africa West", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Africa", - "longitude": "18.843266", - "latitude": "-34.075691", - "physicalLocation": "Cape Town", - "pairedRegion": [ - { - "name": "southafricanorth", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral", - "name": "australiacentral", - "type": "Region", - "displayName": "Australia Central", - "regionalDisplayName": "(Asia Pacific) Australia Central", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Asia Pacific", - "longitude": "149.1244", - "latitude": "-35.3075", - "physicalLocation": "Canberra", - "pairedRegion": [ - { - "name": "australiacentral", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2", - "name": "australiacentral2", - "type": "Region", - "displayName": "Australia Central 2", - "regionalDisplayName": "(Asia Pacific) Australia Central 2", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Asia Pacific", - "longitude": "149.1244", - "latitude": "-35.3075", - "physicalLocation": "Canberra", - "pairedRegion": [ - { - "name": "australiacentral2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast", - "name": "australiasoutheast", - "type": "Region", - "displayName": "Australia Southeast", - "regionalDisplayName": "(Asia Pacific) Australia Southeast", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Asia Pacific", - "longitude": "144.9631", - "latitude": "-37.8136", - "physicalLocation": "Victoria", - "pairedRegion": [ - { - "name": "australiaeast", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest", - "name": "japanwest", - "type": "Region", - "displayName": "Japan West", - "regionalDisplayName": "(Asia Pacific) Japan West", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Asia Pacific", - "longitude": "135.5022", - "latitude": "34.6939", - "physicalLocation": "Osaka", - "pairedRegion": [ - { - "name": "japaneast", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiacentral", - "name": "jioindiacentral", - "type": "Region", - "displayName": "Jio India Central", - "regionalDisplayName": "(Asia Pacific) Jio India Central", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Asia Pacific", - "longitude": "79.08886", - "latitude": "21.146633", - "physicalLocation": "Nagpur", - "pairedRegion": [ - { - "name": "jioindiawest", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/jioindiawest" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth", - "name": "koreasouth", - "type": "Region", - "displayName": "Korea South", - "regionalDisplayName": "(Asia Pacific) Korea South", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Asia Pacific", - "longitude": "129.0756", - "latitude": "35.1796", - "physicalLocation": "Busan", - "pairedRegion": [ - { - "name": "koreacentral", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia", - "name": "southindia", - "type": "Region", - "displayName": "South India", - "regionalDisplayName": "(Asia Pacific) South India", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Asia Pacific", - "longitude": "80.1636", - "latitude": "12.9822", - "physicalLocation": "Chennai", - "pairedRegion": [ - { - "name": "centralindia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia", - "name": "westindia", - "type": "Region", - "displayName": "West India", - "regionalDisplayName": "(Asia Pacific) West India", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Asia Pacific", - "longitude": "72.868", - "latitude": "19.088", - "physicalLocation": "Mumbai", - "pairedRegion": [ - { - "name": "southindia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast", - "name": "canadaeast", - "type": "Region", - "displayName": "Canada East", - "regionalDisplayName": "(Canada) Canada East", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Canada", - "longitude": "-71.217", - "latitude": "46.817", - "physicalLocation": "Quebec", - "pairedRegion": [ - { - "name": "canadacentral", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth", - "name": "francesouth", - "type": "Region", - "displayName": "France South", - "regionalDisplayName": "(Europe) France South", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Europe", - "longitude": "2.1972", - "latitude": "43.8345", - "physicalLocation": "Marseille", - "pairedRegion": [ - { - "name": "francecentral", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth", - "name": "germanynorth", - "type": "Region", - "displayName": "Germany North", - "regionalDisplayName": "(Europe) Germany North", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Europe", - "longitude": "8.806422", - "latitude": "53.073635", - "physicalLocation": "Berlin", - "pairedRegion": [ - { - "name": "germanywestcentral", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest", - "name": "norwaywest", - "type": "Region", - "displayName": "Norway West", - "regionalDisplayName": "(Europe) Norway West", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Europe", - "longitude": "5.733107", - "latitude": "58.969975", - "physicalLocation": "Norway", - "pairedRegion": [ - { - "name": "norwayeast", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest", - "name": "switzerlandwest", - "type": "Region", - "displayName": "Switzerland West", - "regionalDisplayName": "(Europe) Switzerland West", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Europe", - "longitude": "6.143158", - "latitude": "46.204391", - "physicalLocation": "Geneva", - "pairedRegion": [ - { - "name": "switzerlandnorth", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest", - "name": "ukwest", - "type": "Region", - "displayName": "UK West", - "regionalDisplayName": "(Europe) UK West", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Europe", - "longitude": "-3.084", - "latitude": "53.427", - "physicalLocation": "Cardiff", - "pairedRegion": [ - { - "name": "uksouth", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral", - "name": "uaecentral", - "type": "Region", - "displayName": "UAE Central", - "regionalDisplayName": "(Middle East) UAE Central", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "Middle East", - "longitude": "54.366669", - "latitude": "24.466667", - "physicalLocation": "Abu Dhabi", - "pairedRegion": [ - { - "name": "uaenorth", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsoutheast", - "name": "brazilsoutheast", - "type": "Region", - "displayName": "Brazil Southeast", - "regionalDisplayName": "(South America) Brazil Southeast", - "metadata": { - "regionType": "Physical", - "regionCategory": "Other", - "geographyGroup": "South America", - "longitude": "-43.2075", - "latitude": "-22.90278", - "physicalLocation": "Rio", - "pairedRegion": [ - { - "name": "brazilsouth", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth" - } - ] - } - } - ] - } - }, { "RequestUri": "https://management.azure.com/providers/Microsoft.Resources/checkResourceName?api-version=2021-01-01", "RequestMethod": "POST", @@ -1428,7 +96,7 @@ "Authorization": "Sanitized", "Content-Length": "52", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armsubscriptions/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armsubscriptions/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "name": "go-test-subnet", @@ -1439,7 +107,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:53:29 GMT", + "Date": "Thu, 14 Apr 2022 05:28:59 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1449,7 +117,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-tenant-writes": "1199", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T065329Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052859Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "name": "go-test-subnet", @@ -1464,16 +132,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Fri, 11 Mar 2022 06:53:32 GMT", + "Date": "Thu, 14 Apr 2022 05:29:03 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0NTYtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1MzItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1481,7 +149,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T065332Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052903Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestTenantsClient.json b/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestTenantsClient.json index 81607e28591d..217c6469e85d 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestTenantsClient.json +++ b/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestTenantsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:53:34 GMT", + "Date": "Thu, 14 Apr 2022 05:29:05 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T065334Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052905Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -46,16 +46,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Fri, 11 Mar 2022 06:53:35 GMT", + "Date": "Thu, 14 Apr 2022 05:29:06 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ4MjctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NDUtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -63,7 +63,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14998", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T065336Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052907Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_subscriptionclient_client_test.go b/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_subscriptionclient_client_test.go index 74bae0ead831..0c3905e11fb6 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_subscriptionclient_client_test.go +++ b/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_subscriptionclient_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,18 +16,25 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/CheckResourceName.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/CheckResourceName.json func ExampleSubscriptionClient_CheckResourceName() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armsubscriptions.NewSubscriptionClient(cred, nil) + client, err := armsubscriptions.NewSubscriptionClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CheckResourceName(ctx, &armsubscriptions.SubscriptionClientCheckResourceNameOptions{ResourceNameDefinition: nil}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.SubscriptionClientCheckResourceNameResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_subscriptions_client_test.go b/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_subscriptions_client_test.go index 3403f1fc7c64..d0f6a4e6c9df 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_subscriptions_client_test.go +++ b/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_subscriptions_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,81 +17,110 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetLocations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetLocations.json func ExampleClient_ListLocations() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armsubscriptions.NewClient(cred, nil) - res, err := client.ListLocations(ctx, - "", - &armsubscriptions.ClientListLocationsOptions{IncludeExtendedLocations: nil}) + client, err := armsubscriptions.NewClient(cred, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.ListLocations("", + &armsubscriptions.ClientListLocationsOptions{IncludeExtendedLocations: nil}) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + return + } + for _, v := range nextResult.Value { + // TODO: use page item + _ = v + } } - log.Printf("Response result: %#v\n", res.ClientListLocationsResult) } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetSubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetSubscription.json func ExampleClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armsubscriptions.NewClient(cred, nil) + client, err := armsubscriptions.NewClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetSubscriptions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetSubscriptions.json func ExampleClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armsubscriptions.NewClient(cred, nil) + client, err := armsubscriptions.NewClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/PostCheckZonePeers.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/PostCheckZonePeers.json func ExampleClient_CheckZonePeers() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armsubscriptions.NewClient(cred, nil) + client, err := armsubscriptions.NewClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CheckZonePeers(ctx, "", armsubscriptions.CheckZonePeersRequest{ - Location: to.StringPtr(""), + Location: to.Ptr(""), SubscriptionIDs: []*string{ - to.StringPtr("subscriptions/11111111-1111-1111-1111-111111111111")}, + to.Ptr("subscriptions/11111111-1111-1111-1111-111111111111")}, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientCheckZonePeersResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_tenants_client_test.go b/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_tenants_client_test.go index 1c59bb6c77bf..14fd5bf9b516 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_tenants_client_test.go +++ b/sdk/resourcemanager/resources/armsubscriptions/ze_generated_example_tenants_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,25 +16,29 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetTenants.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetTenants.json func ExampleTenantsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armsubscriptions.NewTenantsClient(cred, nil) + client, err := armsubscriptions.NewTenantsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armsubscriptions/zt_subscriptions_client_live_test.go b/sdk/resourcemanager/resources/armsubscriptions/zt_subscriptions_client_live_test.go index 6aaf60e86ea3..1d8a2d140c85 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/zt_subscriptions_client_live_test.go +++ b/sdk/resourcemanager/resources/armsubscriptions/zt_subscriptions_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,13 +8,14 @@ package armsubscriptions_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" "github.com/stretchr/testify/suite" - "testing" ) type SubscriptionsClientTestSuite struct { @@ -52,26 +53,26 @@ func TestSubscriptionsClient(t *testing.T) { func (testsuite *SubscriptionsClientTestSuite) TestSubscriptionsCRUD() { // get - subscriptionsClient := armsubscriptions.NewClient(testsuite.cred, testsuite.options) - resp, err := subscriptionsClient.Get(testsuite.ctx, testsuite.subscriptionID, nil) + subscriptionsClient, err := armsubscriptions.NewClient(testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = subscriptionsClient.Get(testsuite.ctx, testsuite.subscriptionID, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(testsuite.subscriptionID, *resp.SubscriptionID) // list list := subscriptionsClient.List(nil) - testsuite.Require().NoError(list.Err()) + testsuite.Require().True(list.More()) // list locations - listLocations, err := subscriptionsClient.ListLocations(testsuite.ctx, testsuite.subscriptionID, nil) - testsuite.Require().NoError(err) - testsuite.Require().Greater(len(listLocations.Value), 0) + listLocations := subscriptionsClient.ListLocations(testsuite.subscriptionID, nil) + testsuite.Require().True(listLocations.More()) // check resource - subscriptionClient := armsubscriptions.NewSubscriptionClient(testsuite.cred, testsuite.options) + subscriptionClient, err := armsubscriptions.NewSubscriptionClient(testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) resourceName, err := subscriptionClient.CheckResourceName(context.Background(), &armsubscriptions.SubscriptionClientCheckResourceNameOptions{ ResourceNameDefinition: &armsubscriptions.ResourceName{ - Name: to.StringPtr("go-test-subnet"), - Type: to.StringPtr("Microsoft.Compute"), + Name: to.Ptr("go-test-subnet"), + Type: to.Ptr("Microsoft.Compute"), }, }) testsuite.Require().NoError(err) diff --git a/sdk/resourcemanager/resources/armsubscriptions/zt_tenants_client_live_test.go b/sdk/resourcemanager/resources/armsubscriptions/zt_tenants_client_live_test.go index 720a6dc3b26e..831926d1288f 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/zt_tenants_client_live_test.go +++ b/sdk/resourcemanager/resources/armsubscriptions/zt_tenants_client_live_test.go @@ -8,12 +8,13 @@ package armsubscriptions_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" "github.com/stretchr/testify/suite" - "testing" ) type TenantsClientTestSuite struct { @@ -50,7 +51,8 @@ func TestTenantsClient(t *testing.T) { } func (testsuite *TenantsClientTestSuite) TestTenantsCRUD() { - tenantsClient := armsubscriptions.NewTenantsClient(testsuite.cred, testsuite.options) + tenantsClient, err := armsubscriptions.NewTenantsClient(testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) pager := tenantsClient.List(nil) - testsuite.Require().NoError(pager.Err()) + testsuite.Require().True(pager.More()) } diff --git a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_client.go b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_client.go index 4d85b1b43657..52a1faeb8e48 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_client.go +++ b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -32,19 +33,23 @@ type Client struct { // NewClient creates a new instance of Client with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewClient(credential azcore.TokenCredential, options *arm.ClientOptions) *Client { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &Client{ - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CheckZonePeers - Compares a subscriptions logical zone mapping @@ -87,7 +92,7 @@ func (client *Client) checkZonePeersCreateRequest(ctx context.Context, subscript // checkZonePeersHandleResponse handles the CheckZonePeers response. func (client *Client) checkZonePeersHandleResponse(resp *http.Response) (ClientCheckZonePeersResponse, error) { - result := ClientCheckZonePeersResponse{RawResponse: resp} + result := ClientCheckZonePeersResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.CheckZonePeersResult); err != nil { return ClientCheckZonePeersResponse{}, err } @@ -133,7 +138,7 @@ func (client *Client) getCreateRequest(ctx context.Context, subscriptionID strin // getHandleResponse handles the Get response. func (client *Client) getHandleResponse(resp *http.Response) (ClientGetResponse, error) { - result := ClientGetResponse{RawResponse: resp} + result := ClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Subscription); err != nil { return ClientGetResponse{}, err } @@ -143,16 +148,32 @@ func (client *Client) getHandleResponse(resp *http.Response) (ClientGetResponse, // List - Gets all subscriptions for a tenant. // If the operation fails it returns an *azcore.ResponseError type. // options - ClientListOptions contains the optional parameters for the Client.List method. -func (client *Client) List(options *ClientListOptions) *ClientListPager { - return &ClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *Client) List(options *ClientListOptions) *runtime.Pager[ClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[ClientListResponse]{ + More: func(page ClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.SubscriptionListResult.NextLink) + Fetcher: func(ctx context.Context, page *ClientListResponse) (ClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -171,7 +192,7 @@ func (client *Client) listCreateRequest(ctx context.Context, options *ClientList // listHandleResponse handles the List response. func (client *Client) listHandleResponse(resp *http.Response) (ClientListResponse, error) { - result := ClientListResponse{RawResponse: resp} + result := ClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SubscriptionListResult); err != nil { return ClientListResponse{}, err } @@ -183,19 +204,26 @@ func (client *Client) listHandleResponse(resp *http.Response) (ClientListRespons // If the operation fails it returns an *azcore.ResponseError type. // subscriptionID - The ID of the target subscription. // options - ClientListLocationsOptions contains the optional parameters for the Client.ListLocations method. -func (client *Client) ListLocations(ctx context.Context, subscriptionID string, options *ClientListLocationsOptions) (ClientListLocationsResponse, error) { - req, err := client.listLocationsCreateRequest(ctx, subscriptionID, options) - if err != nil { - return ClientListLocationsResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return ClientListLocationsResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ClientListLocationsResponse{}, runtime.NewResponseError(resp) - } - return client.listLocationsHandleResponse(resp) +func (client *Client) ListLocations(subscriptionID string, options *ClientListLocationsOptions) *runtime.Pager[ClientListLocationsResponse] { + return runtime.NewPager(runtime.PageProcessor[ClientListLocationsResponse]{ + More: func(page ClientListLocationsResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *ClientListLocationsResponse) (ClientListLocationsResponse, error) { + req, err := client.listLocationsCreateRequest(ctx, subscriptionID, options) + if err != nil { + return ClientListLocationsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClientListLocationsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClientListLocationsResponse{}, runtime.NewResponseError(resp) + } + return client.listLocationsHandleResponse(resp) + }, + }) } // listLocationsCreateRequest creates the ListLocations request. @@ -221,7 +249,7 @@ func (client *Client) listLocationsCreateRequest(ctx context.Context, subscripti // listLocationsHandleResponse handles the ListLocations response. func (client *Client) listLocationsHandleResponse(resp *http.Response) (ClientListLocationsResponse, error) { - result := ClientListLocationsResponse{RawResponse: resp} + result := ClientListLocationsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.LocationListResult); err != nil { return ClientListLocationsResponse{}, err } diff --git a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_constants.go b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_constants.go index 18aa55d426ee..1c749b363eb4 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_constants.go +++ b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,7 +10,7 @@ package armsubscriptions const ( moduleName = "armsubscriptions" - moduleVersion = "v0.2.1" + moduleVersion = "v0.3.0" ) // LocationType - The location type. @@ -29,11 +29,6 @@ func PossibleLocationTypeValues() []LocationType { } } -// ToPtr returns a *LocationType pointing to the current value. -func (c LocationType) ToPtr() *LocationType { - return &c -} - // RegionCategory - The category of the region. type RegionCategory string @@ -52,11 +47,6 @@ func PossibleRegionCategoryValues() []RegionCategory { } } -// ToPtr returns a *RegionCategory pointing to the current value. -func (c RegionCategory) ToPtr() *RegionCategory { - return &c -} - // RegionType - The type of the region. type RegionType string @@ -73,11 +63,6 @@ func PossibleRegionTypeValues() []RegionType { } } -// ToPtr returns a *RegionType pointing to the current value. -func (c RegionType) ToPtr() *RegionType { - return &c -} - // ResourceNameStatus - Is the resource name Allowed or Reserved type ResourceNameStatus string @@ -94,11 +79,6 @@ func PossibleResourceNameStatusValues() []ResourceNameStatus { } } -// ToPtr returns a *ResourceNameStatus pointing to the current value. -func (c ResourceNameStatus) ToPtr() *ResourceNameStatus { - return &c -} - // SpendingLimit - The subscription spending limit. type SpendingLimit string @@ -117,11 +97,6 @@ func PossibleSpendingLimitValues() []SpendingLimit { } } -// ToPtr returns a *SpendingLimit pointing to the current value. -func (c SpendingLimit) ToPtr() *SpendingLimit { - return &c -} - // SubscriptionState - The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. type SubscriptionState string @@ -144,11 +119,6 @@ func PossibleSubscriptionStateValues() []SubscriptionState { } } -// ToPtr returns a *SubscriptionState pointing to the current value. -func (c SubscriptionState) ToPtr() *SubscriptionState { - return &c -} - // TenantCategory - Category of the tenant. type TenantCategory string @@ -166,8 +136,3 @@ func PossibleTenantCategoryValues() []TenantCategory { TenantCategoryManagedBy, } } - -// ToPtr returns a *TenantCategory pointing to the current value. -func (c TenantCategory) ToPtr() *TenantCategory { - return &c -} diff --git a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_models.go b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_models.go index 5ec8290155cb..9c23dca01c26 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_models.go +++ b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,6 @@ package armsubscriptions -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" -) - // AvailabilityZonePeers - List of availability zones shared by the subscriptions. type AvailabilityZonePeers struct { // Details of shared availability zone. @@ -23,14 +17,6 @@ type AvailabilityZonePeers struct { AvailabilityZone *string `json:"availabilityZone,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type AvailabilityZonePeers. -func (a AvailabilityZonePeers) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "availabilityZone", a.AvailabilityZone) - populate(objectMap, "peers", a.Peers) - return json.Marshal(objectMap) -} - // CheckResourceNameResult - Resource Name valid if not a reserved word, does not contain a reserved word and does not start // with a reserved word type CheckResourceNameResult struct { @@ -53,14 +39,6 @@ type CheckZonePeersRequest struct { SubscriptionIDs []*string `json:"subscriptionIds,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type CheckZonePeersRequest. -func (c CheckZonePeersRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "location", c.Location) - populate(objectMap, "subscriptionIds", c.SubscriptionIDs) - return json.Marshal(objectMap) -} - // CheckZonePeersResult - Result of the Check zone peers operation. type CheckZonePeersResult struct { // The Availability Zones shared by the subscriptions. @@ -73,15 +51,6 @@ type CheckZonePeersResult struct { SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type CheckZonePeersResult. -func (c CheckZonePeersResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "availabilityZonePeers", c.AvailabilityZonePeers) - populate(objectMap, "location", c.Location) - populate(objectMap, "subscriptionId", c.SubscriptionID) - return json.Marshal(objectMap) -} - // ClientCheckZonePeersOptions contains the optional parameters for the Client.CheckZonePeers method. type ClientCheckZonePeersOptions struct { // placeholder for future optional parameters @@ -113,7 +82,7 @@ type CloudError struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info map[string]interface{} `json:"info,omitempty" azure:"ro"` + Info interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -137,17 +106,6 @@ type ErrorDetail struct { Target *string `json:"target,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ErrorDetail. -func (e ErrorDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalInfo", e.AdditionalInfo) - populate(objectMap, "code", e.Code) - populate(objectMap, "details", e.Details) - populate(objectMap, "message", e.Message) - populate(objectMap, "target", e.Target) - return json.Marshal(objectMap) -} - // ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. // (This also follows the OData error response format.) type ErrorResponse struct { @@ -167,17 +125,6 @@ type ErrorResponse struct { Target *string `json:"target,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. -func (e ErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalInfo", e.AdditionalInfo) - populate(objectMap, "code", e.Code) - populate(objectMap, "details", e.Details) - populate(objectMap, "message", e.Message) - populate(objectMap, "target", e.Target) - return json.Marshal(objectMap) -} - // ErrorResponseAutoGenerated - Common error response for all Azure Resource Manager APIs to return error details for failed // operations. (This also follows the OData error response format.). type ErrorResponseAutoGenerated struct { @@ -215,13 +162,6 @@ type LocationListResult struct { Value []*Location `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type LocationListResult. -func (l LocationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - // LocationMetadata - Location metadata information type LocationMetadata struct { // The regions paired to this region. @@ -249,20 +189,6 @@ type LocationMetadata struct { RegionType *RegionType `json:"regionType,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type LocationMetadata. -func (l LocationMetadata) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "geographyGroup", l.GeographyGroup) - populate(objectMap, "homeLocation", l.HomeLocation) - populate(objectMap, "latitude", l.Latitude) - populate(objectMap, "longitude", l.Longitude) - populate(objectMap, "pairedRegion", l.PairedRegion) - populate(objectMap, "physicalLocation", l.PhysicalLocation) - populate(objectMap, "regionCategory", l.RegionCategory) - populate(objectMap, "regionType", l.RegionType) - return json.Marshal(objectMap) -} - // ManagedByTenant - Information about a tenant managing the subscription. type ManagedByTenant struct { // READ-ONLY; The tenant ID of the managing tenant. This is a GUID. @@ -303,14 +229,6 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type OperationListResult. -func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", o.NextLink) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - // PairedRegion - Information regarding paired region. type PairedRegion struct { // READ-ONLY; The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. @@ -372,21 +290,6 @@ type Subscription struct { TenantID *string `json:"tenantId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Subscription. -func (s Subscription) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authorizationSource", s.AuthorizationSource) - populate(objectMap, "displayName", s.DisplayName) - populate(objectMap, "id", s.ID) - populate(objectMap, "managedByTenants", s.ManagedByTenants) - populate(objectMap, "state", s.State) - populate(objectMap, "subscriptionId", s.SubscriptionID) - populate(objectMap, "subscriptionPolicies", s.SubscriptionPolicies) - populate(objectMap, "tags", s.Tags) - populate(objectMap, "tenantId", s.TenantID) - return json.Marshal(objectMap) -} - // SubscriptionClientCheckResourceNameOptions contains the optional parameters for the SubscriptionClient.CheckResourceName // method. type SubscriptionClientCheckResourceNameOptions struct { @@ -403,14 +306,6 @@ type SubscriptionListResult struct { Value []*Subscription `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SubscriptionListResult. -func (s SubscriptionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - // SubscriptionPolicies - Subscription policies. type SubscriptionPolicies struct { // READ-ONLY; The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, @@ -458,22 +353,6 @@ type TenantIDDescription struct { TenantType *string `json:"tenantType,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TenantIDDescription. -func (t TenantIDDescription) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "country", t.Country) - populate(objectMap, "countryCode", t.CountryCode) - populate(objectMap, "defaultDomain", t.DefaultDomain) - populate(objectMap, "displayName", t.DisplayName) - populate(objectMap, "domains", t.Domains) - populate(objectMap, "id", t.ID) - populate(objectMap, "tenantBrandingLogoUrl", t.TenantBrandingLogoURL) - populate(objectMap, "tenantCategory", t.TenantCategory) - populate(objectMap, "tenantId", t.TenantID) - populate(objectMap, "tenantType", t.TenantType) - return json.Marshal(objectMap) -} - // TenantListResult - Tenant Ids information. type TenantListResult struct { // REQUIRED; The URL to use for getting the next set of results. @@ -483,25 +362,7 @@ type TenantListResult struct { Value []*TenantIDDescription `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type TenantListResult. -func (t TenantListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", t.NextLink) - populate(objectMap, "value", t.Value) - return json.Marshal(objectMap) -} - // TenantsClientListOptions contains the optional parameters for the TenantsClient.List method. type TenantsClientListOptions struct { // placeholder for future optional parameters } - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} diff --git a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_models_serde.go b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_models_serde.go new file mode 100644 index 000000000000..8f58824ef126 --- /dev/null +++ b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_models_serde.go @@ -0,0 +1,148 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armsubscriptions + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type AvailabilityZonePeers. +func (a AvailabilityZonePeers) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "availabilityZone", a.AvailabilityZone) + populate(objectMap, "peers", a.Peers) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type CheckZonePeersRequest. +func (c CheckZonePeersRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "location", c.Location) + populate(objectMap, "subscriptionIds", c.SubscriptionIDs) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type CheckZonePeersResult. +func (c CheckZonePeersResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "availabilityZonePeers", c.AvailabilityZonePeers) + populate(objectMap, "location", c.Location) + populate(objectMap, "subscriptionId", c.SubscriptionID) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorDetail. +func (e ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. +func (e ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type LocationListResult. +func (l LocationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type LocationMetadata. +func (l LocationMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "geographyGroup", l.GeographyGroup) + populate(objectMap, "homeLocation", l.HomeLocation) + populate(objectMap, "latitude", l.Latitude) + populate(objectMap, "longitude", l.Longitude) + populate(objectMap, "pairedRegion", l.PairedRegion) + populate(objectMap, "physicalLocation", l.PhysicalLocation) + populate(objectMap, "regionCategory", l.RegionCategory) + populate(objectMap, "regionType", l.RegionType) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type Subscription. +func (s Subscription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "authorizationSource", s.AuthorizationSource) + populate(objectMap, "displayName", s.DisplayName) + populate(objectMap, "id", s.ID) + populate(objectMap, "managedByTenants", s.ManagedByTenants) + populate(objectMap, "state", s.State) + populate(objectMap, "subscriptionId", s.SubscriptionID) + populate(objectMap, "subscriptionPolicies", s.SubscriptionPolicies) + populate(objectMap, "tags", s.Tags) + populate(objectMap, "tenantId", s.TenantID) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SubscriptionListResult. +func (s SubscriptionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type TenantIDDescription. +func (t TenantIDDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "country", t.Country) + populate(objectMap, "countryCode", t.CountryCode) + populate(objectMap, "defaultDomain", t.DefaultDomain) + populate(objectMap, "displayName", t.DisplayName) + populate(objectMap, "domains", t.Domains) + populate(objectMap, "id", t.ID) + populate(objectMap, "tenantBrandingLogoUrl", t.TenantBrandingLogoURL) + populate(objectMap, "tenantCategory", t.TenantCategory) + populate(objectMap, "tenantId", t.TenantID) + populate(objectMap, "tenantType", t.TenantType) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type TenantListResult. +func (t TenantListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", t.NextLink) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} diff --git a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_pagers.go b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_pagers.go deleted file mode 100644 index 0ab8d66b623f..000000000000 --- a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_pagers.go +++ /dev/null @@ -1,125 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsubscriptions - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// ClientListPager provides operations for iterating over paged responses. -type ClientListPager struct { - client *Client - current ClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.SubscriptionListResult.NextLink == nil || len(*p.current.SubscriptionListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ClientListResponse page. -func (p *ClientListPager) PageResponse() ClientListResponse { - return p.current -} - -// TenantsClientListPager provides operations for iterating over paged responses. -type TenantsClientListPager struct { - client *TenantsClient - current TenantsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, TenantsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *TenantsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *TenantsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.TenantListResult.NextLink == nil || len(*p.current.TenantListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current TenantsClientListResponse page. -func (p *TenantsClientListPager) PageResponse() TenantsClientListResponse { - return p.current -} diff --git a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_response_types.go b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_response_types.go index 97ab892d3696..8735464b1506 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_response_types.go +++ b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,76 +8,32 @@ package armsubscriptions -import "net/http" - // ClientCheckZonePeersResponse contains the response from method Client.CheckZonePeers. type ClientCheckZonePeersResponse struct { - ClientCheckZonePeersResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientCheckZonePeersResult contains the result from method Client.CheckZonePeers. -type ClientCheckZonePeersResult struct { CheckZonePeersResult } // ClientGetResponse contains the response from method Client.Get. type ClientGetResponse struct { - ClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientGetResult contains the result from method Client.Get. -type ClientGetResult struct { Subscription } // ClientListLocationsResponse contains the response from method Client.ListLocations. type ClientListLocationsResponse struct { - ClientListLocationsResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientListLocationsResult contains the result from method Client.ListLocations. -type ClientListLocationsResult struct { LocationListResult } // ClientListResponse contains the response from method Client.List. type ClientListResponse struct { - ClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientListResult contains the result from method Client.List. -type ClientListResult struct { SubscriptionListResult } // SubscriptionClientCheckResourceNameResponse contains the response from method SubscriptionClient.CheckResourceName. type SubscriptionClientCheckResourceNameResponse struct { - SubscriptionClientCheckResourceNameResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SubscriptionClientCheckResourceNameResult contains the result from method SubscriptionClient.CheckResourceName. -type SubscriptionClientCheckResourceNameResult struct { CheckResourceNameResult } // TenantsClientListResponse contains the response from method TenantsClient.List. type TenantsClientListResponse struct { - TenantsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TenantsClientListResult contains the result from method TenantsClient.List. -type TenantsClientListResult struct { TenantListResult } diff --git a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_subscription_client.go b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_subscription_client.go index e7b8d3c09328..3dc03b9b322b 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_subscription_client.go +++ b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_subscription_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -13,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -28,19 +29,23 @@ type SubscriptionClient struct { // NewSubscriptionClient creates a new instance of SubscriptionClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewSubscriptionClient(credential azcore.TokenCredential, options *arm.ClientOptions) *SubscriptionClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewSubscriptionClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*SubscriptionClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &SubscriptionClient{ - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CheckResourceName - A resource name is valid if it is not a reserved word, does not contains a reserved word and does not @@ -82,7 +87,7 @@ func (client *SubscriptionClient) checkResourceNameCreateRequest(ctx context.Con // checkResourceNameHandleResponse handles the CheckResourceName response. func (client *SubscriptionClient) checkResourceNameHandleResponse(resp *http.Response) (SubscriptionClientCheckResourceNameResponse, error) { - result := SubscriptionClientCheckResourceNameResponse{RawResponse: resp} + result := SubscriptionClientCheckResourceNameResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.CheckResourceNameResult); err != nil { return SubscriptionClientCheckResourceNameResponse{}, err } diff --git a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_tenants_client.go b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_tenants_client.go index fd6c34830188..aa2ee57c287f 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/zz_generated_tenants_client.go +++ b/sdk/resourcemanager/resources/armsubscriptions/zz_generated_tenants_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -13,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -28,34 +29,54 @@ type TenantsClient struct { // NewTenantsClient creates a new instance of TenantsClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewTenantsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *TenantsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewTenantsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*TenantsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &TenantsClient{ - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // List - Gets the tenants for your account. // If the operation fails it returns an *azcore.ResponseError type. // options - TenantsClientListOptions contains the optional parameters for the TenantsClient.List method. -func (client *TenantsClient) List(options *TenantsClientListOptions) *TenantsClientListPager { - return &TenantsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *TenantsClient) List(options *TenantsClientListOptions) *runtime.Pager[TenantsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[TenantsClientListResponse]{ + More: func(page TenantsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp TenantsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.TenantListResult.NextLink) + Fetcher: func(ctx context.Context, page *TenantsClientListResponse) (TenantsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return TenantsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return TenantsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return TenantsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -74,7 +95,7 @@ func (client *TenantsClient) listCreateRequest(ctx context.Context, options *Ten // listHandleResponse handles the List response. func (client *TenantsClient) listHandleResponse(resp *http.Response) (TenantsClientListResponse, error) { - result := TenantsClientListResponse{RawResponse: resp} + result := TenantsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.TenantListResult); err != nil { return TenantsClientListResponse{}, err } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/CHANGELOG.md b/sdk/resourcemanager/resources/armtemplatespecs/CHANGELOG.md index a8c77fdfac83..4018165f830f 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/CHANGELOG.md +++ b/sdk/resourcemanager/resources/armtemplatespecs/CHANGELOG.md @@ -1,5 +1,76 @@ # Release History +## 0.3.0 (2022-04-14) +### Breaking Changes + +- Function `*TemplateSpecVersionsClient.List` return value(s) have been changed from `(*TemplateSpecVersionsClientListPager)` to `(*runtime.Pager[TemplateSpecVersionsClientListResponse])` +- Function `*Client.ListByResourceGroup` return value(s) have been changed from `(*ClientListByResourceGroupPager)` to `(*runtime.Pager[ClientListByResourceGroupResponse])` +- Function `*Client.ListBySubscription` return value(s) have been changed from `(*ClientListBySubscriptionPager)` to `(*runtime.Pager[ClientListBySubscriptionResponse])` +- Function `NewTemplateSpecVersionsClient` return value(s) have been changed from `(*TemplateSpecVersionsClient)` to `(*TemplateSpecVersionsClient, error)` +- Function `NewClient` return value(s) have been changed from `(*Client)` to `(*Client, error)` +- Type of `ErrorAdditionalInfo.Info` has been changed from `map[string]interface{}` to `interface{}` +- Type of `LinkedTemplateArtifact.Template` has been changed from `map[string]interface{}` to `interface{}` +- Type of `TemplateSpecProperties.Metadata` has been changed from `map[string]interface{}` to `interface{}` +- Type of `TemplateSpecVersionProperties.Metadata` has been changed from `map[string]interface{}` to `interface{}` +- Type of `TemplateSpecVersionProperties.UIFormDefinition` has been changed from `map[string]interface{}` to `interface{}` +- Type of `TemplateSpecVersionProperties.MainTemplate` has been changed from `map[string]interface{}` to `interface{}` +- Function `*ClientListBySubscriptionPager.PageResponse` has been removed +- Function `TemplateSpecExpandKind.ToPtr` has been removed +- Function `*TemplateSpecVersionsClientListPager.NextPage` has been removed +- Function `*TemplateSpecVersionsClientListPager.Err` has been removed +- Function `*TemplateSpecVersionsClientListPager.PageResponse` has been removed +- Function `*ClientListBySubscriptionPager.NextPage` has been removed +- Function `*ClientListBySubscriptionPager.Err` has been removed +- Function `*ClientListByResourceGroupPager.Err` has been removed +- Function `CreatedByType.ToPtr` has been removed +- Function `*ClientListByResourceGroupPager.NextPage` has been removed +- Function `*ClientListByResourceGroupPager.PageResponse` has been removed +- Struct `ClientCreateOrUpdateResult` has been removed +- Struct `ClientGetResult` has been removed +- Struct `ClientListByResourceGroupPager` has been removed +- Struct `ClientListByResourceGroupResult` has been removed +- Struct `ClientListBySubscriptionPager` has been removed +- Struct `ClientListBySubscriptionResult` has been removed +- Struct `ClientUpdateResult` has been removed +- Struct `TemplateSpecVersionsClientCreateOrUpdateResult` has been removed +- Struct `TemplateSpecVersionsClientGetResult` has been removed +- Struct `TemplateSpecVersionsClientListPager` has been removed +- Struct `TemplateSpecVersionsClientListResult` has been removed +- Struct `TemplateSpecVersionsClientUpdateResult` has been removed +- Field `RawResponse` of struct `ClientDeleteResponse` has been removed +- Field `RawResponse` of struct `TemplateSpecVersionsClientDeleteResponse` has been removed +- Field `TemplateSpecVersionsClientListResult` of struct `TemplateSpecVersionsClientListResponse` has been removed +- Field `RawResponse` of struct `TemplateSpecVersionsClientListResponse` has been removed +- Field `ClientCreateOrUpdateResult` of struct `ClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ClientCreateOrUpdateResponse` has been removed +- Field `ClientUpdateResult` of struct `ClientUpdateResponse` has been removed +- Field `RawResponse` of struct `ClientUpdateResponse` has been removed +- Field `ClientGetResult` of struct `ClientGetResponse` has been removed +- Field `RawResponse` of struct `ClientGetResponse` has been removed +- Field `ClientListBySubscriptionResult` of struct `ClientListBySubscriptionResponse` has been removed +- Field `RawResponse` of struct `ClientListBySubscriptionResponse` has been removed +- Field `TemplateSpecVersionsClientUpdateResult` of struct `TemplateSpecVersionsClientUpdateResponse` has been removed +- Field `RawResponse` of struct `TemplateSpecVersionsClientUpdateResponse` has been removed +- Field `TemplateSpecVersionsClientCreateOrUpdateResult` of struct `TemplateSpecVersionsClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `TemplateSpecVersionsClientCreateOrUpdateResponse` has been removed +- Field `ClientListByResourceGroupResult` of struct `ClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `ClientListByResourceGroupResponse` has been removed +- Field `TemplateSpecVersionsClientGetResult` of struct `TemplateSpecVersionsClientGetResponse` has been removed +- Field `RawResponse` of struct `TemplateSpecVersionsClientGetResponse` has been removed + +### Features Added + +- New anonymous field `ListResult` in struct `ClientListByResourceGroupResponse` +- New anonymous field `TemplateSpecVersion` in struct `TemplateSpecVersionsClientCreateOrUpdateResponse` +- New anonymous field `TemplateSpec` in struct `ClientGetResponse` +- New anonymous field `TemplateSpecVersionsListResult` in struct `TemplateSpecVersionsClientListResponse` +- New anonymous field `TemplateSpec` in struct `ClientCreateOrUpdateResponse` +- New anonymous field `TemplateSpecVersion` in struct `TemplateSpecVersionsClientUpdateResponse` +- New anonymous field `TemplateSpec` in struct `ClientUpdateResponse` +- New anonymous field `ListResult` in struct `ClientListBySubscriptionResponse` +- New anonymous field `TemplateSpecVersion` in struct `TemplateSpecVersionsClientGetResponse` + + ## 0.2.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/resources/armtemplatespecs/README.md b/sdk/resourcemanager/resources/armtemplatespecs/README.md index 9a595ce19097..de9d428ddfff 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/README.md +++ b/sdk/resourcemanager/resources/armtemplatespecs/README.md @@ -11,7 +11,7 @@ The `armtemplatespecs` module provides operations for working with Azure Templat ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Template Specs modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armtemplatespecs.NewTemplateSpecsClient(, cred, nil) +client, err := armtemplatespecs.NewTemplateSpecsClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armtemplatespecs.NewTemplateSpecsClient(, cred, &options) +client, err := armtemplatespecs.NewTemplateSpecsClient(, cred, &options) ``` ## Provide Feedback diff --git a/sdk/resourcemanager/resources/armtemplatespecs/autorest.md b/sdk/resourcemanager/resources/armtemplatespecs/autorest.md index c721e2fde991..a00f057b022b 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/autorest.md +++ b/sdk/resourcemanager/resources/armtemplatespecs/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/resources/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/8e4746332979ed6ff3577bdc97dd2065a7577598/specification/resources/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/resources/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.2.1 +module-version: 0.3.0 package-templatespecs: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/resources/armtemplatespecs/go.mod b/sdk/resourcemanager/resources/armtemplatespecs/go.mod index de1c35066df5..dc99136dfe41 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/go.mod +++ b/sdk/resourcemanager/resources/armtemplatespecs/go.mod @@ -1,10 +1,29 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtemplatespecs -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 github.com/stretchr/testify v1.7.0 ) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect +) diff --git a/sdk/resourcemanager/resources/armtemplatespecs/go.sum b/sdk/resourcemanager/resources/armtemplatespecs/go.sum index 861905ed56b2..facd9999ed64 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/go.sum +++ b/sdk/resourcemanager/resources/armtemplatespecs/go.sum @@ -1,16 +1,13 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 h1:zBJcBJwte0x6PcPK7XaWDMvK2o2ZM2f1sMaqNNavQ5g= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 h1:RxemzI2cHD0A8WyMqHu/UnDjfpGES/cmjtPbQoktWqs= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1/go.mod h1:+nVKciyKD2J9TyVcEQ82Bo9b+3F92PiQfHrIE/zqLqM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 h1:/hWqo5bAXoNK7svf5GvgpXFPzOCpM29/Eu+WqcE34Uk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0/go.mod h1:wXFq4k1znCwV7Bw70gw4UDNYKv/nrCUr70hjUmOj1Jo= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1 h1:EXTDtCSTfPauGawsG+Ae/W46B1PkrgzuKNrcFqy4ljM= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1/go.mod h1:PoA99xQAlN13MyUjzgIPWMZEr0etHpYSuT25LmhR3zQ= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 h1:gYG7I0WxtCnHSWOFLbWCHLBWr+yzI5UeU9KuGZajf5U= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0/go.mod h1:bwEUbGO8V/7KcrqwO14ADZ0m4AkTvSKx3ma68FRc3Bg= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 h1:TSBK+EXu33WBNrYhWmOecKJAl4z1Z5dtbDmqOzd1zGk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0/go.mod h1:tt77DwGu+r0Ued27YQPhiW8h8YWpYwpfOfi5uRpRMTg= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -21,7 +18,6 @@ github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/ github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= -github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -41,21 +37,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecVersionsClient.json b/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecVersionsClient.json index 62d8ca5a32f3..03fdcefda54a 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecVersionsClient.json +++ b/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecVersionsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,15 +19,15 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:51:24 GMT", + "Date": "Thu, 14 Apr 2022 06:02:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-ratelimit-remaining-subscription-writes": "1184", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045124Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060251Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -46,44 +46,50 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "Content-Length": "90", + "Content-Length": "117", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armtemplatespecs/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armtemplatespecs/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus", "properties": { - "description": "template spec properties description." + "description": "template spec properties description.", + "metadata": { + "live": "test" + } } }, "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "676", + "Content-Length": "725", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:51:27 GMT", + "Date": "Thu, 14 Apr 2022 06:02:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-ratelimit-remaining-subscription-writes": "1183", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045127Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060254Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "location": "eastus", "properties": { - "description": "template spec properties description." + "description": "template spec properties description.", + "metadata": { + "live": "test" + } }, "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-14T04:51:26.6763679Z", + "createdAt": "2022-04-14T06:02:53.2264669Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-14T04:51:26.6763679Z" + "lastModifiedAt": "2022-04-14T06:02:53.2264669Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template", "type": "Microsoft.Resources/templateSpecs", @@ -97,9 +103,9 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "Content-Length": "243", + "Content-Length": "305", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armtemplatespecs/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armtemplatespecs/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus", @@ -110,29 +116,41 @@ "contentVersion": "1.0.0.0", "parameters": {}, "resources": [] + }, + "metadata": { + "live": "test" + }, + "uiFormDefinition": { + "live": "test" } } }, "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "919", + "Content-Length": "1025", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:51:30 GMT", + "Date": "Thu, 14 Apr 2022 06:02:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-ratelimit-remaining-subscription-writes": "1182", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045130Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060258Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "location": "eastus", "properties": { "description": "\u003Cdescription\u003E", + "metadata": { + "live": "test" + }, + "uiFormDefinition": { + "live": "test" + }, "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", @@ -143,10 +161,10 @@ "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-14T04:51:29.6139009Z", + "createdAt": "2022-04-14T06:02:57.2889596Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-14T04:51:29.6139009Z" + "lastModifiedAt": "2022-04-14T06:02:57.2889596Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template/versions/go-test-template-version", "type": "Microsoft.Resources/templateSpecs/versions", @@ -162,7 +180,7 @@ "Authorization": "Sanitized", "Content-Length": "24", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armtemplatespecs/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armtemplatespecs/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "tags": { @@ -174,7 +192,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:51:32 GMT", + "Date": "Thu, 14 Apr 2022 06:02:59 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -183,9 +201,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-ratelimit-remaining-subscription-writes": "1181", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045132Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060300Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "location": "eastus", @@ -194,6 +212,12 @@ }, "properties": { "description": "\u003Cdescription\u003E", + "metadata": { + "live": "test" + }, + "uiFormDefinition": { + "live": "test" + }, "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", @@ -204,10 +228,10 @@ "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-14T04:51:29.6139009Z", + "createdAt": "2022-04-14T06:02:57.2889596Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-14T04:51:31.2702291Z" + "lastModifiedAt": "2022-04-14T06:02:59.1795798Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template/versions/go-test-template-version", "type": "Microsoft.Resources/templateSpecs/versions", @@ -222,7 +246,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armtemplatespecs/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armtemplatespecs/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -230,7 +254,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:51:32 GMT", + "Date": "Thu, 14 Apr 2022 06:03:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -241,7 +265,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11996", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045132Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060301Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "location": "eastus", @@ -250,6 +274,12 @@ }, "properties": { "description": "\u003Cdescription\u003E", + "metadata": { + "live": "test" + }, + "uiFormDefinition": { + "live": "test" + }, "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", @@ -260,10 +290,10 @@ "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-14T04:51:29.6139009Z", + "createdAt": "2022-04-14T06:02:57.2889596Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-14T04:51:31.2702291Z" + "lastModifiedAt": "2022-04-14T06:02:59.1795798Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template/versions/go-test-template-version", "type": "Microsoft.Resources/templateSpecs/versions", @@ -277,23 +307,23 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armtemplatespecs/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armtemplatespecs/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:51:35 GMT", + "Date": "Thu, 14 Apr 2022 06:03:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", + "x-ms-ratelimit-remaining-subscription-deletes": "14991", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045135Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060304Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -304,24 +334,24 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:51:37 GMT", + "Date": "Thu, 14 Apr 2022 06:03:05 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxODItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ2NjUtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", + "x-ms-ratelimit-remaining-subscription-deletes": "14990", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045137Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060305Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecsClient.json b/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecsClient.json index 0568e5cbc8d8..ee62dddabb17 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecsClient.json +++ b/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,15 +19,15 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:51:10 GMT", + "Date": "Thu, 14 Apr 2022 06:02:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-ratelimit-remaining-subscription-writes": "1187", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045111Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060235Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -46,44 +46,50 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "Content-Length": "90", + "Content-Length": "117", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armtemplatespecs/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armtemplatespecs/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus", "properties": { - "description": "template spec properties description." + "description": "template spec properties description.", + "metadata": { + "live": "test" + } } }, "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "676", + "Content-Length": "725", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:51:14 GMT", + "Date": "Thu, 14 Apr 2022 06:02:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-ratelimit-remaining-subscription-writes": "1186", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045115Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060240Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "location": "eastus", "properties": { - "description": "template spec properties description." + "description": "template spec properties description.", + "metadata": { + "live": "test" + } }, "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-14T04:51:12.9575509Z", + "createdAt": "2022-04-14T06:02:38.4765075Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-14T04:51:12.9575509Z" + "lastModifiedAt": "2022-04-14T06:02:38.4765075Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template", "type": "Microsoft.Resources/templateSpecs", @@ -99,7 +105,7 @@ "Authorization": "Sanitized", "Content-Length": "24", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armtemplatespecs/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armtemplatespecs/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "tags": { @@ -111,7 +117,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:51:16 GMT", + "Date": "Thu, 14 Apr 2022 06:02:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -120,9 +126,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-ratelimit-remaining-subscription-writes": "1185", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045117Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060243Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "location": "eastus", @@ -130,15 +136,18 @@ "test": "live" }, "properties": { - "description": "template spec properties description." + "description": "template spec properties description.", + "metadata": { + "live": "test" + } }, "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-14T04:51:12.9575509Z", + "createdAt": "2022-04-14T06:02:38.4765075Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-14T04:51:15.7388456Z" + "lastModifiedAt": "2022-04-14T06:02:41.3358957Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template", "type": "Microsoft.Resources/templateSpecs", @@ -153,7 +162,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armtemplatespecs/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armtemplatespecs/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -161,7 +170,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 04:51:16 GMT", + "Date": "Thu, 14 Apr 2022 06:02:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -172,7 +181,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11997", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045117Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060243Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "location": "eastus", @@ -180,15 +189,18 @@ "test": "live" }, "properties": { - "description": "template spec properties description." + "description": "template spec properties description.", + "metadata": { + "live": "test" + } }, "systemData": { "createdBy": "00000000-0000-0000-0000-000000000000", "createdByType": "Application", - "createdAt": "2022-03-14T04:51:12.9575509Z", + "createdAt": "2022-04-14T06:02:38.4765075Z", "lastModifiedBy": "00000000-0000-0000-0000-000000000000", "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-14T04:51:15.7388456Z" + "lastModifiedAt": "2022-04-14T06:02:41.3358957Z" }, "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template", "type": "Microsoft.Resources/templateSpecs", @@ -202,23 +214,23 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armtemplatespecs/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armtemplatespecs/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:51:20 GMT", + "Date": "Thu, 14 Apr 2022 06:02:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-ratelimit-remaining-subscription-deletes": "14993", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045120Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060247Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -229,24 +241,24 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 04:51:22 GMT", + "Date": "Thu, 14 Apr 2022 06:02:48 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0NjQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1MDQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", + "x-ms-ratelimit-remaining-subscription-deletes": "14992", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20220314T045122Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T060248Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/ze_generated_example_templatespecs_client_test.go b/sdk/resourcemanager/resources/armtemplatespecs/ze_generated_example_templatespecs_client_test.go index afab72a49f09..7ab211229598 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/ze_generated_example_templatespecs_client_test.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/ze_generated_example_templatespecs_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,131 +17,166 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtemplatespecs" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsCreate.json func ExampleClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewClient("", cred, nil) + client, err := armtemplatespecs.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", armtemplatespecs.TemplateSpec{ - Location: to.StringPtr(""), + Location: to.Ptr(""), Properties: &armtemplatespecs.TemplateSpecProperties{ - Description: to.StringPtr(""), + Description: to.Ptr(""), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsPatch.json func ExampleClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewClient("", cred, nil) + client, err := armtemplatespecs.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", &armtemplatespecs.ClientUpdateOptions{TemplateSpec: &armtemplatespecs.TemplateSpecUpdateModel{ Tags: map[string]*string{ - "myTag": to.StringPtr("My Value"), + "myTag": to.Ptr("My Value"), }, }, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsGet.json func ExampleClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewClient("", cred, nil) + client, err := armtemplatespecs.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", &armtemplatespecs.ClientGetOptions{Expand: nil}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsDelete.json func ExampleClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewClient("", cred, nil) + client, err := armtemplatespecs.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsListBySubscription.json func ExampleClient_ListBySubscription() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewClient("", cred, nil) + client, err := armtemplatespecs.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListBySubscription(&armtemplatespecs.ClientListBySubscriptionOptions{Expand: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecsListByResourceGroup.json func ExampleClient_ListByResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewClient("", cred, nil) + client, err := armtemplatespecs.NewClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResourceGroup("", &armtemplatespecs.ClientListByResourceGroupOptions{Expand: nil}) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/ze_generated_example_templatespecversions_client_test.go b/sdk/resourcemanager/resources/armtemplatespecs/ze_generated_example_templatespecversions_client_test.go index 6643050b8b32..88a93a918c11 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/ze_generated_example_templatespecversions_client_test.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/ze_generated_example_templatespecversions_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,22 +17,27 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtemplatespecs" ) -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecVersionsCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecVersionsCreate.json func ExampleTemplateSpecVersionsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewTemplateSpecVersionsClient("", cred, nil) + client, err := armtemplatespecs.NewTemplateSpecVersionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", "", armtemplatespecs.TemplateSpecVersion{ - Location: to.StringPtr(""), + Location: to.Ptr(""), Properties: &armtemplatespecs.TemplateSpecVersionProperties{ - Description: to.StringPtr(""), + Description: to.Ptr(""), MainTemplate: map[string]interface{}{ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", @@ -43,93 +48,119 @@ func ExampleTemplateSpecVersionsClient_CreateOrUpdate() { }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TemplateSpecVersionsClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecVersionsPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecVersionsPatch.json func ExampleTemplateSpecVersionsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewTemplateSpecVersionsClient("", cred, nil) + client, err := armtemplatespecs.NewTemplateSpecVersionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", "", &armtemplatespecs.TemplateSpecVersionsClientUpdateOptions{TemplateSpecVersionUpdateModel: &armtemplatespecs.TemplateSpecVersionUpdateModel{ Tags: map[string]*string{ - "myTag": to.StringPtr("My Value"), + "myTag": to.Ptr("My Value"), }, }, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TemplateSpecVersionsClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecVersionsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecVersionsGet.json func ExampleTemplateSpecVersionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewTemplateSpecVersionsClient("", cred, nil) + client, err := armtemplatespecs.NewTemplateSpecVersionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TemplateSpecVersionsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecVersionsDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecVersionsDelete.json func ExampleTemplateSpecVersionsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewTemplateSpecVersionsClient("", cred, nil) + client, err := armtemplatespecs.NewTemplateSpecVersionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecVersionsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/examples/TemplateSpecVersionsList.json func ExampleTemplateSpecVersionsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armtemplatespecs.NewTemplateSpecVersionsClient("", cred, nil) + client, err := armtemplatespecs.NewTemplateSpecVersionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/zt_templatespecs_client_live_test.go b/sdk/resourcemanager/resources/armtemplatespecs/zt_templatespecs_client_live_test.go index 1216874a3478..7e0970e3d5b9 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/zt_templatespecs_client_live_test.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/zt_templatespecs_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,13 +8,14 @@ package armtemplatespecs_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtemplatespecs" "github.com/stretchr/testify/suite" - "testing" ) type TemplateSpecsClientTestSuite struct { @@ -53,15 +54,19 @@ func TestTemplateSpecsClient(t *testing.T) { func (testsuite *TemplateSpecsClientTestSuite) TestTemplateSpecsCRUD() { // create template spec templateSpecName := "go-test-template" - templateSpecsClient := armtemplatespecs.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + templateSpecsClient, err := armtemplatespecs.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) resp, err := templateSpecsClient.CreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, templateSpecName, armtemplatespecs.TemplateSpec{ - Location: to.StringPtr(testsuite.location), + Location: to.Ptr(testsuite.location), Properties: &armtemplatespecs.TemplateSpecProperties{ - Description: to.StringPtr("template spec properties description."), + Description: to.Ptr("template spec properties description."), + Metadata: map[string]string{ + "live": "test", + }, }, }, nil, @@ -73,7 +78,7 @@ func (testsuite *TemplateSpecsClientTestSuite) TestTemplateSpecsCRUD() { updateResp, err := templateSpecsClient.Update(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, &armtemplatespecs.ClientUpdateOptions{ TemplateSpec: &armtemplatespecs.TemplateSpecUpdateModel{ Tags: map[string]*string{ - "test": to.StringPtr("live"), + "test": to.Ptr("live"), }, }, }) @@ -87,14 +92,13 @@ func (testsuite *TemplateSpecsClientTestSuite) TestTemplateSpecsCRUD() { // list template spec by resource group listByResourceGroup := templateSpecsClient.ListByResourceGroup(testsuite.resourceGroupName, nil) - testsuite.Require().NoError(listByResourceGroup.Err()) + testsuite.Require().True(listByResourceGroup.More()) // list template spec by subscription listBySubscription := templateSpecsClient.ListBySubscription(nil) - testsuite.Require().NoError(listBySubscription.Err()) + testsuite.Require().True(listBySubscription.More()) // delete template spec - delResp, err := templateSpecsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, nil) + _, err = templateSpecsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(200, delResp.RawResponse.StatusCode) } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/zt_templatespecversions_client_live_test.go b/sdk/resourcemanager/resources/armtemplatespecs/zt_templatespecversions_client_live_test.go index 5b1159f8d531..b431aaabbf58 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/zt_templatespecversions_client_live_test.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/zt_templatespecversions_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,13 +8,14 @@ package armtemplatespecs_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtemplatespecs" "github.com/stretchr/testify/suite" - "testing" ) type TemplateSpecVersionsClientTestSuite struct { @@ -53,15 +54,19 @@ func TestTemplateSpecVersionsClient(t *testing.T) { func (testsuite *TemplateSpecVersionsClientTestSuite) TestTemplateSpecVersionsCRUD() { // create template spec templateSpecName := "go-test-template" - templateSpecsClient := armtemplatespecs.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + templateSpecsClient, err := armtemplatespecs.NewClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) resp, err := templateSpecsClient.CreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, templateSpecName, armtemplatespecs.TemplateSpec{ - Location: to.StringPtr(testsuite.location), + Location: to.Ptr(testsuite.location), Properties: &armtemplatespecs.TemplateSpecProperties{ - Description: to.StringPtr("template spec properties description."), + Description: to.Ptr("template spec properties description."), + Metadata: map[string]string{ + "live": "test", + }, }, }, nil, @@ -71,22 +76,29 @@ func (testsuite *TemplateSpecVersionsClientTestSuite) TestTemplateSpecVersionsCR // create template version templateSpecVersion := "go-test-template-version" - templateSpecVersionsClient := armtemplatespecs.NewTemplateSpecVersionsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + templateSpecVersionsClient, err := armtemplatespecs.NewTemplateSpecVersionsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) vResp, err := templateSpecVersionsClient.CreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, templateSpecName, templateSpecVersion, armtemplatespecs.TemplateSpecVersion{ - Location: to.StringPtr(testsuite.location), + Location: to.Ptr(testsuite.location), Properties: &armtemplatespecs.TemplateSpecVersionProperties{ - Description: to.StringPtr(""), + Description: to.Ptr(""), MainTemplate: map[string]interface{}{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": map[string]interface{}{}, "resources": []interface{}{}, }, + Metadata: map[string]string{ + "live": "test", + }, + UIFormDefinition: map[string]string{ + "live": "test", + }, }, }, nil, @@ -98,7 +110,7 @@ func (testsuite *TemplateSpecVersionsClientTestSuite) TestTemplateSpecVersionsCR updateResp, err := templateSpecVersionsClient.Update(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, templateSpecVersion, &armtemplatespecs.TemplateSpecVersionsClientUpdateOptions{ TemplateSpecVersionUpdateModel: &armtemplatespecs.TemplateSpecVersionUpdateModel{ Tags: map[string]*string{ - "test": to.StringPtr("live"), + "test": to.Ptr("live"), }, }, }) @@ -112,10 +124,9 @@ func (testsuite *TemplateSpecVersionsClientTestSuite) TestTemplateSpecVersionsCR // list pager := templateSpecVersionsClient.List(testsuite.resourceGroupName, templateSpecName, nil) - testsuite.Require().NoError(pager.Err()) + testsuite.Require().True(pager.More()) // delete - delResp, err := templateSpecVersionsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, templateSpecVersion, nil) + _, err = templateSpecVersionsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, templateSpecName, templateSpecVersion, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(200, delResp.RawResponse.StatusCode) } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_client.go b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_client.go index e26851d26308..d3181c7f79ef 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_client.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type Client struct { // subscriptionID - Subscription Id which forms part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *Client { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &Client{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates or updates a Template Spec. @@ -98,7 +103,7 @@ func (client *Client) createOrUpdateCreateRequest(ctx context.Context, resourceG // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *Client) createOrUpdateHandleResponse(resp *http.Response) (ClientCreateOrUpdateResponse, error) { - result := ClientCreateOrUpdateResponse{RawResponse: resp} + result := ClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.TemplateSpec); err != nil { return ClientCreateOrUpdateResponse{}, err } @@ -122,7 +127,7 @@ func (client *Client) Delete(ctx context.Context, resourceGroupName string, temp if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ClientDeleteResponse{}, runtime.NewResponseError(resp) } - return ClientDeleteResponse{RawResponse: resp}, nil + return ClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -202,7 +207,7 @@ func (client *Client) getCreateRequest(ctx context.Context, resourceGroupName st // getHandleResponse handles the Get response. func (client *Client) getHandleResponse(resp *http.Response) (ClientGetResponse, error) { - result := ClientGetResponse{RawResponse: resp} + result := ClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.TemplateSpec); err != nil { return ClientGetResponse{}, err } @@ -213,16 +218,32 @@ func (client *Client) getHandleResponse(resp *http.Response) (ClientGetResponse, // If the operation fails it returns an *azcore.ResponseError type. // resourceGroupName - The name of the resource group. The name is case insensitive. // options - ClientListByResourceGroupOptions contains the optional parameters for the Client.ListByResourceGroup method. -func (client *Client) ListByResourceGroup(resourceGroupName string, options *ClientListByResourceGroupOptions) *ClientListByResourceGroupPager { - return &ClientListByResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *Client) ListByResourceGroup(resourceGroupName string, options *ClientListByResourceGroupOptions) *runtime.Pager[ClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[ClientListByResourceGroupResponse]{ + More: func(page ClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ClientListByResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ListResult.NextLink) + Fetcher: func(ctx context.Context, page *ClientListByResourceGroupResponse) (ClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) }, - } + }) } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. @@ -252,7 +273,7 @@ func (client *Client) listByResourceGroupCreateRequest(ctx context.Context, reso // listByResourceGroupHandleResponse handles the ListByResourceGroup response. func (client *Client) listByResourceGroupHandleResponse(resp *http.Response) (ClientListByResourceGroupResponse, error) { - result := ClientListByResourceGroupResponse{RawResponse: resp} + result := ClientListByResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListResult); err != nil { return ClientListByResourceGroupResponse{}, err } @@ -262,16 +283,32 @@ func (client *Client) listByResourceGroupHandleResponse(resp *http.Response) (Cl // ListBySubscription - Lists all the Template Specs within the specified subscriptions. // If the operation fails it returns an *azcore.ResponseError type. // options - ClientListBySubscriptionOptions contains the optional parameters for the Client.ListBySubscription method. -func (client *Client) ListBySubscription(options *ClientListBySubscriptionOptions) *ClientListBySubscriptionPager { - return &ClientListBySubscriptionPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listBySubscriptionCreateRequest(ctx, options) +func (client *Client) ListBySubscription(options *ClientListBySubscriptionOptions) *runtime.Pager[ClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PageProcessor[ClientListBySubscriptionResponse]{ + More: func(page ClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp ClientListBySubscriptionResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ListResult.NextLink) + Fetcher: func(ctx context.Context, page *ClientListBySubscriptionResponse) (ClientListBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ClientListBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClientListBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionHandleResponse(resp) }, - } + }) } // listBySubscriptionCreateRequest creates the ListBySubscription request. @@ -297,7 +334,7 @@ func (client *Client) listBySubscriptionCreateRequest(ctx context.Context, optio // listBySubscriptionHandleResponse handles the ListBySubscription response. func (client *Client) listBySubscriptionHandleResponse(resp *http.Response) (ClientListBySubscriptionResponse, error) { - result := ClientListBySubscriptionResponse{RawResponse: resp} + result := ClientListBySubscriptionResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListResult); err != nil { return ClientListBySubscriptionResponse{}, err } @@ -355,7 +392,7 @@ func (client *Client) updateCreateRequest(ctx context.Context, resourceGroupName // updateHandleResponse handles the Update response. func (client *Client) updateHandleResponse(resp *http.Response) (ClientUpdateResponse, error) { - result := ClientUpdateResponse{RawResponse: resp} + result := ClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.TemplateSpec); err != nil { return ClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_constants.go b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_constants.go index aa224e987648..bdae85be64db 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_constants.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,7 +10,7 @@ package armtemplatespecs const ( moduleName = "armtemplatespecs" - moduleVersion = "v0.2.1" + moduleVersion = "v0.3.0" ) // CreatedByType - The type of identity that created the resource. @@ -33,11 +33,6 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// ToPtr returns a *CreatedByType pointing to the current value. -func (c CreatedByType) ToPtr() *CreatedByType { - return &c -} - type TemplateSpecExpandKind string const ( @@ -51,8 +46,3 @@ func PossibleTemplateSpecExpandKindValues() []TemplateSpecExpandKind { TemplateSpecExpandKindVersions, } } - -// ToPtr returns a *TemplateSpecExpandKind pointing to the current value. -func (c TemplateSpecExpandKind) ToPtr() *TemplateSpecExpandKind { - return &c -} diff --git a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_models.go b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_models.go index 4d8fd1e71b74..fcab3c20f5b0 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_models.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,7 @@ package armtemplatespecs -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) +import "time" // AzureResourceBase - Common properties for all Azure resources. type AzureResourceBase struct { @@ -74,7 +69,7 @@ type Error struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info map[string]interface{} `json:"info,omitempty" azure:"ro"` + Info interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -99,17 +94,6 @@ type ErrorResponse struct { Target *string `json:"target,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. -func (e ErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "additionalInfo", e.AdditionalInfo) - populate(objectMap, "code", e.Code) - populate(objectMap, "details", e.Details) - populate(objectMap, "message", e.Message) - populate(objectMap, "target", e.Target) - return json.Marshal(objectMap) -} - // LinkedTemplateArtifact - Represents a Template Spec artifact containing an embedded Azure Resource Manager template for // use as a linked template. type LinkedTemplateArtifact struct { @@ -117,7 +101,7 @@ type LinkedTemplateArtifact struct { Path *string `json:"path,omitempty"` // REQUIRED; The Azure Resource Manager template. - Template map[string]interface{} `json:"template,omitempty"` + Template interface{} `json:"template,omitempty"` } // ListResult - List of Template Specs. @@ -129,14 +113,6 @@ type ListResult struct { NextLink *string `json:"nextLink,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ListResult. -func (l ListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", l.NextLink) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). @@ -158,53 +134,6 @@ type SystemData struct { LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // TemplateSpec - Template Spec object. type TemplateSpec struct { // REQUIRED; The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported @@ -230,19 +159,6 @@ type TemplateSpec struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TemplateSpec. -func (t TemplateSpec) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", t.ID) - populate(objectMap, "location", t.Location) - populate(objectMap, "name", t.Name) - populate(objectMap, "properties", t.Properties) - populate(objectMap, "systemData", t.SystemData) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - // TemplateSpecProperties - Template Spec properties. type TemplateSpecProperties struct { // Template Spec description. @@ -252,23 +168,13 @@ type TemplateSpecProperties struct { DisplayName *string `json:"displayName,omitempty"` // The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - Metadata map[string]interface{} `json:"metadata,omitempty"` + Metadata interface{} `json:"metadata,omitempty"` // READ-ONLY; High-level information about the versions within this Template Spec. The keys are the version names. Only populated // if the $expand query parameter is set to 'versions'. Versions map[string]*TemplateSpecVersionInfo `json:"versions,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TemplateSpecProperties. -func (t TemplateSpecProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", t.Description) - populate(objectMap, "displayName", t.DisplayName) - populate(objectMap, "metadata", t.Metadata) - populate(objectMap, "versions", t.Versions) - return json.Marshal(objectMap) -} - // TemplateSpecUpdateModel - Template Spec properties to be updated (only tags are currently supported). type TemplateSpecUpdateModel struct { // Resource tags. @@ -287,17 +193,6 @@ type TemplateSpecUpdateModel struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TemplateSpecUpdateModel. -func (t TemplateSpecUpdateModel) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", t.ID) - populate(objectMap, "name", t.Name) - populate(objectMap, "systemData", t.SystemData) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - // TemplateSpecVersion - Template Spec Version object. type TemplateSpecVersion struct { // REQUIRED; The location of the Template Spec Version. It must match the location of the parent Template Spec. @@ -322,19 +217,6 @@ type TemplateSpecVersion struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TemplateSpecVersion. -func (t TemplateSpecVersion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", t.ID) - populate(objectMap, "location", t.Location) - populate(objectMap, "name", t.Name) - populate(objectMap, "properties", t.Properties) - populate(objectMap, "systemData", t.SystemData) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - // TemplateSpecVersionInfo - High-level information about a Template Spec version. type TemplateSpecVersionInfo struct { // READ-ONLY; Template Spec version description. @@ -347,41 +229,6 @@ type TemplateSpecVersionInfo struct { TimeModified *time.Time `json:"timeModified,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TemplateSpecVersionInfo. -func (t TemplateSpecVersionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", t.Description) - populateTimeRFC3339(objectMap, "timeCreated", t.TimeCreated) - populateTimeRFC3339(objectMap, "timeModified", t.TimeModified) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TemplateSpecVersionInfo. -func (t *TemplateSpecVersionInfo) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "description": - err = unpopulate(val, &t.Description) - delete(rawMsg, key) - case "timeCreated": - err = unpopulateTimeRFC3339(val, &t.TimeCreated) - delete(rawMsg, key) - case "timeModified": - err = unpopulateTimeRFC3339(val, &t.TimeModified) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // TemplateSpecVersionProperties - Template Spec Version properties. type TemplateSpecVersionProperties struct { // Template Spec version description. @@ -391,24 +238,13 @@ type TemplateSpecVersionProperties struct { LinkedTemplates []*LinkedTemplateArtifact `json:"linkedTemplates,omitempty"` // The main Azure Resource Manager template content. - MainTemplate map[string]interface{} `json:"mainTemplate,omitempty"` + MainTemplate interface{} `json:"mainTemplate,omitempty"` // The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. - Metadata map[string]interface{} `json:"metadata,omitempty"` + Metadata interface{} `json:"metadata,omitempty"` // The Azure Resource Manager template UI definition content. - UIFormDefinition map[string]interface{} `json:"uiFormDefinition,omitempty"` -} - -// MarshalJSON implements the json.Marshaller interface for type TemplateSpecVersionProperties. -func (t TemplateSpecVersionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", t.Description) - populate(objectMap, "linkedTemplates", t.LinkedTemplates) - populate(objectMap, "mainTemplate", t.MainTemplate) - populate(objectMap, "metadata", t.Metadata) - populate(objectMap, "uiFormDefinition", t.UIFormDefinition) - return json.Marshal(objectMap) + UIFormDefinition interface{} `json:"uiFormDefinition,omitempty"` } // TemplateSpecVersionUpdateModel - Template Spec Version properties to be updated (only tags are currently supported). @@ -429,17 +265,6 @@ type TemplateSpecVersionUpdateModel struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TemplateSpecVersionUpdateModel. -func (t TemplateSpecVersionUpdateModel) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", t.ID) - populate(objectMap, "name", t.Name) - populate(objectMap, "systemData", t.SystemData) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - // TemplateSpecVersionsClientCreateOrUpdateOptions contains the optional parameters for the TemplateSpecVersionsClient.CreateOrUpdate // method. type TemplateSpecVersionsClientCreateOrUpdateOptions struct { @@ -475,28 +300,3 @@ type TemplateSpecVersionsListResult struct { // READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` } - -// MarshalJSON implements the json.Marshaller interface for type TemplateSpecVersionsListResult. -func (t TemplateSpecVersionsListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", t.NextLink) - populate(objectMap, "value", t.Value) - return json.Marshal(objectMap) -} - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, v interface{}) error { - if data == nil { - return nil - } - return json.Unmarshal(data, v) -} diff --git a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_models_serde.go b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_models_serde.go new file mode 100644 index 000000000000..44ddb65d2818 --- /dev/null +++ b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_models_serde.go @@ -0,0 +1,210 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armtemplatespecs + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. +func (e ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ListResult. +func (l ListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TemplateSpec. +func (t TemplateSpec) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", t.ID) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "properties", t.Properties) + populate(objectMap, "systemData", t.SystemData) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type TemplateSpecProperties. +func (t TemplateSpecProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", t.Description) + populate(objectMap, "displayName", t.DisplayName) + populate(objectMap, "metadata", &t.Metadata) + populate(objectMap, "versions", t.Versions) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type TemplateSpecUpdateModel. +func (t TemplateSpecUpdateModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", t.ID) + populate(objectMap, "name", t.Name) + populate(objectMap, "systemData", t.SystemData) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type TemplateSpecVersion. +func (t TemplateSpecVersion) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", t.ID) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "properties", t.Properties) + populate(objectMap, "systemData", t.SystemData) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type TemplateSpecVersionInfo. +func (t TemplateSpecVersionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", t.Description) + populateTimeRFC3339(objectMap, "timeCreated", t.TimeCreated) + populateTimeRFC3339(objectMap, "timeModified", t.TimeModified) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TemplateSpecVersionInfo. +func (t *TemplateSpecVersionInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, &t.Description) + delete(rawMsg, key) + case "timeCreated": + err = unpopulateTimeRFC3339(val, &t.TimeCreated) + delete(rawMsg, key) + case "timeModified": + err = unpopulateTimeRFC3339(val, &t.TimeModified) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TemplateSpecVersionProperties. +func (t TemplateSpecVersionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "description", t.Description) + populate(objectMap, "linkedTemplates", t.LinkedTemplates) + populate(objectMap, "mainTemplate", &t.MainTemplate) + populate(objectMap, "metadata", &t.Metadata) + populate(objectMap, "uiFormDefinition", &t.UIFormDefinition) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type TemplateSpecVersionUpdateModel. +func (t TemplateSpecVersionUpdateModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", t.ID) + populate(objectMap, "name", t.Name) + populate(objectMap, "systemData", t.SystemData) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type TemplateSpecVersionsListResult. +func (t TemplateSpecVersionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", t.NextLink) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, v interface{}) error { + if data == nil { + return nil + } + return json.Unmarshal(data, v) +} diff --git a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_pagers.go b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_pagers.go deleted file mode 100644 index 3e36df06a393..000000000000 --- a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_pagers.go +++ /dev/null @@ -1,179 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armtemplatespecs - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// ClientListByResourceGroupPager provides operations for iterating over paged responses. -type ClientListByResourceGroupPager struct { - client *Client - current ClientListByResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ClientListByResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ClientListByResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ClientListByResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ListResult.NextLink == nil || len(*p.current.ListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ClientListByResourceGroupResponse page. -func (p *ClientListByResourceGroupPager) PageResponse() ClientListByResourceGroupResponse { - return p.current -} - -// ClientListBySubscriptionPager provides operations for iterating over paged responses. -type ClientListBySubscriptionPager struct { - client *Client - current ClientListBySubscriptionResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, ClientListBySubscriptionResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *ClientListBySubscriptionPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *ClientListBySubscriptionPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ListResult.NextLink == nil || len(*p.current.ListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listBySubscriptionHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current ClientListBySubscriptionResponse page. -func (p *ClientListBySubscriptionPager) PageResponse() ClientListBySubscriptionResponse { - return p.current -} - -// TemplateSpecVersionsClientListPager provides operations for iterating over paged responses. -type TemplateSpecVersionsClientListPager struct { - client *TemplateSpecVersionsClient - current TemplateSpecVersionsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, TemplateSpecVersionsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *TemplateSpecVersionsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *TemplateSpecVersionsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.TemplateSpecVersionsListResult.NextLink == nil || len(*p.current.TemplateSpecVersionsListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current TemplateSpecVersionsClientListResponse page. -func (p *TemplateSpecVersionsClientListPager) PageResponse() TemplateSpecVersionsClientListResponse { - return p.current -} diff --git a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_response_types.go b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_response_types.go index 1ff93b07dfc6..0021b15d335e 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_response_types.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,124 +8,57 @@ package armtemplatespecs -import "net/http" - // ClientCreateOrUpdateResponse contains the response from method Client.CreateOrUpdate. type ClientCreateOrUpdateResponse struct { - ClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientCreateOrUpdateResult contains the result from method Client.CreateOrUpdate. -type ClientCreateOrUpdateResult struct { TemplateSpec } // ClientDeleteResponse contains the response from method Client.Delete. type ClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ClientGetResponse contains the response from method Client.Get. type ClientGetResponse struct { - ClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientGetResult contains the result from method Client.Get. -type ClientGetResult struct { TemplateSpec } // ClientListByResourceGroupResponse contains the response from method Client.ListByResourceGroup. type ClientListByResourceGroupResponse struct { - ClientListByResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientListByResourceGroupResult contains the result from method Client.ListByResourceGroup. -type ClientListByResourceGroupResult struct { ListResult } // ClientListBySubscriptionResponse contains the response from method Client.ListBySubscription. type ClientListBySubscriptionResponse struct { - ClientListBySubscriptionResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientListBySubscriptionResult contains the result from method Client.ListBySubscription. -type ClientListBySubscriptionResult struct { ListResult } // ClientUpdateResponse contains the response from method Client.Update. type ClientUpdateResponse struct { - ClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ClientUpdateResult contains the result from method Client.Update. -type ClientUpdateResult struct { TemplateSpec } // TemplateSpecVersionsClientCreateOrUpdateResponse contains the response from method TemplateSpecVersionsClient.CreateOrUpdate. type TemplateSpecVersionsClientCreateOrUpdateResponse struct { - TemplateSpecVersionsClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TemplateSpecVersionsClientCreateOrUpdateResult contains the result from method TemplateSpecVersionsClient.CreateOrUpdate. -type TemplateSpecVersionsClientCreateOrUpdateResult struct { TemplateSpecVersion } // TemplateSpecVersionsClientDeleteResponse contains the response from method TemplateSpecVersionsClient.Delete. type TemplateSpecVersionsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // TemplateSpecVersionsClientGetResponse contains the response from method TemplateSpecVersionsClient.Get. type TemplateSpecVersionsClientGetResponse struct { - TemplateSpecVersionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TemplateSpecVersionsClientGetResult contains the result from method TemplateSpecVersionsClient.Get. -type TemplateSpecVersionsClientGetResult struct { TemplateSpecVersion } // TemplateSpecVersionsClientListResponse contains the response from method TemplateSpecVersionsClient.List. type TemplateSpecVersionsClientListResponse struct { - TemplateSpecVersionsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TemplateSpecVersionsClientListResult contains the result from method TemplateSpecVersionsClient.List. -type TemplateSpecVersionsClientListResult struct { TemplateSpecVersionsListResult } // TemplateSpecVersionsClientUpdateResponse contains the response from method TemplateSpecVersionsClient.Update. type TemplateSpecVersionsClientUpdateResponse struct { - TemplateSpecVersionsClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TemplateSpecVersionsClientUpdateResult contains the result from method TemplateSpecVersionsClient.Update. -type TemplateSpecVersionsClientUpdateResult struct { TemplateSpecVersion } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_templatespecversions_client.go b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_templatespecversions_client.go index b31f70cf9f4a..07f9c8d36639 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_templatespecversions_client.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_templatespecversions_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type TemplateSpecVersionsClient struct { // subscriptionID - Subscription Id which forms part of the URI for every service call. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewTemplateSpecVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *TemplateSpecVersionsClient { - cp := arm.ClientOptions{} - if options != nil { - cp = *options +func NewTemplateSpecVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TemplateSpecVersionsClient, error) { + if options == nil { + options = &arm.ClientOptions{} } - if len(cp.Endpoint) == 0 { - cp.Endpoint = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &TemplateSpecVersionsClient{ subscriptionID: subscriptionID, - host: string(cp.Endpoint), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, &cp), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Creates or updates a Template Spec version. @@ -104,7 +109,7 @@ func (client *TemplateSpecVersionsClient) createOrUpdateCreateRequest(ctx contex // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *TemplateSpecVersionsClient) createOrUpdateHandleResponse(resp *http.Response) (TemplateSpecVersionsClientCreateOrUpdateResponse, error) { - result := TemplateSpecVersionsClientCreateOrUpdateResponse{RawResponse: resp} + result := TemplateSpecVersionsClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.TemplateSpecVersion); err != nil { return TemplateSpecVersionsClientCreateOrUpdateResponse{}, err } @@ -130,7 +135,7 @@ func (client *TemplateSpecVersionsClient) Delete(ctx context.Context, resourceGr if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return TemplateSpecVersionsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return TemplateSpecVersionsClientDeleteResponse{RawResponse: resp}, nil + return TemplateSpecVersionsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -217,7 +222,7 @@ func (client *TemplateSpecVersionsClient) getCreateRequest(ctx context.Context, // getHandleResponse handles the Get response. func (client *TemplateSpecVersionsClient) getHandleResponse(resp *http.Response) (TemplateSpecVersionsClientGetResponse, error) { - result := TemplateSpecVersionsClientGetResponse{RawResponse: resp} + result := TemplateSpecVersionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.TemplateSpecVersion); err != nil { return TemplateSpecVersionsClientGetResponse{}, err } @@ -230,16 +235,32 @@ func (client *TemplateSpecVersionsClient) getHandleResponse(resp *http.Response) // templateSpecName - Name of the Template Spec. // options - TemplateSpecVersionsClientListOptions contains the optional parameters for the TemplateSpecVersionsClient.List // method. -func (client *TemplateSpecVersionsClient) List(resourceGroupName string, templateSpecName string, options *TemplateSpecVersionsClientListOptions) *TemplateSpecVersionsClientListPager { - return &TemplateSpecVersionsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, templateSpecName, options) +func (client *TemplateSpecVersionsClient) List(resourceGroupName string, templateSpecName string, options *TemplateSpecVersionsClientListOptions) *runtime.Pager[TemplateSpecVersionsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[TemplateSpecVersionsClientListResponse]{ + More: func(page TemplateSpecVersionsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp TemplateSpecVersionsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.TemplateSpecVersionsListResult.NextLink) + Fetcher: func(ctx context.Context, page *TemplateSpecVersionsClientListResponse) (TemplateSpecVersionsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, templateSpecName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return TemplateSpecVersionsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return TemplateSpecVersionsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return TemplateSpecVersionsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -270,7 +291,7 @@ func (client *TemplateSpecVersionsClient) listCreateRequest(ctx context.Context, // listHandleResponse handles the List response. func (client *TemplateSpecVersionsClient) listHandleResponse(resp *http.Response) (TemplateSpecVersionsClientListResponse, error) { - result := TemplateSpecVersionsClientListResponse{RawResponse: resp} + result := TemplateSpecVersionsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.TemplateSpecVersionsListResult); err != nil { return TemplateSpecVersionsClientListResponse{}, err } @@ -334,7 +355,7 @@ func (client *TemplateSpecVersionsClient) updateCreateRequest(ctx context.Contex // updateHandleResponse handles the Update response. func (client *TemplateSpecVersionsClient) updateHandleResponse(resp *http.Response) (TemplateSpecVersionsClientUpdateResponse, error) { - result := TemplateSpecVersionsClientUpdateResponse{RawResponse: resp} + result := TemplateSpecVersionsClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.TemplateSpecVersion); err != nil { return TemplateSpecVersionsClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_time_rfc3339.go b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_time_rfc3339.go index 1f495c19bfac..d2c0a5d3afbe 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/resources/armtemplatespecs/zz_generated_time_rfc3339.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/storage/armstorage/CHANGELOG.md b/sdk/resourcemanager/storage/armstorage/CHANGELOG.md index 0a43fa1367d4..3d040d0ce345 100644 --- a/sdk/resourcemanager/storage/armstorage/CHANGELOG.md +++ b/sdk/resourcemanager/storage/armstorage/CHANGELOG.md @@ -1,5 +1,565 @@ # Release History +## 0.5.0 (2022-04-14) +### Breaking Changes + +- Function `NewObjectReplicationPoliciesClient` return value(s) have been changed from `(*ObjectReplicationPoliciesClient)` to `(*ObjectReplicationPoliciesClient, error)` +- Function `*EncryptionScopesClient.List` return value(s) have been changed from `(*EncryptionScopesClientListPager)` to `(*runtime.Pager[EncryptionScopesClientListResponse])` +- Function `*AccountsClient.BeginCreate` return value(s) have been changed from `(AccountsClientCreatePollerResponse, error)` to `(*armruntime.Poller[AccountsClientCreateResponse], error)` +- Function `NewFileServicesClient` return value(s) have been changed from `(*FileServicesClient)` to `(*FileServicesClient, error)` +- Function `NewPrivateEndpointConnectionsClient` return value(s) have been changed from `(*PrivateEndpointConnectionsClient)` to `(*PrivateEndpointConnectionsClient, error)` +- Function `NewQueueServicesClient` return value(s) have been changed from `(*QueueServicesClient)` to `(*QueueServicesClient, error)` +- Function `NewAccountsClient` return value(s) have been changed from `(*AccountsClient)` to `(*AccountsClient, error)` +- Function `NewBlobInventoryPoliciesClient` return value(s) have been changed from `(*BlobInventoryPoliciesClient)` to `(*BlobInventoryPoliciesClient, error)` +- Function `*OperationsClient.List` parameter(s) have been changed from `(context.Context, *OperationsClientListOptions)` to `(*OperationsClientListOptions)` +- Function `*OperationsClient.List` return value(s) have been changed from `(OperationsClientListResponse, error)` to `(*runtime.Pager[OperationsClientListResponse])` +- Function `NewUsagesClient` return value(s) have been changed from `(*UsagesClient)` to `(*UsagesClient, error)` +- Function `NewBlobContainersClient` return value(s) have been changed from `(*BlobContainersClient)` to `(*BlobContainersClient, error)` +- Function `*TableClient.List` return value(s) have been changed from `(*TableClientListPager)` to `(*runtime.Pager[TableClientListResponse])` +- Function `NewDeletedAccountsClient` return value(s) have been changed from `(*DeletedAccountsClient)` to `(*DeletedAccountsClient, error)` +- Function `*ObjectReplicationPoliciesClient.List` parameter(s) have been changed from `(context.Context, string, string, *ObjectReplicationPoliciesClientListOptions)` to `(string, string, *ObjectReplicationPoliciesClientListOptions)` +- Function `*ObjectReplicationPoliciesClient.List` return value(s) have been changed from `(ObjectReplicationPoliciesClientListResponse, error)` to `(*runtime.Pager[ObjectReplicationPoliciesClientListResponse])` +- Function `NewTableServicesClient` return value(s) have been changed from `(*TableServicesClient)` to `(*TableServicesClient, error)` +- Function `NewQueueClient` return value(s) have been changed from `(*QueueClient)` to `(*QueueClient, error)` +- Function `*PrivateEndpointConnectionsClient.List` parameter(s) have been changed from `(context.Context, string, string, *PrivateEndpointConnectionsClientListOptions)` to `(string, string, *PrivateEndpointConnectionsClientListOptions)` +- Function `*PrivateEndpointConnectionsClient.List` return value(s) have been changed from `(PrivateEndpointConnectionsClientListResponse, error)` to `(*runtime.Pager[PrivateEndpointConnectionsClientListResponse])` +- Function `*LocalUsersClient.List` parameter(s) have been changed from `(context.Context, string, string, *LocalUsersClientListOptions)` to `(string, string, *LocalUsersClientListOptions)` +- Function `*LocalUsersClient.List` return value(s) have been changed from `(LocalUsersClientListResponse, error)` to `(*runtime.Pager[LocalUsersClientListResponse])` +- Function `NewEncryptionScopesClient` return value(s) have been changed from `(*EncryptionScopesClient)` to `(*EncryptionScopesClient, error)` +- Function `*FileSharesClient.List` return value(s) have been changed from `(*FileSharesClientListPager)` to `(*runtime.Pager[FileSharesClientListResponse])` +- Function `*AccountsClient.BeginHierarchicalNamespaceMigration` return value(s) have been changed from `(AccountsClientHierarchicalNamespaceMigrationPollerResponse, error)` to `(*armruntime.Poller[AccountsClientHierarchicalNamespaceMigrationResponse], error)` +- Function `*AccountsClient.BeginFailover` return value(s) have been changed from `(AccountsClientFailoverPollerResponse, error)` to `(*armruntime.Poller[AccountsClientFailoverResponse], error)` +- Function `*QueueClient.List` return value(s) have been changed from `(*QueueClientListPager)` to `(*runtime.Pager[QueueClientListResponse])` +- Function `NewPrivateLinkResourcesClient` return value(s) have been changed from `(*PrivateLinkResourcesClient)` to `(*PrivateLinkResourcesClient, error)` +- Function `NewLocalUsersClient` return value(s) have been changed from `(*LocalUsersClient)` to `(*LocalUsersClient, error)` +- Function `NewOperationsClient` return value(s) have been changed from `(*OperationsClient)` to `(*OperationsClient, error)` +- Function `NewBlobServicesClient` return value(s) have been changed from `(*BlobServicesClient)` to `(*BlobServicesClient, error)` +- Function `*DeletedAccountsClient.List` return value(s) have been changed from `(*DeletedAccountsClientListPager)` to `(*runtime.Pager[DeletedAccountsClientListResponse])` +- Function `*BlobContainersClient.BeginObjectLevelWorm` return value(s) have been changed from `(BlobContainersClientObjectLevelWormPollerResponse, error)` to `(*armruntime.Poller[BlobContainersClientObjectLevelWormResponse], error)` +- Function `*BlobInventoryPoliciesClient.List` parameter(s) have been changed from `(context.Context, string, string, *BlobInventoryPoliciesClientListOptions)` to `(string, string, *BlobInventoryPoliciesClientListOptions)` +- Function `*BlobInventoryPoliciesClient.List` return value(s) have been changed from `(BlobInventoryPoliciesClientListResponse, error)` to `(*runtime.Pager[BlobInventoryPoliciesClientListResponse])` +- Function `*BlobContainersClient.List` return value(s) have been changed from `(*BlobContainersClientListPager)` to `(*runtime.Pager[BlobContainersClientListResponse])` +- Function `*SKUsClient.List` parameter(s) have been changed from `(context.Context, *SKUsClientListOptions)` to `(*SKUsClientListOptions)` +- Function `*SKUsClient.List` return value(s) have been changed from `(SKUsClientListResponse, error)` to `(*runtime.Pager[SKUsClientListResponse])` +- Function `*UsagesClient.ListByLocation` parameter(s) have been changed from `(context.Context, string, *UsagesClientListByLocationOptions)` to `(string, *UsagesClientListByLocationOptions)` +- Function `*UsagesClient.ListByLocation` return value(s) have been changed from `(UsagesClientListByLocationResponse, error)` to `(*runtime.Pager[UsagesClientListByLocationResponse])` +- Function `NewSKUsClient` return value(s) have been changed from `(*SKUsClient)` to `(*SKUsClient, error)` +- Function `*AccountsClient.List` return value(s) have been changed from `(*AccountsClientListPager)` to `(*runtime.Pager[AccountsClientListResponse])` +- Function `*AccountsClient.BeginAbortHierarchicalNamespaceMigration` return value(s) have been changed from `(AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse, error)` to `(*armruntime.Poller[AccountsClientAbortHierarchicalNamespaceMigrationResponse], error)` +- Function `*AccountsClient.ListByResourceGroup` return value(s) have been changed from `(*AccountsClientListByResourceGroupPager)` to `(*runtime.Pager[AccountsClientListByResourceGroupResponse])` +- Function `NewManagementPoliciesClient` return value(s) have been changed from `(*ManagementPoliciesClient)` to `(*ManagementPoliciesClient, error)` +- Function `*BlobServicesClient.List` parameter(s) have been changed from `(context.Context, string, string, *BlobServicesClientListOptions)` to `(string, string, *BlobServicesClientListOptions)` +- Function `*BlobServicesClient.List` return value(s) have been changed from `(BlobServicesClientListResponse, error)` to `(*runtime.Pager[BlobServicesClientListResponse])` +- Function `NewFileSharesClient` return value(s) have been changed from `(*FileSharesClient)` to `(*FileSharesClient, error)` +- Function `*AccountsClient.BeginRestoreBlobRanges` return value(s) have been changed from `(AccountsClientRestoreBlobRangesPollerResponse, error)` to `(*armruntime.Poller[AccountsClientRestoreBlobRangesResponse], error)` +- Function `NewTableClient` return value(s) have been changed from `(*TableClient)` to `(*TableClient, error)` +- Function `BlobInventoryPolicyName.ToPtr` has been removed +- Function `*AccountsClientFailoverPoller.Poll` has been removed +- Function `RootSquashType.ToPtr` has been removed +- Function `AccountStatus.ToPtr` has been removed +- Function `Format.ToPtr` has been removed +- Function `AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse.PollUntilDone` has been removed +- Function `EnabledProtocols.ToPtr` has been removed +- Function `ListContainersInclude.ToPtr` has been removed +- Function `Name.ToPtr` has been removed +- Function `*TableClientListPager.PageResponse` has been removed +- Function `PublicAccess.ToPtr` has been removed +- Function `*BlobContainersClientListPager.NextPage` has been removed +- Function `AccountsClientCreatePollerResponse.PollUntilDone` has been removed +- Function `*BlobContainersClientObjectLevelWormPoller.FinalResponse` has been removed +- Function `*AccountsClientFailoverPoller.ResumeToken` has been removed +- Function `PublicNetworkAccess.ToPtr` has been removed +- Function `*AccountsClientHierarchicalNamespaceMigrationPoller.Poll` has been removed +- Function `InventoryRuleType.ToPtr` has been removed +- Function `Services.ToPtr` has been removed +- Function `*AccountsClientRestoreBlobRangesPollerResponse.Resume` has been removed +- Function `Permissions.ToPtr` has been removed +- Function `HTTPProtocol.ToPtr` has been removed +- Function `LeaseDuration.ToPtr` has been removed +- Function `*AccountsClientCreatePoller.FinalResponse` has been removed +- Function `AllowedCopyScope.ToPtr` has been removed +- Function `PrivateEndpointConnectionProvisioningState.ToPtr` has been removed +- Function `*AccountsClientHierarchicalNamespaceMigrationPoller.ResumeToken` has been removed +- Function `*AccountsClientRestoreBlobRangesPoller.Poll` has been removed +- Function `*AccountsClientCreatePoller.Done` has been removed +- Function `RuleType.ToPtr` has been removed +- Function `BlobContainersClientObjectLevelWormPollerResponse.PollUntilDone` has been removed +- Function `*FileSharesClientListPager.PageResponse` has been removed +- Function `*BlobContainersClientListPager.PageResponse` has been removed +- Function `*AccountsClientRestoreBlobRangesPoller.Done` has been removed +- Function `MigrationState.ToPtr` has been removed +- Function `LargeFileSharesState.ToPtr` has been removed +- Function `LeaseState.ToPtr` has been removed +- Function `LeaseContainerRequestAction.ToPtr` has been removed +- Function `*AccountsClientRestoreBlobRangesPoller.FinalResponse` has been removed +- Function `*AccountsClientListPager.Err` has been removed +- Function `ReasonCode.ToPtr` has been removed +- Function `*QueueClientListPager.PageResponse` has been removed +- Function `UsageUnit.ToPtr` has been removed +- Function `*TableClientListPager.NextPage` has been removed +- Function `DirectoryServiceOptions.ToPtr` has been removed +- Function `AccountsClientFailoverPollerResponse.PollUntilDone` has been removed +- Function `LeaseStatus.ToPtr` has been removed +- Function `EncryptionScopeState.ToPtr` has been removed +- Function `*FileSharesClientListPager.NextPage` has been removed +- Function `*AccountsClientListByResourceGroupPager.NextPage` has been removed +- Function `AccountsClientHierarchicalNamespaceMigrationPollerResponse.PollUntilDone` has been removed +- Function `SignedResource.ToPtr` has been removed +- Function `SKUName.ToPtr` has been removed +- Function `*TableClientListPager.Err` has been removed +- Function `ImmutabilityPolicyUpdateType.ToPtr` has been removed +- Function `ImmutabilityPolicyState.ToPtr` has been removed +- Function `*AccountsClientCreatePollerResponse.Resume` has been removed +- Function `*AccountsClientCreatePoller.ResumeToken` has been removed +- Function `SignedResourceTypes.ToPtr` has been removed +- Function `DefaultSharePermission.ToPtr` has been removed +- Function `*BlobContainersClientObjectLevelWormPoller.Done` has been removed +- Function `PrivateEndpointServiceConnectionStatus.ToPtr` has been removed +- Function `ProvisioningState.ToPtr` has been removed +- Function `IdentityType.ToPtr` has been removed +- Function `*AccountsClientRestoreBlobRangesPoller.ResumeToken` has been removed +- Function `KeyType.ToPtr` has been removed +- Function `*AccountsClientListPager.PageResponse` has been removed +- Function `ManagementPolicyName.ToPtr` has been removed +- Function `Bypass.ToPtr` has been removed +- Function `ShareAccessTier.ToPtr` has been removed +- Function `*EncryptionScopesClientListPager.NextPage` has been removed +- Function `*AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse.Resume` has been removed +- Function `*AccountsClientListByResourceGroupPager.Err` has been removed +- Function `GeoReplicationStatus.ToPtr` has been removed +- Function `*AccountsClientAbortHierarchicalNamespaceMigrationPoller.ResumeToken` has been removed +- Function `*QueueClientListPager.Err` has been removed +- Function `*FileSharesClientListPager.Err` has been removed +- Function `*AccountsClientHierarchicalNamespaceMigrationPoller.FinalResponse` has been removed +- Function `BlobRestoreProgressStatus.ToPtr` has been removed +- Function `*DeletedAccountsClientListPager.PageResponse` has been removed +- Function `*AccountsClientHierarchicalNamespaceMigrationPollerResponse.Resume` has been removed +- Function `*AccountsClientAbortHierarchicalNamespaceMigrationPoller.FinalResponse` has been removed +- Function `KeySource.ToPtr` has been removed +- Function `*AccountsClientAbortHierarchicalNamespaceMigrationPoller.Poll` has been removed +- Function `*AccountsClientListByResourceGroupPager.PageResponse` has been removed +- Function `*BlobContainersClientListPager.Err` has been removed +- Function `*DeletedAccountsClientListPager.Err` has been removed +- Function `CorsRuleAllowedMethodsItem.ToPtr` has been removed +- Function `AccountImmutabilityPolicyState.ToPtr` has been removed +- Function `*AccountsClientHierarchicalNamespaceMigrationPoller.Done` has been removed +- Function `AccountsClientRestoreBlobRangesPollerResponse.PollUntilDone` has been removed +- Function `AccessTier.ToPtr` has been removed +- Function `*DeletedAccountsClientListPager.NextPage` has been removed +- Function `ObjectType.ToPtr` has been removed +- Function `KeyPermission.ToPtr` has been removed +- Function `ExpirationAction.ToPtr` has been removed +- Function `SKUTier.ToPtr` has been removed +- Function `*AccountsClientListPager.NextPage` has been removed +- Function `*QueueClientListPager.NextPage` has been removed +- Function `EncryptionScopeSource.ToPtr` has been removed +- Function `Reason.ToPtr` has been removed +- Function `State.ToPtr` has been removed +- Function `Schedule.ToPtr` has been removed +- Function `*AccountsClientFailoverPollerResponse.Resume` has been removed +- Function `StorageAccountExpand.ToPtr` has been removed +- Function `*BlobContainersClientObjectLevelWormPollerResponse.Resume` has been removed +- Function `ActiveDirectoryPropertiesAccountType.ToPtr` has been removed +- Function `CreatedByType.ToPtr` has been removed +- Function `*EncryptionScopesClientListPager.Err` has been removed +- Function `MinimumTLSVersion.ToPtr` has been removed +- Function `*AccountsClientFailoverPoller.Done` has been removed +- Function `Kind.ToPtr` has been removed +- Function `ExtendedLocationTypes.ToPtr` has been removed +- Function `*BlobContainersClientObjectLevelWormPoller.ResumeToken` has been removed +- Function `LeaseShareAction.ToPtr` has been removed +- Function `RoutingChoice.ToPtr` has been removed +- Function `*EncryptionScopesClientListPager.PageResponse` has been removed +- Function `*AccountsClientFailoverPoller.FinalResponse` has been removed +- Function `*AccountsClientCreatePoller.Poll` has been removed +- Function `*AccountsClientAbortHierarchicalNamespaceMigrationPoller.Done` has been removed +- Function `DefaultAction.ToPtr` has been removed +- Function `*BlobContainersClientObjectLevelWormPoller.Poll` has been removed +- Struct `AccountsClientAbortHierarchicalNamespaceMigrationPoller` has been removed +- Struct `AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse` has been removed +- Struct `AccountsClientCheckNameAvailabilityResult` has been removed +- Struct `AccountsClientCreatePoller` has been removed +- Struct `AccountsClientCreatePollerResponse` has been removed +- Struct `AccountsClientCreateResult` has been removed +- Struct `AccountsClientFailoverPoller` has been removed +- Struct `AccountsClientFailoverPollerResponse` has been removed +- Struct `AccountsClientGetPropertiesResult` has been removed +- Struct `AccountsClientHierarchicalNamespaceMigrationPoller` has been removed +- Struct `AccountsClientHierarchicalNamespaceMigrationPollerResponse` has been removed +- Struct `AccountsClientListAccountSASResult` has been removed +- Struct `AccountsClientListByResourceGroupPager` has been removed +- Struct `AccountsClientListByResourceGroupResult` has been removed +- Struct `AccountsClientListKeysResult` has been removed +- Struct `AccountsClientListPager` has been removed +- Struct `AccountsClientListResult` has been removed +- Struct `AccountsClientListServiceSASResult` has been removed +- Struct `AccountsClientRegenerateKeyResult` has been removed +- Struct `AccountsClientRestoreBlobRangesPoller` has been removed +- Struct `AccountsClientRestoreBlobRangesPollerResponse` has been removed +- Struct `AccountsClientRestoreBlobRangesResult` has been removed +- Struct `AccountsClientUpdateResult` has been removed +- Struct `BlobContainersClientClearLegalHoldResult` has been removed +- Struct `BlobContainersClientCreateOrUpdateImmutabilityPolicyResult` has been removed +- Struct `BlobContainersClientCreateResult` has been removed +- Struct `BlobContainersClientDeleteImmutabilityPolicyResult` has been removed +- Struct `BlobContainersClientExtendImmutabilityPolicyResult` has been removed +- Struct `BlobContainersClientGetImmutabilityPolicyResult` has been removed +- Struct `BlobContainersClientGetResult` has been removed +- Struct `BlobContainersClientLeaseResult` has been removed +- Struct `BlobContainersClientListPager` has been removed +- Struct `BlobContainersClientListResult` has been removed +- Struct `BlobContainersClientLockImmutabilityPolicyResult` has been removed +- Struct `BlobContainersClientObjectLevelWormPoller` has been removed +- Struct `BlobContainersClientObjectLevelWormPollerResponse` has been removed +- Struct `BlobContainersClientSetLegalHoldResult` has been removed +- Struct `BlobContainersClientUpdateResult` has been removed +- Struct `BlobInventoryPoliciesClientCreateOrUpdateResult` has been removed +- Struct `BlobInventoryPoliciesClientGetResult` has been removed +- Struct `BlobInventoryPoliciesClientListResult` has been removed +- Struct `BlobServicesClientGetServicePropertiesResult` has been removed +- Struct `BlobServicesClientListResult` has been removed +- Struct `BlobServicesClientSetServicePropertiesResult` has been removed +- Struct `DeletedAccountsClientGetResult` has been removed +- Struct `DeletedAccountsClientListPager` has been removed +- Struct `DeletedAccountsClientListResult` has been removed +- Struct `EncryptionScopesClientGetResult` has been removed +- Struct `EncryptionScopesClientListPager` has been removed +- Struct `EncryptionScopesClientListResult` has been removed +- Struct `EncryptionScopesClientPatchResult` has been removed +- Struct `EncryptionScopesClientPutResult` has been removed +- Struct `FileServicesClientGetServicePropertiesResult` has been removed +- Struct `FileServicesClientListResult` has been removed +- Struct `FileServicesClientSetServicePropertiesResult` has been removed +- Struct `FileSharesClientCreateResult` has been removed +- Struct `FileSharesClientGetResult` has been removed +- Struct `FileSharesClientLeaseResult` has been removed +- Struct `FileSharesClientListPager` has been removed +- Struct `FileSharesClientListResult` has been removed +- Struct `FileSharesClientUpdateResult` has been removed +- Struct `LocalUsersClientCreateOrUpdateResult` has been removed +- Struct `LocalUsersClientGetResult` has been removed +- Struct `LocalUsersClientListKeysResult` has been removed +- Struct `LocalUsersClientListResult` has been removed +- Struct `LocalUsersClientRegeneratePasswordResult` has been removed +- Struct `ManagementPoliciesClientCreateOrUpdateResult` has been removed +- Struct `ManagementPoliciesClientGetResult` has been removed +- Struct `ObjectReplicationPoliciesClientCreateOrUpdateResult` has been removed +- Struct `ObjectReplicationPoliciesClientGetResult` has been removed +- Struct `ObjectReplicationPoliciesClientListResult` has been removed +- Struct `OperationsClientListResult` has been removed +- Struct `PrivateEndpointConnectionsClientGetResult` has been removed +- Struct `PrivateEndpointConnectionsClientListResult` has been removed +- Struct `PrivateEndpointConnectionsClientPutResult` has been removed +- Struct `PrivateLinkResourcesClientListByStorageAccountResult` has been removed +- Struct `QueueClientCreateResult` has been removed +- Struct `QueueClientGetResult` has been removed +- Struct `QueueClientListPager` has been removed +- Struct `QueueClientListResult` has been removed +- Struct `QueueClientUpdateResult` has been removed +- Struct `QueueServicesClientGetServicePropertiesResult` has been removed +- Struct `QueueServicesClientListResult` has been removed +- Struct `QueueServicesClientSetServicePropertiesResult` has been removed +- Struct `SKUsClientListResult` has been removed +- Struct `TableClientCreateResult` has been removed +- Struct `TableClientGetResult` has been removed +- Struct `TableClientListPager` has been removed +- Struct `TableClientListResult` has been removed +- Struct `TableClientUpdateResult` has been removed +- Struct `TableServicesClientGetServicePropertiesResult` has been removed +- Struct `TableServicesClientListResult` has been removed +- Struct `TableServicesClientSetServicePropertiesResult` has been removed +- Struct `UsagesClientListByLocationResult` has been removed +- Field `TableClientCreateResult` of struct `TableClientCreateResponse` has been removed +- Field `RawResponse` of struct `TableClientCreateResponse` has been removed +- Field `AccountsClientRestoreBlobRangesResult` of struct `AccountsClientRestoreBlobRangesResponse` has been removed +- Field `RawResponse` of struct `AccountsClientRestoreBlobRangesResponse` has been removed +- Field `BlobContainersClientUpdateResult` of struct `BlobContainersClientUpdateResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientUpdateResponse` has been removed +- Field `FileSharesClientListResult` of struct `FileSharesClientListResponse` has been removed +- Field `RawResponse` of struct `FileSharesClientListResponse` has been removed +- Field `BlobContainersClientLeaseResult` of struct `BlobContainersClientLeaseResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientLeaseResponse` has been removed +- Field `BlobContainersClientListResult` of struct `BlobContainersClientListResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientListResponse` has been removed +- Field `BlobServicesClientGetServicePropertiesResult` of struct `BlobServicesClientGetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `BlobServicesClientGetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `BlobInventoryPoliciesClientDeleteResponse` has been removed +- Field `EncryptionScopesClientPutResult` of struct `EncryptionScopesClientPutResponse` has been removed +- Field `RawResponse` of struct `EncryptionScopesClientPutResponse` has been removed +- Field `ObjectReplicationPoliciesClientListResult` of struct `ObjectReplicationPoliciesClientListResponse` has been removed +- Field `RawResponse` of struct `ObjectReplicationPoliciesClientListResponse` has been removed +- Field `AccountsClientListAccountSASResult` of struct `AccountsClientListAccountSASResponse` has been removed +- Field `RawResponse` of struct `AccountsClientListAccountSASResponse` has been removed +- Field `TableServicesClientGetServicePropertiesResult` of struct `TableServicesClientGetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `TableServicesClientGetServicePropertiesResponse` has been removed +- Field `BlobContainersClientLockImmutabilityPolicyResult` of struct `BlobContainersClientLockImmutabilityPolicyResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientLockImmutabilityPolicyResponse` has been removed +- Field `QueueClientGetResult` of struct `QueueClientGetResponse` has been removed +- Field `RawResponse` of struct `QueueClientGetResponse` has been removed +- Field `BlobContainersClientSetLegalHoldResult` of struct `BlobContainersClientSetLegalHoldResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientSetLegalHoldResponse` has been removed +- Field `DeletedAccountsClientGetResult` of struct `DeletedAccountsClientGetResponse` has been removed +- Field `RawResponse` of struct `DeletedAccountsClientGetResponse` has been removed +- Field `OperationsClientListResult` of struct `OperationsClientListResponse` has been removed +- Field `RawResponse` of struct `OperationsClientListResponse` has been removed +- Field `BlobInventoryPoliciesClientListResult` of struct `BlobInventoryPoliciesClientListResponse` has been removed +- Field `RawResponse` of struct `BlobInventoryPoliciesClientListResponse` has been removed +- Field `EncryptionScopesClientListResult` of struct `EncryptionScopesClientListResponse` has been removed +- Field `RawResponse` of struct `EncryptionScopesClientListResponse` has been removed +- Field `RawResponse` of struct `AccountsClientFailoverResponse` has been removed +- Field `TableServicesClientSetServicePropertiesResult` of struct `TableServicesClientSetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `TableServicesClientSetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `AccountsClientRevokeUserDelegationKeysResponse` has been removed +- Field `RawResponse` of struct `AccountsClientDeleteResponse` has been removed +- Field `RawResponse` of struct `TableClientDeleteResponse` has been removed +- Field `FileServicesClientSetServicePropertiesResult` of struct `FileServicesClientSetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `FileServicesClientSetServicePropertiesResponse` has been removed +- Field `FileServicesClientListResult` of struct `FileServicesClientListResponse` has been removed +- Field `RawResponse` of struct `FileServicesClientListResponse` has been removed +- Field `AccountsClientRegenerateKeyResult` of struct `AccountsClientRegenerateKeyResponse` has been removed +- Field `RawResponse` of struct `AccountsClientRegenerateKeyResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientDeleteResponse` has been removed +- Field `AccountsClientListServiceSASResult` of struct `AccountsClientListServiceSASResponse` has been removed +- Field `RawResponse` of struct `AccountsClientListServiceSASResponse` has been removed +- Field `PrivateEndpointConnectionsClientPutResult` of struct `PrivateEndpointConnectionsClientPutResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientPutResponse` has been removed +- Field `RawResponse` of struct `AccountsClientAbortHierarchicalNamespaceMigrationResponse` has been removed +- Field `BlobInventoryPoliciesClientCreateOrUpdateResult` of struct `BlobInventoryPoliciesClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `BlobInventoryPoliciesClientCreateOrUpdateResponse` has been removed +- Field `FileSharesClientLeaseResult` of struct `FileSharesClientLeaseResponse` has been removed +- Field `RawResponse` of struct `FileSharesClientLeaseResponse` has been removed +- Field `ManagementPoliciesClientGetResult` of struct `ManagementPoliciesClientGetResponse` has been removed +- Field `RawResponse` of struct `ManagementPoliciesClientGetResponse` has been removed +- Field `QueueServicesClientGetServicePropertiesResult` of struct `QueueServicesClientGetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `QueueServicesClientGetServicePropertiesResponse` has been removed +- Field `ManagementPoliciesClientCreateOrUpdateResult` of struct `ManagementPoliciesClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ManagementPoliciesClientCreateOrUpdateResponse` has been removed +- Field `BlobContainersClientGetResult` of struct `BlobContainersClientGetResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientGetResponse` has been removed +- Field `RawResponse` of struct `AccountsClientHierarchicalNamespaceMigrationResponse` has been removed +- Field `TableClientUpdateResult` of struct `TableClientUpdateResponse` has been removed +- Field `RawResponse` of struct `TableClientUpdateResponse` has been removed +- Field `EncryptionScopesClientGetResult` of struct `EncryptionScopesClientGetResponse` has been removed +- Field `RawResponse` of struct `EncryptionScopesClientGetResponse` has been removed +- Field `LocalUsersClientRegeneratePasswordResult` of struct `LocalUsersClientRegeneratePasswordResponse` has been removed +- Field `RawResponse` of struct `LocalUsersClientRegeneratePasswordResponse` has been removed +- Field `AccountsClientListKeysResult` of struct `AccountsClientListKeysResponse` has been removed +- Field `RawResponse` of struct `AccountsClientListKeysResponse` has been removed +- Field `LocalUsersClientCreateOrUpdateResult` of struct `LocalUsersClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `LocalUsersClientCreateOrUpdateResponse` has been removed +- Field `PrivateEndpointConnectionsClientGetResult` of struct `PrivateEndpointConnectionsClientGetResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientGetResponse` has been removed +- Field `AccountsClientGetPropertiesResult` of struct `AccountsClientGetPropertiesResponse` has been removed +- Field `RawResponse` of struct `AccountsClientGetPropertiesResponse` has been removed +- Field `AccountsClientCheckNameAvailabilityResult` of struct `AccountsClientCheckNameAvailabilityResponse` has been removed +- Field `RawResponse` of struct `AccountsClientCheckNameAvailabilityResponse` has been removed +- Field `QueueServicesClientSetServicePropertiesResult` of struct `QueueServicesClientSetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `QueueServicesClientSetServicePropertiesResponse` has been removed +- Field `DeletedAccountsClientListResult` of struct `DeletedAccountsClientListResponse` has been removed +- Field `RawResponse` of struct `DeletedAccountsClientListResponse` has been removed +- Field `TableServicesClientListResult` of struct `TableServicesClientListResponse` has been removed +- Field `RawResponse` of struct `TableServicesClientListResponse` has been removed +- Field `QueueClientListResult` of struct `QueueClientListResponse` has been removed +- Field `RawResponse` of struct `QueueClientListResponse` has been removed +- Field `BlobInventoryPoliciesClientGetResult` of struct `BlobInventoryPoliciesClientGetResponse` has been removed +- Field `RawResponse` of struct `BlobInventoryPoliciesClientGetResponse` has been removed +- Field `AccountsClientUpdateResult` of struct `AccountsClientUpdateResponse` has been removed +- Field `RawResponse` of struct `AccountsClientUpdateResponse` has been removed +- Field `UsagesClientListByLocationResult` of struct `UsagesClientListByLocationResponse` has been removed +- Field `RawResponse` of struct `UsagesClientListByLocationResponse` has been removed +- Field `QueueClientUpdateResult` of struct `QueueClientUpdateResponse` has been removed +- Field `RawResponse` of struct `QueueClientUpdateResponse` has been removed +- Field `LocalUsersClientGetResult` of struct `LocalUsersClientGetResponse` has been removed +- Field `RawResponse` of struct `LocalUsersClientGetResponse` has been removed +- Field `LocalUsersClientListResult` of struct `LocalUsersClientListResponse` has been removed +- Field `RawResponse` of struct `LocalUsersClientListResponse` has been removed +- Field `ObjectReplicationPoliciesClientGetResult` of struct `ObjectReplicationPoliciesClientGetResponse` has been removed +- Field `RawResponse` of struct `ObjectReplicationPoliciesClientGetResponse` has been removed +- Field `LocalUsersClientListKeysResult` of struct `LocalUsersClientListKeysResponse` has been removed +- Field `RawResponse` of struct `LocalUsersClientListKeysResponse` has been removed +- Field `RawResponse` of struct `FileSharesClientDeleteResponse` has been removed +- Field `BlobContainersClientCreateResult` of struct `BlobContainersClientCreateResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientCreateResponse` has been removed +- Field `PrivateEndpointConnectionsClientListResult` of struct `PrivateEndpointConnectionsClientListResponse` has been removed +- Field `RawResponse` of struct `PrivateEndpointConnectionsClientListResponse` has been removed +- Field `BlobServicesClientSetServicePropertiesResult` of struct `BlobServicesClientSetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `BlobServicesClientSetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `ObjectReplicationPoliciesClientDeleteResponse` has been removed +- Field `TableClientListResult` of struct `TableClientListResponse` has been removed +- Field `RawResponse` of struct `TableClientListResponse` has been removed +- Field `BlobServicesClientListResult` of struct `BlobServicesClientListResponse` has been removed +- Field `RawResponse` of struct `BlobServicesClientListResponse` has been removed +- Field `QueueServicesClientListResult` of struct `QueueServicesClientListResponse` has been removed +- Field `RawResponse` of struct `QueueServicesClientListResponse` has been removed +- Field `AccountsClientListResult` of struct `AccountsClientListResponse` has been removed +- Field `RawResponse` of struct `AccountsClientListResponse` has been removed +- Field `PrivateLinkResourcesClientListByStorageAccountResult` of struct `PrivateLinkResourcesClientListByStorageAccountResponse` has been removed +- Field `RawResponse` of struct `PrivateLinkResourcesClientListByStorageAccountResponse` has been removed +- Field `BlobContainersClientExtendImmutabilityPolicyResult` of struct `BlobContainersClientExtendImmutabilityPolicyResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientExtendImmutabilityPolicyResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientObjectLevelWormResponse` has been removed +- Field `RawResponse` of struct `QueueClientDeleteResponse` has been removed +- Field `AccountsClientCreateResult` of struct `AccountsClientCreateResponse` has been removed +- Field `RawResponse` of struct `AccountsClientCreateResponse` has been removed +- Field `AccountsClientListByResourceGroupResult` of struct `AccountsClientListByResourceGroupResponse` has been removed +- Field `RawResponse` of struct `AccountsClientListByResourceGroupResponse` has been removed +- Field `ObjectReplicationPoliciesClientCreateOrUpdateResult` of struct `ObjectReplicationPoliciesClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ObjectReplicationPoliciesClientCreateOrUpdateResponse` has been removed +- Field `RawResponse` of struct `ManagementPoliciesClientDeleteResponse` has been removed +- Field `BlobContainersClientClearLegalHoldResult` of struct `BlobContainersClientClearLegalHoldResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientClearLegalHoldResponse` has been removed +- Field `FileSharesClientUpdateResult` of struct `FileSharesClientUpdateResponse` has been removed +- Field `RawResponse` of struct `FileSharesClientUpdateResponse` has been removed +- Field `FileSharesClientGetResult` of struct `FileSharesClientGetResponse` has been removed +- Field `RawResponse` of struct `FileSharesClientGetResponse` has been removed +- Field `BlobContainersClientDeleteImmutabilityPolicyResult` of struct `BlobContainersClientDeleteImmutabilityPolicyResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientDeleteImmutabilityPolicyResponse` has been removed +- Field `RawResponse` of struct `FileSharesClientRestoreResponse` has been removed +- Field `EncryptionScopesClientPatchResult` of struct `EncryptionScopesClientPatchResponse` has been removed +- Field `RawResponse` of struct `EncryptionScopesClientPatchResponse` has been removed +- Field `SKUsClientListResult` of struct `SKUsClientListResponse` has been removed +- Field `RawResponse` of struct `SKUsClientListResponse` has been removed +- Field `BlobContainersClientGetImmutabilityPolicyResult` of struct `BlobContainersClientGetImmutabilityPolicyResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientGetImmutabilityPolicyResponse` has been removed +- Field `TableClientGetResult` of struct `TableClientGetResponse` has been removed +- Field `RawResponse` of struct `TableClientGetResponse` has been removed +- Field `FileSharesClientCreateResult` of struct `FileSharesClientCreateResponse` has been removed +- Field `RawResponse` of struct `FileSharesClientCreateResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientDeleteResponse` has been removed +- Field `RawResponse` of struct `LocalUsersClientDeleteResponse` has been removed +- Field `FileServicesClientGetServicePropertiesResult` of struct `FileServicesClientGetServicePropertiesResponse` has been removed +- Field `RawResponse` of struct `FileServicesClientGetServicePropertiesResponse` has been removed +- Field `QueueClientCreateResult` of struct `QueueClientCreateResponse` has been removed +- Field `RawResponse` of struct `QueueClientCreateResponse` has been removed +- Field `BlobContainersClientCreateOrUpdateImmutabilityPolicyResult` of struct `BlobContainersClientCreateOrUpdateImmutabilityPolicyResponse` has been removed +- Field `RawResponse` of struct `BlobContainersClientCreateOrUpdateImmutabilityPolicyResponse` has been removed + +### Features Added + +- New const `CorsRuleAllowedMethodsItemPATCH` +- New const `SKUConversionStatusFailed` +- New const `DNSEndpointTypeStandard` +- New const `DNSEndpointTypeAzureDNSZone` +- New const `SKUConversionStatusInProgress` +- New const `AccessTierPremium` +- New const `SKUConversionStatusSucceeded` +- New function `TableAccessPolicy.MarshalJSON() ([]byte, error)` +- New function `Table.MarshalJSON() ([]byte, error)` +- New function `CloudErrorBody.MarshalJSON() ([]byte, error)` +- New function `*TableAccessPolicy.UnmarshalJSON([]byte) error` +- New function `TableProperties.MarshalJSON() ([]byte, error)` +- New function `PossibleSKUConversionStatusValues() []SKUConversionStatus` +- New function `PossibleDNSEndpointTypeValues() []DNSEndpointType` +- New struct `AccountSKUConversionStatus` +- New struct `CloudError` +- New struct `CloudErrorBody` +- New struct `ErrorResponse` +- New struct `ErrorResponseBody` +- New struct `TableAccessPolicy` +- New struct `TableSignedIdentifier` +- New field `StorageAccountSKUConversionStatus` in struct `AccountProperties` +- New field `DNSEndpointType` in struct `AccountProperties` +- New anonymous field `Queue` in struct `QueueClientCreateResponse` +- New anonymous field `ImmutabilityPolicy` in struct `BlobContainersClientExtendImmutabilityPolicyResponse` +- New field `ETag` in struct `BlobContainersClientExtendImmutabilityPolicyResponse` +- New anonymous field `BlobServiceProperties` in struct `BlobServicesClientSetServicePropertiesResponse` +- New anonymous field `Account` in struct `AccountsClientGetPropertiesResponse` +- New anonymous field `FileServiceProperties` in struct `FileServicesClientGetServicePropertiesResponse` +- New anonymous field `ListAccountSasResponse` in struct `AccountsClientListAccountSASResponse` +- New anonymous field `UsageListResult` in struct `UsagesClientListByLocationResponse` +- New anonymous field `ObjectReplicationPolicy` in struct `ObjectReplicationPoliciesClientGetResponse` +- New anonymous field `Table` in struct `TableClientCreateResponse` +- New anonymous field `LocalUserRegeneratePasswordResult` in struct `LocalUsersClientRegeneratePasswordResponse` +- New anonymous field `EncryptionScope` in struct `EncryptionScopesClientGetResponse` +- New field `ResumeToken` in struct `AccountsClientBeginHierarchicalNamespaceMigrationOptions` +- New anonymous field `DeletedAccountListResult` in struct `DeletedAccountsClientListResponse` +- New anonymous field `FileServiceProperties` in struct `FileServicesClientSetServicePropertiesResponse` +- New field `DNSEndpointType` in struct `AccountPropertiesUpdateParameters` +- New anonymous field `BlobServiceProperties` in struct `BlobServicesClientGetServicePropertiesResponse` +- New anonymous field `OperationListResult` in struct `OperationsClientListResponse` +- New anonymous field `ImmutabilityPolicy` in struct `BlobContainersClientDeleteImmutabilityPolicyResponse` +- New field `ETag` in struct `BlobContainersClientDeleteImmutabilityPolicyResponse` +- New anonymous field `BlobInventoryPolicy` in struct `BlobInventoryPoliciesClientCreateOrUpdateResponse` +- New anonymous field `Account` in struct `AccountsClientUpdateResponse` +- New anonymous field `EncryptionScope` in struct `EncryptionScopesClientPutResponse` +- New field `DNSEndpointType` in struct `AccountPropertiesCreateParameters` +- New anonymous field `LocalUser` in struct `LocalUsersClientCreateOrUpdateResponse` +- New anonymous field `ListBlobInventoryPolicy` in struct `BlobInventoryPoliciesClientListResponse` +- New anonymous field `ManagementPolicy` in struct `ManagementPoliciesClientCreateOrUpdateResponse` +- New anonymous field `ListContainerItems` in struct `BlobContainersClientListResponse` +- New anonymous field `FileServiceItems` in struct `FileServicesClientListResponse` +- New anonymous field `FileShare` in struct `FileSharesClientCreateResponse` +- New anonymous field `QueueServiceProperties` in struct `QueueServicesClientGetServicePropertiesResponse` +- New anonymous field `LegalHold` in struct `BlobContainersClientSetLegalHoldResponse` +- New field `ResumeToken` in struct `AccountsClientBeginAbortHierarchicalNamespaceMigrationOptions` +- New anonymous field `AccountListResult` in struct `AccountsClientListResponse` +- New anonymous field `ManagementPolicy` in struct `ManagementPoliciesClientGetResponse` +- New anonymous field `BlobServiceItems` in struct `BlobServicesClientListResponse` +- New anonymous field `ListTableServices` in struct `TableServicesClientListResponse` +- New field `AllowPermanentDelete` in struct `DeleteRetentionPolicy` +- New anonymous field `PrivateEndpointConnectionListResult` in struct `PrivateEndpointConnectionsClientListResponse` +- New field `ResumeToken` in struct `AccountsClientBeginRestoreBlobRangesOptions` +- New anonymous field `AccountListKeysResult` in struct `AccountsClientRegenerateKeyResponse` +- New anonymous field `BlobContainer` in struct `BlobContainersClientCreateResponse` +- New anonymous field `BlobInventoryPolicy` in struct `BlobInventoryPoliciesClientGetResponse` +- New anonymous field `LocalUserKeys` in struct `LocalUsersClientListKeysResponse` +- New field `ResumeToken` in struct `AccountsClientBeginCreateOptions` +- New anonymous field `LegalHold` in struct `BlobContainersClientClearLegalHoldResponse` +- New anonymous field `QueueServiceProperties` in struct `QueueServicesClientSetServicePropertiesResponse` +- New anonymous field `AccountListResult` in struct `AccountsClientListByResourceGroupResponse` +- New anonymous field `ObjectReplicationPolicy` in struct `ObjectReplicationPoliciesClientCreateOrUpdateResponse` +- New anonymous field `ObjectReplicationPolicies` in struct `ObjectReplicationPoliciesClientListResponse` +- New field `ResumeToken` in struct `AccountsClientBeginFailoverOptions` +- New anonymous field `EncryptionScopeListResult` in struct `EncryptionScopesClientListResponse` +- New anonymous field `LeaseShareResponse` in struct `FileSharesClientLeaseResponse` +- New field `ETag` in struct `FileSharesClientLeaseResponse` +- New field `Parameters` in struct `TableClientCreateOptions` +- New anonymous field `SKUListResult` in struct `SKUsClientListResponse` +- New anonymous field `CheckNameAvailabilityResult` in struct `AccountsClientCheckNameAvailabilityResponse` +- New anonymous field `Table` in struct `TableClientGetResponse` +- New anonymous field `Queue` in struct `QueueClientGetResponse` +- New field `ExcludePrefix` in struct `BlobInventoryPolicyFilter` +- New field `IncludeDeleted` in struct `BlobInventoryPolicyFilter` +- New field `CurrentVersionedKeyExpirationTimestamp` in struct `KeyVaultProperties` +- New anonymous field `DeletedAccount` in struct `DeletedAccountsClientGetResponse` +- New anonymous field `FileShare` in struct `FileSharesClientUpdateResponse` +- New anonymous field `BlobContainer` in struct `BlobContainersClientGetResponse` +- New anonymous field `ImmutabilityPolicy` in struct `BlobContainersClientLockImmutabilityPolicyResponse` +- New field `ETag` in struct `BlobContainersClientLockImmutabilityPolicyResponse` +- New anonymous field `PrivateLinkResourceListResult` in struct `PrivateLinkResourcesClientListByStorageAccountResponse` +- New anonymous field `AccountListKeysResult` in struct `AccountsClientListKeysResponse` +- New field `DaysAfterLastTierChangeGreaterThan` in struct `DateAfterCreation` +- New anonymous field `LeaseContainerResponse` in struct `BlobContainersClientLeaseResponse` +- New anonymous field `Account` in struct `AccountsClientCreateResponse` +- New anonymous field `PrivateEndpointConnection` in struct `PrivateEndpointConnectionsClientGetResponse` +- New field `DaysAfterCreationGreaterThan` in struct `DateAfterModification` +- New field `DaysAfterLastTierChangeGreaterThan` in struct `DateAfterModification` +- New field `ResumeToken` in struct `BlobContainersClientBeginObjectLevelWormOptions` +- New field `Parameters` in struct `TableClientUpdateOptions` +- New field `SignedIdentifiers` in struct `TableProperties` +- New anonymous field `ListQueueServices` in struct `QueueServicesClientListResponse` +- New anonymous field `TableServiceProperties` in struct `TableServicesClientSetServicePropertiesResponse` +- New anonymous field `FileShare` in struct `FileSharesClientGetResponse` +- New anonymous field `ImmutabilityPolicy` in struct `BlobContainersClientGetImmutabilityPolicyResponse` +- New field `ETag` in struct `BlobContainersClientGetImmutabilityPolicyResponse` +- New anonymous field `FileShareItems` in struct `FileSharesClientListResponse` +- New anonymous field `LocalUsers` in struct `LocalUsersClientListResponse` +- New anonymous field `ListServiceSasResponse` in struct `AccountsClientListServiceSASResponse` +- New anonymous field `Table` in struct `TableClientUpdateResponse` +- New anonymous field `BlobContainer` in struct `BlobContainersClientUpdateResponse` +- New anonymous field `ListTableResource` in struct `TableClientListResponse` +- New anonymous field `LocalUser` in struct `LocalUsersClientGetResponse` +- New anonymous field `TableServiceProperties` in struct `TableServicesClientGetServicePropertiesResponse` +- New field `Destination` in struct `BlobInventoryPolicySchema` +- New anonymous field `ImmutabilityPolicy` in struct `BlobContainersClientCreateOrUpdateImmutabilityPolicyResponse` +- New field `ETag` in struct `BlobContainersClientCreateOrUpdateImmutabilityPolicyResponse` +- New anonymous field `EncryptionScope` in struct `EncryptionScopesClientPatchResponse` +- New anonymous field `ListQueueResource` in struct `QueueClientListResponse` +- New anonymous field `PrivateEndpointConnection` in struct `PrivateEndpointConnectionsClientPutResponse` +- New anonymous field `Queue` in struct `QueueClientUpdateResponse` +- New anonymous field `BlobRestoreStatus` in struct `AccountsClientRestoreBlobRangesResponse` + + ## 0.4.1 (2022-02-22) ### Other Changes diff --git a/sdk/resourcemanager/storage/armstorage/README.md b/sdk/resourcemanager/storage/armstorage/README.md index a260b114b89a..d18438d0913b 100644 --- a/sdk/resourcemanager/storage/armstorage/README.md +++ b/sdk/resourcemanager/storage/armstorage/README.md @@ -11,7 +11,7 @@ The `armstorage` module provides operations for working with Azure Storage. ## Prerequisites - an [Azure subscription](https://azure.microsoft.com/free/) -- Go 1.16 or above +- Go 1.18 or above ## Install the package @@ -38,16 +38,18 @@ For more information on authentication, please see the documentation for `aziden Azure Storage modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go -client := armstorage.NewFileSharesClient(, cred, nil) +client, err := armstorage.NewFileSharesClient(, cred, nil) ``` You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). ```go -options = arm.ClientOptions{ - Host: arm.AzureChina, +options := arm.ClientOptions { + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, } -client := armstorage.NewFileSharesClient(, cred, &options) +client, err := armstorage.NewFileSharesClient(, cred, &options) ``` ## More sample code diff --git a/sdk/resourcemanager/storage/armstorage/autorest.md b/sdk/resourcemanager/storage/armstorage/autorest.md index 31342a09bc7a..e0102f02a566 100644 --- a/sdk/resourcemanager/storage/armstorage/autorest.md +++ b/sdk/resourcemanager/storage/armstorage/autorest.md @@ -5,10 +5,10 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/d830271b241897bad300f9275ff7b27d502aa6c5/specification/storage/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/d830271b241897bad300f9275ff7b27d502aa6c5/specification/storage/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/storage/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/49135492d5ea1c15f1ba53813c4be8cb2109c416/specification/storage/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.4.1 +module-version: 0.5.0 modelerfour: seal-single-value-enum-by-default: true ``` \ No newline at end of file diff --git a/sdk/resourcemanager/storage/armstorage/go.mod b/sdk/resourcemanager/storage/armstorage/go.mod index 45b852234c12..e5379b754b0b 100644 --- a/sdk/resourcemanager/storage/armstorage/go.mod +++ b/sdk/resourcemanager/storage/armstorage/go.mod @@ -1,11 +1,29 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage -go 1.16 +go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 - github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 github.com/stretchr/testify v1.7.0 ) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect + github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect +) diff --git a/sdk/resourcemanager/storage/armstorage/go.sum b/sdk/resourcemanager/storage/armstorage/go.sum index 861905ed56b2..facd9999ed64 100644 --- a/sdk/resourcemanager/storage/armstorage/go.sum +++ b/sdk/resourcemanager/storage/armstorage/go.sum @@ -1,16 +1,13 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 h1:zBJcBJwte0x6PcPK7XaWDMvK2o2ZM2f1sMaqNNavQ5g= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.0/go.mod h1:TmXReXZ9yPp5D5TBRMTAtyz+UyOl15Py4hL5E5p6igQ= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1 h1:RxemzI2cHD0A8WyMqHu/UnDjfpGES/cmjtPbQoktWqs= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.13.1/go.mod h1:+nVKciyKD2J9TyVcEQ82Bo9b+3F92PiQfHrIE/zqLqM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0 h1:D7l5jspkc4kwBYRWoZE4DQnu6LVpLwDsMZjBKS4wZLQ= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0/go.mod h1:w5pDIZuawUmY3Bj4tVx3Xb8KS96ToB0j315w9rqpAg0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0 h1:NVS/4LOQfkBpk+B1VopIzv1ptmYeEskA8w/3K/w7vjo= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0/go.mod h1:RG0cZndeZM17StwohYclmcXSr4oOJ8b1I5hB8llIc6Y= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1 h1:sLZ/Y+P/5RRtsXWylBjB5lkgixYfm0MQPiwrSX//JSo= github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.1/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0 h1:/hWqo5bAXoNK7svf5GvgpXFPzOCpM29/Eu+WqcE34Uk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.1.0/go.mod h1:wXFq4k1znCwV7Bw70gw4UDNYKv/nrCUr70hjUmOj1Jo= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1 h1:EXTDtCSTfPauGawsG+Ae/W46B1PkrgzuKNrcFqy4ljM= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.3.1/go.mod h1:PoA99xQAlN13MyUjzgIPWMZEr0etHpYSuT25LmhR3zQ= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0 h1:gYG7I0WxtCnHSWOFLbWCHLBWr+yzI5UeU9KuGZajf5U= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v0.3.0/go.mod h1:bwEUbGO8V/7KcrqwO14ADZ0m4AkTvSKx3ma68FRc3Bg= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0 h1:TSBK+EXu33WBNrYhWmOecKJAl4z1Z5dtbDmqOzd1zGk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v0.4.0/go.mod h1:tt77DwGu+r0Ued27YQPhiW8h8YWpYwpfOfi5uRpRMTg= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -21,7 +18,6 @@ github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/ github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= -github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= @@ -41,21 +37,16 @@ golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNm golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestBlobContainersClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestBlobContainersClient.json index 097ad0aca9b5..7336ead21428 100644 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestBlobContainersClient.json +++ b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestBlobContainersClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:47:45 GMT", + "Date": "Thu, 14 Apr 2022 02:40:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084745Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024014Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1?api-version=2021-09-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -48,7 +48,7 @@ "Authorization": "Sanitized", "Content-Length": "274", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "kind": "StorageV2", @@ -81,9 +81,9 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:47:53 GMT", + "Date": "Thu, 14 Apr 2022 02:40:19 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-09-01", "Pragma": "no-cache", "Retry-After": "17", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -92,18 +92,18 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084753Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024020Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-09-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -111,7 +111,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:10 GMT", + "Date": "Thu, 14 Apr 2022 02:40:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -122,7 +122,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084810Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024038Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "sku": { @@ -140,8 +140,8 @@ }, "properties": { "keyCreationTime": { - "key1": "2022-03-14T08:47:50.4416586Z", - "key2": "2022-03-14T08:47:50.4416586Z" + "key1": "2022-04-14T02:40:19.3323080Z", + "key2": "2022-04-14T02:40:19.3323080Z" }, "privateEndpointConnections": [], "minimumTlsVersion": "TLS1_0", @@ -158,19 +158,19 @@ "file": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:47:50.4573254Z" + "lastEnabledTime": "2022-04-14T02:40:19.3323080Z" }, "blob": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:47:50.4573254Z" + "lastEnabledTime": "2022-04-14T02:40:19.3323080Z" } }, "keySource": "Microsoft.Storage" }, "accessTier": "Hot", "provisioningState": "Succeeded", - "creationTime": "2022-03-14T08:47:50.3167018Z", + "creationTime": "2022-04-14T02:40:19.2229451Z", "primaryEndpoints": { "dfs": "https://gotestaccount1.dfs.core.windows.net/", "web": "https://gotestaccount1.z13.web.core.windows.net/", @@ -187,7 +187,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2021-09-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -195,7 +195,7 @@ "Authorization": "Sanitized", "Content-Length": "2", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": {}, "StatusCode": 201, @@ -203,8 +203,8 @@ "Cache-Control": "no-cache", "Content-Length": "293", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:11 GMT", - "ETag": "\u00220x8DA05975EA86E11\u0022", + "Date": "Thu, 14 Apr 2022 02:40:39 GMT", + "ETag": "\u00220x8DA1DC029619F46\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -213,7 +213,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1197", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084811Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024039Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container", @@ -222,7 +222,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2021-09-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -230,7 +230,7 @@ "Authorization": "Sanitized", "Content-Length": "74", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -245,8 +245,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:11 GMT", - "ETag": "\u00220x8DA05975EEC7151\u0022", + "Date": "Thu, 14 Apr 2022 02:40:39 GMT", + "ETag": "\u00220x8DA1DC029A9728C\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -257,7 +257,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1196", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084811Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024039Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container", @@ -276,14 +276,14 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2021-09-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -291,8 +291,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:11 GMT", - "ETag": "\u00220x8DA05975EEC7151\u0022", + "Date": "Thu, 14 Apr 2022 02:40:39 GMT", + "ETag": "\u00220x8DA1DC029A9728C\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -303,13 +303,13 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-reads": "11998", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084812Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024040Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container", "name": "go-test-container", "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "etag": "\u00220x8DA05975EEC7151\u0022", + "etag": "\u00220x8DA1DC029A9728C\u0022", "properties": { "deleted": false, "remainingRetentionDays": 0, @@ -321,7 +321,7 @@ "publicAccess": "Container", "leaseStatus": "Unlocked", "leaseState": "Available", - "lastModifiedTime": "2022-03-14T08:48:11.0000000Z", + "lastModifiedTime": "2022-04-14T02:40:39.0000000Z", "legalHold": { "hasLegalHold": false, "tags": [] @@ -332,62 +332,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084812Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container", - "name": "go-test-container", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "etag": "\u00220x8DA05975EEC7151\u0022", - "properties": { - "immutableStorageWithVersioning": { - "enabled": false - }, - "deleted": false, - "remainingRetentionDays": 0, - "defaultEncryptionScope": "$account-encryption-key", - "denyEncryptionScopeOverride": false, - "publicAccess": "Container", - "leaseStatus": "Unlocked", - "leaseState": "Available", - "lastModifiedTime": "2022-03-14T08:48:11.0000000Z", - "hasImmutabilityPolicy": false, - "hasLegalHold": false - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container/clearLegalHold?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container/clearLegalHold?api-version=2021-09-01", "RequestMethod": "POST", "RequestHeaders": { ":method": "POST", @@ -396,7 +341,7 @@ "Authorization": "Sanitized", "Content-Length": "31", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "tags": [ @@ -410,7 +355,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:12 GMT", + "Date": "Thu, 14 Apr 2022 02:40:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -421,7 +366,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084813Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024040Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "hasLegalHold": false, @@ -429,7 +374,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container/lease?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container/lease?api-version=2021-09-01", "RequestMethod": "POST", "RequestHeaders": { ":method": "POST", @@ -438,7 +383,7 @@ "Authorization": "Sanitized", "Content-Length": "39", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "action": "Acquire", @@ -449,8 +394,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:13 GMT", - "ETag": "\u00220x8DA05975FA4CF0E\u0022", + "Date": "Thu, 14 Apr 2022 02:40:40 GMT", + "ETag": "\u00220x8DA1DC02A2A7577\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -461,14 +406,14 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084813Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024041Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "leaseId": "00000000-0000-0000-0000-000000000000" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container/lease?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container/lease?api-version=2021-09-01", "RequestMethod": "POST", "RequestHeaders": { ":method": "POST", @@ -477,7 +422,7 @@ "Authorization": "Sanitized", "Content-Length": "67", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "action": "Break", @@ -488,8 +433,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:13 GMT", - "ETag": "\u00220x8DA05975FA4CF0E\u0022", + "Date": "Thu, 14 Apr 2022 02:40:41 GMT", + "ETag": "\u00220x8DA1DC02A2A7577\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -500,19 +445,19 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1197", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084814Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024041Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "leaseTimeSeconds": "0" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2021-09-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -520,7 +465,7 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:48:14 GMT", + "Date": "Thu, 14 Apr 2022 02:40:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -529,7 +474,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084814Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024041Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -540,16 +485,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 08:48:17 GMT", + "Date": "Thu, 14 Apr 2022 02:40:44 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzNC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5MzctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -557,7 +502,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14998", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084817Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024044Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestEncryptionScopesClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestEncryptionScopesClient.json index d2ce650881b6..9399bb00318a 100644 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestEncryptionScopesClient.json +++ b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestEncryptionScopesClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:48:19 GMT", + "Date": "Thu, 14 Apr 2022 02:40:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1195", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084819Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024046Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2?api-version=2021-09-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -48,7 +48,7 @@ "Authorization": "Sanitized", "Content-Length": "274", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "kind": "StorageV2", @@ -81,9 +81,9 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:48:23 GMT", + "Date": "Thu, 14 Apr 2022 02:40:50 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-09-01", "Pragma": "no-cache", "Retry-After": "17", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -92,18 +92,18 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1194", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084823Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024051Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-09-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -111,7 +111,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:41 GMT", + "Date": "Thu, 14 Apr 2022 02:41:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -120,9 +120,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-ratelimit-remaining-subscription-reads": "11997", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084842Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024109Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "sku": { @@ -140,8 +140,8 @@ }, "properties": { "keyCreationTime": { - "key1": "2022-03-14T08:48:22.2857296Z", - "key2": "2022-03-14T08:48:22.2857296Z" + "key1": "2022-04-14T02:40:49.2541707Z", + "key2": "2022-04-14T02:40:49.2541707Z" }, "privateEndpointConnections": [], "minimumTlsVersion": "TLS1_0", @@ -158,19 +158,19 @@ "file": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:48:22.3013016Z" + "lastEnabledTime": "2022-04-14T02:40:49.2541707Z" }, "blob": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:48:22.3013016Z" + "lastEnabledTime": "2022-04-14T02:40:49.2541707Z" } }, "keySource": "Microsoft.Storage" }, "accessTier": "Hot", "provisioningState": "Succeeded", - "creationTime": "2022-03-14T08:48:22.1607129Z", + "creationTime": "2022-04-14T02:40:49.1135487Z", "primaryEndpoints": { "dfs": "https://gotestaccount2.dfs.core.windows.net/", "web": "https://gotestaccount2.z13.web.core.windows.net/", @@ -187,7 +187,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption?api-version=2021-09-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -195,7 +195,7 @@ "Authorization": "Sanitized", "Content-Length": "63", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -208,7 +208,7 @@ "Cache-Control": "no-cache", "Content-Length": "455", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:41 GMT", + "Date": "Thu, 14 Apr 2022 02:41:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -217,7 +217,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1193", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084842Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024109Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption", @@ -226,21 +226,21 @@ "properties": { "source": "Microsoft.Storage", "keyVaultProperties": {}, - "creationTime": "2022-03-14T08:48:42.4246624Z", - "lastModifiedTime": "2022-03-14T08:48:42.4246624Z", + "creationTime": "2022-04-14T02:41:09.3999002Z", + "lastModifiedTime": "2022-04-14T02:41:09.3999002Z", "state": "Enabled" } } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption?api-version=2021-09-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -248,7 +248,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:42 GMT", + "Date": "Thu, 14 Apr 2022 02:41:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -257,9 +257,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-ratelimit-remaining-subscription-reads": "11996", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084842Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024110Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption", @@ -267,59 +267,14 @@ "name": "go-test-encryption", "properties": { "source": "Microsoft.Storage", - "creationTime": "2022-03-14T08:48:42.4246624Z", - "lastModifiedTime": "2022-03-14T08:48:42.4246624Z", + "creationTime": "2022-04-14T02:41:09.3999002Z", + "lastModifiedTime": "2022-04-14T02:41:09.3999002Z", "state": "Enabled" } } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084843Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption", - "type": "Microsoft.Storage/storageAccounts/encryptionScopes", - "name": "go-test-encryption", - "properties": { - "source": "Microsoft.Storage", - "creationTime": "2022-03-14T08:48:42.4246624Z", - "lastModifiedTime": "2022-03-14T08:48:42.4246624Z", - "state": "Enabled" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption?api-version=2021-09-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -327,7 +282,7 @@ "Authorization": "Sanitized", "Content-Length": "63", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -340,7 +295,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:48:43 GMT", + "Date": "Thu, 14 Apr 2022 02:41:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -351,7 +306,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1192", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084843Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024110Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption", @@ -360,8 +315,8 @@ "properties": { "source": "Microsoft.Storage", "keyVaultProperties": {}, - "creationTime": "2022-03-14T08:48:42.4246624Z", - "lastModifiedTime": "2022-03-14T08:48:42.4246624Z", + "creationTime": "2022-04-14T02:41:09.3999002Z", + "lastModifiedTime": "2022-04-14T02:41:09.3999002Z", "state": "Enabled" } } @@ -373,16 +328,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 08:48:44 GMT", + "Date": "Thu, 14 Apr 2022 02:41:11 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ2MzAtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1ODUtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -390,7 +345,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14997", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084845Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024112Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestManagementPoliciesClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestManagementPoliciesClient.json index e61ba91921b3..00dcf15634f5 100644 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestManagementPoliciesClient.json +++ b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestManagementPoliciesClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:48:46 GMT", + "Date": "Thu, 14 Apr 2022 02:41:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1191", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084847Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024114Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3?api-version=2021-09-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -48,7 +48,7 @@ "Authorization": "Sanitized", "Content-Length": "274", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "kind": "StorageV2", @@ -81,9 +81,9 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:48:50 GMT", + "Date": "Thu, 14 Apr 2022 02:41:17 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-09-01", "Pragma": "no-cache", "Retry-After": "17", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -92,18 +92,18 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1190", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084851Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024118Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-09-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -111,7 +111,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:08 GMT", + "Date": "Thu, 14 Apr 2022 02:41:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -120,9 +120,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-ratelimit-remaining-subscription-reads": "11995", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084908Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024136Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "sku": { @@ -140,8 +140,8 @@ }, "properties": { "keyCreationTime": { - "key1": "2022-03-14T08:48:49.9890137Z", - "key2": "2022-03-14T08:48:49.9890137Z" + "key1": "2022-04-14T02:41:16.7854550Z", + "key2": "2022-04-14T02:41:16.7854550Z" }, "privateEndpointConnections": [], "minimumTlsVersion": "TLS1_0", @@ -158,19 +158,19 @@ "file": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:48:50.0046744Z" + "lastEnabledTime": "2022-04-14T02:41:16.7854550Z" }, "blob": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:48:50.0046744Z" + "lastEnabledTime": "2022-04-14T02:41:16.7854550Z" } }, "keySource": "Microsoft.Storage" }, "accessTier": "Hot", "provisioningState": "Succeeded", - "creationTime": "2022-03-14T08:48:49.8640520Z", + "creationTime": "2022-04-14T02:41:16.6760946Z", "primaryEndpoints": { "dfs": "https://gotestaccount3.dfs.core.windows.net/", "web": "https://gotestaccount3.z13.web.core.windows.net/", @@ -187,7 +187,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default?api-version=2021-09-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -195,7 +195,7 @@ "Authorization": "Sanitized", "Content-Length": "423", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -243,7 +243,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:09 GMT", + "Date": "Thu, 14 Apr 2022 02:41:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -254,7 +254,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1189", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084909Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024136Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default", @@ -298,19 +298,19 @@ } ] }, - "lastModifiedTime": "2022-03-14T08:49:09.3178372Z" + "lastModifiedTime": "2022-04-14T02:41:36.6136262Z" } } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default?api-version=2021-09-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -318,7 +318,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:09 GMT", + "Date": "Thu, 14 Apr 2022 02:41:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -327,9 +327,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-ratelimit-remaining-subscription-reads": "11994", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084909Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024137Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default", @@ -373,17 +373,17 @@ } ] }, - "lastModifiedTime": "2022-03-14T08:49:09.3178372Z" + "lastModifiedTime": "2022-04-14T02:41:36.6136262Z" } } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default?api-version=2021-09-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -391,7 +391,7 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:49:10 GMT", + "Date": "Thu, 14 Apr 2022 02:41:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -400,7 +400,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14996", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084910Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024137Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -411,16 +411,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 08:49:11 GMT", + "Date": "Thu, 14 Apr 2022 02:41:39 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5MTktRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MTUtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -428,7 +428,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14995", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084912Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024139Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestOperationsClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestOperationsClient.json index 05e56c6b8d74..79d7013ab6e9 100644 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestOperationsClient.json +++ b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestOperationsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:49:14 GMT", + "Date": "Thu, 14 Apr 2022 02:41:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1188", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084914Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024141Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -39,3448 +39,6 @@ } } }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Storage/operations?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084914Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.Storage/locations/deleteVirtualNetworkOrSubnets/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Location", - "operation": "Delete virtual network or subnets notifications", - "description": "Notifies Microsoft.Storage that virtual network or subnet is being deleted" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/updateInternalProperties/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/accountMigrations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/accountMigrations/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/inventoryPolicies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/inventoryPolicies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/inventoryPolicies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/dataSharePolicies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/consumerDataSharePolicies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/dataSharePolicies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/dataSharePolicies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/consumerDataSharePolicies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/dataSharePolicies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/deletedAccounts/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/hnsonmigration/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Abort Account HnsOn Migration", - "operation": "Abort Account HnsOn Migration", - "description": "Customer is able to abort an ongoing Hns migration on the storage account" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/hnsonmigration/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Account HnsOn Migration", - "operation": "Account HnsOn Migration", - "description": "Customer is able to migrate to hns account type" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/localUsers/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Local User", - "operation": "Delete Local User", - "description": "Delete local user" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/localusers/regeneratePassword/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/localusers/listKeys/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Local User", - "operation": "List Local User Keys", - "description": "List local user keys" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/localusers/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Local User", - "operation": "List Local Users", - "description": "List local users" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/localusers/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Local User", - "operation": "Get Local User", - "description": "Get local user" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/localusers/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Local User", - "operation": "Put Local User", - "description": "Create or update local user" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/restorePoints/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/restorePoints/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/restorePoints/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/objectReplicationPolicies/restorePointMarkers/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/objectReplicationPolicies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Object Replication Policy", - "operation": "Delete Object Replication Policy", - "description": "Delete object replication policy" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/objectReplicationPolicies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Object Replication Policy", - "operation": "Get Object Replication Policy", - "description": "Get object replication policy" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/objectReplicationPolicies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Object Replication Policy", - "operation": "List Object Replication Policies", - "description": "List object replication policies" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/privateEndpointConnections/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Private Endpoint Connections", - "operation": "List Private Endpoint Connections", - "description": "List Private Endpoint Connections" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/objectReplicationPolicies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Object Replication Policy", - "operation": "Put Object Replication Policy", - "description": "Create or update object replication policy" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/encryptionScopes/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/encryptionScopes/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/encryptionScopes/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/encryptionScopes/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/managementPolicies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Management Policies", - "operation": "Delete storage account management policies", - "description": "Delete storage account management policies" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/managementPolicies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Management Policies", - "operation": "Get storage account management policies", - "description": "Get storage management account policies" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/managementPolicies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Management Policies", - "operation": "Put storage account management policies", - "description": "Put storage account management policies" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/privateEndpointConnectionProxies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Private Endpoint Connection Proxy", - "operation": "Get Private Endpoint Connection Proxy", - "description": "Get Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/migrate/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/restoreBlobRanges/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers", - "operation": "Restore blob ranges", - "description": "Restore blob ranges to the state of the specified time" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/privateEndpointConnectionProxies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Private Endpoint Connection Proxies", - "operation": "Delete Private Endpoint Connection Proxies", - "description": "Delete Private Endpoint Connection Proxies" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/PrivateEndpointConnectionsApproval/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Private Endpoint Connections", - "operation": "Approve Private Endpoint Connections", - "description": "Approve Private Endpoint Connections" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/shares/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File Share", - "operation": "Delete File Share", - "description": "Delete file share" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/shares/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File Share", - "operation": "Get File Share", - "description": "Get file share" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/shares/lease/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/shares/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File Share", - "operation": "List File Shares", - "description": "List file shares" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/shares/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File Share", - "operation": "Put File Share", - "description": "Create or update file share" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/shares/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File Share", - "operation": "Restore File Share", - "description": "Restore file share" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File Service", - "operation": "List File Services", - "description": "List file services" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File Service", - "operation": "Put File Service Properties", - "description": "Put file service properties" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Service", - "operation": "Get Queue service properties", - "description": "Get Queue service properties" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Services", - "operation": "Get queue service properties or statistics", - "description": "Returns queue service properties or statistics." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Services", - "operation": "Set queue service properties", - "description": "Returns the result of setting queue service properties" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Service Queues", - "operation": "Read a queue or list queues", - "description": "Returns a queue or a list of queues." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Service Queues", - "operation": "Write queue", - "description": "Returns the result of writing a queue" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Service Queues", - "operation": "Delete queue", - "description": "Returns the result of deleting a queue" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/messages/read", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Service Messages", - "operation": "Read message", - "description": "Returns a message" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/messages/write", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Service Messages", - "operation": "Write message", - "description": "Returns the result of writing a message" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/messages/delete", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Service Messages", - "operation": "Delete message", - "description": "Returns the result of deleting a message" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/messages/add/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Service Messages", - "operation": "Add message", - "description": "Returns the result of adding a message" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/queues/messages/process/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Queue Service Messages", - "operation": "Process message", - "description": "Returns the result of processing a message" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Table Service", - "operation": "Get Table service properties", - "description": "Get Table service properties" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Table Services", - "operation": "Get table service properties or statistics", - "description": "Get table service properties or statistics" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Table Services", - "operation": "Set table service properties", - "description": "Set table service properties" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Tables", - "operation": "Query tables", - "description": "Query tables" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Tables", - "operation": "Create tables", - "description": "Create tables" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Table", - "operation": "Delete tables", - "description": "Delete tables" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/entities/read", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Table Entities", - "operation": "Query table entities", - "description": "Query table entities" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/entities/write", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Table Entities", - "operation": "Insert, merge, update or replace table entities", - "description": "Insert, merge, or replace table entities" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/entities/delete", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "operation": "Delete table entities", - "description": "Delete table entities" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/entities/add/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Table Entities", - "operation": "Insert table entities", - "description": "Insert table entities" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/tables/entities/update/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Table Entities", - "operation": "Merge or update table entities", - "description": "Merge or update table entities" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/accountLocks/deleteLock/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/accountLocks/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/accountLocks/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/accountLocks/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/privateEndpointConnections/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Private Endpoint Connection", - "operation": "Delete Private Endpoint Connection", - "description": "Delete Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/privateEndpointConnections/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Private Endpoint Connection", - "operation": "Get Private Endpoint Connection", - "description": "Get Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/privateLinkResources/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage account groupids", - "operation": "Get StorageAccount groupids", - "description": "Get StorageAccount groupids" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/privateEndpointConnections/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Private Endpoint Connection", - "operation": "Put Private Endpoint Connection", - "description": "Put Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/privateEndpointConnectionProxies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account Private Endpoint Connection Proxies", - "operation": "Put Private Endpoint Connection Proxies", - "description": "Put Private Endpoint Connection Proxies" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Blob Service", - "operation": "List Blob Services", - "description": "List blob services" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers", - "operation": "Patch blob container", - "description": "Returns the result of patch blob container" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/generateUserDelegationKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Services", - "operation": "Generate a user delegation key", - "description": "Returns a user delegation key for the blob service" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Read Blob", - "description": "Returns a blob or a list of blobs" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - } - ], - "subOperations": [ - { - "Id": "Blobs.Read.WithTagConditions", - "AttributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags", - "Type": "dictionaryOfString", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": true, - "Display": { - "Name": "Blob index tags", - "Description": "Index tags on a blob resource." - } - } - ] - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Write Blob", - "description": "Returns the result of writing a blob" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - } - ], - "subOperations": [ - { - "Id": "Blobs.Write.WithTagHeaders", - "AttributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags", - "Type": "dictionaryOfString", - "AppliesTo": "RequestAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": true, - "Display": { - "Name": "Blob index tags", - "Description": "Index tags on a blob resource." - } - } - ] - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/delete", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Delete blob", - "description": "Returns the result of deleting a blob" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/deleteBlobVersion/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Delete blob versions", - "description": "Returns the result of deleting a blob version" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/permanentDelete/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/add/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Add blob content", - "description": "Returns the result of adding blob content" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - } - ], - "subOperations": [ - { - "Id": "Blobs.Write.WithTagHeaders", - "AttributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags", - "Type": "dictionaryOfString", - "AppliesTo": "RequestAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": true, - "Display": { - "Name": "Blob index tags", - "Description": "Index tags on a blob resource." - } - } - ] - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags/read", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Read blob tags", - "description": "Returns the result of reading blob tags" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags", - "Type": "dictionaryOfString", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": true, - "Display": { - "Name": "Blob index tags", - "Description": "Index tags on a blob resource." - } - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags/write", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Write blob tags", - "description": "Returns the result of writing blob tags" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags", - "Type": "dictionaryOfString", - "AppliesTo": "RequestAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": true, - "Display": { - "Name": "Blob index tags", - "Description": "Index tags on a blob resource." - } - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/filter/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "Filter blobs", - "description": "Returns the list of blobs under an account with matching tags filter" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/move/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Move blobs", - "description": "Moves the blob from one path to another" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/manageOwnership/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Manage blob ownership", - "description": "Changes ownership of the blob" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/modifyPermissions/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Modify blob permissions", - "description": "Modifies permissions of the blob" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/immutableStorage/runAsSuperUser/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/runAsSuperUser/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Blobs", - "operation": "Execute the command as super user", - "description": "Returns the result of the blob command" - }, - "attributesInfo": [ - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers:name", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Container name", - "Description": "Name of a storage container or file system." - } - }, - { - "Name": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path", - "Type": "string", - "AppliesTo": "ResourceAttributeOnly", - "IsDictionaryKeyNameCaseSensitive": false, - "Display": { - "Name": "Blob path", - "Description": "Path of a virtual directory, blob, folder or file resource." - } - } - ] - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers", - "operation": "Delete blob container", - "description": "Returns the result of deleting a container" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage File Service", - "operation": "Get file service properties", - "description": "Get file service properties" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/fileshares/files/read", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage File Service Files", - "operation": "Read Files", - "description": "Returns a file/folder or a list of files/folders" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/fileshares/files/write", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage File Service Files", - "operation": "Write Files", - "description": "Returns the result of writing a file or creating a folder" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/fileshares/files/delete", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage File Service Files", - "operation": "Delete Files", - "description": "Returns the result of deleting a file/folder" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/fileshares/files/modifypermissions/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage File Service Files", - "operation": "Modify File Acl", - "description": "Returns the result of modifying permission on a file/folder" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/fileshares/files/actassuperuser/action", - "isDataAction": true, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage File Service Files", - "operation": "Get File Admin Privileges", - "description": "Get File Admin Privileges" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies/extend/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers ImmutabilityPolicy", - "operation": "Extend blob container immutability policy", - "description": "Extend blob container immutability policy" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers ImmutabilityPolicy", - "operation": "Delete blob container immutability policy", - "description": "Delete blob container immutability policy" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers ImmutabilityPolicy", - "operation": "Put blob container immutability policy", - "description": "Put blob container immutability policy" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies/lock/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers ImmutabilityPolicy", - "operation": "Lock blob container immutability policy", - "description": "Lock blob container immutability policy" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers ImmutabilityPolicy", - "operation": "Get blob container immutability policy", - "description": "Get blob container immutability policy" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers", - "operation": "Get blob container", - "description": "Returns a container" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers", - "operation": "List of blob containers", - "description": "Returns list of containers" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/lease/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers", - "operation": "Lease blob container", - "description": "Returns the result of leasing blob container" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers", - "operation": "Put blob container", - "description": "Returns the result of put blob container" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/clearLegalHold/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers", - "operation": "Clear blob container legal hold", - "description": "Clear blob container legal hold" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/containers/setLegalHold/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Service Containers", - "operation": "Set blob container legal hold", - "description": "Set blob container legal hold" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Services", - "operation": "Put blob service properties", - "description": "Returns the result of put blob service properties" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/failover/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "Storage Account Failover", - "description": "Customer is able to control the failover in case of availability issues" - } - }, - { - "name": "Microsoft.Storage/locations/checknameavailability/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Name Availability", - "operation": "Check Name Availability", - "description": "Checks that account name is valid and is not in use." - } - }, - { - "name": "Microsoft.Storage/resilienciesProgressions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/listkeys/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "List Storage Account Keys", - "description": "Returns the access keys for the specified storage account." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/regeneratekey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "Regenerate Storage Account Keys", - "description": "Regenerates the access keys for the specified storage account." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/rotateKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/revokeUserDelegationKeys/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "Revoke Storage Account User Delegation Keys", - "description": "Revokes all the user delegation keys for the specified storage account." - } - }, - { - "name": "Microsoft.Storage/register/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Resource Provider", - "operation": "Registers the Storage Resource Provider", - "description": "Registers the subscription for the storage resource provider and enables the creation of storage accounts." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/services/diagnosticSettings/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "Create/Update Diagnostic Settings", - "description": "Create/Update storage account diagnostic settings." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/providers/Microsoft.Insights/metricDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "UsedCapacity", - "displayName": "Used capacity", - "displayDescription": "The amount of storage used by the storage account. For standard storage accounts, it\u0027s the sum of capacity used by blob, table, file, and queue. For premium storage accounts and Blob storage accounts, it is the same as BlobCapacity or FileCapacity.", - "unit": "Bytes", - "aggregationType": "Average", - "lockAggregationType": "Total", - "fillGapWithZero": false, - "category": "Capacity", - "resourceIdDimensionNameOverride": "AccountResourceId", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "Transactions", - "displayName": "Transactions", - "displayDescription": "The number of requests made to a storage service or the specified API operation. This number includes successful and failed requests, as well as requests which produced errors. Use ResponseType dimension for the number of different type of response.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [ - { - "name": "ResponseType", - "displayName": "Response type", - "toBeExportedForShoebox": true - }, - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "resourceIdDimensionNameOverride": "AccountResourceId", - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "Ingress", - "displayName": "Ingress", - "displayDescription": "The amount of ingress data, in bytes. This number includes ingress from an external client into Azure Storage as well as ingress within Azure.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "resourceIdDimensionNameOverride": "AccountResourceId", - "supportedAggregationTypes": [ - "Total", - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of egress data. This number includes egress to external client from Azure Storage as well as egress within Azure. As a result, this number does not reflect billable egress.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "resourceIdDimensionNameOverride": "AccountResourceId", - "supportedAggregationTypes": [ - "Total", - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "SuccessServerLatency", - "displayName": "Success Server Latency", - "displayDescription": "The average time used to process a successful request by Azure Storage. This value does not include the network latency specified in SuccessE2ELatency.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "resourceIdDimensionNameOverride": "AccountResourceId", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success E2E Latency", - "displayDescription": "The average end-to-end latency of successful requests made to a storage service or the specified API operation, in milliseconds. This value includes the required processing time within Azure Storage to read the request, send the response, and receive acknowledgment of the response.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "resourceIdDimensionNameOverride": "AccountResourceId", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Availability", - "displayName": "Availability", - "displayDescription": "The percentage of availability for the storage service or the specified API operation. Availability is calculated by taking the TotalBillableRequests value and dividing it by the number of applicable requests, including those that produced unexpected errors. All unexpected errors result in reduced availability for the storage service or the specified API operation.", - "unit": "Percent", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "resourceIdDimensionNameOverride": "AccountResourceId", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Storage/storageAccounts/providers/Microsoft.Insights/diagnosticSettings/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Storage/storageAccounts/providers/Microsoft.Insights/diagnosticSettings/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/providers/Microsoft.Insights/metricDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Blob service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "BlobCapacity", - "displayName": "Blob Capacity", - "displayDescription": "The amount of storage used by the storage account\u2019s Blob service in bytes.", - "unit": "Bytes", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [ - { - "name": "BlobType", - "displayName": "Blob type", - "toBeExportedForShoebox": true - }, - { - "name": "Tier", - "displayName": "Blob tier", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "BlobCount", - "displayName": "Blob Count", - "displayDescription": "The number of blob objects stored in the storage account.", - "unit": "Count", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [ - { - "name": "BlobType", - "displayName": "Blob type", - "toBeExportedForShoebox": true - }, - { - "name": "Tier", - "displayName": "Blob tier", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "BlobProvisionedSize", - "displayName": "Blob Provisioned Size", - "displayDescription": "The amount of storage provisioned in the storage account\u2019s Blob service in bytes.", - "unit": "Bytes", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [ - { - "name": "BlobType", - "displayName": "Blob type", - "toBeExportedForShoebox": true - }, - { - "name": "Tier", - "displayName": "Blob tier", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ], - "metricFilterPattern": "Premium" - }, - { - "name": "ContainerCount", - "displayName": "Blob Container Count", - "displayDescription": "The number of containers in the storage account.", - "unit": "Count", - "aggregationType": "Average", - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "IndexCapacity", - "displayName": "Index Capacity", - "displayDescription": "The amount of storage used by Azure Data Lake Storage Gen2 hierarchical index.", - "unit": "Bytes", - "aggregationType": "Average", - "lockAggregationType": "Total", - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "Transactions", - "displayName": "Transactions", - "displayDescription": "The number of requests made to a storage service or the specified API operation. This number includes successful and failed requests, as well as requests which produced errors. Use ResponseType dimension for the number of different type of response.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [ - { - "name": "ResponseType", - "displayName": "Response type", - "toBeExportedForShoebox": true - }, - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "Ingress", - "displayName": "Ingress", - "displayDescription": "The amount of ingress data, in bytes. This number includes ingress from an external client into Azure Storage as well as ingress within Azure.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total", - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of egress data. This number includes egress to external client from Azure Storage as well as egress within Azure. As a result, this number does not reflect billable egress.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total", - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "SuccessServerLatency", - "displayName": "Success Server Latency", - "displayDescription": "The average time used to process a successful request by Azure Storage. This value does not include the network latency specified in SuccessE2ELatency.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success E2E Latency", - "displayDescription": "The average end-to-end latency of successful requests made to a storage service or the specified API operation, in milliseconds. This value includes the required processing time within Azure Storage to read the request, send the response, and receive acknowledgment of the response.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Availability", - "displayName": "Availability", - "displayDescription": "The percentage of availability for the storage service or the specified API operation. Availability is calculated by taking the TotalBillableRequests value and dividing it by the number of applicable requests, including those that produced unexpected errors. All unexpected errors result in reduced availability for the storage service or the specified API operation.", - "unit": "Percent", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/providers/Microsoft.Insights/diagnosticSettings/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Blob service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/providers/Microsoft.Insights/diagnosticSettings/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Blob service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/providers/Microsoft.Insights/metricDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Table service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "TableCapacity", - "displayName": "Table Capacity", - "displayDescription": "The amount of Table storage used by the storage account.", - "unit": "Bytes", - "aggregationType": "Average", - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "TableCount", - "displayName": "Table Count", - "displayDescription": "The number of tables in the storage account.", - "unit": "Count", - "aggregationType": "Average", - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "TableEntityCount", - "displayName": "Table Entity Count", - "displayDescription": "The number of table entities in the storage account.", - "unit": "Count", - "aggregationType": "Average", - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "Transactions", - "displayName": "Transactions", - "displayDescription": "The number of requests made to a storage service or the specified API operation. This number includes successful and failed requests, as well as requests which produced errors. Use ResponseType dimension for the number of different type of response.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [ - { - "name": "ResponseType", - "displayName": "Response type", - "toBeExportedForShoebox": true - }, - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "Ingress", - "displayName": "Ingress", - "displayDescription": "The amount of ingress data, in bytes. This number includes ingress from an external client into Azure Storage as well as ingress within Azure.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total", - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of egress data. This number includes egress to external client from Azure Storage as well as egress within Azure. As a result, this number does not reflect billable egress.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total", - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "SuccessServerLatency", - "displayName": "Success Server Latency", - "displayDescription": "The average time used to process a successful request by Azure Storage. This value does not include the network latency specified in SuccessE2ELatency.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success E2E Latency", - "displayDescription": "The average end-to-end latency of successful requests made to a storage service or the specified API operation, in milliseconds. This value includes the required processing time within Azure Storage to read the request, send the response, and receive acknowledgment of the response.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Availability", - "displayName": "Availability", - "displayDescription": "The percentage of availability for the storage service or the specified API operation. Availability is calculated by taking the TotalBillableRequests value and dividing it by the number of applicable requests, including those that produced unexpected errors. All unexpected errors result in reduced availability for the storage service or the specified API operation.", - "unit": "Percent", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/providers/Microsoft.Insights/diagnosticSettings/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Table service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/providers/Microsoft.Insights/diagnosticSettings/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Table service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/providers/Microsoft.Insights/metricDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "FileCapacity", - "displayName": "File Capacity", - "displayDescription": "The amount of File storage used by the storage account.", - "unit": "Bytes", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [ - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "FileCount", - "displayName": "File Count", - "displayDescription": "The number of files in the storage account.", - "unit": "Count", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [ - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "FileShareCount", - "displayName": "File Share Count", - "displayDescription": "The number of file shares in the storage account.", - "unit": "Count", - "aggregationType": "Average", - "lockAggregationType": "Total", - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "FileShareSnapshotCount", - "displayName": "File Share Snapshot Count", - "displayDescription": "The number of snapshots present on the share in storage account\u2019s Files Service.", - "unit": "Count", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [ - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "FileShareSnapshotSize", - "displayName": "File Share Snapshot Size", - "displayDescription": "The amount of storage used by the snapshots in storage account\u2019s File service in bytes.", - "unit": "Bytes", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [ - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "FileShareCapacityQuota", - "internalMetricName": "FileShareQuota", - "displayName": "File Share Capacity Quota", - "displayDescription": "The upper limit on the amount of storage that can be used by Azure Files Service in bytes.", - "unit": "Bytes", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [ - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "FileShareProvisionedIOPS", - "displayName": "File Share Provisioned IOPS", - "displayDescription": "The baseline number of provisioned IOPS for the premium file share in the premium files storage account. This number is calculated based on the provisioned size (quota) of the share capacity.", - "unit": "CountPerSecond", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [ - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ], - "metricFilterPattern": "Premium" - }, - { - "name": "Transactions", - "displayName": "Transactions", - "displayDescription": "The number of requests made to a storage service or the specified API operation. This number includes successful and failed requests, as well as requests which produced errors. Use ResponseType dimension for the number of different type of response.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [ - { - "name": "ResponseType", - "displayName": "Response type", - "toBeExportedForShoebox": true - }, - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - }, - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true, - "internalName": "Container" - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "Ingress", - "displayName": "Ingress", - "displayDescription": "The amount of ingress data, in bytes. This number includes ingress from an external client into Azure Storage as well as ingress within Azure.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - }, - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true, - "internalName": "Container" - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total", - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of egress data. This number includes egress to external client from Azure Storage as well as egress within Azure. As a result, this number does not reflect billable egress.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - }, - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true, - "internalName": "Container" - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total", - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "SuccessServerLatency", - "displayName": "Success Server Latency", - "displayDescription": "The average time used to process a successful request by Azure Storage. This value does not include the network latency specified in SuccessE2ELatency.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - }, - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true, - "internalName": "Container" - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success E2E Latency", - "displayDescription": "The average end-to-end latency of successful requests made to a storage service or the specified API operation, in milliseconds. This value includes the required processing time within Azure Storage to read the request, send the response, and receive acknowledgment of the response.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - }, - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true, - "internalName": "Container" - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Availability", - "displayName": "Availability", - "displayDescription": "The percentage of availability for the storage service or the specified API operation. Availability is calculated by taking the TotalBillableRequests value and dividing it by the number of applicable requests, including those that produced unexpected errors. All unexpected errors result in reduced availability for the storage service or the specified API operation.", - "unit": "Percent", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - }, - { - "name": "FileShare", - "displayName": "File Share", - "toBeExportedForShoebox": true, - "internalName": "Container" - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/providers/Microsoft.Insights/diagnosticSettings/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/providers/Microsoft.Insights/diagnosticSettings/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/providers/Microsoft.Insights/metricDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Queue service", - "operation": "Get list of Microsoft Storage Metrics definitions", - "description": "Get list of Microsoft Storage Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "QueueCapacity", - "displayName": "Queue Capacity", - "displayDescription": "The amount of Queue storage used by the storage account.", - "unit": "Bytes", - "aggregationType": "Average", - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "QueueCount", - "displayName": "Queue Count", - "displayDescription": "The number of queues in the storage account.", - "unit": "Count", - "aggregationType": "Average", - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "QueueMessageCount", - "displayName": "Queue Message Count", - "displayDescription": "The number of unexpired queue messages in the storage account.", - "unit": "Count", - "aggregationType": "Average", - "fillGapWithZero": false, - "category": "Capacity", - "supportedTimeGrainTypes": [ - "PT1H" - ], - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "Transactions", - "displayName": "Transactions", - "displayDescription": "The number of requests made to a storage service or the specified API operation. This number includes successful and failed requests, as well as requests which produced errors. Use ResponseType dimension for the number of different type of response.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [ - { - "name": "ResponseType", - "displayName": "Response type", - "toBeExportedForShoebox": true - }, - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "Ingress", - "displayName": "Ingress", - "displayDescription": "The amount of ingress data, in bytes. This number includes ingress from an external client into Azure Storage as well as ingress within Azure.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total", - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of egress data. This number includes egress to external client from Azure Storage as well as egress within Azure. As a result, this number does not reflect billable egress.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true, - "category": "Transaction", - "supportedAggregationTypes": [ - "Total", - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "SuccessServerLatency", - "displayName": "Success Server Latency", - "displayDescription": "The average time used to process a successful request by Azure Storage. This value does not include the network latency specified in SuccessE2ELatency.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success E2E Latency", - "displayDescription": "The average end-to-end latency of successful requests made to a storage service or the specified API operation, in milliseconds. This value includes the required processing time within Azure Storage to read the request, send the response, and receive acknowledgment of the response.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Availability", - "displayName": "Availability", - "displayDescription": "The percentage of availability for the storage service or the specified API operation. Availability is calculated by taking the TotalBillableRequests value and dividing it by the number of applicable requests, including those that produced unexpected errors. All unexpected errors result in reduced availability for the storage service or the specified API operation.", - "unit": "Percent", - "aggregationType": "Average", - "dimensions": [ - { - "name": "GeoType", - "displayName": "Geo type", - "toBeExportedForShoebox": true - }, - { - "name": "ApiName", - "displayName": "API name", - "toBeExportedForShoebox": true - }, - { - "name": "Authentication", - "displayName": "Authentication", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false, - "category": "Transaction", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/providers/Microsoft.Insights/diagnosticSettings/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Queue service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/providers/Microsoft.Insights/diagnosticSettings/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Queue service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Storage/storageAccounts/tableServices/providers/Microsoft.Insights/logDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Table Service", - "operation": "Read log definition", - "description": "Gets the log definition for Table" - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "StorageRead", - "displayName": "StorageRead", - "blobDuration": "PT1H" - }, - { - "name": "StorageWrite", - "displayName": "StorageWrite", - "blobDuration": "PT1H" - }, - { - "name": "StorageDelete", - "displayName": "StorageDelete", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/providers/Microsoft.Insights/logDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Blob Service", - "operation": "Read log definition", - "description": "Gets the log definition for Blob" - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "StorageRead", - "displayName": "StorageRead", - "blobDuration": "PT1H" - }, - { - "name": "StorageWrite", - "displayName": "StorageWrite", - "blobDuration": "PT1H" - }, - { - "name": "StorageDelete", - "displayName": "StorageDelete", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.Storage/storageAccounts/fileServices/providers/Microsoft.Insights/logDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "File Service", - "operation": "Read log definition", - "description": "Gets the log definition for File" - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "StorageRead", - "displayName": "StorageRead", - "blobDuration": "PT1H" - }, - { - "name": "StorageWrite", - "displayName": "StorageWrite", - "blobDuration": "PT1H" - }, - { - "name": "StorageDelete", - "displayName": "StorageDelete", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.Storage/storageAccounts/queueServices/providers/Microsoft.Insights/logDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Queue Service", - "operation": "Read log definition", - "description": "Gets the log definition for Queue" - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "StorageRead", - "displayName": "StorageRead", - "blobDuration": "PT1H" - }, - { - "name": "StorageWrite", - "displayName": "StorageWrite", - "blobDuration": "PT1H" - }, - { - "name": "StorageDelete", - "displayName": "StorageDelete", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.Storage/skus/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Sku", - "operation": "List Skus", - "description": "Lists the Skus supported by Microsoft.Storage." - } - }, - { - "name": "Microsoft.Storage/operations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Operations", - "operation": "Poll Asynchronous Operation", - "description": "Polls the status of an asynchronous operation." - } - }, - { - "name": "Microsoft.Storage/checknameavailability/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Name Availability", - "operation": "Check Name Availability", - "description": "Checks that account name is valid and is not in use." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "Delete Storage Account", - "description": "Deletes an existing storage account." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "List/Get Storage Account(s)", - "description": "Returns the list of storage accounts or gets the properties for the specified storage account." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/listAccountSas/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Account SAS Token", - "operation": "Returns Storage Account SAS Token", - "description": "Returns the Account SAS token for the specified storage account." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/listServiceSas/action", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Service SAS Token", - "operation": "Returns Storage Service SAS Token", - "description": "Returns the Service SAS token for the specified storage account." - } - }, - { - "name": "Microsoft.Storage/storageAccounts/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Accounts", - "operation": "Create/Update Storage Account", - "description": "Creates a storage account with the specified parameters or update the properties or tags or adds custom domain for the specified storage account." - } - }, - { - "name": "Microsoft.Storage/locations/usages/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Usage Metrics", - "operation": "Get Subscription Usages", - "description": "Returns the limit and the current usage count for resources in the specified subscription" - } - }, - { - "name": "Microsoft.Storage/usages/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Usage Metrics", - "operation": "Get Subscription Usages", - "description": "Returns the limit and the current usage count for resources in the specified subscription" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/inventoryPolicies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage" - } - }, - { - "name": "Microsoft.Storage/storageAccounts/blobServices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft Storage", - "resource": "Storage Blob Services", - "operation": "Get blob service properties or statistics", - "description": "Returns blob service properties or statistics" - } - } - ] - } - }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", "RequestMethod": "DELETE", @@ -3488,16 +46,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 08:49:16 GMT", + "Date": "Thu, 14 Apr 2022 02:41:42 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0NjgtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzMTQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -3505,7 +63,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14994", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084916Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024142Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestSKUsClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestSKUsClient.json index f371cc041d1f..f345b38aaee7 100644 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestSKUsClient.json +++ b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestSKUsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:49:18 GMT", + "Date": "Thu, 14 Apr 2022 02:41:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1187", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084919Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024144Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -39,81975 +39,6 @@ } } }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/skus?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1036316", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:49:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084919Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfilestorage", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfilestorage", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfilestorage", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfilestorage", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "qatarcentral" - ], - "locationInfo": [ - { - "location": "qatarcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfilestorage", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfilestorage", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "qatarcentral" - ], - "locationInfo": [ - { - "location": "qatarcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "Storage", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "qatarcentral" - ], - "locationInfo": [ - { - "location": "qatarcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_LRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "BlockBlobStorage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "FileStorage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Premium_ZRS", - "tier": "Premium", - "kind": "StorageV2", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_GZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "qatarcentral" - ], - "locationInfo": [ - { - "location": "qatarcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "qatarcentral" - ], - "locationInfo": [ - { - "location": "qatarcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "qatarcentral" - ], - "locationInfo": [ - { - "location": "qatarcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_LRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "BlobStorage", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsarchivepreview", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsRoutingPreferences", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_RAGZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportscustomercontrolledfailover", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [ - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2(stage)" - ], - "locationInfo": [ - { - "location": "eastus2(stage)", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "eastusstg" - ], - "locationInfo": [ - { - "location": "eastusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "francesouth" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "jioindiacentral" - ], - "locationInfo": [ - { - "location": "jioindiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "jioindiawest" - ], - "locationInfo": [ - { - "location": "jioindiawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [ - "3", - "1" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southafricawest" - ], - "locationInfo": [ - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southcentralusstg" - ], - "locationInfo": [ - { - "location": "southcentralusstg", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "swedensouth" - ], - "locationInfo": [ - { - "location": "swedensouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "Storage", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [ - "3", - "1", - "2" - ], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "eastus2euap" - ], - "locationInfo": [ - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsShare", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsObjectReplicationMetrics", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "swedencentral" - ], - "locationInfo": [ - { - "location": "swedencentral", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportshoeboxcapacitymetrics", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - }, - { - "resourceType": "storageAccounts", - "name": "Standard_ZRS", - "tier": "Standard", - "kind": "StorageV2", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [], - "zoneDetails": [] - } - ], - "capabilities": [ - { - "name": "supportsAccountHnsOnMigration", - "value": "true" - }, - { - "name": "supportsaccountvlw", - "value": "true" - }, - { - "name": "supportsadlsgen2snapshot", - "value": "true" - }, - { - "name": "supportsadlsgen2staticwebsite", - "value": "true" - }, - { - "name": "supportsadlsgen2wormpolicy", - "value": "true" - }, - { - "name": "supportsattributebasedaccesscontrol", - "value": "true" - }, - { - "name": "supportsAutomaticSnapshot", - "value": "true" - }, - { - "name": "supportsazureblobfs", - "value": "true" - }, - { - "name": "supportsBlobContainerRetention", - "value": "true" - }, - { - "name": "supportsBlobInventoryPolicy", - "value": "true" - }, - { - "name": "supportsblobtagfiltering", - "value": "true" - }, - { - "name": "supportschangefeed", - "value": "true" - }, - { - "name": "supportsChangeFeedRetention", - "value": "true" - }, - { - "name": "supportschangenotification", - "value": "true" - }, - { - "name": "supportscompliancepolicy", - "value": "true" - }, - { - "name": "supportscontainervlw", - "value": "true" - }, - { - "name": "supportseventgridforadls", - "value": "true" - }, - { - "name": "supportsfileactivedirectory", - "value": "true" - }, - { - "name": "supportsfileencryption", - "value": "true" - }, - { - "name": "supportshierarchicalnamespace", - "value": "true" - }, - { - "name": "supportslargefileshares", - "value": "true" - }, - { - "name": "supportsLATFeature", - "value": "true" - }, - { - "name": "supportsLcmVersionAndSnapshotActions", - "value": "true" - }, - { - "name": "supportsmanagementpolicy", - "value": "true" - }, - { - "name": "supportsMultiProtocolAccess", - "value": "true" - }, - { - "name": "supportsnetworkacls", - "value": "true" - }, - { - "name": "supportsNfsv3", - "value": "true" - }, - { - "name": "supportsPrivateEndpointConnections", - "value": "true" - }, - { - "name": "supportsSftp", - "value": "true" - }, - { - "name": "supportsstaticwebsite", - "value": "true" - }, - { - "name": "supportsthreatdetection", - "value": "true" - } - ], - "restrictions": [] - } - ] - } - }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", "RequestMethod": "DELETE", @@ -82015,16 +46,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 08:49:20 GMT", + "Date": "Thu, 14 Apr 2022 02:41:46 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5MTAtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzNjQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -82032,7 +63,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14993", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084921Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024146Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestStorageAccountsClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestStorageAccountsClient.json index 777b9b6e4e4f..2e6116351c2a 100644 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestStorageAccountsClient.json +++ b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestStorageAccountsClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:49:26 GMT", + "Date": "Thu, 14 Apr 2022 02:41:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1186", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084927Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024148Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2021-09-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -48,7 +48,7 @@ "Authorization": "Sanitized", "Content-Length": "274", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "kind": "StorageV2", @@ -81,9 +81,9 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:49:30 GMT", + "Date": "Thu, 14 Apr 2022 02:41:52 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-09-01", "Pragma": "no-cache", "Retry-After": "17", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -92,18 +92,18 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1185", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084930Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024153Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2021-09-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -111,7 +111,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:48 GMT", + "Date": "Thu, 14 Apr 2022 02:42:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -120,9 +120,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-ratelimit-remaining-subscription-reads": "11993", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084948Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024211Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "sku": { @@ -140,8 +140,8 @@ }, "properties": { "keyCreationTime": { - "key1": "2022-03-14T08:49:29.3648635Z", - "key2": "2022-03-14T08:49:29.3648635Z" + "key1": "2022-04-14T02:41:51.1917355Z", + "key2": "2022-04-14T02:41:51.1917355Z" }, "privateEndpointConnections": [], "minimumTlsVersion": "TLS1_0", @@ -158,19 +158,19 @@ "file": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:49:29.3804748Z" + "lastEnabledTime": "2022-04-14T02:41:51.2073569Z" }, "blob": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:49:29.3804748Z" + "lastEnabledTime": "2022-04-14T02:41:51.2073569Z" } }, "keySource": "Microsoft.Storage" }, "accessTier": "Hot", "provisioningState": "Succeeded", - "creationTime": "2022-03-14T08:49:29.2398648Z", + "creationTime": "2022-04-14T02:41:51.0823560Z", "primaryEndpoints": { "dfs": "https://gotestaccount.dfs.core.windows.net/", "web": "https://gotestaccount.z13.web.core.windows.net/", @@ -187,7 +187,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/checkNameAvailability?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/checkNameAvailability?api-version=2021-09-01", "RequestMethod": "POST", "RequestHeaders": { ":method": "POST", @@ -196,7 +196,7 @@ "Authorization": "Sanitized", "Content-Length": "67", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "name": "gotestaccount", @@ -207,7 +207,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:49 GMT", + "Date": "Thu, 14 Apr 2022 02:42:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -216,9 +216,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-ratelimit-remaining-subscription-reads": "11992", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084949Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024212Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "nameAvailable": false, @@ -227,7 +227,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2021-09-01", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -235,7 +235,7 @@ "Authorization": "Sanitized", "Content-Length": "204", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "properties": { @@ -262,7 +262,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:50 GMT", + "Date": "Thu, 14 Apr 2022 02:42:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -273,7 +273,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1184", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084951Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024214Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "sku": { @@ -291,8 +291,8 @@ }, "properties": { "keyCreationTime": { - "key1": "2022-03-14T08:49:29.3648635Z", - "key2": "2022-03-14T08:49:29.3648635Z" + "key1": "2022-04-14T02:41:51.1917355Z", + "key2": "2022-04-14T02:41:51.1917355Z" }, "privateEndpointConnections": [], "minimumTlsVersion": "TLS1_0", @@ -309,19 +309,19 @@ "file": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:49:29.3804748Z" + "lastEnabledTime": "2022-04-14T02:41:51.2073569Z" }, "blob": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:49:29.3804748Z" + "lastEnabledTime": "2022-04-14T02:41:51.2073569Z" } }, "keySource": "Microsoft.Storage" }, "accessTier": "Hot", "provisioningState": "Succeeded", - "creationTime": "2022-03-14T08:49:29.2398648Z", + "creationTime": "2022-04-14T02:41:51.0823560Z", "primaryEndpoints": { "dfs": "https://gotestaccount.dfs.core.windows.net/", "web": "https://gotestaccount.z13.web.core.windows.net/", @@ -338,14 +338,14 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2021-09-01", "RequestMethod": "GET", "RequestHeaders": { ":method": "GET", "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -353,7 +353,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:51 GMT", + "Date": "Thu, 14 Apr 2022 02:42:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -362,9 +362,9 @@ "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-ratelimit-remaining-subscription-reads": "11991", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084951Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024214Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "sku": { @@ -382,8 +382,8 @@ }, "properties": { "keyCreationTime": { - "key1": "2022-03-14T08:49:29.3648635Z", - "key2": "2022-03-14T08:49:29.3648635Z" + "key1": "2022-04-14T02:41:51.1917355Z", + "key2": "2022-04-14T02:41:51.1917355Z" }, "privateEndpointConnections": [], "minimumTlsVersion": "TLS1_0", @@ -400,19 +400,19 @@ "file": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:49:29.3804748Z" + "lastEnabledTime": "2022-04-14T02:41:51.2073569Z" }, "blob": { "keyType": "Account", "enabled": true, - "lastEnabledTime": "2022-03-14T08:49:29.3804748Z" + "lastEnabledTime": "2022-04-14T02:41:51.2073569Z" } }, "keySource": "Microsoft.Storage" }, "accessTier": "Hot", "provisioningState": "Succeeded", - "creationTime": "2022-03-14T08:49:29.2398648Z", + "creationTime": "2022-04-14T02:41:51.0823560Z", "primaryEndpoints": { "dfs": "https://gotestaccount.dfs.core.windows.net/", "web": "https://gotestaccount.z13.web.core.windows.net/", @@ -429,605 +429,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/storageAccounts?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "11608", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:49:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-original-request-ids": [ - "00000000-0000-0000-0000-000000000000", - "ab26b6dd-0e8b-4fc2-8cdd-5df7d8f5f306", - "f2c4ec15-b188-4310-b633-32e747f65607" - ], - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084952Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "Standard_RAGRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/chenjietest/providers/Microsoft.Storage/storageAccounts/chenjietest", - "name": "chenjietest", - "type": "Microsoft.Storage/storageAccounts", - "location": "eastus", - "tags": {}, - "properties": { - "defaultToOAuthAuthentication": false, - "keyCreationTime": { - "key1": "2022-03-11T05:52:53.4278968Z", - "key2": "2022-03-11T05:52:53.4278968Z" - }, - "allowCrossTenantReplication": true, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_2", - "allowBlobPublicAccess": true, - "allowSharedKeyAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "requireInfrastructureEncryption": false, - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-11T05:52:53.4435336Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-11T05:52:53.4435336Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-03-11T05:52:53.3185358Z", - "primaryEndpoints": { - "dfs": "https://chenjietest.dfs.core.windows.net/", - "web": "https://chenjietest.z13.web.core.windows.net/", - "blob": "https://chenjietest.blob.core.windows.net/", - "queue": "https://chenjietest.queue.core.windows.net/", - "table": "https://chenjietest.table.core.windows.net/", - "file": "https://chenjietest.file.core.windows.net/" - }, - "primaryLocation": "eastus", - "statusOfPrimary": "available", - "secondaryLocation": "westus", - "statusOfSecondary": "available", - "secondaryEndpoints": { - "dfs": "https://chenjietest-secondary.dfs.core.windows.net/", - "web": "https://chenjietest-secondary.z13.web.core.windows.net/", - "blob": "https://chenjietest-secondary.blob.core.windows.net/", - "queue": "https://chenjietest-secondary.queue.core.windows.net/", - "table": "https://chenjietest-secondary.table.core.windows.net/" - } - } - }, - { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount", - "name": "gotestaccount", - "type": "Microsoft.Storage/storageAccounts", - "location": "eastus", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-03-14T08:49:29.3648635Z", - "key2": "2022-03-14T08:49:29.3648635Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T08:49:29.3804748Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T08:49:29.3804748Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-03-14T08:49:29.2398648Z", - "primaryEndpoints": { - "dfs": "https://gotestaccount.dfs.core.windows.net/", - "web": "https://gotestaccount.z13.web.core.windows.net/", - "blob": "https://gotestaccount.blob.core.windows.net/", - "queue": "https://gotestaccount.queue.core.windows.net/", - "table": "https://gotestaccount.table.core.windows.net/", - "file": "https://gotestaccount.file.core.windows.net/" - }, - "primaryLocation": "eastus", - "statusOfPrimary": "available", - "secondaryLocation": "westus", - "statusOfSecondary": "available" - } - }, - { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3", - "name": "gotestaccount3", - "type": "Microsoft.Storage/storageAccounts", - "location": "eastus", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-03-14T08:48:49.9890137Z", - "key2": "2022-03-14T08:48:49.9890137Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T08:48:50.0046744Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T08:48:50.0046744Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-03-14T08:48:49.8640520Z", - "primaryEndpoints": { - "dfs": "https://gotestaccount3.dfs.core.windows.net/", - "web": "https://gotestaccount3.z13.web.core.windows.net/", - "blob": "https://gotestaccount3.blob.core.windows.net/", - "queue": "https://gotestaccount3.queue.core.windows.net/", - "table": "https://gotestaccount3.table.core.windows.net/", - "file": "https://gotestaccount3.file.core.windows.net/" - }, - "primaryLocation": "eastus", - "statusOfPrimary": "available", - "secondaryLocation": "westus", - "statusOfSecondary": "available" - } - }, - { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/create1250872478/providers/Microsoft.Storage/storageAccounts/account1250872478", - "name": "account1250872478", - "type": "Microsoft.Storage/storageAccounts", - "location": "westus", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-02-28T06:36:18.2552413Z", - "key2": "2022-02-28T06:36:18.2552413Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-02-28T06:36:18.2552413Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-02-28T06:36:18.2552413Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-02-28T06:36:18.1614555Z", - "primaryEndpoints": { - "dfs": "https://account1250872478.dfs.core.windows.net/", - "web": "https://account1250872478.z22.web.core.windows.net/", - "blob": "https://account1250872478.blob.core.windows.net/", - "queue": "https://account1250872478.queue.core.windows.net/", - "table": "https://account1250872478.table.core.windows.net/", - "file": "https://account1250872478.file.core.windows.net/" - }, - "primaryLocation": "westus", - "statusOfPrimary": "available", - "secondaryLocation": "eastus", - "statusOfSecondary": "available" - } - }, - { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Storage/storageAccounts/jsencryptiontest", - "name": "jsencryptiontest", - "type": "Microsoft.Storage/storageAccounts", - "location": "westeurope", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-03-14T04:27:59.8581085Z", - "key2": "2022-03-14T04:27:59.8581085Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T04:27:59.8581085Z" - }, - "table": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T04:27:59.8581085Z" - }, - "queue": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T04:27:59.8581085Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T04:27:59.8581085Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-03-14T04:27:59.7174869Z", - "primaryEndpoints": { - "dfs": "https://jsencryptiontest.dfs.core.windows.net/", - "web": "https://jsencryptiontest.z6.web.core.windows.net/", - "blob": "https://jsencryptiontest.blob.core.windows.net/", - "queue": "https://jsencryptiontest.queue.core.windows.net/", - "table": "https://jsencryptiontest.table.core.windows.net/", - "file": "https://jsencryptiontest.file.core.windows.net/" - }, - "primaryLocation": "westeurope", - "statusOfPrimary": "available", - "secondaryLocation": "northeurope", - "statusOfSecondary": "available" - } - }, - { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Storage/storageAccounts/jsencryptiontest111", - "name": "jsencryptiontest111", - "type": "Microsoft.Storage/storageAccounts", - "location": "westeurope", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-03-14T04:25:40.2801992Z", - "key2": "2022-03-14T04:25:40.2801992Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T04:25:40.2801992Z" - }, - "table": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T04:25:40.2801992Z" - }, - "queue": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T04:25:40.2801992Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T04:25:40.2801992Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-03-14T04:25:40.1547982Z", - "primaryEndpoints": { - "dfs": "https://jsencryptiontest111.dfs.core.windows.net/", - "web": "https://jsencryptiontest111.z6.web.core.windows.net/", - "blob": "https://jsencryptiontest111.blob.core.windows.net/", - "queue": "https://jsencryptiontest111.queue.core.windows.net/", - "table": "https://jsencryptiontest111.table.core.windows.net/", - "file": "https://jsencryptiontest111.file.core.windows.net/" - }, - "primaryLocation": "westeurope", - "statusOfPrimary": "available", - "secondaryLocation": "northeurope", - "statusOfSecondary": "available" - } - }, - { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qiaozhatest/providers/Microsoft.Storage/storageAccounts/jsencryptiontest22", - "name": "jsencryptiontest22", - "type": "Microsoft.Storage/storageAccounts", - "location": "westeurope", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-03-14T06:16:12.1577052Z", - "key2": "2022-03-14T06:16:12.1577052Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T06:16:12.1577052Z" - }, - "table": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T06:16:12.1577052Z" - }, - "queue": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T06:16:12.1577052Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T06:16:12.1577052Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-03-14T06:16:12.0327342Z", - "primaryEndpoints": { - "dfs": "https://jsencryptiontest22.dfs.core.windows.net/", - "web": "https://jsencryptiontest22.z6.web.core.windows.net/", - "blob": "https://jsencryptiontest22.blob.core.windows.net/", - "queue": "https://jsencryptiontest22.queue.core.windows.net/", - "table": "https://jsencryptiontest22.table.core.windows.net/", - "file": "https://jsencryptiontest22.file.core.windows.net/" - }, - "primaryLocation": "westeurope", - "statusOfPrimary": "available", - "secondaryLocation": "northeurope", - "statusOfSecondary": "available" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084952Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount", - "name": "gotestaccount", - "type": "Microsoft.Storage/storageAccounts", - "location": "eastus", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-03-14T08:49:29.3648635Z", - "key2": "2022-03-14T08:49:29.3648635Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T08:49:29.3804748Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-03-14T08:49:29.3804748Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-03-14T08:49:29.2398648Z", - "primaryEndpoints": { - "dfs": "https://gotestaccount.dfs.core.windows.net/", - "web": "https://gotestaccount.z13.web.core.windows.net/", - "blob": "https://gotestaccount.blob.core.windows.net/", - "queue": "https://gotestaccount.queue.core.windows.net/", - "table": "https://gotestaccount.table.core.windows.net/", - "file": "https://gotestaccount.file.core.windows.net/" - }, - "primaryLocation": "eastus", - "statusOfPrimary": "available", - "secondaryLocation": "westus", - "statusOfSecondary": "available" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount/listKeys?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount/listKeys?api-version=2021-09-01", "RequestMethod": "POST", "RequestHeaders": { ":method": "POST", @@ -1035,7 +437,7 @@ "Accept-Encoding": "gzip", "Authorization": "Sanitized", "Content-Length": "0", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -1043,7 +445,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:52 GMT", + "Date": "Thu, 14 Apr 2022 02:42:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -1054,34 +456,34 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084953Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024215Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "keys": [ { - "creationTime": "2022-03-14T08:49:29.3648635Z", + "creationTime": "2022-04-14T02:41:51.1917355Z", "keyName": "key1", - "value": "uRjhe/0ldeQCfYXSxwCF58dgjV3HlkznDgwh0dFJJ3VoVfYiiF8owSfaWH8pdcnklBZwcKuhYIwA\u002BASt/ntxnw==", + "value": "284adhHyVYcUh3oh4sWAmQXh3wFlF6zjJPgbuSR2q3F9BuZs5GAaeG7O9Xia2KTJXs883WOScIhq\u002BASt4ESkrA==", "permissions": "FULL" }, { - "creationTime": "2022-03-14T08:49:29.3648635Z", + "creationTime": "2022-04-14T02:41:51.1917355Z", "keyName": "key2", - "value": "hlQr1p/R1NiVLmoVKzMtpbXLeWWp3RT0sf0Jz3hvgTVg7HGTkMHJ5ATfk0adX1XZLOfMDSskISrR\u002BAStFcf5wA==", + "value": "RQRh9l/T4\u002BBgcq1trnZiCR8sYxrjCSv896a4iFIfiHWsxW8LXdOg9LCZogzcPlTHCFZOHvygDdPM\u002BAStfzCt8A==", "permissions": "FULL" } ] } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount/revokeUserDelegationKeys?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount/revokeUserDelegationKeys?api-version=2021-09-01", "RequestMethod": "POST", "RequestHeaders": { ":method": "POST", "Accept-Encoding": "gzip", "Authorization": "Sanitized", "Content-Length": "0", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -1089,7 +491,7 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:49:53 GMT", + "Date": "Thu, 14 Apr 2022 02:42:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -1098,12 +500,12 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1196", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084953Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024215Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount/regenerateKey?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount/regenerateKey?api-version=2021-09-01", "RequestMethod": "POST", "RequestHeaders": { ":method": "POST", @@ -1112,7 +514,7 @@ "Authorization": "Sanitized", "Content-Length": "18", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "keyName": "key2" @@ -1122,7 +524,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:49:54 GMT", + "Date": "Thu, 14 Apr 2022 02:42:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -1133,32 +535,32 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1195", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T084954Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024247Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "keys": [ { - "creationTime": "2022-03-14T08:49:29.3648635Z", + "creationTime": "2022-04-14T02:41:51.1917355Z", "keyName": "key1", - "value": "uRjhe/0ldeQCfYXSxwCF58dgjV3HlkznDgwh0dFJJ3VoVfYiiF8owSfaWH8pdcnklBZwcKuhYIwA\u002BASt/ntxnw==", + "value": "284adhHyVYcUh3oh4sWAmQXh3wFlF6zjJPgbuSR2q3F9BuZs5GAaeG7O9Xia2KTJXs883WOScIhq\u002BASt4ESkrA==", "permissions": "FULL" }, { - "creationTime": "2022-03-14T08:49:54.1776850Z", + "creationTime": "2022-04-14T02:42:16.1136211Z", "keyName": "key2", - "value": "MoBIK2epZfgW8wYV2mec70qi/W9Vj3zyw72Ws2syq2ANcrBo64dY0He6jv6TYXauig3qi\u002B06hfIL\u002BAStTGgG4A==", + "value": "6TogMYi2FyOq6e5pL8KugOVyQ\u002BdKvTsPt4oMpkIB73aZE5gDvoj7nJ3S5CCvqs8FP5KXpEvaMLc7\u002BAStV71xtg==", "permissions": "FULL" } ] } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2021-09-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armstorage/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 200, @@ -1166,7 +568,7 @@ "Cache-Control": "no-cache", "Content-Length": "0", "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:50:01 GMT", + "Date": "Thu, 14 Apr 2022 02:42:55 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", @@ -1175,7 +577,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14992", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T085002Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024255Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null }, @@ -1186,16 +588,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 08:50:03 GMT", + "Date": "Thu, 14 Apr 2022 02:42:56 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NjgtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzMjctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1203,7 +605,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14991", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T085004Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024256Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestUsagesClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestUsagesClient.json index fae08dc7548b..cd95da646141 100644 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestUsagesClient.json +++ b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestUsagesClient.json @@ -9,7 +9,7 @@ "Authorization": "Sanitized", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": { "location": "eastus" @@ -19,7 +19,7 @@ "Cache-Control": "no-cache", "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 14 Mar 2022 08:50:05 GMT", + "Date": "Thu, 14 Apr 2022 02:42:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -27,7 +27,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-writes": "1183", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T085006Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024259Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", @@ -39,49 +39,6 @@ } } }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/usages?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v0.4.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 14 Mar 2022 08:50:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T085006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "unit": "Count", - "currentValue": 2, - "limit": 250, - "name": { - "value": "StorageAccounts", - "localizedValue": "Storage Accounts" - } - } - ] - } - }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", "RequestMethod": "DELETE", @@ -89,16 +46,16 @@ "Accept": "application/json", "Accept-Encoding": "gzip", "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" + "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 14 Mar 2022 08:50:08 GMT", + "Date": "Thu, 14 Apr 2022 02:43:00 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5NTktRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5NjUtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", "Pragma": "no-cache", "Retry-After": "15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -106,7 +63,7 @@ "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", "x-ms-ratelimit-remaining-subscription-deletes": "14990", "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220314T085009Z:00000000-0000-0000-0000-000000000000" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T024300Z:00000000-0000-0000-0000-000000000000" }, "ResponseBody": null } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobcontainers_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobcontainers_client_test.go index c0407fac6654..687cd0965141 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobcontainers_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobcontainers_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,67 +19,83 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersList.json func ExampleBlobContainersClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", &armstorage.BlobContainersClientListOptions{Maxpagesize: nil, Filter: nil, Include: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersPutDefaultEncryptionScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersPutDefaultEncryptionScope.json func ExampleBlobContainersClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Create(ctx, "", "", "", armstorage.BlobContainer{ ContainerProperties: &armstorage.ContainerProperties{ - DefaultEncryptionScope: to.StringPtr(""), - DenyEncryptionScopeOverride: to.BoolPtr(true), + DefaultEncryptionScope: to.Ptr(""), + DenyEncryptionScopeOverride: to.Ptr(true), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientCreateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersPatch.json func ExampleBlobContainersClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", @@ -87,113 +103,147 @@ func ExampleBlobContainersClient_Update() { armstorage.BlobContainer{ ContainerProperties: &armstorage.ContainerProperties{ Metadata: map[string]*string{ - "metadata": to.StringPtr("true"), + "metadata": to.Ptr("true"), }, - PublicAccess: armstorage.PublicAccessContainer.ToPtr(), + PublicAccess: to.Ptr(armstorage.PublicAccessContainer), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json func ExampleBlobContainersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersDelete.json func ExampleBlobContainersClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersSetLegalHold.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersSetLegalHold.json func ExampleBlobContainersClient_SetLegalHold() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.SetLegalHold(ctx, "", "", "", armstorage.LegalHold{ Tags: []*string{ - to.StringPtr("tag1"), - to.StringPtr("tag2"), - to.StringPtr("tag3")}, + to.Ptr("tag1"), + to.Ptr("tag2"), + to.Ptr("tag3")}, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientSetLegalHoldResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersClearLegalHold.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersClearLegalHold.json func ExampleBlobContainersClient_ClearLegalHold() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ClearLegalHold(ctx, "", "", "", armstorage.LegalHold{ Tags: []*string{ - to.StringPtr("tag1"), - to.StringPtr("tag2"), - to.StringPtr("tag3")}, + to.Ptr("tag1"), + to.Ptr("tag2"), + to.Ptr("tag3")}, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientClearLegalHoldResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersPutImmutabilityPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersPutImmutabilityPolicy.json func ExampleBlobContainersClient_CreateOrUpdateImmutabilityPolicy() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdateImmutabilityPolicy(ctx, "", "", @@ -201,44 +251,58 @@ func ExampleBlobContainersClient_CreateOrUpdateImmutabilityPolicy() { &armstorage.BlobContainersClientCreateOrUpdateImmutabilityPolicyOptions{IfMatch: nil, Parameters: &armstorage.ImmutabilityPolicy{ Properties: &armstorage.ImmutabilityPolicyProperty{ - AllowProtectedAppendWrites: to.BoolPtr(true), - ImmutabilityPeriodSinceCreationInDays: to.Int32Ptr(3), + AllowProtectedAppendWrites: to.Ptr(true), + ImmutabilityPeriodSinceCreationInDays: to.Ptr[int32](3), }, }, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientCreateOrUpdateImmutabilityPolicyResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersGetImmutabilityPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersGetImmutabilityPolicy.json func ExampleBlobContainersClient_GetImmutabilityPolicy() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetImmutabilityPolicy(ctx, "", "", "", &armstorage.BlobContainersClientGetImmutabilityPolicyOptions{IfMatch: nil}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientGetImmutabilityPolicyResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersDeleteImmutabilityPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersDeleteImmutabilityPolicy.json func ExampleBlobContainersClient_DeleteImmutabilityPolicy() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.DeleteImmutabilityPolicy(ctx, "", "", @@ -246,19 +310,26 @@ func ExampleBlobContainersClient_DeleteImmutabilityPolicy() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientDeleteImmutabilityPolicyResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersLockImmutabilityPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersLockImmutabilityPolicy.json func ExampleBlobContainersClient_LockImmutabilityPolicy() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.LockImmutabilityPolicy(ctx, "", "", @@ -266,19 +337,26 @@ func ExampleBlobContainersClient_LockImmutabilityPolicy() { "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientLockImmutabilityPolicyResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersExtendImmutabilityPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersExtendImmutabilityPolicy.json func ExampleBlobContainersClient_ExtendImmutabilityPolicy() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ExtendImmutabilityPolicy(ctx, "", "", @@ -286,57 +364,73 @@ func ExampleBlobContainersClient_ExtendImmutabilityPolicy() { "", &armstorage.BlobContainersClientExtendImmutabilityPolicyOptions{Parameters: &armstorage.ImmutabilityPolicy{ Properties: &armstorage.ImmutabilityPolicyProperty{ - ImmutabilityPeriodSinceCreationInDays: to.Int32Ptr(100), + ImmutabilityPeriodSinceCreationInDays: to.Ptr[int32](100), }, }, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientExtendImmutabilityPolicyResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobContainersLease_Acquire.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobContainersLease_Acquire.json func ExampleBlobContainersClient_Lease() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Lease(ctx, "", "", "", &armstorage.BlobContainersClientLeaseOptions{Parameters: &armstorage.LeaseContainerRequest{ - Action: armstorage.LeaseContainerRequestAction("Acquire").ToPtr(), - LeaseDuration: to.Int32Ptr(-1), + Action: to.Ptr(armstorage.LeaseContainerRequestActionAcquire), + LeaseDuration: to.Ptr[int32](-1), }, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobContainersClientLeaseResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/ObjectLevelWormContainerMigration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/ObjectLevelWormContainerMigration.json func ExampleBlobContainersClient_BeginObjectLevelWorm() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobContainersClient("", cred, nil) + client, err := armstorage.NewBlobContainersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginObjectLevelWorm(ctx, "", "", "", - nil) + &armstorage.BlobContainersClientBeginObjectLevelWormOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobinventorypolicies_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobinventorypolicies_client_test.go index 3d4325fd7f0b..3c92a1d0d625 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobinventorypolicies_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobinventorypolicies_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,139 +17,173 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountGetBlobInventoryPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountGetBlobInventoryPolicy.json func ExampleBlobInventoryPoliciesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobInventoryPoliciesClient("", cred, nil) + client, err := armstorage.NewBlobInventoryPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", - armstorage.BlobInventoryPolicyName("default"), + armstorage.BlobInventoryPolicyNameDefault, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobInventoryPoliciesClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountSetBlobInventoryPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountSetBlobInventoryPolicy.json func ExampleBlobInventoryPoliciesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobInventoryPoliciesClient("", cred, nil) + client, err := armstorage.NewBlobInventoryPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", - armstorage.BlobInventoryPolicyName("default"), + armstorage.BlobInventoryPolicyNameDefault, armstorage.BlobInventoryPolicy{ Properties: &armstorage.BlobInventoryPolicyProperties{ Policy: &armstorage.BlobInventoryPolicySchema{ - Type: armstorage.InventoryRuleType("Inventory").ToPtr(), - Enabled: to.BoolPtr(true), + Type: to.Ptr(armstorage.InventoryRuleTypeInventory), + Enabled: to.Ptr(true), Rules: []*armstorage.BlobInventoryPolicyRule{ { - Name: to.StringPtr(""), + Name: to.Ptr(""), Definition: &armstorage.BlobInventoryPolicyDefinition{ - Format: armstorage.Format("Csv").ToPtr(), + Format: to.Ptr(armstorage.FormatCSV), Filters: &armstorage.BlobInventoryPolicyFilter{ BlobTypes: []*string{ - to.StringPtr("blockBlob"), - to.StringPtr("appendBlob"), - to.StringPtr("pageBlob")}, - IncludeBlobVersions: to.BoolPtr(true), - IncludeSnapshots: to.BoolPtr(true), + to.Ptr("blockBlob"), + to.Ptr("appendBlob"), + to.Ptr("pageBlob")}, + ExcludePrefix: []*string{ + to.Ptr("excludeprefix1"), + to.Ptr("excludeprefix2")}, + IncludeBlobVersions: to.Ptr(true), + IncludeSnapshots: to.Ptr(true), PrefixMatch: []*string{ - to.StringPtr("inventoryprefix1"), - to.StringPtr("inventoryprefix2")}, + to.Ptr("inventoryprefix1"), + to.Ptr("inventoryprefix2")}, }, - ObjectType: armstorage.ObjectType("Blob").ToPtr(), - Schedule: armstorage.Schedule("Daily").ToPtr(), + ObjectType: to.Ptr(armstorage.ObjectTypeBlob), + Schedule: to.Ptr(armstorage.ScheduleDaily), SchemaFields: []*string{ - to.StringPtr("Name"), - to.StringPtr("Creation-Time"), - to.StringPtr("Last-Modified"), - to.StringPtr("Content-Length"), - to.StringPtr("Content-MD5"), - to.StringPtr("BlobType"), - to.StringPtr("AccessTier"), - to.StringPtr("AccessTierChangeTime"), - to.StringPtr("Snapshot"), - to.StringPtr("VersionId"), - to.StringPtr("IsCurrentVersion"), - to.StringPtr("Metadata")}, + to.Ptr("Name"), + to.Ptr("Creation-Time"), + to.Ptr("Last-Modified"), + to.Ptr("Content-Length"), + to.Ptr("Content-MD5"), + to.Ptr("BlobType"), + to.Ptr("AccessTier"), + to.Ptr("AccessTierChangeTime"), + to.Ptr("Snapshot"), + to.Ptr("VersionId"), + to.Ptr("IsCurrentVersion"), + to.Ptr("Metadata")}, }, - Destination: to.StringPtr(""), - Enabled: to.BoolPtr(true), + Destination: to.Ptr(""), + Enabled: to.Ptr(true), }, { - Name: to.StringPtr(""), + Name: to.Ptr(""), Definition: &armstorage.BlobInventoryPolicyDefinition{ - Format: armstorage.Format("Parquet").ToPtr(), - ObjectType: armstorage.ObjectType("Container").ToPtr(), - Schedule: armstorage.Schedule("Weekly").ToPtr(), + Format: to.Ptr(armstorage.FormatParquet), + ObjectType: to.Ptr(armstorage.ObjectTypeContainer), + Schedule: to.Ptr(armstorage.ScheduleWeekly), SchemaFields: []*string{ - to.StringPtr("Name"), - to.StringPtr("Last-Modified"), - to.StringPtr("Metadata"), - to.StringPtr("LeaseStatus"), - to.StringPtr("LeaseState"), - to.StringPtr("LeaseDuration"), - to.StringPtr("PublicAccess"), - to.StringPtr("HasImmutabilityPolicy"), - to.StringPtr("HasLegalHold")}, + to.Ptr("Name"), + to.Ptr("Last-Modified"), + to.Ptr("Metadata"), + to.Ptr("LeaseStatus"), + to.Ptr("LeaseState"), + to.Ptr("LeaseDuration"), + to.Ptr("PublicAccess"), + to.Ptr("HasImmutabilityPolicy"), + to.Ptr("HasLegalHold")}, }, - Destination: to.StringPtr(""), - Enabled: to.BoolPtr(true), + Destination: to.Ptr(""), + Enabled: to.Ptr(true), }}, }, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobInventoryPoliciesClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountDeleteBlobInventoryPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountDeleteBlobInventoryPolicy.json func ExampleBlobInventoryPoliciesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobInventoryPoliciesClient("", cred, nil) + client, err := armstorage.NewBlobInventoryPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", - armstorage.BlobInventoryPolicyName("default"), + armstorage.BlobInventoryPolicyNameDefault, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountListBlobInventoryPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListBlobInventoryPolicy.json func ExampleBlobInventoryPoliciesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobInventoryPoliciesClient("", cred, nil) - res, err := client.List(ctx, - "", + client, err := armstorage.NewBlobInventoryPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.List("", "", nil) - if err != nil { - log.Fatal(err) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + return + } + for _, v := range nextResult.Value { + // TODO: use page item + _ = v + } } - log.Printf("Response result: %#v\n", res.BlobInventoryPoliciesClientListResult) } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobservices_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobservices_client_test.go index df3e00ee61a3..58a27936e745 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobservices_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_blobservices_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,67 +17,91 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobServicesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobServicesList.json func ExampleBlobServicesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobServicesClient("", cred, nil) - res, err := client.List(ctx, - "", + client, err := armstorage.NewBlobServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.List("", "", nil) - if err != nil { - log.Fatal(err) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + return + } + for _, v := range nextResult.Value { + // TODO: use page item + _ = v + } } - log.Printf("Response result: %#v\n", res.BlobServicesClientListResult) } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobServicesPutLastAccessTimeBasedTracking.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobServicesPutAllowPermanentDelete.json func ExampleBlobServicesClient_SetServiceProperties() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobServicesClient("", cred, nil) + client, err := armstorage.NewBlobServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.SetServiceProperties(ctx, "", "", armstorage.BlobServiceProperties{ BlobServiceProperties: &armstorage.BlobServicePropertiesProperties{ - LastAccessTimeTrackingPolicy: &armstorage.LastAccessTimeTrackingPolicy{ - Name: armstorage.Name("AccessTimeTracking").ToPtr(), - BlobType: []*string{ - to.StringPtr("blockBlob")}, - Enable: to.BoolPtr(true), - TrackingGranularityInDays: to.Int32Ptr(1), + DeleteRetentionPolicy: &armstorage.DeleteRetentionPolicy{ + AllowPermanentDelete: to.Ptr(true), + Days: to.Ptr[int32](300), + Enabled: to.Ptr(true), }, + IsVersioningEnabled: to.Ptr(true), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobServicesClientSetServicePropertiesResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobServicesGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobServicesGet.json func ExampleBlobServicesClient_GetServiceProperties() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewBlobServicesClient("", cred, nil) + client, err := armstorage.NewBlobServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetServiceProperties(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.BlobServicesClientGetServicePropertiesResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_deletedaccounts_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_deletedaccounts_client_test.go index c3d12f98d88b..34c172a067a5 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_deletedaccounts_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_deletedaccounts_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,43 +16,54 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/DeletedAccountList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/DeletedAccountList.json func ExampleDeletedAccountsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewDeletedAccountsClient("", cred, nil) + client, err := armstorage.NewDeletedAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/DeletedAccountGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/DeletedAccountGet.json func ExampleDeletedAccountsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewDeletedAccountsClient("", cred, nil) + client, err := armstorage.NewDeletedAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.DeletedAccountsClientGetResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_encryptionscopes_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_encryptionscopes_client_test.go index 4e295a268240..36aa515a5008 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_encryptionscopes_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_encryptionscopes_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,14 +17,19 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountPutEncryptionScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountPutEncryptionScope.json func ExampleEncryptionScopesClient_Put() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewEncryptionScopesClient("", cred, nil) + client, err := armstorage.NewEncryptionScopesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Put(ctx, "", "", @@ -32,19 +37,26 @@ func ExampleEncryptionScopesClient_Put() { armstorage.EncryptionScope{}, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.EncryptionScopesClientPutResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountPatchEncryptionScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountPatchEncryptionScope.json func ExampleEncryptionScopesClient_Patch() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewEncryptionScopesClient("", cred, nil) + client, err := armstorage.NewEncryptionScopesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Patch(ctx, "", "", @@ -52,58 +64,71 @@ func ExampleEncryptionScopesClient_Patch() { armstorage.EncryptionScope{ EncryptionScopeProperties: &armstorage.EncryptionScopeProperties{ KeyVaultProperties: &armstorage.EncryptionScopeKeyVaultProperties{ - KeyURI: to.StringPtr(""), + KeyURI: to.Ptr(""), }, - Source: armstorage.EncryptionScopeSource("Microsoft.KeyVault").ToPtr(), + Source: to.Ptr(armstorage.EncryptionScopeSourceMicrosoftKeyVault), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.EncryptionScopesClientPatchResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountGetEncryptionScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountGetEncryptionScope.json func ExampleEncryptionScopesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewEncryptionScopesClient("", cred, nil) + client, err := armstorage.NewEncryptionScopesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.EncryptionScopesClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountEncryptionScopeList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountEncryptionScopeList.json func ExampleEncryptionScopesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewEncryptionScopesClient("", cred, nil) + client, err := armstorage.NewEncryptionScopesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileservices_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileservices_client_test.go index 7b8f39ac426b..8d6181f70b80 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileservices_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileservices_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,32 +17,44 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/FileServicesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/FileServicesList.json func ExampleFileServicesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewFileServicesClient("", cred, nil) + client, err := armstorage.NewFileServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.List(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.FileServicesClientListResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/FileServicesPut.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/FileServicesPut.json func ExampleFileServicesClient_SetServiceProperties() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewFileServicesClient("", cred, nil) + client, err := armstorage.NewFileServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.SetServiceProperties(ctx, "", "", @@ -52,73 +64,82 @@ func ExampleFileServicesClient_SetServiceProperties() { CorsRules: []*armstorage.CorsRule{ { AllowedHeaders: []*string{ - to.StringPtr("x-ms-meta-abc"), - to.StringPtr("x-ms-meta-data*"), - to.StringPtr("x-ms-meta-target*")}, + to.Ptr("x-ms-meta-abc"), + to.Ptr("x-ms-meta-data*"), + to.Ptr("x-ms-meta-target*")}, AllowedMethods: []*armstorage.CorsRuleAllowedMethodsItem{ - armstorage.CorsRuleAllowedMethodsItem("GET").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("HEAD").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("POST").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("OPTIONS").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("MERGE").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("PUT").ToPtr()}, + to.Ptr(armstorage.CorsRuleAllowedMethodsItemGET), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemHEAD), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemPOST), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemOPTIONS), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemMERGE), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemPUT)}, AllowedOrigins: []*string{ - to.StringPtr("http://www.contoso.com"), - to.StringPtr("http://www.fabrikam.com")}, + to.Ptr("http://www.contoso.com"), + to.Ptr("http://www.fabrikam.com")}, ExposedHeaders: []*string{ - to.StringPtr("x-ms-meta-*")}, - MaxAgeInSeconds: to.Int32Ptr(100), + to.Ptr("x-ms-meta-*")}, + MaxAgeInSeconds: to.Ptr[int32](100), }, { AllowedHeaders: []*string{ - to.StringPtr("*")}, + to.Ptr("*")}, AllowedMethods: []*armstorage.CorsRuleAllowedMethodsItem{ - armstorage.CorsRuleAllowedMethodsItem("GET").ToPtr()}, + to.Ptr(armstorage.CorsRuleAllowedMethodsItemGET)}, AllowedOrigins: []*string{ - to.StringPtr("*")}, + to.Ptr("*")}, ExposedHeaders: []*string{ - to.StringPtr("*")}, - MaxAgeInSeconds: to.Int32Ptr(2), + to.Ptr("*")}, + MaxAgeInSeconds: to.Ptr[int32](2), }, { AllowedHeaders: []*string{ - to.StringPtr("x-ms-meta-12345675754564*")}, + to.Ptr("x-ms-meta-12345675754564*")}, AllowedMethods: []*armstorage.CorsRuleAllowedMethodsItem{ - armstorage.CorsRuleAllowedMethodsItem("GET").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("PUT").ToPtr()}, + to.Ptr(armstorage.CorsRuleAllowedMethodsItemGET), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemPUT)}, AllowedOrigins: []*string{ - to.StringPtr("http://www.abc23.com"), - to.StringPtr("https://www.fabrikam.com/*")}, + to.Ptr("http://www.abc23.com"), + to.Ptr("https://www.fabrikam.com/*")}, ExposedHeaders: []*string{ - to.StringPtr("x-ms-meta-abc"), - to.StringPtr("x-ms-meta-data*"), - to.StringPtr("x-ms-meta-target*")}, - MaxAgeInSeconds: to.Int32Ptr(2000), + to.Ptr("x-ms-meta-abc"), + to.Ptr("x-ms-meta-data*"), + to.Ptr("x-ms-meta-target*")}, + MaxAgeInSeconds: to.Ptr[int32](2000), }}, }, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.FileServicesClientSetServicePropertiesResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/FileServicesGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/FileServicesGet.json func ExampleFileServicesClient_GetServiceProperties() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewFileServicesClient("", cred, nil) + client, err := armstorage.NewFileServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetServiceProperties(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.FileServicesClientGetServicePropertiesResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileshares_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileshares_client_test.go index c95e2859bf22..20be232160b4 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileshares_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_fileshares_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,66 +19,82 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/DeletedFileSharesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/DeletedFileSharesList.json func ExampleFileSharesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewFileSharesClient("", cred, nil) + client, err := armstorage.NewFileSharesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", &armstorage.FileSharesClientListOptions{Maxpagesize: nil, Filter: nil, - Expand: to.StringPtr(""), + Expand: to.Ptr(""), }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/FileSharesPut_NFS.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/FileSharesPut_NFS.json func ExampleFileSharesClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewFileSharesClient("", cred, nil) + client, err := armstorage.NewFileSharesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Create(ctx, "", "", "", armstorage.FileShare{ FileShareProperties: &armstorage.FileShareProperties{ - EnabledProtocols: armstorage.EnabledProtocols("NFS").ToPtr(), + EnabledProtocols: to.Ptr(armstorage.EnabledProtocolsNFS), }, }, &armstorage.FileSharesClientCreateOptions{Expand: nil}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.FileSharesClientCreateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/FileShareAclsPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/FileShareAclsPatch.json func ExampleFileSharesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewFileSharesClient("", cred, nil) + client, err := armstorage.NewFileSharesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", @@ -88,50 +104,64 @@ func ExampleFileSharesClient_Update() { SignedIdentifiers: []*armstorage.SignedIdentifier{ { AccessPolicy: &armstorage.AccessPolicy{ - ExpiryTime: to.TimePtr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T08:49:37.0000000Z"); return t }()), - Permission: to.StringPtr(""), - StartTime: to.TimePtr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-01T08:49:37.0000000Z"); return t }()), + ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T08:49:37.0000000Z"); return t }()), + Permission: to.Ptr(""), + StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-01T08:49:37.0000000Z"); return t }()), }, - ID: to.StringPtr(""), + ID: to.Ptr(""), }}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.FileSharesClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/FileSharesGet_Stats.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/FileSharesGet_Stats.json func ExampleFileSharesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewFileSharesClient("", cred, nil) + client, err := armstorage.NewFileSharesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", - &armstorage.FileSharesClientGetOptions{Expand: to.StringPtr(""), + &armstorage.FileSharesClientGetOptions{Expand: to.Ptr(""), XMSSnapshot: nil, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.FileSharesClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/FileSharesDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/FileSharesDelete.json func ExampleFileSharesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewFileSharesClient("", cred, nil) + client, err := armstorage.NewFileSharesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", @@ -140,52 +170,66 @@ func ExampleFileSharesClient_Delete() { Include: nil, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/FileSharesRestore.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/FileSharesRestore.json func ExampleFileSharesClient_Restore() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewFileSharesClient("", cred, nil) + client, err := armstorage.NewFileSharesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Restore(ctx, "", "", "", armstorage.DeletedShare{ - DeletedShareName: to.StringPtr(""), - DeletedShareVersion: to.StringPtr(""), + DeletedShareName: to.Ptr(""), + DeletedShareVersion: to.Ptr(""), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/FileSharesLease_Acquire.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/FileSharesLease_Acquire.json func ExampleFileSharesClient_Lease() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewFileSharesClient("", cred, nil) + client, err := armstorage.NewFileSharesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Lease(ctx, "", "", "", &armstorage.FileSharesClientLeaseOptions{XMSSnapshot: nil, Parameters: &armstorage.LeaseShareRequest{ - Action: armstorage.LeaseShareAction("Acquire").ToPtr(), - LeaseDuration: to.Int32Ptr(-1), + Action: to.Ptr(armstorage.LeaseShareActionAcquire), + LeaseDuration: to.Ptr[int32](-1), }, }) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.FileSharesClientLeaseResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_localusers_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_localusers_client_test.go index 43626c8c2ed1..3f5b007b8524 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_localusers_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_localusers_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,136 +17,181 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/LocalUsersList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/LocalUsersList.json func ExampleLocalUsersClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewLocalUsersClient("", cred, nil) - res, err := client.List(ctx, - "", + client, err := armstorage.NewLocalUsersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.List("", "", nil) - if err != nil { - log.Fatal(err) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + return + } + for _, v := range nextResult.Value { + // TODO: use page item + _ = v + } } - log.Printf("Response result: %#v\n", res.LocalUsersClientListResult) } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/LocalUserGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/LocalUserGet.json func ExampleLocalUsersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewLocalUsersClient("", cred, nil) + client, err := armstorage.NewLocalUsersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.LocalUsersClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/LocalUserCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/LocalUserCreate.json func ExampleLocalUsersClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewLocalUsersClient("", cred, nil) + client, err := armstorage.NewLocalUsersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", "", armstorage.LocalUser{ Properties: &armstorage.LocalUserProperties{ - HasSSHPassword: to.BoolPtr(true), - HomeDirectory: to.StringPtr(""), + HasSSHPassword: to.Ptr(true), + HomeDirectory: to.Ptr(""), PermissionScopes: []*armstorage.PermissionScope{ { - Permissions: to.StringPtr(""), - ResourceName: to.StringPtr(""), - Service: to.StringPtr(""), + Permissions: to.Ptr(""), + ResourceName: to.Ptr(""), + Service: to.Ptr(""), }, { - Permissions: to.StringPtr(""), - ResourceName: to.StringPtr(""), - Service: to.StringPtr(""), + Permissions: to.Ptr(""), + ResourceName: to.Ptr(""), + Service: to.Ptr(""), }}, SSHAuthorizedKeys: []*armstorage.SSHPublicKey{ { - Description: to.StringPtr(""), - Key: to.StringPtr(""), + Description: to.Ptr(""), + Key: to.Ptr(""), }}, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.LocalUsersClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/LocalUserDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/LocalUserDelete.json func ExampleLocalUsersClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewLocalUsersClient("", cred, nil) + client, err := armstorage.NewLocalUsersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/LocalUserListKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/LocalUserListKeys.json func ExampleLocalUsersClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewLocalUsersClient("", cred, nil) + client, err := armstorage.NewLocalUsersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListKeys(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.LocalUsersClientListKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/LocalUserRegeneratePassword.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/LocalUserRegeneratePassword.json func ExampleLocalUsersClient_RegeneratePassword() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewLocalUsersClient("", cred, nil) + client, err := armstorage.NewLocalUsersClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.RegeneratePassword(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.LocalUsersClientRegeneratePasswordResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_managementpolicies_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_managementpolicies_client_test.go index ecba2f81d035..90bc84052c23 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_managementpolicies_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_managementpolicies_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,133 +17,153 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountGetManagementPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountGetManagementPolicy.json func ExampleManagementPoliciesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewManagementPoliciesClient("", cred, nil) + client, err := armstorage.NewManagementPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", - armstorage.ManagementPolicyName("default"), + armstorage.ManagementPolicyNameDefault, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagementPoliciesClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountSetManagementPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountSetManagementPolicy.json func ExampleManagementPoliciesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewManagementPoliciesClient("", cred, nil) + client, err := armstorage.NewManagementPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", - armstorage.ManagementPolicyName("default"), + armstorage.ManagementPolicyNameDefault, armstorage.ManagementPolicy{ Properties: &armstorage.ManagementPolicyProperties{ Policy: &armstorage.ManagementPolicySchema{ Rules: []*armstorage.ManagementPolicyRule{ { - Name: to.StringPtr(""), - Type: armstorage.RuleType("Lifecycle").ToPtr(), + Name: to.Ptr(""), + Type: to.Ptr(armstorage.RuleTypeLifecycle), Definition: &armstorage.ManagementPolicyDefinition{ Actions: &armstorage.ManagementPolicyAction{ BaseBlob: &armstorage.ManagementPolicyBaseBlob{ Delete: &armstorage.DateAfterModification{ - DaysAfterModificationGreaterThan: to.Float32Ptr(1000), + DaysAfterModificationGreaterThan: to.Ptr[float32](1000), }, TierToArchive: &armstorage.DateAfterModification{ - DaysAfterModificationGreaterThan: to.Float32Ptr(90), + DaysAfterModificationGreaterThan: to.Ptr[float32](90), }, TierToCool: &armstorage.DateAfterModification{ - DaysAfterModificationGreaterThan: to.Float32Ptr(30), + DaysAfterModificationGreaterThan: to.Ptr[float32](30), }, }, Snapshot: &armstorage.ManagementPolicySnapShot{ Delete: &armstorage.DateAfterCreation{ - DaysAfterCreationGreaterThan: to.Float32Ptr(30), + DaysAfterCreationGreaterThan: to.Ptr[float32](30), }, }, }, Filters: &armstorage.ManagementPolicyFilter{ BlobTypes: []*string{ - to.StringPtr("blockBlob")}, + to.Ptr("blockBlob")}, PrefixMatch: []*string{ - to.StringPtr("olcmtestcontainer1")}, + to.Ptr("olcmtestcontainer1")}, }, }, - Enabled: to.BoolPtr(true), + Enabled: to.Ptr(true), }, { - Name: to.StringPtr(""), - Type: armstorage.RuleType("Lifecycle").ToPtr(), + Name: to.Ptr(""), + Type: to.Ptr(armstorage.RuleTypeLifecycle), Definition: &armstorage.ManagementPolicyDefinition{ Actions: &armstorage.ManagementPolicyAction{ BaseBlob: &armstorage.ManagementPolicyBaseBlob{ Delete: &armstorage.DateAfterModification{ - DaysAfterModificationGreaterThan: to.Float32Ptr(1000), + DaysAfterModificationGreaterThan: to.Ptr[float32](1000), }, TierToArchive: &armstorage.DateAfterModification{ - DaysAfterModificationGreaterThan: to.Float32Ptr(90), + DaysAfterModificationGreaterThan: to.Ptr[float32](90), }, TierToCool: &armstorage.DateAfterModification{ - DaysAfterModificationGreaterThan: to.Float32Ptr(30), + DaysAfterModificationGreaterThan: to.Ptr[float32](30), }, }, }, Filters: &armstorage.ManagementPolicyFilter{ BlobIndexMatch: []*armstorage.TagFilter{ { - Name: to.StringPtr(""), - Op: to.StringPtr(""), - Value: to.StringPtr(""), + Name: to.Ptr(""), + Op: to.Ptr(""), + Value: to.Ptr(""), }, { - Name: to.StringPtr(""), - Op: to.StringPtr(""), - Value: to.StringPtr(""), + Name: to.Ptr(""), + Op: to.Ptr(""), + Value: to.Ptr(""), }}, BlobTypes: []*string{ - to.StringPtr("blockBlob")}, + to.Ptr("blockBlob")}, PrefixMatch: []*string{ - to.StringPtr("olcmtestcontainer2")}, + to.Ptr("olcmtestcontainer2")}, }, }, - Enabled: to.BoolPtr(true), + Enabled: to.Ptr(true), }}, }, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ManagementPoliciesClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountDeleteManagementPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountDeleteManagementPolicy.json func ExampleManagementPoliciesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewManagementPoliciesClient("", cred, nil) + client, err := armstorage.NewManagementPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", - armstorage.ManagementPolicyName("default"), + armstorage.ManagementPolicyNameDefault, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_objectreplicationpolicies_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_objectreplicationpolicies_client_test.go index 37c1ba36e965..42d18b9fe0fa 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_objectreplicationpolicies_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_objectreplicationpolicies_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,92 +17,123 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountListObjectReplicationPolicies.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListObjectReplicationPolicies.json func ExampleObjectReplicationPoliciesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewObjectReplicationPoliciesClient("", cred, nil) - res, err := client.List(ctx, - "", + client, err := armstorage.NewObjectReplicationPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.List("", "", nil) - if err != nil { - log.Fatal(err) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + return + } + for _, v := range nextResult.Value { + // TODO: use page item + _ = v + } } - log.Printf("Response result: %#v\n", res.ObjectReplicationPoliciesClientListResult) } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountGetObjectReplicationPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountGetObjectReplicationPolicy.json func ExampleObjectReplicationPoliciesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewObjectReplicationPoliciesClient("", cred, nil) + client, err := armstorage.NewObjectReplicationPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ObjectReplicationPoliciesClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountCreateObjectReplicationPolicyOnDestination.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountCreateObjectReplicationPolicyOnDestination.json func ExampleObjectReplicationPoliciesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewObjectReplicationPoliciesClient("", cred, nil) + client, err := armstorage.NewObjectReplicationPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CreateOrUpdate(ctx, "", "", "", armstorage.ObjectReplicationPolicy{ Properties: &armstorage.ObjectReplicationPolicyProperties{ - DestinationAccount: to.StringPtr(""), + DestinationAccount: to.Ptr(""), Rules: []*armstorage.ObjectReplicationPolicyRule{ { - DestinationContainer: to.StringPtr(""), + DestinationContainer: to.Ptr(""), Filters: &armstorage.ObjectReplicationPolicyFilter{ PrefixMatch: []*string{ - to.StringPtr("blobA"), - to.StringPtr("blobB")}, + to.Ptr("blobA"), + to.Ptr("blobB")}, }, - SourceContainer: to.StringPtr(""), + SourceContainer: to.Ptr(""), }}, - SourceAccount: to.StringPtr(""), + SourceAccount: to.Ptr(""), }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.ObjectReplicationPoliciesClientCreateOrUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountDeleteObjectReplicationPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountDeleteObjectReplicationPolicy.json func ExampleObjectReplicationPoliciesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewObjectReplicationPoliciesClient("", cred, nil) + client, err := armstorage.NewObjectReplicationPoliciesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_operations_client_test.go index a742962cda00..e70d2017617f 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_operations_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_operations_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,18 +16,29 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/OperationsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/OperationsList.json func ExampleOperationsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewOperationsClient(cred, nil) - res, err := client.List(ctx, - nil) + client, err := armstorage.NewOperationsClient(cred, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.List(nil) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + return + } + for _, v := range nextResult.Value { + // TODO: use page item + _ = v + } } - log.Printf("Response result: %#v\n", res.OperationsClientListResult) } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_privateendpointconnections_client_test.go index 94ea6d38ed79..81dbc11a5584 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_privateendpointconnections_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_privateendpointconnections_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,51 +17,74 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountListPrivateEndpointConnections.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListPrivateEndpointConnections.json func ExamplePrivateEndpointConnectionsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewPrivateEndpointConnectionsClient("", cred, nil) - res, err := client.List(ctx, - "", + client, err := armstorage.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.List("", "", nil) - if err != nil { - log.Fatal(err) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + return + } + for _, v := range nextResult.Value { + // TODO: use page item + _ = v + } } - log.Printf("Response result: %#v\n", res.PrivateEndpointConnectionsClientListResult) } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountGetPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountGetPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armstorage.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateEndpointConnectionsClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountPutPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountPutPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_Put() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armstorage.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Put(ctx, "", "", @@ -69,32 +92,40 @@ func ExamplePrivateEndpointConnectionsClient_Put() { armstorage.PrivateEndpointConnection{ Properties: &armstorage.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armstorage.PrivateLinkServiceConnectionState{ - Description: to.StringPtr(""), - Status: armstorage.PrivateEndpointServiceConnectionStatus("Approved").ToPtr(), + Description: to.Ptr(""), + Status: to.Ptr(armstorage.PrivateEndpointServiceConnectionStatusApproved), }, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateEndpointConnectionsClientPutResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountDeletePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountDeletePrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewPrivateEndpointConnectionsClient("", cred, nil) + client, err := armstorage.NewPrivateEndpointConnectionsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_privatelinkresources_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_privatelinkresources_client_test.go index 88dfe3a25d4f..93fc41b931d0 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_privatelinkresources_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_privatelinkresources_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,20 +16,27 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountListPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListPrivateLinkResources.json func ExamplePrivateLinkResourcesClient_ListByStorageAccount() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewPrivateLinkResourcesClient("", cred, nil) + client, err := armstorage.NewPrivateLinkResourcesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListByStorageAccount(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.PrivateLinkResourcesClientListByStorageAccountResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_queue_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_queue_client_test.go index 02f895bf9a77..3870697d328f 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_queue_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_queue_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,14 +16,19 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/QueueOperationPut.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/QueueOperationPut.json func ExampleQueueClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewQueueClient("", cred, nil) + client, err := armstorage.NewQueueClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Create(ctx, "", "", @@ -31,19 +36,26 @@ func ExampleQueueClient_Create() { armstorage.Queue{}, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueueClientCreateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/QueueOperationPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/QueueOperationPatch.json func ExampleQueueClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewQueueClient("", cred, nil) + client, err := armstorage.NewQueueClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", @@ -51,71 +63,90 @@ func ExampleQueueClient_Update() { armstorage.Queue{}, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueueClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/QueueOperationGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/QueueOperationGet.json func ExampleQueueClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewQueueClient("", cred, nil) + client, err := armstorage.NewQueueClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueueClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/QueueOperationDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/QueueOperationDelete.json func ExampleQueueClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewQueueClient("", cred, nil) + client, err := armstorage.NewQueueClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/QueueOperationList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/QueueOperationList.json func ExampleQueueClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewQueueClient("", cred, nil) + client, err := armstorage.NewQueueClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", &armstorage.QueueClientListOptions{Maxpagesize: nil, Filter: nil, }) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_queueservices_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_queueservices_client_test.go index fcf1fb23e085..020c23cb709a 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_queueservices_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_queueservices_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,32 +17,44 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/QueueServicesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/QueueServicesList.json func ExampleQueueServicesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewQueueServicesClient("", cred, nil) + client, err := armstorage.NewQueueServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.List(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueueServicesClientListResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/QueueServicesPut.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/QueueServicesPut.json func ExampleQueueServicesClient_SetServiceProperties() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewQueueServicesClient("", cred, nil) + client, err := armstorage.NewQueueServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.SetServiceProperties(ctx, "", "", @@ -52,73 +64,82 @@ func ExampleQueueServicesClient_SetServiceProperties() { CorsRules: []*armstorage.CorsRule{ { AllowedHeaders: []*string{ - to.StringPtr("x-ms-meta-abc"), - to.StringPtr("x-ms-meta-data*"), - to.StringPtr("x-ms-meta-target*")}, + to.Ptr("x-ms-meta-abc"), + to.Ptr("x-ms-meta-data*"), + to.Ptr("x-ms-meta-target*")}, AllowedMethods: []*armstorage.CorsRuleAllowedMethodsItem{ - armstorage.CorsRuleAllowedMethodsItem("GET").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("HEAD").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("POST").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("OPTIONS").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("MERGE").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("PUT").ToPtr()}, + to.Ptr(armstorage.CorsRuleAllowedMethodsItemGET), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemHEAD), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemPOST), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemOPTIONS), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemMERGE), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemPUT)}, AllowedOrigins: []*string{ - to.StringPtr("http://www.contoso.com"), - to.StringPtr("http://www.fabrikam.com")}, + to.Ptr("http://www.contoso.com"), + to.Ptr("http://www.fabrikam.com")}, ExposedHeaders: []*string{ - to.StringPtr("x-ms-meta-*")}, - MaxAgeInSeconds: to.Int32Ptr(100), + to.Ptr("x-ms-meta-*")}, + MaxAgeInSeconds: to.Ptr[int32](100), }, { AllowedHeaders: []*string{ - to.StringPtr("*")}, + to.Ptr("*")}, AllowedMethods: []*armstorage.CorsRuleAllowedMethodsItem{ - armstorage.CorsRuleAllowedMethodsItem("GET").ToPtr()}, + to.Ptr(armstorage.CorsRuleAllowedMethodsItemGET)}, AllowedOrigins: []*string{ - to.StringPtr("*")}, + to.Ptr("*")}, ExposedHeaders: []*string{ - to.StringPtr("*")}, - MaxAgeInSeconds: to.Int32Ptr(2), + to.Ptr("*")}, + MaxAgeInSeconds: to.Ptr[int32](2), }, { AllowedHeaders: []*string{ - to.StringPtr("x-ms-meta-12345675754564*")}, + to.Ptr("x-ms-meta-12345675754564*")}, AllowedMethods: []*armstorage.CorsRuleAllowedMethodsItem{ - armstorage.CorsRuleAllowedMethodsItem("GET").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("PUT").ToPtr()}, + to.Ptr(armstorage.CorsRuleAllowedMethodsItemGET), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemPUT)}, AllowedOrigins: []*string{ - to.StringPtr("http://www.abc23.com"), - to.StringPtr("https://www.fabrikam.com/*")}, + to.Ptr("http://www.abc23.com"), + to.Ptr("https://www.fabrikam.com/*")}, ExposedHeaders: []*string{ - to.StringPtr("x-ms-meta-abc"), - to.StringPtr("x-ms-meta-data*"), - to.StringPtr("x-ms-meta-target*")}, - MaxAgeInSeconds: to.Int32Ptr(2000), + to.Ptr("x-ms-meta-abc"), + to.Ptr("x-ms-meta-data*"), + to.Ptr("x-ms-meta-target*")}, + MaxAgeInSeconds: to.Ptr[int32](2000), }}, }, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueueServicesClientSetServicePropertiesResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/QueueServicesGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/QueueServicesGet.json func ExampleQueueServicesClient_GetServiceProperties() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewQueueServicesClient("", cred, nil) + client, err := armstorage.NewQueueServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetServiceProperties(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.QueueServicesClientGetServicePropertiesResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_skus_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_skus_client_test.go index 2780c5e6b5d4..e3e261c6f5b9 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_skus_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_skus_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,18 +16,29 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/SKUList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/SKUList.json func ExampleSKUsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewSKUsClient("", cred, nil) - res, err := client.List(ctx, - nil) + client, err := armstorage.NewSKUsClient("", cred, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.List(nil) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + return + } + for _, v := range nextResult.Value { + // TODO: use page item + _ = v + } } - log.Printf("Response result: %#v\n", res.SKUsClientListResult) } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_storageaccounts_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_storageaccounts_client_test.go index 7aec1b44e814..0d827df60ea8 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_storageaccounts_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_storageaccounts_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -19,112 +19,145 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountCheckNameAvailability.json func ExampleAccountsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.CheckNameAvailability(ctx, armstorage.AccountCheckNameAvailabilityParameters{ - Name: to.StringPtr(""), - Type: to.StringPtr(""), + Name: to.Ptr(""), + Type: to.Ptr(""), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.AccountsClientCheckNameAvailabilityResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/NfsV3AccountCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/NfsV3AccountCreate.json func ExampleAccountsClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginCreate(ctx, "", "", armstorage.AccountCreateParameters{ - Kind: armstorage.Kind("BlockBlobStorage").ToPtr(), - Location: to.StringPtr(""), + Kind: to.Ptr(armstorage.KindBlockBlobStorage), + Location: to.Ptr(""), Properties: &armstorage.AccountPropertiesCreateParameters{ - IsHnsEnabled: to.BoolPtr(true), - EnableNfsV3: to.BoolPtr(true), + IsHnsEnabled: to.Ptr(true), + EnableNfsV3: to.Ptr(true), NetworkRuleSet: &armstorage.NetworkRuleSet{ - Bypass: armstorage.Bypass("AzureServices").ToPtr(), - DefaultAction: armstorage.DefaultActionAllow.ToPtr(), + Bypass: to.Ptr(armstorage.BypassAzureServices), + DefaultAction: to.Ptr(armstorage.DefaultActionAllow), IPRules: []*armstorage.IPRule{}, VirtualNetworkRules: []*armstorage.VirtualNetworkRule{ { - VirtualNetworkResourceID: to.StringPtr(""), + VirtualNetworkResourceID: to.Ptr(""), }}, }, - EnableHTTPSTrafficOnly: to.BoolPtr(false), + EnableHTTPSTrafficOnly: to.Ptr(false), }, SKU: &armstorage.SKU{ - Name: armstorage.SKUName("Premium_LRS").ToPtr(), + Name: to.Ptr(armstorage.SKUNamePremiumLRS), }, }, - nil) + &armstorage.AccountsClientBeginCreateOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.AccountsClientCreateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountDelete.json func ExampleAccountsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountGetProperties.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountGetAsyncSkuConversionStatus.json func ExampleAccountsClient_GetProperties() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetProperties(ctx, "", "", &armstorage.AccountsClientGetPropertiesOptions{Expand: nil}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.AccountsClientGetPropertiesResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountEnableAD.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountEnableAD.json func ExampleAccountsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", @@ -132,274 +165,347 @@ func ExampleAccountsClient_Update() { Properties: &armstorage.AccountPropertiesUpdateParameters{ AzureFilesIdentityBasedAuthentication: &armstorage.AzureFilesIdentityBasedAuthentication{ ActiveDirectoryProperties: &armstorage.ActiveDirectoryProperties{ - AccountType: armstorage.ActiveDirectoryPropertiesAccountType("User").ToPtr(), - AzureStorageSid: to.StringPtr(""), - DomainGUID: to.StringPtr(""), - DomainName: to.StringPtr(""), - DomainSid: to.StringPtr(""), - ForestName: to.StringPtr(""), - NetBiosDomainName: to.StringPtr(""), - SamAccountName: to.StringPtr(""), + AccountType: to.Ptr(armstorage.ActiveDirectoryPropertiesAccountTypeUser), + AzureStorageSid: to.Ptr(""), + DomainGUID: to.Ptr(""), + DomainName: to.Ptr(""), + DomainSid: to.Ptr(""), + ForestName: to.Ptr(""), + NetBiosDomainName: to.Ptr(""), + SamAccountName: to.Ptr(""), }, - DirectoryServiceOptions: armstorage.DirectoryServiceOptions("AD").ToPtr(), + DirectoryServiceOptions: to.Ptr(armstorage.DirectoryServiceOptionsAD), }, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.AccountsClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountList.json func ExampleAccountsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List(nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListByResourceGroup.json func ExampleAccountsClient_ListByResourceGroup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.ListByResourceGroup("", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountListKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListKeys.json func ExampleAccountsClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListKeys(ctx, "", "", &armstorage.AccountsClientListKeysOptions{Expand: nil}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.AccountsClientListKeysResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountRegenerateKerbKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountRegenerateKerbKey.json func ExampleAccountsClient_RegenerateKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.RegenerateKey(ctx, "", "", armstorage.AccountRegenerateKeyParameters{ - KeyName: to.StringPtr(""), + KeyName: to.Ptr(""), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.AccountsClientRegenerateKeyResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountListAccountSAS.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListAccountSAS.json func ExampleAccountsClient_ListAccountSAS() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListAccountSAS(ctx, "", "", armstorage.AccountSasParameters{ - KeyToSign: to.StringPtr(""), - SharedAccessExpiryTime: to.TimePtr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-24T11:42:03.1567373Z"); return t }()), - Permissions: armstorage.Permissions("r").ToPtr(), - Protocols: armstorage.HTTPProtocolHTTPSHTTP.ToPtr(), - ResourceTypes: armstorage.SignedResourceTypes("s").ToPtr(), - Services: armstorage.Services("b").ToPtr(), - SharedAccessStartTime: to.TimePtr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-24T10:42:03.1567373Z"); return t }()), + KeyToSign: to.Ptr(""), + SharedAccessExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-24T11:42:03.1567373Z"); return t }()), + Permissions: to.Ptr(armstorage.PermissionsR), + Protocols: to.Ptr(armstorage.HTTPProtocolHTTPSHTTP), + ResourceTypes: to.Ptr(armstorage.SignedResourceTypesS), + Services: to.Ptr(armstorage.ServicesB), + SharedAccessStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-24T10:42:03.1567373Z"); return t }()), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.AccountsClientListAccountSASResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountListServiceSAS.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListServiceSAS.json func ExampleAccountsClient_ListServiceSAS() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.ListServiceSAS(ctx, "", "", armstorage.ServiceSasParameters{ - CanonicalizedResource: to.StringPtr(""), - SharedAccessExpiryTime: to.TimePtr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-24T11:32:48.8457197Z"); return t }()), - Permissions: armstorage.Permissions("l").ToPtr(), - Resource: armstorage.SignedResource("c").ToPtr(), + CanonicalizedResource: to.Ptr(""), + SharedAccessExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-24T11:32:48.8457197Z"); return t }()), + Permissions: to.Ptr(armstorage.PermissionsL), + Resource: to.Ptr(armstorage.SignedResourceC), }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.AccountsClientListServiceSASResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountFailover.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountFailover.json func ExampleAccountsClient_BeginFailover() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginFailover(ctx, "", "", - nil) + &armstorage.AccountsClientBeginFailoverOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountHierarchicalNamespaceMigration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountHierarchicalNamespaceMigration.json func ExampleAccountsClient_BeginHierarchicalNamespaceMigration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginHierarchicalNamespaceMigration(ctx, "", "", "", - nil) + &armstorage.AccountsClientBeginHierarchicalNamespaceMigrationOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountAbortHierarchicalNamespaceMigration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountAbortHierarchicalNamespaceMigration.json func ExampleAccountsClient_BeginAbortHierarchicalNamespaceMigration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginAbortHierarchicalNamespaceMigration(ctx, "", "", - nil) + &armstorage.AccountsClientBeginAbortHierarchicalNamespaceMigrationOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/BlobRangesRestore.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/BlobRangesRestore.json func ExampleAccountsClient_BeginRestoreBlobRanges() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } poller, err := client.BeginRestoreBlobRanges(ctx, "", "", armstorage.BlobRestoreParameters{ BlobRanges: []*armstorage.BlobRestoreRange{ { - EndRange: to.StringPtr(""), - StartRange: to.StringPtr(""), + EndRange: to.Ptr(""), + StartRange: to.Ptr(""), }, { - EndRange: to.StringPtr(""), - StartRange: to.StringPtr(""), + EndRange: to.Ptr(""), + StartRange: to.Ptr(""), }}, - TimeToRestore: to.TimePtr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-20T15:30:00.0000000Z"); return t }()), + TimeToRestore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-20T15:30:00.0000000Z"); return t }()), }, - nil) + &armstorage.AccountsClientBeginRestoreBlobRangesOptions{ResumeToken: ""}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { - log.Fatal(err) + log.Fatalf("failed to pull the result: %v", err) + return } - log.Printf("Response result: %#v\n", res.AccountsClientRestoreBlobRangesResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountRevokeUserDelegationKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountRevokeUserDelegationKeys.json func ExampleAccountsClient_RevokeUserDelegationKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewAccountsClient("", cred, nil) + client, err := armstorage.NewAccountsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.RevokeUserDelegationKeys(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_table_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_table_client_test.go index f619695afe10..d23f74d97a2a 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_table_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_table_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,102 +16,133 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/TableOperationPut.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/TableOperationPut.json func ExampleTableClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewTableClient("", cred, nil) + client, err := armstorage.NewTableClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Create(ctx, "", "", "", - nil) + &armstorage.TableClientCreateOptions{Parameters: nil}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TableClientCreateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/TableOperationPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/TableOperationPatch.json func ExampleTableClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewTableClient("", cred, nil) + client, err := armstorage.NewTableClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Update(ctx, "", "", "", - nil) + &armstorage.TableClientUpdateOptions{Parameters: nil}) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TableClientUpdateResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/TableOperationGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/TableOperationGet.json func ExampleTableClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewTableClient("", cred, nil) + client, err := armstorage.NewTableClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.Get(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TableClientGetResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/TableOperationDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/TableOperationDelete.json func ExampleTableClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewTableClient("", cred, nil) + client, err := armstorage.NewTableClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } _, err = client.Delete(ctx, "", "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/TableOperationList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/TableOperationList.json func ExampleTableClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewTableClient("", cred, nil) + client, err := armstorage.NewTableClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } pager := client.List("", "", nil) - for { - nextResult := pager.NextPage(ctx) - if err := pager.Err(); err != nil { + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { log.Fatalf("failed to advance page: %v", err) + return } - if !nextResult { - break - } - for _, v := range pager.PageResponse().Value { - log.Printf("Pager result: %#v\n", v) + for _, v := range nextResult.Value { + // TODO: use page item + _ = v } } } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_tableservices_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_tableservices_client_test.go index 7aaa88321608..3309afaf661e 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_tableservices_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_tableservices_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -17,32 +17,44 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/TableServicesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/TableServicesList.json func ExampleTableServicesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewTableServicesClient("", cred, nil) + client, err := armstorage.NewTableServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.List(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TableServicesClientListResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/TableServicesPut.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/TableServicesPut.json func ExampleTableServicesClient_SetServiceProperties() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewTableServicesClient("", cred, nil) + client, err := armstorage.NewTableServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.SetServiceProperties(ctx, "", "", @@ -52,73 +64,82 @@ func ExampleTableServicesClient_SetServiceProperties() { CorsRules: []*armstorage.CorsRule{ { AllowedHeaders: []*string{ - to.StringPtr("x-ms-meta-abc"), - to.StringPtr("x-ms-meta-data*"), - to.StringPtr("x-ms-meta-target*")}, + to.Ptr("x-ms-meta-abc"), + to.Ptr("x-ms-meta-data*"), + to.Ptr("x-ms-meta-target*")}, AllowedMethods: []*armstorage.CorsRuleAllowedMethodsItem{ - armstorage.CorsRuleAllowedMethodsItem("GET").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("HEAD").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("POST").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("OPTIONS").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("MERGE").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("PUT").ToPtr()}, + to.Ptr(armstorage.CorsRuleAllowedMethodsItemGET), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemHEAD), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemPOST), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemOPTIONS), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemMERGE), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemPUT)}, AllowedOrigins: []*string{ - to.StringPtr("http://www.contoso.com"), - to.StringPtr("http://www.fabrikam.com")}, + to.Ptr("http://www.contoso.com"), + to.Ptr("http://www.fabrikam.com")}, ExposedHeaders: []*string{ - to.StringPtr("x-ms-meta-*")}, - MaxAgeInSeconds: to.Int32Ptr(100), + to.Ptr("x-ms-meta-*")}, + MaxAgeInSeconds: to.Ptr[int32](100), }, { AllowedHeaders: []*string{ - to.StringPtr("*")}, + to.Ptr("*")}, AllowedMethods: []*armstorage.CorsRuleAllowedMethodsItem{ - armstorage.CorsRuleAllowedMethodsItem("GET").ToPtr()}, + to.Ptr(armstorage.CorsRuleAllowedMethodsItemGET)}, AllowedOrigins: []*string{ - to.StringPtr("*")}, + to.Ptr("*")}, ExposedHeaders: []*string{ - to.StringPtr("*")}, - MaxAgeInSeconds: to.Int32Ptr(2), + to.Ptr("*")}, + MaxAgeInSeconds: to.Ptr[int32](2), }, { AllowedHeaders: []*string{ - to.StringPtr("x-ms-meta-12345675754564*")}, + to.Ptr("x-ms-meta-12345675754564*")}, AllowedMethods: []*armstorage.CorsRuleAllowedMethodsItem{ - armstorage.CorsRuleAllowedMethodsItem("GET").ToPtr(), - armstorage.CorsRuleAllowedMethodsItem("PUT").ToPtr()}, + to.Ptr(armstorage.CorsRuleAllowedMethodsItemGET), + to.Ptr(armstorage.CorsRuleAllowedMethodsItemPUT)}, AllowedOrigins: []*string{ - to.StringPtr("http://www.abc23.com"), - to.StringPtr("https://www.fabrikam.com/*")}, + to.Ptr("http://www.abc23.com"), + to.Ptr("https://www.fabrikam.com/*")}, ExposedHeaders: []*string{ - to.StringPtr("x-ms-meta-abc"), - to.StringPtr("x-ms-meta-data*"), - to.StringPtr("x-ms-meta-target*")}, - MaxAgeInSeconds: to.Int32Ptr(2000), + to.Ptr("x-ms-meta-abc"), + to.Ptr("x-ms-meta-data*"), + to.Ptr("x-ms-meta-target*")}, + MaxAgeInSeconds: to.Ptr[int32](2000), }}, }, }, }, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TableServicesClientSetServicePropertiesResult) + // TODO: use response item + _ = res } -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/TableServicesGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/TableServicesGet.json func ExampleTableServicesClient_GetServiceProperties() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewTableServicesClient("", cred, nil) + client, err := armstorage.NewTableServicesClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + return + } res, err := client.GetServiceProperties(ctx, "", "", nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to finish the request: %v", err) + return } - log.Printf("Response result: %#v\n", res.TableServicesClientGetServicePropertiesResult) + // TODO: use response item + _ = res } diff --git a/sdk/resourcemanager/storage/armstorage/ze_generated_example_usages_client_test.go b/sdk/resourcemanager/storage/armstorage/ze_generated_example_usages_client_test.go index fa8456cdcba3..fdcf9ca2dd58 100644 --- a/sdk/resourcemanager/storage/armstorage/ze_generated_example_usages_client_test.go +++ b/sdk/resourcemanager/storage/armstorage/ze_generated_example_usages_client_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -16,19 +16,30 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" ) -// x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/StorageAccountListLocationUsage.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storage/resource-manager/Microsoft.Storage/stable/2021-09-01/examples/StorageAccountListLocationUsage.json func ExampleUsagesClient_ListByLocation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) + return } ctx := context.Background() - client := armstorage.NewUsagesClient("", cred, nil) - res, err := client.ListByLocation(ctx, - "", - nil) + client, err := armstorage.NewUsagesClient("", cred, nil) if err != nil { - log.Fatal(err) + log.Fatalf("failed to create client: %v", err) + return + } + pager := client.ListByLocation("", + nil) + for pager.More() { + nextResult, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + return + } + for _, v := range nextResult.Value { + // TODO: use page item + _ = v + } } - log.Printf("Response result: %#v\n", res.UsagesClientListByLocationResult) } diff --git a/sdk/resourcemanager/storage/armstorage/zt_blobcontainers_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_blobcontainers_client_live_test.go index a56e1bcb1188..0e15b02263de 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_blobcontainers_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_blobcontainers_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,15 +8,14 @@ package armstorage_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" - "testing" - "time" ) type BlobContainersClientTestSuite struct { @@ -54,7 +53,8 @@ func TestBlobContainersClient(t *testing.T) { func (testsuite *BlobContainersClientTestSuite) TestBlobContainersCRUD() { // create storage account - storageAccountsClient := armstorage.NewAccountsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + storageAccountsClient, err := armstorage.NewAccountsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) scName := "gotestaccount1" pollerResp, err := storageAccountsClient.BeginCreate( testsuite.ctx, @@ -62,52 +62,40 @@ func (testsuite *BlobContainersClientTestSuite) TestBlobContainersCRUD() { scName, armstorage.AccountCreateParameters{ SKU: &armstorage.SKU{ - Name: armstorage.SKUNameStandardGRS.ToPtr(), + Name: to.Ptr(armstorage.SKUNameStandardGRS), }, - Kind: armstorage.KindStorageV2.ToPtr(), - Location: to.StringPtr(testsuite.location), + Kind: to.Ptr(armstorage.KindStorageV2), + Location: to.Ptr(testsuite.location), Properties: &armstorage.AccountPropertiesCreateParameters{ Encryption: &armstorage.Encryption{ Services: &armstorage.EncryptionServices{ File: &armstorage.EncryptionService{ - KeyType: armstorage.KeyTypeAccount.ToPtr(), - Enabled: to.BoolPtr(true), + KeyType: to.Ptr(armstorage.KeyTypeAccount), + Enabled: to.Ptr(true), }, Blob: &armstorage.EncryptionService{ - KeyType: armstorage.KeyTypeAccount.ToPtr(), - Enabled: to.BoolPtr(true), + KeyType: to.Ptr(armstorage.KeyTypeAccount), + Enabled: to.Ptr(true), }, }, - KeySource: armstorage.KeySourceMicrosoftStorage.ToPtr(), + KeySource: to.Ptr(armstorage.KeySourceMicrosoftStorage), }, }, Tags: map[string]*string{ - "key1": to.StringPtr("value1"), - "key2": to.StringPtr("value2"), + "key1": to.Ptr("value1"), + "key2": to.Ptr("value2"), }, }, nil, ) testsuite.Require().NoError(err) - var resp armstorage.AccountsClientCreateResponse - if recording.GetRecordMode() == recording.PlaybackMode { - for { - _, err = pollerResp.Poller.Poll(testsuite.ctx) - testsuite.Require().NoError(err) - if pollerResp.Poller.Done() { - resp, err = pollerResp.Poller.FinalResponse(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - } - } else { - resp, err = pollerResp.PollUntilDone(testsuite.ctx, 30*time.Second) - testsuite.Require().NoError(err) - } + resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + testsuite.Require().NoError(err) testsuite.Require().Equal(scName, *resp.Name) // put container - blobContainersClient := armstorage.NewBlobContainersClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + blobContainersClient, err := armstorage.NewBlobContainersClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) blobContainerName := "go-test-container" blobResp, err := blobContainersClient.Create(testsuite.ctx, testsuite.resourceGroupName, scName, blobContainerName, armstorage.BlobContainer{}, nil) testsuite.Require().NoError(err) @@ -121,9 +109,9 @@ func (testsuite *BlobContainersClientTestSuite) TestBlobContainersCRUD() { blobContainerName, armstorage.BlobContainer{ ContainerProperties: &armstorage.ContainerProperties{ - PublicAccess: armstorage.PublicAccessContainer.ToPtr(), + PublicAccess: to.Ptr(armstorage.PublicAccessContainer), Metadata: map[string]*string{ - "metadata": to.StringPtr("true"), + "metadata": to.Ptr("true"), }, }, }, @@ -139,8 +127,7 @@ func (testsuite *BlobContainersClientTestSuite) TestBlobContainersCRUD() { // list listPager := blobContainersClient.List(testsuite.resourceGroupName, scName, nil) - testsuite.Require().NoError(listPager.Err()) - testsuite.Require().True(listPager.NextPage(testsuite.ctx)) + testsuite.Require().True(listPager.More()) // clear legal hold holdResp, err := blobContainersClient.ClearLegalHold( @@ -150,9 +137,9 @@ func (testsuite *BlobContainersClientTestSuite) TestBlobContainersCRUD() { blobContainerName, armstorage.LegalHold{ Tags: []*string{ - to.StringPtr("tag1"), - to.StringPtr("tag2"), - to.StringPtr("tag3"), + to.Ptr("tag1"), + to.Ptr("tag2"), + to.Ptr("tag3"), }, }, nil, @@ -168,13 +155,12 @@ func (testsuite *BlobContainersClientTestSuite) TestBlobContainersCRUD() { blobContainerName, &armstorage.BlobContainersClientLeaseOptions{ Parameters: &armstorage.LeaseContainerRequest{ - Action: armstorage.LeaseContainerRequestActionAcquire.ToPtr(), - LeaseDuration: to.Int32Ptr(-1), + Action: to.Ptr(armstorage.LeaseContainerRequestActionAcquire), + LeaseDuration: to.Ptr[int32](-1), }, }, ) testsuite.Require().NoError(err) - testsuite.Require().Equal(200, leaseResp.RawResponse.StatusCode) // break lease breakResp, err := blobContainersClient.Lease( @@ -184,7 +170,7 @@ func (testsuite *BlobContainersClientTestSuite) TestBlobContainersCRUD() { blobContainerName, &armstorage.BlobContainersClientLeaseOptions{ Parameters: &armstorage.LeaseContainerRequest{ - Action: armstorage.LeaseContainerRequestActionBreak.ToPtr(), + Action: to.Ptr(armstorage.LeaseContainerRequestActionBreak), LeaseID: leaseResp.LeaseID, }, }, @@ -193,7 +179,6 @@ func (testsuite *BlobContainersClientTestSuite) TestBlobContainersCRUD() { testsuite.Require().Equal("0", *breakResp.LeaseTimeSeconds) // delete - delResp, err := blobContainersClient.Delete(testsuite.ctx, testsuite.resourceGroupName, scName, blobContainerName, nil) + _, err = blobContainersClient.Delete(testsuite.ctx, testsuite.resourceGroupName, scName, blobContainerName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(200, delResp.RawResponse.StatusCode) } diff --git a/sdk/resourcemanager/storage/armstorage/zt_encryptionscopes_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_encryptionscopes_client_live_test.go index 121252a5c8fb..7d1ad09af133 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_encryptionscopes_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_encryptionscopes_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,15 +8,14 @@ package armstorage_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" - "testing" - "time" ) type EncryptionScopesClientTestSuite struct { @@ -54,7 +53,8 @@ func TestEncryptionScopesClient(t *testing.T) { func (testsuite *EncryptionScopesClientTestSuite) TestEncryptionScopesCRUD() { // create storage account - storageAccountsClient := armstorage.NewAccountsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + storageAccountsClient, err := armstorage.NewAccountsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) scName := "gotestaccount2" pollerResp, err := storageAccountsClient.BeginCreate( testsuite.ctx, @@ -62,52 +62,40 @@ func (testsuite *EncryptionScopesClientTestSuite) TestEncryptionScopesCRUD() { scName, armstorage.AccountCreateParameters{ SKU: &armstorage.SKU{ - Name: armstorage.SKUNameStandardGRS.ToPtr(), + Name: to.Ptr(armstorage.SKUNameStandardGRS), }, - Kind: armstorage.KindStorageV2.ToPtr(), - Location: to.StringPtr(testsuite.location), + Kind: to.Ptr(armstorage.KindStorageV2), + Location: to.Ptr(testsuite.location), Properties: &armstorage.AccountPropertiesCreateParameters{ Encryption: &armstorage.Encryption{ Services: &armstorage.EncryptionServices{ File: &armstorage.EncryptionService{ - KeyType: armstorage.KeyTypeAccount.ToPtr(), - Enabled: to.BoolPtr(true), + KeyType: to.Ptr(armstorage.KeyTypeAccount), + Enabled: to.Ptr(true), }, Blob: &armstorage.EncryptionService{ - KeyType: armstorage.KeyTypeAccount.ToPtr(), - Enabled: to.BoolPtr(true), + KeyType: to.Ptr(armstorage.KeyTypeAccount), + Enabled: to.Ptr(true), }, }, - KeySource: armstorage.KeySourceMicrosoftStorage.ToPtr(), + KeySource: to.Ptr(armstorage.KeySourceMicrosoftStorage), }, }, Tags: map[string]*string{ - "key1": to.StringPtr("value1"), - "key2": to.StringPtr("value2"), + "key1": to.Ptr("value1"), + "key2": to.Ptr("value2"), }, }, nil, ) testsuite.Require().NoError(err) - var resp armstorage.AccountsClientCreateResponse - if recording.GetRecordMode() == recording.PlaybackMode { - for { - _, err = pollerResp.Poller.Poll(testsuite.ctx) - testsuite.Require().NoError(err) - if pollerResp.Poller.Done() { - resp, err = pollerResp.Poller.FinalResponse(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - } - } else { - resp, err = pollerResp.PollUntilDone(testsuite.ctx, 30*time.Second) - testsuite.Require().NoError(err) - } + resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + testsuite.Require().NoError(err) testsuite.Require().Equal(scName, *resp.Name) // put file services - encryptionScopesClient := armstorage.NewEncryptionScopesClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + encryptionScopesClient, err := armstorage.NewEncryptionScopesClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) encryptionScopeName := "go-test-encryption" putResp, err := encryptionScopesClient.Put( testsuite.ctx, @@ -116,8 +104,8 @@ func (testsuite *EncryptionScopesClientTestSuite) TestEncryptionScopesCRUD() { encryptionScopeName, armstorage.EncryptionScope{ EncryptionScopeProperties: &armstorage.EncryptionScopeProperties{ - Source: armstorage.EncryptionScopeSourceMicrosoftStorage.ToPtr(), - State: armstorage.EncryptionScopeStateEnabled.ToPtr(), + Source: to.Ptr(armstorage.EncryptionScopeSourceMicrosoftStorage), + State: to.Ptr(armstorage.EncryptionScopeStateEnabled), }, }, nil, @@ -132,8 +120,7 @@ func (testsuite *EncryptionScopesClientTestSuite) TestEncryptionScopesCRUD() { // list listPager := encryptionScopesClient.List(testsuite.resourceGroupName, scName, nil) - testsuite.Require().NoError(err) - testsuite.Require().True(listPager.NextPage(testsuite.ctx)) + testsuite.Require().True(listPager.More()) // patch patchResp, err := encryptionScopesClient.Patch( @@ -143,8 +130,8 @@ func (testsuite *EncryptionScopesClientTestSuite) TestEncryptionScopesCRUD() { encryptionScopeName, armstorage.EncryptionScope{ EncryptionScopeProperties: &armstorage.EncryptionScopeProperties{ - Source: armstorage.EncryptionScopeSourceMicrosoftStorage.ToPtr(), - State: armstorage.EncryptionScopeStateEnabled.ToPtr(), + Source: to.Ptr(armstorage.EncryptionScopeSourceMicrosoftStorage), + State: to.Ptr(armstorage.EncryptionScopeStateEnabled), }, }, nil, diff --git a/sdk/resourcemanager/storage/armstorage/zt_managementpolicies_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_managementpolicies_client_live_test.go index 04fbe79a791b..4d1c6f30767c 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_managementpolicies_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_managementpolicies_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,15 +8,14 @@ package armstorage_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" - "testing" - "time" ) type ManagementPoliciesClientTestSuite struct { @@ -54,7 +53,8 @@ func TestManagementPoliciesClient(t *testing.T) { func (testsuite *ManagementPoliciesClientTestSuite) TestManagementPoliciesCRUD() { // create storage account - storageAccountsClient := armstorage.NewAccountsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + storageAccountsClient, err := armstorage.NewAccountsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) scName := "gotestaccount3" pollerResp, err := storageAccountsClient.BeginCreate( testsuite.ctx, @@ -62,52 +62,40 @@ func (testsuite *ManagementPoliciesClientTestSuite) TestManagementPoliciesCRUD() scName, armstorage.AccountCreateParameters{ SKU: &armstorage.SKU{ - Name: armstorage.SKUNameStandardGRS.ToPtr(), + Name: to.Ptr(armstorage.SKUNameStandardGRS), }, - Kind: armstorage.KindStorageV2.ToPtr(), - Location: to.StringPtr(testsuite.location), + Kind: to.Ptr(armstorage.KindStorageV2), + Location: to.Ptr(testsuite.location), Properties: &armstorage.AccountPropertiesCreateParameters{ Encryption: &armstorage.Encryption{ Services: &armstorage.EncryptionServices{ File: &armstorage.EncryptionService{ - KeyType: armstorage.KeyTypeAccount.ToPtr(), - Enabled: to.BoolPtr(true), + KeyType: to.Ptr(armstorage.KeyTypeAccount), + Enabled: to.Ptr(true), }, Blob: &armstorage.EncryptionService{ - KeyType: armstorage.KeyTypeAccount.ToPtr(), - Enabled: to.BoolPtr(true), + KeyType: to.Ptr(armstorage.KeyTypeAccount), + Enabled: to.Ptr(true), }, }, - KeySource: armstorage.KeySourceMicrosoftStorage.ToPtr(), + KeySource: to.Ptr(armstorage.KeySourceMicrosoftStorage), }, }, Tags: map[string]*string{ - "key1": to.StringPtr("value1"), - "key2": to.StringPtr("value2"), + "key1": to.Ptr("value1"), + "key2": to.Ptr("value2"), }, }, nil, ) testsuite.Require().NoError(err) - var resp armstorage.AccountsClientCreateResponse - if recording.GetRecordMode() == recording.PlaybackMode { - for { - _, err = pollerResp.Poller.Poll(testsuite.ctx) - testsuite.Require().NoError(err) - if pollerResp.Poller.Done() { - resp, err = pollerResp.Poller.FinalResponse(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - } - } else { - resp, err = pollerResp.PollUntilDone(testsuite.ctx, 30*time.Second) - testsuite.Require().NoError(err) - } + resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + testsuite.Require().NoError(err) testsuite.Require().Equal(scName, *resp.Name) // create management policy - managementPoliciesClient := armstorage.NewManagementPoliciesClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + managementPoliciesClient, err := armstorage.NewManagementPoliciesClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) mpResp, err := managementPoliciesClient.CreateOrUpdate( testsuite.ctx, testsuite.resourceGroupName, @@ -118,33 +106,33 @@ func (testsuite *ManagementPoliciesClientTestSuite) TestManagementPoliciesCRUD() Policy: &armstorage.ManagementPolicySchema{ Rules: []*armstorage.ManagementPolicyRule{ { - Enabled: to.BoolPtr(true), - Name: to.StringPtr("olcmtest"), - Type: armstorage.RuleTypeLifecycle.ToPtr(), + Enabled: to.Ptr(true), + Name: to.Ptr("olcmtest"), + Type: to.Ptr(armstorage.RuleTypeLifecycle), Definition: &armstorage.ManagementPolicyDefinition{ Filters: &armstorage.ManagementPolicyFilter{ BlobTypes: []*string{ - to.StringPtr("blockBlob"), + to.Ptr("blockBlob"), }, PrefixMatch: []*string{ - to.StringPtr("olcmtestcontainer"), + to.Ptr("olcmtestcontainer"), }, }, Actions: &armstorage.ManagementPolicyAction{ BaseBlob: &armstorage.ManagementPolicyBaseBlob{ TierToCool: &armstorage.DateAfterModification{ - DaysAfterModificationGreaterThan: to.Float32Ptr(30), + DaysAfterModificationGreaterThan: to.Ptr[float32](30), }, TierToArchive: &armstorage.DateAfterModification{ - DaysAfterModificationGreaterThan: to.Float32Ptr(90), + DaysAfterModificationGreaterThan: to.Ptr[float32](90), }, Delete: &armstorage.DateAfterModification{ - DaysAfterModificationGreaterThan: to.Float32Ptr(1000), + DaysAfterModificationGreaterThan: to.Ptr[float32](1000), }, }, Snapshot: &armstorage.ManagementPolicySnapShot{ Delete: &armstorage.DateAfterCreation{ - DaysAfterCreationGreaterThan: to.Float32Ptr(30), + DaysAfterCreationGreaterThan: to.Ptr[float32](30), }, }, }, @@ -165,7 +153,6 @@ func (testsuite *ManagementPoliciesClientTestSuite) TestManagementPoliciesCRUD() testsuite.Require().Equal("DefaultManagementPolicy", *getResp.Name) // delete management policy - delResp, err := managementPoliciesClient.Delete(testsuite.ctx, testsuite.resourceGroupName, scName, "default", nil) + _, err = managementPoliciesClient.Delete(testsuite.ctx, testsuite.resourceGroupName, scName, "default", nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(200, delResp.RawResponse.StatusCode) } diff --git a/sdk/resourcemanager/storage/armstorage/zt_operations_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_operations_client_live_test.go index 991c24af0c20..05d29fcae774 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_operations_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_operations_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,13 @@ package armstorage_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" - "testing" ) type OperationsClientTestSuite struct { @@ -50,8 +51,8 @@ func TestOperationsClient(t *testing.T) { } func (testsuite *OperationsClientTestSuite) TestOperations() { - operationsClient := armstorage.NewOperationsClient(testsuite.cred, testsuite.options) - resp, err := operationsClient.List(testsuite.ctx, nil) + operationsClient, err := armstorage.NewOperationsClient(testsuite.cred, testsuite.options) testsuite.Require().NoError(err) - testsuite.Require().Greater(len(resp.Value), 1) + resp := operationsClient.List(nil) + testsuite.Require().True(resp.More()) } diff --git a/sdk/resourcemanager/storage/armstorage/zt_skus_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_skus_client_live_test.go index f67b373e96f4..0dc9252a817b 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_skus_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_skus_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,13 @@ package armstorage_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" - "testing" ) type SKUsClientTestSuite struct { @@ -50,8 +51,8 @@ func TestSKUsClient(t *testing.T) { } func (testsuite *SKUsClientTestSuite) TestSKUs() { - skusClient := armstorage.NewSKUsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) - resp, err := skusClient.List(testsuite.ctx, nil) + skusClient, err := armstorage.NewSKUsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) - testsuite.Require().Greater(len(resp.Value), 1) + resp := skusClient.List(nil) + testsuite.Require().True(resp.More()) } diff --git a/sdk/resourcemanager/storage/armstorage/zt_storageaccounts_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_storageaccounts_client_live_test.go index 64bb1963cd7c..2f82bd0f17f6 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_storageaccounts_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_storageaccounts_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,15 +8,14 @@ package armstorage_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" - "testing" - "time" ) type StorageAccountsClientTestSuite struct { @@ -54,7 +53,8 @@ func TestStorageAccountsClient(t *testing.T) { func (testsuite *StorageAccountsClientTestSuite) TestStorageAccountsCRUD() { // create storage account - storageAccountsClient := armstorage.NewAccountsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + storageAccountsClient, err := armstorage.NewAccountsClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) scName := "gotestaccount" pollerResp, err := storageAccountsClient.BeginCreate( testsuite.ctx, @@ -62,56 +62,43 @@ func (testsuite *StorageAccountsClientTestSuite) TestStorageAccountsCRUD() { scName, armstorage.AccountCreateParameters{ SKU: &armstorage.SKU{ - Name: armstorage.SKUNameStandardGRS.ToPtr(), + Name: to.Ptr(armstorage.SKUNameStandardGRS), }, - Kind: armstorage.KindStorageV2.ToPtr(), - Location: to.StringPtr(testsuite.location), + Kind: to.Ptr(armstorage.KindStorageV2), + Location: to.Ptr(testsuite.location), Properties: &armstorage.AccountPropertiesCreateParameters{ Encryption: &armstorage.Encryption{ Services: &armstorage.EncryptionServices{ File: &armstorage.EncryptionService{ - KeyType: armstorage.KeyTypeAccount.ToPtr(), - Enabled: to.BoolPtr(true), + KeyType: to.Ptr(armstorage.KeyTypeAccount), + Enabled: to.Ptr(true), }, Blob: &armstorage.EncryptionService{ - KeyType: armstorage.KeyTypeAccount.ToPtr(), - Enabled: to.BoolPtr(true), + KeyType: to.Ptr(armstorage.KeyTypeAccount), + Enabled: to.Ptr(true), }, }, - KeySource: armstorage.KeySourceMicrosoftStorage.ToPtr(), + KeySource: to.Ptr(armstorage.KeySourceMicrosoftStorage), }, }, Tags: map[string]*string{ - "key1": to.StringPtr("value1"), - "key2": to.StringPtr("value2"), + "key1": to.Ptr("value1"), + "key2": to.Ptr("value2"), }, }, nil, ) testsuite.Require().NoError(err) - var resp armstorage.AccountsClientCreateResponse - if recording.GetRecordMode() == recording.PlaybackMode { - for { - _, err = pollerResp.Poller.Poll(testsuite.ctx) - testsuite.Require().NoError(err) - if pollerResp.Poller.Done() { - resp, err = pollerResp.Poller.FinalResponse(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - } - } else { - resp, err = pollerResp.PollUntilDone(testsuite.ctx, 30*time.Second) - testsuite.Require().NoError(err) - } + resp, err := testutil.PollForTest(testsuite.ctx, pollerResp) + testsuite.Require().NoError(err) testsuite.Require().Equal(scName, *resp.Name) // check name availability check, err := storageAccountsClient.CheckNameAvailability( testsuite.ctx, armstorage.AccountCheckNameAvailabilityParameters{ - Name: to.StringPtr(scName), - Type: to.StringPtr("Microsoft.Storage/storageAccounts"), + Name: to.Ptr(scName), + Type: to.Ptr("Microsoft.Storage/storageAccounts"), }, nil, ) @@ -126,20 +113,20 @@ func (testsuite *StorageAccountsClientTestSuite) TestStorageAccountsCRUD() { armstorage.AccountUpdateParameters{ Properties: &armstorage.AccountPropertiesUpdateParameters{ NetworkRuleSet: &armstorage.NetworkRuleSet{ - DefaultAction: armstorage.DefaultActionAllow.ToPtr(), + DefaultAction: to.Ptr(armstorage.DefaultActionAllow), }, Encryption: &armstorage.Encryption{ Services: &armstorage.EncryptionServices{ File: &armstorage.EncryptionService{ - KeyType: armstorage.KeyTypeAccount.ToPtr(), - Enabled: to.BoolPtr(true), + KeyType: to.Ptr(armstorage.KeyTypeAccount), + Enabled: to.Ptr(true), }, Blob: &armstorage.EncryptionService{ - KeyType: armstorage.KeyTypeAccount.ToPtr(), - Enabled: to.BoolPtr(true), + KeyType: to.Ptr(armstorage.KeyTypeAccount), + Enabled: to.Ptr(true), }, }, - KeySource: armstorage.KeySourceMicrosoftStorage.ToPtr(), + KeySource: to.Ptr(armstorage.KeySourceMicrosoftStorage), }, }, }, @@ -155,13 +142,11 @@ func (testsuite *StorageAccountsClientTestSuite) TestStorageAccountsCRUD() { // list listPager := storageAccountsClient.List(nil) - testsuite.Require().NoError(listPager.Err()) - testsuite.Require().True(listPager.NextPage(testsuite.ctx)) + testsuite.Require().True(listPager.More()) // list by resource group listByResourceGroup := storageAccountsClient.ListByResourceGroup(testsuite.resourceGroupName, nil) - testsuite.Require().NoError(listByResourceGroup.Err()) - testsuite.Require().True(listByResourceGroup.NextPage(testsuite.ctx)) + testsuite.Require().True(listByResourceGroup.More()) // list keys keys, err := storageAccountsClient.ListKeys(testsuite.ctx, testsuite.resourceGroupName, scName, nil) @@ -169,9 +154,8 @@ func (testsuite *StorageAccountsClientTestSuite) TestStorageAccountsCRUD() { testsuite.Require().Greater(len(keys.Keys), 1) // revoke user delegation keys - revokeResp, err := storageAccountsClient.RevokeUserDelegationKeys(testsuite.ctx, testsuite.resourceGroupName, scName, nil) + _, err = storageAccountsClient.RevokeUserDelegationKeys(testsuite.ctx, testsuite.resourceGroupName, scName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(200, revokeResp.RawResponse.StatusCode) // regenerate key regResp, err := storageAccountsClient.RegenerateKey( @@ -179,7 +163,7 @@ func (testsuite *StorageAccountsClientTestSuite) TestStorageAccountsCRUD() { testsuite.resourceGroupName, scName, armstorage.AccountRegenerateKeyParameters{ - KeyName: to.StringPtr("key2"), + KeyName: to.Ptr("key2"), }, nil, ) @@ -187,7 +171,6 @@ func (testsuite *StorageAccountsClientTestSuite) TestStorageAccountsCRUD() { testsuite.Require().Less(1, len(regResp.Keys)) // delete - delResp, err := storageAccountsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, scName, nil) + _, err = storageAccountsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, scName, nil) testsuite.Require().NoError(err) - testsuite.Require().Equal(200, delResp.RawResponse.StatusCode) } diff --git a/sdk/resourcemanager/storage/armstorage/zt_usages_client_live_test.go b/sdk/resourcemanager/storage/armstorage/zt_usages_client_live_test.go index d827d51466f6..0d04913fa07f 100644 --- a/sdk/resourcemanager/storage/armstorage/zt_usages_client_live_test.go +++ b/sdk/resourcemanager/storage/armstorage/zt_usages_client_live_test.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,13 @@ package armstorage_test import ( "context" + "testing" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage" "github.com/stretchr/testify/suite" - "testing" ) type UsagesClientTestSuite struct { @@ -50,8 +51,8 @@ func TestUsagesClient(t *testing.T) { } func (testsuite *UsagesClientTestSuite) TestUsages() { - usagesClient := armstorage.NewUsagesClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) - resp, err := usagesClient.ListByLocation(testsuite.ctx, testsuite.location, nil) + usagesClient, err := armstorage.NewUsagesClient(testsuite.subscriptionID, testsuite.cred, testsuite.options) testsuite.Require().NoError(err) - testsuite.Require().Equal(1, len(resp.Value)) + resp := usagesClient.ListByLocation(testsuite.location, nil) + testsuite.Require().True(resp.More()) } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_accounts_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_accounts_client.go index 7a80e3af81f9..32e47b886fb8 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_accounts_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_accounts_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type AccountsClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *AccountsClient { +func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AccountsClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &AccountsClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // BeginAbortHierarchicalNamespaceMigration - Abort live Migration of storage account to enable Hns @@ -56,22 +61,18 @@ func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential, // 3 and 24 characters in length and use numbers and lower-case letters only. // options - AccountsClientBeginAbortHierarchicalNamespaceMigrationOptions contains the optional parameters for the AccountsClient.BeginAbortHierarchicalNamespaceMigration // method. -func (client *AccountsClient) BeginAbortHierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginAbortHierarchicalNamespaceMigrationOptions) (AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse, error) { - resp, err := client.abortHierarchicalNamespaceMigration(ctx, resourceGroupName, accountName, options) - if err != nil { - return AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse{}, err - } - result := AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse{ - RawResponse: resp, +func (client *AccountsClient) BeginAbortHierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginAbortHierarchicalNamespaceMigrationOptions) (*armruntime.Poller[AccountsClientAbortHierarchicalNamespaceMigrationResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.abortHierarchicalNamespaceMigration(ctx, resourceGroupName, accountName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller(resp, client.pl, &armruntime.NewPollerOptions[AccountsClientAbortHierarchicalNamespaceMigrationResponse]{ + FinalStateVia: armruntime.FinalStateViaLocation, + }) + } else { + return armruntime.NewPollerFromResumeToken[AccountsClientAbortHierarchicalNamespaceMigrationResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("AccountsClient.AbortHierarchicalNamespaceMigration", "location", resp, client.pl) - if err != nil { - return AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse{}, err - } - result.Poller = &AccountsClientAbortHierarchicalNamespaceMigrationPoller{ - pt: pt, - } - return result, nil } // AbortHierarchicalNamespaceMigration - Abort live Migration of storage account to enable Hns @@ -111,7 +112,7 @@ func (client *AccountsClient) abortHierarchicalNamespaceMigrationCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -150,7 +151,7 @@ func (client *AccountsClient) checkNameAvailabilityCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, accountName) @@ -158,7 +159,7 @@ func (client *AccountsClient) checkNameAvailabilityCreateRequest(ctx context.Con // checkNameAvailabilityHandleResponse handles the CheckNameAvailability response. func (client *AccountsClient) checkNameAvailabilityHandleResponse(resp *http.Response) (AccountsClientCheckNameAvailabilityResponse, error) { - result := AccountsClientCheckNameAvailabilityResponse{RawResponse: resp} + result := AccountsClientCheckNameAvailabilityResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.CheckNameAvailabilityResult); err != nil { return AccountsClientCheckNameAvailabilityResponse{}, err } @@ -175,22 +176,16 @@ func (client *AccountsClient) checkNameAvailabilityHandleResponse(resp *http.Res // 3 and 24 characters in length and use numbers and lower-case letters only. // parameters - The parameters to provide for the created account. // options - AccountsClientBeginCreateOptions contains the optional parameters for the AccountsClient.BeginCreate method. -func (client *AccountsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters, options *AccountsClientBeginCreateOptions) (AccountsClientCreatePollerResponse, error) { - resp, err := client.create(ctx, resourceGroupName, accountName, parameters, options) - if err != nil { - return AccountsClientCreatePollerResponse{}, err - } - result := AccountsClientCreatePollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("AccountsClient.Create", "", resp, client.pl) - if err != nil { - return AccountsClientCreatePollerResponse{}, err - } - result.Poller = &AccountsClientCreatePoller{ - pt: pt, +func (client *AccountsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters, options *AccountsClientBeginCreateOptions) (*armruntime.Poller[AccountsClientCreateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.create(ctx, resourceGroupName, accountName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller[AccountsClientCreateResponse](resp, client.pl, nil) + } else { + return armruntime.NewPollerFromResumeToken[AccountsClientCreateResponse](options.ResumeToken, client.pl, nil) } - return result, nil } // Create - Asynchronously creates a new storage account with the specified parameters. If an account is already created and @@ -233,7 +228,7 @@ func (client *AccountsClient) createCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, parameters) @@ -257,7 +252,7 @@ func (client *AccountsClient) Delete(ctx context.Context, resourceGroupName stri if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return AccountsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return AccountsClientDeleteResponse{RawResponse: resp}, nil + return AccountsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -280,7 +275,7 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } @@ -293,22 +288,18 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - AccountsClientBeginFailoverOptions contains the optional parameters for the AccountsClient.BeginFailover method. -func (client *AccountsClient) BeginFailover(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginFailoverOptions) (AccountsClientFailoverPollerResponse, error) { - resp, err := client.failover(ctx, resourceGroupName, accountName, options) - if err != nil { - return AccountsClientFailoverPollerResponse{}, err +func (client *AccountsClient) BeginFailover(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginFailoverOptions) (*armruntime.Poller[AccountsClientFailoverResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.failover(ctx, resourceGroupName, accountName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller(resp, client.pl, &armruntime.NewPollerOptions[AccountsClientFailoverResponse]{ + FinalStateVia: armruntime.FinalStateViaLocation, + }) + } else { + return armruntime.NewPollerFromResumeToken[AccountsClientFailoverResponse](options.ResumeToken, client.pl, nil) } - result := AccountsClientFailoverPollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("AccountsClient.Failover", "location", resp, client.pl) - if err != nil { - return AccountsClientFailoverPollerResponse{}, err - } - result.Poller = &AccountsClientFailoverPoller{ - pt: pt, - } - return result, nil } // Failover - Failover request can be triggered for a storage account in case of availability issues. The failover occurs @@ -350,7 +341,7 @@ func (client *AccountsClient) failoverCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } @@ -397,7 +388,7 @@ func (client *AccountsClient) getPropertiesCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } @@ -408,7 +399,7 @@ func (client *AccountsClient) getPropertiesCreateRequest(ctx context.Context, re // getPropertiesHandleResponse handles the GetProperties response. func (client *AccountsClient) getPropertiesHandleResponse(resp *http.Response) (AccountsClientGetPropertiesResponse, error) { - result := AccountsClientGetPropertiesResponse{RawResponse: resp} + result := AccountsClientGetPropertiesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Account); err != nil { return AccountsClientGetPropertiesResponse{}, err } @@ -425,22 +416,18 @@ func (client *AccountsClient) getPropertiesHandleResponse(resp *http.Response) ( // request will validate the migration whereas the hydration request will migrate the account. // options - AccountsClientBeginHierarchicalNamespaceMigrationOptions contains the optional parameters for the AccountsClient.BeginHierarchicalNamespaceMigration // method. -func (client *AccountsClient) BeginHierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, requestType string, options *AccountsClientBeginHierarchicalNamespaceMigrationOptions) (AccountsClientHierarchicalNamespaceMigrationPollerResponse, error) { - resp, err := client.hierarchicalNamespaceMigration(ctx, resourceGroupName, accountName, requestType, options) - if err != nil { - return AccountsClientHierarchicalNamespaceMigrationPollerResponse{}, err - } - result := AccountsClientHierarchicalNamespaceMigrationPollerResponse{ - RawResponse: resp, +func (client *AccountsClient) BeginHierarchicalNamespaceMigration(ctx context.Context, resourceGroupName string, accountName string, requestType string, options *AccountsClientBeginHierarchicalNamespaceMigrationOptions) (*armruntime.Poller[AccountsClientHierarchicalNamespaceMigrationResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.hierarchicalNamespaceMigration(ctx, resourceGroupName, accountName, requestType, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller(resp, client.pl, &armruntime.NewPollerOptions[AccountsClientHierarchicalNamespaceMigrationResponse]{ + FinalStateVia: armruntime.FinalStateViaLocation, + }) + } else { + return armruntime.NewPollerFromResumeToken[AccountsClientHierarchicalNamespaceMigrationResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("AccountsClient.HierarchicalNamespaceMigration", "location", resp, client.pl) - if err != nil { - return AccountsClientHierarchicalNamespaceMigrationPollerResponse{}, err - } - result.Poller = &AccountsClientHierarchicalNamespaceMigrationPoller{ - pt: pt, - } - return result, nil } // HierarchicalNamespaceMigration - Live Migration of storage account to enable Hns @@ -480,7 +467,7 @@ func (client *AccountsClient) hierarchicalNamespaceMigrationCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") reqQP.Set("requestType", requestType) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") @@ -491,16 +478,32 @@ func (client *AccountsClient) hierarchicalNamespaceMigrationCreateRequest(ctx co // ListKeys operation for this. // If the operation fails it returns an *azcore.ResponseError type. // options - AccountsClientListOptions contains the optional parameters for the AccountsClient.List method. -func (client *AccountsClient) List(options *AccountsClientListOptions) *AccountsClientListPager { - return &AccountsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *AccountsClient) List(options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[AccountsClientListResponse]{ + More: func(page AccountsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp AccountsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.AccountListResult.NextLink) + Fetcher: func(ctx context.Context, page *AccountsClientListResponse) (AccountsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return AccountsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AccountsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AccountsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -515,7 +518,7 @@ func (client *AccountsClient) listCreateRequest(ctx context.Context, options *Ac return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -523,7 +526,7 @@ func (client *AccountsClient) listCreateRequest(ctx context.Context, options *Ac // listHandleResponse handles the List response. func (client *AccountsClient) listHandleResponse(resp *http.Response) (AccountsClientListResponse, error) { - result := AccountsClientListResponse{RawResponse: resp} + result := AccountsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccountListResult); err != nil { return AccountsClientListResponse{}, err } @@ -572,7 +575,7 @@ func (client *AccountsClient) listAccountSASCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, parameters) @@ -580,7 +583,7 @@ func (client *AccountsClient) listAccountSASCreateRequest(ctx context.Context, r // listAccountSASHandleResponse handles the ListAccountSAS response. func (client *AccountsClient) listAccountSASHandleResponse(resp *http.Response) (AccountsClientListAccountSASResponse, error) { - result := AccountsClientListAccountSASResponse{RawResponse: resp} + result := AccountsClientListAccountSASResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListAccountSasResponse); err != nil { return AccountsClientListAccountSASResponse{}, err } @@ -593,16 +596,32 @@ func (client *AccountsClient) listAccountSASHandleResponse(resp *http.Response) // resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive. // options - AccountsClientListByResourceGroupOptions contains the optional parameters for the AccountsClient.ListByResourceGroup // method. -func (client *AccountsClient) ListByResourceGroup(resourceGroupName string, options *AccountsClientListByResourceGroupOptions) *AccountsClientListByResourceGroupPager { - return &AccountsClientListByResourceGroupPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) +func (client *AccountsClient) ListByResourceGroup(resourceGroupName string, options *AccountsClientListByResourceGroupOptions) *runtime.Pager[AccountsClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PageProcessor[AccountsClientListByResourceGroupResponse]{ + More: func(page AccountsClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp AccountsClientListByResourceGroupResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.AccountListResult.NextLink) + Fetcher: func(ctx context.Context, page *AccountsClientListByResourceGroupResponse) (AccountsClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return AccountsClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AccountsClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AccountsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) }, - } + }) } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. @@ -621,7 +640,7 @@ func (client *AccountsClient) listByResourceGroupCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -629,7 +648,7 @@ func (client *AccountsClient) listByResourceGroupCreateRequest(ctx context.Conte // listByResourceGroupHandleResponse handles the ListByResourceGroup response. func (client *AccountsClient) listByResourceGroupHandleResponse(resp *http.Response) (AccountsClientListByResourceGroupResponse, error) { - result := AccountsClientListByResourceGroupResponse{RawResponse: resp} + result := AccountsClientListByResourceGroupResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccountListResult); err != nil { return AccountsClientListByResourceGroupResponse{}, err } @@ -677,7 +696,7 @@ func (client *AccountsClient) listKeysCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") if options != nil && options.Expand != nil { reqQP.Set("$expand", "kerb") } @@ -688,7 +707,7 @@ func (client *AccountsClient) listKeysCreateRequest(ctx context.Context, resourc // listKeysHandleResponse handles the ListKeys response. func (client *AccountsClient) listKeysHandleResponse(resp *http.Response) (AccountsClientListKeysResponse, error) { - result := AccountsClientListKeysResponse{RawResponse: resp} + result := AccountsClientListKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccountListKeysResult); err != nil { return AccountsClientListKeysResponse{}, err } @@ -737,7 +756,7 @@ func (client *AccountsClient) listServiceSASCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, parameters) @@ -745,7 +764,7 @@ func (client *AccountsClient) listServiceSASCreateRequest(ctx context.Context, r // listServiceSASHandleResponse handles the ListServiceSAS response. func (client *AccountsClient) listServiceSASHandleResponse(resp *http.Response) (AccountsClientListServiceSASResponse, error) { - result := AccountsClientListServiceSASResponse{RawResponse: resp} + result := AccountsClientListServiceSASResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListServiceSasResponse); err != nil { return AccountsClientListServiceSASResponse{}, err } @@ -794,7 +813,7 @@ func (client *AccountsClient) regenerateKeyCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, regenerateKey) @@ -802,7 +821,7 @@ func (client *AccountsClient) regenerateKeyCreateRequest(ctx context.Context, re // regenerateKeyHandleResponse handles the RegenerateKey response. func (client *AccountsClient) regenerateKeyHandleResponse(resp *http.Response) (AccountsClientRegenerateKeyResponse, error) { - result := AccountsClientRegenerateKeyResponse{RawResponse: resp} + result := AccountsClientRegenerateKeyResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AccountListKeysResult); err != nil { return AccountsClientRegenerateKeyResponse{}, err } @@ -817,22 +836,18 @@ func (client *AccountsClient) regenerateKeyHandleResponse(resp *http.Response) ( // parameters - The parameters to provide for restore blob ranges. // options - AccountsClientBeginRestoreBlobRangesOptions contains the optional parameters for the AccountsClient.BeginRestoreBlobRanges // method. -func (client *AccountsClient) BeginRestoreBlobRanges(ctx context.Context, resourceGroupName string, accountName string, parameters BlobRestoreParameters, options *AccountsClientBeginRestoreBlobRangesOptions) (AccountsClientRestoreBlobRangesPollerResponse, error) { - resp, err := client.restoreBlobRanges(ctx, resourceGroupName, accountName, parameters, options) - if err != nil { - return AccountsClientRestoreBlobRangesPollerResponse{}, err - } - result := AccountsClientRestoreBlobRangesPollerResponse{ - RawResponse: resp, +func (client *AccountsClient) BeginRestoreBlobRanges(ctx context.Context, resourceGroupName string, accountName string, parameters BlobRestoreParameters, options *AccountsClientBeginRestoreBlobRangesOptions) (*armruntime.Poller[AccountsClientRestoreBlobRangesResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.restoreBlobRanges(ctx, resourceGroupName, accountName, parameters, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller(resp, client.pl, &armruntime.NewPollerOptions[AccountsClientRestoreBlobRangesResponse]{ + FinalStateVia: armruntime.FinalStateViaLocation, + }) + } else { + return armruntime.NewPollerFromResumeToken[AccountsClientRestoreBlobRangesResponse](options.ResumeToken, client.pl, nil) } - pt, err := armruntime.NewPoller("AccountsClient.RestoreBlobRanges", "location", resp, client.pl) - if err != nil { - return AccountsClientRestoreBlobRangesPollerResponse{}, err - } - result.Poller = &AccountsClientRestoreBlobRangesPoller{ - pt: pt, - } - return result, nil } // RestoreBlobRanges - Restore blobs in the specified blob ranges @@ -872,7 +887,7 @@ func (client *AccountsClient) restoreBlobRangesCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, parameters) @@ -897,7 +912,7 @@ func (client *AccountsClient) RevokeUserDelegationKeys(ctx context.Context, reso if !runtime.HasStatusCode(resp, http.StatusOK) { return AccountsClientRevokeUserDelegationKeysResponse{}, runtime.NewResponseError(resp) } - return AccountsClientRevokeUserDelegationKeysResponse{RawResponse: resp}, nil + return AccountsClientRevokeUserDelegationKeysResponse{}, nil } // revokeUserDelegationKeysCreateRequest creates the RevokeUserDelegationKeys request. @@ -920,7 +935,7 @@ func (client *AccountsClient) revokeUserDelegationKeysCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } @@ -973,7 +988,7 @@ func (client *AccountsClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, parameters) @@ -981,7 +996,7 @@ func (client *AccountsClient) updateCreateRequest(ctx context.Context, resourceG // updateHandleResponse handles the Update response. func (client *AccountsClient) updateHandleResponse(resp *http.Response) (AccountsClientUpdateResponse, error) { - result := AccountsClientUpdateResponse{RawResponse: resp} + result := AccountsClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Account); err != nil { return AccountsClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_blobcontainers_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_blobcontainers_client.go index 79dca7920336..4ebea80d0f8f 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_blobcontainers_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_blobcontainers_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type BlobContainersClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewBlobContainersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *BlobContainersClient { +func NewBlobContainersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BlobContainersClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &BlobContainersClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // ClearLegalHold - Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold @@ -100,7 +105,7 @@ func (client *BlobContainersClient) clearLegalHoldCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, legalHold) @@ -108,7 +113,7 @@ func (client *BlobContainersClient) clearLegalHoldCreateRequest(ctx context.Cont // clearLegalHoldHandleResponse handles the ClearLegalHold response. func (client *BlobContainersClient) clearLegalHoldHandleResponse(resp *http.Response) (BlobContainersClientClearLegalHoldResponse, error) { - result := BlobContainersClientClearLegalHoldResponse{RawResponse: resp} + result := BlobContainersClientClearLegalHoldResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.LegalHold); err != nil { return BlobContainersClientClearLegalHoldResponse{}, err } @@ -166,7 +171,7 @@ func (client *BlobContainersClient) createCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, blobContainer) @@ -174,7 +179,7 @@ func (client *BlobContainersClient) createCreateRequest(ctx context.Context, res // createHandleResponse handles the Create response. func (client *BlobContainersClient) createHandleResponse(resp *http.Response) (BlobContainersClientCreateResponse, error) { - result := BlobContainersClientCreateResponse{RawResponse: resp} + result := BlobContainersClientCreateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.BlobContainer); err != nil { return BlobContainersClientCreateResponse{}, err } @@ -232,7 +237,7 @@ func (client *BlobContainersClient) createOrUpdateImmutabilityPolicyCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header.Set("If-Match", *options.IfMatch) @@ -246,7 +251,7 @@ func (client *BlobContainersClient) createOrUpdateImmutabilityPolicyCreateReques // createOrUpdateImmutabilityPolicyHandleResponse handles the CreateOrUpdateImmutabilityPolicy response. func (client *BlobContainersClient) createOrUpdateImmutabilityPolicyHandleResponse(resp *http.Response) (BlobContainersClientCreateOrUpdateImmutabilityPolicyResponse, error) { - result := BlobContainersClientCreateOrUpdateImmutabilityPolicyResponse{RawResponse: resp} + result := BlobContainersClientCreateOrUpdateImmutabilityPolicyResponse{} if val := resp.Header.Get("ETag"); val != "" { result.ETag = &val } @@ -277,7 +282,7 @@ func (client *BlobContainersClient) Delete(ctx context.Context, resourceGroupNam if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return BlobContainersClientDeleteResponse{}, runtime.NewResponseError(resp) } - return BlobContainersClientDeleteResponse{RawResponse: resp}, nil + return BlobContainersClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -304,7 +309,7 @@ func (client *BlobContainersClient) deleteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } @@ -365,7 +370,7 @@ func (client *BlobContainersClient) deleteImmutabilityPolicyCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("If-Match", ifMatch) req.Raw().Header.Set("Accept", "application/json") @@ -374,7 +379,7 @@ func (client *BlobContainersClient) deleteImmutabilityPolicyCreateRequest(ctx co // deleteImmutabilityPolicyHandleResponse handles the DeleteImmutabilityPolicy response. func (client *BlobContainersClient) deleteImmutabilityPolicyHandleResponse(resp *http.Response) (BlobContainersClientDeleteImmutabilityPolicyResponse, error) { - result := BlobContainersClientDeleteImmutabilityPolicyResponse{RawResponse: resp} + result := BlobContainersClientDeleteImmutabilityPolicyResponse{} if val := resp.Header.Get("ETag"); val != "" { result.ETag = &val } @@ -437,7 +442,7 @@ func (client *BlobContainersClient) extendImmutabilityPolicyCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("If-Match", ifMatch) req.Raw().Header.Set("Accept", "application/json") @@ -449,7 +454,7 @@ func (client *BlobContainersClient) extendImmutabilityPolicyCreateRequest(ctx co // extendImmutabilityPolicyHandleResponse handles the ExtendImmutabilityPolicy response. func (client *BlobContainersClient) extendImmutabilityPolicyHandleResponse(resp *http.Response) (BlobContainersClientExtendImmutabilityPolicyResponse, error) { - result := BlobContainersClientExtendImmutabilityPolicyResponse{RawResponse: resp} + result := BlobContainersClientExtendImmutabilityPolicyResponse{} if val := resp.Header.Get("ETag"); val != "" { result.ETag = &val } @@ -507,7 +512,7 @@ func (client *BlobContainersClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -515,7 +520,7 @@ func (client *BlobContainersClient) getCreateRequest(ctx context.Context, resour // getHandleResponse handles the Get response. func (client *BlobContainersClient) getHandleResponse(resp *http.Response) (BlobContainersClientGetResponse, error) { - result := BlobContainersClientGetResponse{RawResponse: resp} + result := BlobContainersClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.BlobContainer); err != nil { return BlobContainersClientGetResponse{}, err } @@ -573,7 +578,7 @@ func (client *BlobContainersClient) getImmutabilityPolicyCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header.Set("If-Match", *options.IfMatch) @@ -584,7 +589,7 @@ func (client *BlobContainersClient) getImmutabilityPolicyCreateRequest(ctx conte // getImmutabilityPolicyHandleResponse handles the GetImmutabilityPolicy response. func (client *BlobContainersClient) getImmutabilityPolicyHandleResponse(resp *http.Response) (BlobContainersClientGetImmutabilityPolicyResponse, error) { - result := BlobContainersClientGetImmutabilityPolicyResponse{RawResponse: resp} + result := BlobContainersClientGetImmutabilityPolicyResponse{} if val := resp.Header.Get("ETag"); val != "" { result.ETag = &val } @@ -643,7 +648,7 @@ func (client *BlobContainersClient) leaseCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") if options != nil && options.Parameters != nil { @@ -654,7 +659,7 @@ func (client *BlobContainersClient) leaseCreateRequest(ctx context.Context, reso // leaseHandleResponse handles the Lease response. func (client *BlobContainersClient) leaseHandleResponse(resp *http.Response) (BlobContainersClientLeaseResponse, error) { - result := BlobContainersClientLeaseResponse{RawResponse: resp} + result := BlobContainersClientLeaseResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.LeaseContainerResponse); err != nil { return BlobContainersClientLeaseResponse{}, err } @@ -668,16 +673,32 @@ func (client *BlobContainersClient) leaseHandleResponse(resp *http.Response) (Bl // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - BlobContainersClientListOptions contains the optional parameters for the BlobContainersClient.List method. -func (client *BlobContainersClient) List(resourceGroupName string, accountName string, options *BlobContainersClientListOptions) *BlobContainersClientListPager { - return &BlobContainersClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, accountName, options) +func (client *BlobContainersClient) List(resourceGroupName string, accountName string, options *BlobContainersClientListOptions) *runtime.Pager[BlobContainersClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[BlobContainersClientListResponse]{ + More: func(page BlobContainersClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp BlobContainersClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ListContainerItems.NextLink) + Fetcher: func(ctx context.Context, page *BlobContainersClientListResponse) (BlobContainersClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, accountName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return BlobContainersClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return BlobContainersClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return BlobContainersClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -700,7 +721,7 @@ func (client *BlobContainersClient) listCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") if options != nil && options.Maxpagesize != nil { reqQP.Set("$maxpagesize", *options.Maxpagesize) } @@ -717,7 +738,7 @@ func (client *BlobContainersClient) listCreateRequest(ctx context.Context, resou // listHandleResponse handles the List response. func (client *BlobContainersClient) listHandleResponse(resp *http.Response) (BlobContainersClientListResponse, error) { - result := BlobContainersClientListResponse{RawResponse: resp} + result := BlobContainersClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListContainerItems); err != nil { return BlobContainersClientListResponse{}, err } @@ -777,7 +798,7 @@ func (client *BlobContainersClient) lockImmutabilityPolicyCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("If-Match", ifMatch) req.Raw().Header.Set("Accept", "application/json") @@ -786,7 +807,7 @@ func (client *BlobContainersClient) lockImmutabilityPolicyCreateRequest(ctx cont // lockImmutabilityPolicyHandleResponse handles the LockImmutabilityPolicy response. func (client *BlobContainersClient) lockImmutabilityPolicyHandleResponse(resp *http.Response) (BlobContainersClientLockImmutabilityPolicyResponse, error) { - result := BlobContainersClientLockImmutabilityPolicyResponse{RawResponse: resp} + result := BlobContainersClientLockImmutabilityPolicyResponse{} if val := resp.Header.Get("ETag"); val != "" { result.ETag = &val } @@ -808,22 +829,18 @@ func (client *BlobContainersClient) lockImmutabilityPolicyHandleResponse(resp *h // dash (-) character must be immediately preceded and followed by a letter or number. // options - BlobContainersClientBeginObjectLevelWormOptions contains the optional parameters for the BlobContainersClient.BeginObjectLevelWorm // method. -func (client *BlobContainersClient) BeginObjectLevelWorm(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersClientBeginObjectLevelWormOptions) (BlobContainersClientObjectLevelWormPollerResponse, error) { - resp, err := client.objectLevelWorm(ctx, resourceGroupName, accountName, containerName, options) - if err != nil { - return BlobContainersClientObjectLevelWormPollerResponse{}, err +func (client *BlobContainersClient) BeginObjectLevelWorm(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersClientBeginObjectLevelWormOptions) (*armruntime.Poller[BlobContainersClientObjectLevelWormResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.objectLevelWorm(ctx, resourceGroupName, accountName, containerName, options) + if err != nil { + return nil, err + } + return armruntime.NewPoller(resp, client.pl, &armruntime.NewPollerOptions[BlobContainersClientObjectLevelWormResponse]{ + FinalStateVia: armruntime.FinalStateViaLocation, + }) + } else { + return armruntime.NewPollerFromResumeToken[BlobContainersClientObjectLevelWormResponse](options.ResumeToken, client.pl, nil) } - result := BlobContainersClientObjectLevelWormPollerResponse{ - RawResponse: resp, - } - pt, err := armruntime.NewPoller("BlobContainersClient.ObjectLevelWorm", "location", resp, client.pl) - if err != nil { - return BlobContainersClientObjectLevelWormPollerResponse{}, err - } - result.Poller = &BlobContainersClientObjectLevelWormPoller{ - pt: pt, - } - return result, nil } // ObjectLevelWorm - This operation migrates a blob container from container level WORM to object level immutability enabled @@ -869,7 +886,7 @@ func (client *BlobContainersClient) objectLevelWormCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -926,7 +943,7 @@ func (client *BlobContainersClient) setLegalHoldCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, legalHold) @@ -934,7 +951,7 @@ func (client *BlobContainersClient) setLegalHoldCreateRequest(ctx context.Contex // setLegalHoldHandleResponse handles the SetLegalHold response. func (client *BlobContainersClient) setLegalHoldHandleResponse(resp *http.Response) (BlobContainersClientSetLegalHoldResponse, error) { - result := BlobContainersClientSetLegalHoldResponse{RawResponse: resp} + result := BlobContainersClientSetLegalHoldResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.LegalHold); err != nil { return BlobContainersClientSetLegalHoldResponse{}, err } @@ -991,7 +1008,7 @@ func (client *BlobContainersClient) updateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, blobContainer) @@ -999,7 +1016,7 @@ func (client *BlobContainersClient) updateCreateRequest(ctx context.Context, res // updateHandleResponse handles the Update response. func (client *BlobContainersClient) updateHandleResponse(resp *http.Response) (BlobContainersClientUpdateResponse, error) { - result := BlobContainersClientUpdateResponse{RawResponse: resp} + result := BlobContainersClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.BlobContainer); err != nil { return BlobContainersClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_blobinventorypolicies_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_blobinventorypolicies_client.go index 13b5b2fc1238..2f171a9e9a12 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_blobinventorypolicies_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_blobinventorypolicies_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type BlobInventoryPoliciesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewBlobInventoryPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *BlobInventoryPoliciesClient { +func NewBlobInventoryPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BlobInventoryPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &BlobInventoryPoliciesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Sets the blob inventory policy to the specified storage account. @@ -97,7 +102,7 @@ func (client *BlobInventoryPoliciesClient) createOrUpdateCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, properties) @@ -105,7 +110,7 @@ func (client *BlobInventoryPoliciesClient) createOrUpdateCreateRequest(ctx conte // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *BlobInventoryPoliciesClient) createOrUpdateHandleResponse(resp *http.Response) (BlobInventoryPoliciesClientCreateOrUpdateResponse, error) { - result := BlobInventoryPoliciesClientCreateOrUpdateResponse{RawResponse: resp} + result := BlobInventoryPoliciesClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.BlobInventoryPolicy); err != nil { return BlobInventoryPoliciesClientCreateOrUpdateResponse{}, err } @@ -132,7 +137,7 @@ func (client *BlobInventoryPoliciesClient) Delete(ctx context.Context, resourceG if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return BlobInventoryPoliciesClientDeleteResponse{}, runtime.NewResponseError(resp) } - return BlobInventoryPoliciesClientDeleteResponse{RawResponse: resp}, nil + return BlobInventoryPoliciesClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -159,7 +164,7 @@ func (client *BlobInventoryPoliciesClient) deleteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -212,7 +217,7 @@ func (client *BlobInventoryPoliciesClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -220,7 +225,7 @@ func (client *BlobInventoryPoliciesClient) getCreateRequest(ctx context.Context, // getHandleResponse handles the Get response. func (client *BlobInventoryPoliciesClient) getHandleResponse(resp *http.Response) (BlobInventoryPoliciesClientGetResponse, error) { - result := BlobInventoryPoliciesClientGetResponse{RawResponse: resp} + result := BlobInventoryPoliciesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.BlobInventoryPolicy); err != nil { return BlobInventoryPoliciesClientGetResponse{}, err } @@ -234,19 +239,26 @@ func (client *BlobInventoryPoliciesClient) getHandleResponse(resp *http.Response // 3 and 24 characters in length and use numbers and lower-case letters only. // options - BlobInventoryPoliciesClientListOptions contains the optional parameters for the BlobInventoryPoliciesClient.List // method. -func (client *BlobInventoryPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *BlobInventoryPoliciesClientListOptions) (BlobInventoryPoliciesClientListResponse, error) { - req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) - if err != nil { - return BlobInventoryPoliciesClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return BlobInventoryPoliciesClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return BlobInventoryPoliciesClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) +func (client *BlobInventoryPoliciesClient) List(resourceGroupName string, accountName string, options *BlobInventoryPoliciesClientListOptions) *runtime.Pager[BlobInventoryPoliciesClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[BlobInventoryPoliciesClientListResponse]{ + More: func(page BlobInventoryPoliciesClientListResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *BlobInventoryPoliciesClientListResponse) (BlobInventoryPoliciesClientListResponse, error) { + req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) + if err != nil { + return BlobInventoryPoliciesClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return BlobInventoryPoliciesClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return BlobInventoryPoliciesClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) } // listCreateRequest creates the List request. @@ -269,7 +281,7 @@ func (client *BlobInventoryPoliciesClient) listCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -277,7 +289,7 @@ func (client *BlobInventoryPoliciesClient) listCreateRequest(ctx context.Context // listHandleResponse handles the List response. func (client *BlobInventoryPoliciesClient) listHandleResponse(resp *http.Response) (BlobInventoryPoliciesClientListResponse, error) { - result := BlobInventoryPoliciesClientListResponse{RawResponse: resp} + result := BlobInventoryPoliciesClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListBlobInventoryPolicy); err != nil { return BlobInventoryPoliciesClientListResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_blobservices_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_blobservices_client.go index 8b6d9be3ece9..b8c6d21c8394 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_blobservices_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_blobservices_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type BlobServicesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewBlobServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *BlobServicesClient { +func NewBlobServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BlobServicesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &BlobServicesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // GetServiceProperties - Gets the properties of a storage account’s Blob service, including properties for Storage Analytics @@ -93,7 +98,7 @@ func (client *BlobServicesClient) getServicePropertiesCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -101,7 +106,7 @@ func (client *BlobServicesClient) getServicePropertiesCreateRequest(ctx context. // getServicePropertiesHandleResponse handles the GetServiceProperties response. func (client *BlobServicesClient) getServicePropertiesHandleResponse(resp *http.Response) (BlobServicesClientGetServicePropertiesResponse, error) { - result := BlobServicesClientGetServicePropertiesResponse{RawResponse: resp} + result := BlobServicesClientGetServicePropertiesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.BlobServiceProperties); err != nil { return BlobServicesClientGetServicePropertiesResponse{}, err } @@ -114,19 +119,26 @@ func (client *BlobServicesClient) getServicePropertiesHandleResponse(resp *http. // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - BlobServicesClientListOptions contains the optional parameters for the BlobServicesClient.List method. -func (client *BlobServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *BlobServicesClientListOptions) (BlobServicesClientListResponse, error) { - req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) - if err != nil { - return BlobServicesClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return BlobServicesClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return BlobServicesClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) +func (client *BlobServicesClient) List(resourceGroupName string, accountName string, options *BlobServicesClientListOptions) *runtime.Pager[BlobServicesClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[BlobServicesClientListResponse]{ + More: func(page BlobServicesClientListResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *BlobServicesClientListResponse) (BlobServicesClientListResponse, error) { + req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) + if err != nil { + return BlobServicesClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return BlobServicesClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return BlobServicesClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) } // listCreateRequest creates the List request. @@ -149,7 +161,7 @@ func (client *BlobServicesClient) listCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -157,7 +169,7 @@ func (client *BlobServicesClient) listCreateRequest(ctx context.Context, resourc // listHandleResponse handles the List response. func (client *BlobServicesClient) listHandleResponse(resp *http.Response) (BlobServicesClientListResponse, error) { - result := BlobServicesClientListResponse{RawResponse: resp} + result := BlobServicesClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.BlobServiceItems); err != nil { return BlobServicesClientListResponse{}, err } @@ -210,7 +222,7 @@ func (client *BlobServicesClient) setServicePropertiesCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, parameters) @@ -218,7 +230,7 @@ func (client *BlobServicesClient) setServicePropertiesCreateRequest(ctx context. // setServicePropertiesHandleResponse handles the SetServiceProperties response. func (client *BlobServicesClient) setServicePropertiesHandleResponse(resp *http.Response) (BlobServicesClientSetServicePropertiesResponse, error) { - result := BlobServicesClientSetServicePropertiesResponse{RawResponse: resp} + result := BlobServicesClientSetServicePropertiesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.BlobServiceProperties); err != nil { return BlobServicesClientSetServicePropertiesResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_constants.go b/sdk/resourcemanager/storage/armstorage/zz_generated_constants.go index a5840ace7503..63c6beac5f9c 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_constants.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_constants.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -10,15 +10,18 @@ package armstorage const ( moduleName = "armstorage" - moduleVersion = "v0.4.1" + moduleVersion = "v0.5.0" ) -// AccessTier - Required for storage accounts where kind = BlobStorage. The access tier used for billing. +// AccessTier - Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' +// access tier is the default value for premium block blobs storage account type and it cannot +// be changed for the premium block blobs storage account type. type AccessTier string const ( - AccessTierHot AccessTier = "Hot" - AccessTierCool AccessTier = "Cool" + AccessTierHot AccessTier = "Hot" + AccessTierCool AccessTier = "Cool" + AccessTierPremium AccessTier = "Premium" ) // PossibleAccessTierValues returns the possible values for the AccessTier const type. @@ -26,14 +29,10 @@ func PossibleAccessTierValues() []AccessTier { return []AccessTier{ AccessTierHot, AccessTierCool, + AccessTierPremium, } } -// ToPtr returns a *AccessTier pointing to the current value. -func (c AccessTier) ToPtr() *AccessTier { - return &c -} - // AccountImmutabilityPolicyState - The ImmutabilityPolicy state defines the mode of the policy. Disabled state disables the // policy, Unlocked state allows increase and decrease of immutability retention time and also allows toggling // allowProtectedAppendWrites property, Locked state only allows the increase of the immutability retention time. A policy @@ -56,11 +55,6 @@ func PossibleAccountImmutabilityPolicyStateValues() []AccountImmutabilityPolicyS } } -// ToPtr returns a *AccountImmutabilityPolicyState pointing to the current value. -func (c AccountImmutabilityPolicyState) ToPtr() *AccountImmutabilityPolicyState { - return &c -} - // AccountStatus - Gets the status indicating whether the primary location of the storage account is available or unavailable. type AccountStatus string @@ -77,11 +71,6 @@ func PossibleAccountStatusValues() []AccountStatus { } } -// ToPtr returns a *AccountStatus pointing to the current value. -func (c AccountStatus) ToPtr() *AccountStatus { - return &c -} - // ActiveDirectoryPropertiesAccountType - Specifies the Active Directory account type for Azure Storage. type ActiveDirectoryPropertiesAccountType string @@ -98,11 +87,6 @@ func PossibleActiveDirectoryPropertiesAccountTypeValues() []ActiveDirectoryPrope } } -// ToPtr returns a *ActiveDirectoryPropertiesAccountType pointing to the current value. -func (c ActiveDirectoryPropertiesAccountType) ToPtr() *ActiveDirectoryPropertiesAccountType { - return &c -} - // AllowedCopyScope - Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. type AllowedCopyScope string @@ -119,11 +103,6 @@ func PossibleAllowedCopyScopeValues() []AllowedCopyScope { } } -// ToPtr returns a *AllowedCopyScope pointing to the current value. -func (c AllowedCopyScope) ToPtr() *AllowedCopyScope { - return &c -} - type BlobInventoryPolicyName string const ( @@ -137,11 +116,6 @@ func PossibleBlobInventoryPolicyNameValues() []BlobInventoryPolicyName { } } -// ToPtr returns a *BlobInventoryPolicyName pointing to the current value. -func (c BlobInventoryPolicyName) ToPtr() *BlobInventoryPolicyName { - return &c -} - // BlobRestoreProgressStatus - The status of blob restore progress. Possible values are: - InProgress: Indicates that blob // restore is ongoing. - Complete: Indicates that blob restore has been completed successfully. - Failed: // Indicates that blob restore is failed. @@ -162,11 +136,6 @@ func PossibleBlobRestoreProgressStatusValues() []BlobRestoreProgressStatus { } } -// ToPtr returns a *BlobRestoreProgressStatus pointing to the current value. -func (c BlobRestoreProgressStatus) ToPtr() *BlobRestoreProgressStatus { - return &c -} - // Bypass - Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of // Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none // of those traffics. @@ -189,11 +158,6 @@ func PossibleBypassValues() []Bypass { } } -// ToPtr returns a *Bypass pointing to the current value. -func (c Bypass) ToPtr() *Bypass { - return &c -} - type CorsRuleAllowedMethodsItem string const ( @@ -202,6 +166,7 @@ const ( CorsRuleAllowedMethodsItemHEAD CorsRuleAllowedMethodsItem = "HEAD" CorsRuleAllowedMethodsItemMERGE CorsRuleAllowedMethodsItem = "MERGE" CorsRuleAllowedMethodsItemOPTIONS CorsRuleAllowedMethodsItem = "OPTIONS" + CorsRuleAllowedMethodsItemPATCH CorsRuleAllowedMethodsItem = "PATCH" CorsRuleAllowedMethodsItemPOST CorsRuleAllowedMethodsItem = "POST" CorsRuleAllowedMethodsItemPUT CorsRuleAllowedMethodsItem = "PUT" ) @@ -214,16 +179,12 @@ func PossibleCorsRuleAllowedMethodsItemValues() []CorsRuleAllowedMethodsItem { CorsRuleAllowedMethodsItemHEAD, CorsRuleAllowedMethodsItemMERGE, CorsRuleAllowedMethodsItemOPTIONS, + CorsRuleAllowedMethodsItemPATCH, CorsRuleAllowedMethodsItemPOST, CorsRuleAllowedMethodsItemPUT, } } -// ToPtr returns a *CorsRuleAllowedMethodsItem pointing to the current value. -func (c CorsRuleAllowedMethodsItem) ToPtr() *CorsRuleAllowedMethodsItem { - return &c -} - // CreatedByType - The type of identity that created the resource. type CreatedByType string @@ -244,9 +205,22 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// ToPtr returns a *CreatedByType pointing to the current value. -func (c CreatedByType) ToPtr() *CreatedByType { - return &c +// DNSEndpointType - Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts +// in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL +// will have an alphanumeric DNS Zone identifier. +type DNSEndpointType string + +const ( + DNSEndpointTypeAzureDNSZone DNSEndpointType = "AzureDnsZone" + DNSEndpointTypeStandard DNSEndpointType = "Standard" +) + +// PossibleDNSEndpointTypeValues returns the possible values for the DNSEndpointType const type. +func PossibleDNSEndpointTypeValues() []DNSEndpointType { + return []DNSEndpointType{ + DNSEndpointTypeAzureDNSZone, + DNSEndpointTypeStandard, + } } // DefaultAction - Specifies the default action of allow or deny when no other rules match. @@ -265,11 +239,6 @@ func PossibleDefaultActionValues() []DefaultAction { } } -// ToPtr returns a *DefaultAction pointing to the current value. -func (c DefaultAction) ToPtr() *DefaultAction { - return &c -} - // DefaultSharePermission - Default share permission for users using Kerberos authentication if RBAC role is not assigned. type DefaultSharePermission string @@ -290,11 +259,6 @@ func PossibleDefaultSharePermissionValues() []DefaultSharePermission { } } -// ToPtr returns a *DefaultSharePermission pointing to the current value. -func (c DefaultSharePermission) ToPtr() *DefaultSharePermission { - return &c -} - // DirectoryServiceOptions - Indicates the directory service used. type DirectoryServiceOptions string @@ -313,11 +277,6 @@ func PossibleDirectoryServiceOptionsValues() []DirectoryServiceOptions { } } -// ToPtr returns a *DirectoryServiceOptions pointing to the current value. -func (c DirectoryServiceOptions) ToPtr() *DirectoryServiceOptions { - return &c -} - // EnabledProtocols - The authentication protocol that is used for the file share. Can only be specified when creating a share. type EnabledProtocols string @@ -334,11 +293,6 @@ func PossibleEnabledProtocolsValues() []EnabledProtocols { } } -// ToPtr returns a *EnabledProtocols pointing to the current value. -func (c EnabledProtocols) ToPtr() *EnabledProtocols { - return &c -} - // EncryptionScopeSource - The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. type EncryptionScopeSource string @@ -355,11 +309,6 @@ func PossibleEncryptionScopeSourceValues() []EncryptionScopeSource { } } -// ToPtr returns a *EncryptionScopeSource pointing to the current value. -func (c EncryptionScopeSource) ToPtr() *EncryptionScopeSource { - return &c -} - // EncryptionScopeState - The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled. type EncryptionScopeState string @@ -376,11 +325,6 @@ func PossibleEncryptionScopeStateValues() []EncryptionScopeState { } } -// ToPtr returns a *EncryptionScopeState pointing to the current value. -func (c EncryptionScopeState) ToPtr() *EncryptionScopeState { - return &c -} - // ExpirationAction - The SAS expiration action. Can only be Log. type ExpirationAction string @@ -395,11 +339,6 @@ func PossibleExpirationActionValues() []ExpirationAction { } } -// ToPtr returns a *ExpirationAction pointing to the current value. -func (c ExpirationAction) ToPtr() *ExpirationAction { - return &c -} - // ExtendedLocationTypes - The type of extendedLocation. type ExtendedLocationTypes string @@ -414,11 +353,6 @@ func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes { } } -// ToPtr returns a *ExtendedLocationTypes pointing to the current value. -func (c ExtendedLocationTypes) ToPtr() *ExtendedLocationTypes { - return &c -} - // Format - This is a required field, it specifies the format for the inventory files. type Format string @@ -435,11 +369,6 @@ func PossibleFormatValues() []Format { } } -// ToPtr returns a *Format pointing to the current value. -func (c Format) ToPtr() *Format { - return &c -} - // GeoReplicationStatus - The status of the secondary location. Possible values are: - Live: Indicates that the secondary // location is active and operational. - Bootstrap: Indicates initial synchronization from the primary // location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: @@ -461,11 +390,6 @@ func PossibleGeoReplicationStatusValues() []GeoReplicationStatus { } } -// ToPtr returns a *GeoReplicationStatus pointing to the current value. -func (c GeoReplicationStatus) ToPtr() *GeoReplicationStatus { - return &c -} - // HTTPProtocol - The protocol permitted for a request made with the account SAS. type HTTPProtocol string @@ -482,11 +406,6 @@ func PossibleHTTPProtocolValues() []HTTPProtocol { } } -// ToPtr returns a *HTTPProtocol pointing to the current value. -func (c HTTPProtocol) ToPtr() *HTTPProtocol { - return &c -} - // IdentityType - The identity type. type IdentityType string @@ -507,11 +426,6 @@ func PossibleIdentityTypeValues() []IdentityType { } } -// ToPtr returns a *IdentityType pointing to the current value. -func (c IdentityType) ToPtr() *IdentityType { - return &c -} - // ImmutabilityPolicyState - The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. type ImmutabilityPolicyState string @@ -528,11 +442,6 @@ func PossibleImmutabilityPolicyStateValues() []ImmutabilityPolicyState { } } -// ToPtr returns a *ImmutabilityPolicyState pointing to the current value. -func (c ImmutabilityPolicyState) ToPtr() *ImmutabilityPolicyState { - return &c -} - // ImmutabilityPolicyUpdateType - The ImmutabilityPolicy update type of a blob container, possible values include: put, lock // and extend. type ImmutabilityPolicyUpdateType string @@ -552,11 +461,6 @@ func PossibleImmutabilityPolicyUpdateTypeValues() []ImmutabilityPolicyUpdateType } } -// ToPtr returns a *ImmutabilityPolicyUpdateType pointing to the current value. -func (c ImmutabilityPolicyUpdateType) ToPtr() *ImmutabilityPolicyUpdateType { - return &c -} - // InventoryRuleType - The valid value is Inventory type InventoryRuleType string @@ -571,11 +475,6 @@ func PossibleInventoryRuleTypeValues() []InventoryRuleType { } } -// ToPtr returns a *InventoryRuleType pointing to the current value. -func (c InventoryRuleType) ToPtr() *InventoryRuleType { - return &c -} - // KeyPermission - Permissions for the key -- read-only or full permissions. type KeyPermission string @@ -592,11 +491,6 @@ func PossibleKeyPermissionValues() []KeyPermission { } } -// ToPtr returns a *KeyPermission pointing to the current value. -func (c KeyPermission) ToPtr() *KeyPermission { - return &c -} - // KeySource - The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault type KeySource string @@ -613,11 +507,6 @@ func PossibleKeySourceValues() []KeySource { } } -// ToPtr returns a *KeySource pointing to the current value. -func (c KeySource) ToPtr() *KeySource { - return &c -} - // KeyType - Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped // encryption key will be used. 'Service' key type implies that a default service key is used. type KeyType string @@ -635,11 +524,6 @@ func PossibleKeyTypeValues() []KeyType { } } -// ToPtr returns a *KeyType pointing to the current value. -func (c KeyType) ToPtr() *KeyType { - return &c -} - // Kind - Indicates the type of storage account. type Kind string @@ -662,11 +546,6 @@ func PossibleKindValues() []Kind { } } -// ToPtr returns a *Kind pointing to the current value. -func (c Kind) ToPtr() *Kind { - return &c -} - // LargeFileSharesState - Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. type LargeFileSharesState string @@ -683,11 +562,6 @@ func PossibleLargeFileSharesStateValues() []LargeFileSharesState { } } -// ToPtr returns a *LargeFileSharesState pointing to the current value. -func (c LargeFileSharesState) ToPtr() *LargeFileSharesState { - return &c -} - // LeaseContainerRequestAction - Specifies the lease action. Can be one of the available actions. type LeaseContainerRequestAction string @@ -710,11 +584,6 @@ func PossibleLeaseContainerRequestActionValues() []LeaseContainerRequestAction { } } -// ToPtr returns a *LeaseContainerRequestAction pointing to the current value. -func (c LeaseContainerRequestAction) ToPtr() *LeaseContainerRequestAction { - return &c -} - // LeaseDuration - Specifies whether the lease on a container is of infinite or fixed duration, only when the container is // leased. type LeaseDuration string @@ -732,11 +601,6 @@ func PossibleLeaseDurationValues() []LeaseDuration { } } -// ToPtr returns a *LeaseDuration pointing to the current value. -func (c LeaseDuration) ToPtr() *LeaseDuration { - return &c -} - // LeaseShareAction - Specifies the lease action. Can be one of the available actions. type LeaseShareAction string @@ -759,11 +623,6 @@ func PossibleLeaseShareActionValues() []LeaseShareAction { } } -// ToPtr returns a *LeaseShareAction pointing to the current value. -func (c LeaseShareAction) ToPtr() *LeaseShareAction { - return &c -} - // LeaseState - Lease state of the container. type LeaseState string @@ -786,11 +645,6 @@ func PossibleLeaseStateValues() []LeaseState { } } -// ToPtr returns a *LeaseState pointing to the current value. -func (c LeaseState) ToPtr() *LeaseState { - return &c -} - // LeaseStatus - The lease status of the container. type LeaseStatus string @@ -807,11 +661,6 @@ func PossibleLeaseStatusValues() []LeaseStatus { } } -// ToPtr returns a *LeaseStatus pointing to the current value. -func (c LeaseStatus) ToPtr() *LeaseStatus { - return &c -} - type ListContainersInclude string const ( @@ -825,11 +674,6 @@ func PossibleListContainersIncludeValues() []ListContainersInclude { } } -// ToPtr returns a *ListContainersInclude pointing to the current value. -func (c ListContainersInclude) ToPtr() *ListContainersInclude { - return &c -} - type ManagementPolicyName string const ( @@ -843,11 +687,6 @@ func PossibleManagementPolicyNameValues() []ManagementPolicyName { } } -// ToPtr returns a *ManagementPolicyName pointing to the current value. -func (c ManagementPolicyName) ToPtr() *ManagementPolicyName { - return &c -} - // MigrationState - This property denotes the container level immutability to object level immutability migration state. type MigrationState string @@ -864,11 +703,6 @@ func PossibleMigrationStateValues() []MigrationState { } } -// ToPtr returns a *MigrationState pointing to the current value. -func (c MigrationState) ToPtr() *MigrationState { - return &c -} - // MinimumTLSVersion - Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS // 1.0 for this property. type MinimumTLSVersion string @@ -888,11 +722,6 @@ func PossibleMinimumTLSVersionValues() []MinimumTLSVersion { } } -// ToPtr returns a *MinimumTLSVersion pointing to the current value. -func (c MinimumTLSVersion) ToPtr() *MinimumTLSVersion { - return &c -} - // Name - Name of the policy. The valid value is AccessTimeTracking. This field is currently read only type Name string @@ -907,11 +736,6 @@ func PossibleNameValues() []Name { } } -// ToPtr returns a *Name pointing to the current value. -func (c Name) ToPtr() *Name { - return &c -} - // ObjectType - This is a required field. This field specifies the scope of the inventory created either at the blob or container // level. type ObjectType string @@ -929,11 +753,6 @@ func PossibleObjectTypeValues() []ObjectType { } } -// ToPtr returns a *ObjectType pointing to the current value. -func (c ObjectType) ToPtr() *ObjectType { - return &c -} - // Permissions - The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List // (l), Add (a), Create (c), Update (u) and Process (p). type Permissions string @@ -963,11 +782,6 @@ func PossiblePermissionsValues() []Permissions { } } -// ToPtr returns a *Permissions pointing to the current value. -func (c Permissions) ToPtr() *Permissions { - return &c -} - // PrivateEndpointConnectionProvisioningState - The current provisioning state. type PrivateEndpointConnectionProvisioningState string @@ -988,11 +802,6 @@ func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpoin } } -// ToPtr returns a *PrivateEndpointConnectionProvisioningState pointing to the current value. -func (c PrivateEndpointConnectionProvisioningState) ToPtr() *PrivateEndpointConnectionProvisioningState { - return &c -} - // PrivateEndpointServiceConnectionStatus - The private endpoint connection status. type PrivateEndpointServiceConnectionStatus string @@ -1011,11 +820,6 @@ func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointSer } } -// ToPtr returns a *PrivateEndpointServiceConnectionStatus pointing to the current value. -func (c PrivateEndpointServiceConnectionStatus) ToPtr() *PrivateEndpointServiceConnectionStatus { - return &c -} - // ProvisioningState - Gets the status of the storage account at the time the operation was called. type ProvisioningState string @@ -1034,11 +838,6 @@ func PossibleProvisioningStateValues() []ProvisioningState { } } -// ToPtr returns a *ProvisioningState pointing to the current value. -func (c ProvisioningState) ToPtr() *ProvisioningState { - return &c -} - // PublicAccess - Specifies whether data in the container may be accessed publicly and the level of access. type PublicAccess string @@ -1057,11 +856,6 @@ func PossiblePublicAccessValues() []PublicAccess { } } -// ToPtr returns a *PublicAccess pointing to the current value. -func (c PublicAccess) ToPtr() *PublicAccess { - return &c -} - // PublicNetworkAccess - Allow or disallow public network access to Storage Account. Value is optional but if passed in, must // be 'Enabled' or 'Disabled'. type PublicNetworkAccess string @@ -1079,11 +873,6 @@ func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { } } -// ToPtr returns a *PublicNetworkAccess pointing to the current value. -func (c PublicNetworkAccess) ToPtr() *PublicNetworkAccess { - return &c -} - // Reason - Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable // is false. type Reason string @@ -1101,11 +890,6 @@ func PossibleReasonValues() []Reason { } } -// ToPtr returns a *Reason pointing to the current value. -func (c Reason) ToPtr() *Reason { - return &c -} - // ReasonCode - The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id // is set when the SKU has requiredQuotas parameter as the subscription does not belong to that // quota. The "NotAvailableForSubscription" is related to capacity at DC. @@ -1124,11 +908,6 @@ func PossibleReasonCodeValues() []ReasonCode { } } -// ToPtr returns a *ReasonCode pointing to the current value. -func (c ReasonCode) ToPtr() *ReasonCode { - return &c -} - // RootSquashType - The property is for NFS share only. The default is NoRootSquash. type RootSquashType string @@ -1147,11 +926,6 @@ func PossibleRootSquashTypeValues() []RootSquashType { } } -// ToPtr returns a *RootSquashType pointing to the current value. -func (c RootSquashType) ToPtr() *RootSquashType { - return &c -} - // RoutingChoice - Routing Choice defines the kind of network routing opted by the user. type RoutingChoice string @@ -1168,11 +942,6 @@ func PossibleRoutingChoiceValues() []RoutingChoice { } } -// ToPtr returns a *RoutingChoice pointing to the current value. -func (c RoutingChoice) ToPtr() *RoutingChoice { - return &c -} - // RuleType - The valid value is Lifecycle type RuleType string @@ -1187,9 +956,22 @@ func PossibleRuleTypeValues() []RuleType { } } -// ToPtr returns a *RuleType pointing to the current value. -func (c RuleType) ToPtr() *RuleType { - return &c +// SKUConversionStatus - This property indicates the current sku conversion status. +type SKUConversionStatus string + +const ( + SKUConversionStatusFailed SKUConversionStatus = "Failed" + SKUConversionStatusInProgress SKUConversionStatus = "InProgress" + SKUConversionStatusSucceeded SKUConversionStatus = "Succeeded" +) + +// PossibleSKUConversionStatusValues returns the possible values for the SKUConversionStatus const type. +func PossibleSKUConversionStatusValues() []SKUConversionStatus { + return []SKUConversionStatus{ + SKUConversionStatusFailed, + SKUConversionStatusInProgress, + SKUConversionStatusSucceeded, + } } // SKUName - The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called @@ -1221,11 +1003,6 @@ func PossibleSKUNameValues() []SKUName { } } -// ToPtr returns a *SKUName pointing to the current value. -func (c SKUName) ToPtr() *SKUName { - return &c -} - // SKUTier - The SKU tier. This is based on the SKU name. type SKUTier string @@ -1242,11 +1019,6 @@ func PossibleSKUTierValues() []SKUTier { } } -// ToPtr returns a *SKUTier pointing to the current value. -func (c SKUTier) ToPtr() *SKUTier { - return &c -} - // Schedule - This is a required field. This field is used to schedule an inventory formation. type Schedule string @@ -1263,11 +1035,6 @@ func PossibleScheduleValues() []Schedule { } } -// ToPtr returns a *Schedule pointing to the current value. -func (c Schedule) ToPtr() *Schedule { - return &c -} - // Services - The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), // File (f). type Services string @@ -1289,11 +1056,6 @@ func PossibleServicesValues() []Services { } } -// ToPtr returns a *Services pointing to the current value. -func (c Services) ToPtr() *Services { - return &c -} - // ShareAccessTier - Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, // and Cool. FileStorage account can choose Premium. type ShareAccessTier string @@ -1315,11 +1077,6 @@ func PossibleShareAccessTierValues() []ShareAccessTier { } } -// ToPtr returns a *ShareAccessTier pointing to the current value. -func (c ShareAccessTier) ToPtr() *ShareAccessTier { - return &c -} - // SignedResource - The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), // File (f), Share (s). type SignedResource string @@ -1341,11 +1098,6 @@ func PossibleSignedResourceValues() []SignedResource { } } -// ToPtr returns a *SignedResource pointing to the current value. -func (c SignedResource) ToPtr() *SignedResource { - return &c -} - // SignedResourceTypes - The signed resource types that are accessible with the account SAS. Service (s): Access to service-level // APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs // for blobs, queue messages, table entities, and files. @@ -1366,11 +1118,6 @@ func PossibleSignedResourceTypesValues() []SignedResourceTypes { } } -// ToPtr returns a *SignedResourceTypes pointing to the current value. -func (c SignedResourceTypes) ToPtr() *SignedResourceTypes { - return &c -} - // State - Gets the state of virtual network rule. type State string @@ -1393,11 +1140,6 @@ func PossibleStateValues() []State { } } -// ToPtr returns a *State pointing to the current value. -func (c State) ToPtr() *State { - return &c -} - type StorageAccountExpand string const ( @@ -1413,11 +1155,6 @@ func PossibleStorageAccountExpandValues() []StorageAccountExpand { } } -// ToPtr returns a *StorageAccountExpand pointing to the current value. -func (c StorageAccountExpand) ToPtr() *StorageAccountExpand { - return &c -} - // UsageUnit - Gets the unit of measurement. type UsageUnit string @@ -1441,8 +1178,3 @@ func PossibleUsageUnitValues() []UsageUnit { UsageUnitBytesPerSecond, } } - -// ToPtr returns a *UsageUnit pointing to the current value. -func (c UsageUnit) ToPtr() *UsageUnit { - return &c -} diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_deletedaccounts_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_deletedaccounts_client.go index 47bd2300d3f4..98691adb0cae 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_deletedaccounts_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_deletedaccounts_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type DeletedAccountsClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewDeletedAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *DeletedAccountsClient { +func NewDeletedAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeletedAccountsClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &DeletedAccountsClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // Get - Get properties of specified deleted account resource. @@ -89,7 +94,7 @@ func (client *DeletedAccountsClient) getCreateRequest(ctx context.Context, delet return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -97,7 +102,7 @@ func (client *DeletedAccountsClient) getCreateRequest(ctx context.Context, delet // getHandleResponse handles the Get response. func (client *DeletedAccountsClient) getHandleResponse(resp *http.Response) (DeletedAccountsClientGetResponse, error) { - result := DeletedAccountsClientGetResponse{RawResponse: resp} + result := DeletedAccountsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeletedAccount); err != nil { return DeletedAccountsClientGetResponse{}, err } @@ -107,16 +112,32 @@ func (client *DeletedAccountsClient) getHandleResponse(resp *http.Response) (Del // List - Lists deleted accounts under the subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - DeletedAccountsClientListOptions contains the optional parameters for the DeletedAccountsClient.List method. -func (client *DeletedAccountsClient) List(options *DeletedAccountsClientListOptions) *DeletedAccountsClientListPager { - return &DeletedAccountsClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, options) +func (client *DeletedAccountsClient) List(options *DeletedAccountsClientListOptions) *runtime.Pager[DeletedAccountsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[DeletedAccountsClientListResponse]{ + More: func(page DeletedAccountsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp DeletedAccountsClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.DeletedAccountListResult.NextLink) + Fetcher: func(ctx context.Context, page *DeletedAccountsClientListResponse) (DeletedAccountsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return DeletedAccountsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return DeletedAccountsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DeletedAccountsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -131,7 +152,7 @@ func (client *DeletedAccountsClient) listCreateRequest(ctx context.Context, opti return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -139,7 +160,7 @@ func (client *DeletedAccountsClient) listCreateRequest(ctx context.Context, opti // listHandleResponse handles the List response. func (client *DeletedAccountsClient) listHandleResponse(resp *http.Response) (DeletedAccountsClientListResponse, error) { - result := DeletedAccountsClientListResponse{RawResponse: resp} + result := DeletedAccountsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeletedAccountListResult); err != nil { return DeletedAccountsClientListResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_encryptionscopes_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_encryptionscopes_client.go index 0cc29cfaeccc..69f5090e4786 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_encryptionscopes_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_encryptionscopes_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type EncryptionScopesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewEncryptionScopesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *EncryptionScopesClient { +func NewEncryptionScopesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EncryptionScopesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &EncryptionScopesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // Get - Returns the properties for the specified encryption scope. @@ -97,7 +102,7 @@ func (client *EncryptionScopesClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -105,7 +110,7 @@ func (client *EncryptionScopesClient) getCreateRequest(ctx context.Context, reso // getHandleResponse handles the Get response. func (client *EncryptionScopesClient) getHandleResponse(resp *http.Response) (EncryptionScopesClientGetResponse, error) { - result := EncryptionScopesClientGetResponse{RawResponse: resp} + result := EncryptionScopesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.EncryptionScope); err != nil { return EncryptionScopesClientGetResponse{}, err } @@ -118,16 +123,32 @@ func (client *EncryptionScopesClient) getHandleResponse(resp *http.Response) (En // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - EncryptionScopesClientListOptions contains the optional parameters for the EncryptionScopesClient.List method. -func (client *EncryptionScopesClient) List(resourceGroupName string, accountName string, options *EncryptionScopesClientListOptions) *EncryptionScopesClientListPager { - return &EncryptionScopesClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, accountName, options) +func (client *EncryptionScopesClient) List(resourceGroupName string, accountName string, options *EncryptionScopesClientListOptions) *runtime.Pager[EncryptionScopesClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[EncryptionScopesClientListResponse]{ + More: func(page EncryptionScopesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp EncryptionScopesClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.EncryptionScopeListResult.NextLink) + Fetcher: func(ctx context.Context, page *EncryptionScopesClientListResponse) (EncryptionScopesClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, accountName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return EncryptionScopesClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return EncryptionScopesClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return EncryptionScopesClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -150,7 +171,7 @@ func (client *EncryptionScopesClient) listCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -158,7 +179,7 @@ func (client *EncryptionScopesClient) listCreateRequest(ctx context.Context, res // listHandleResponse handles the List response. func (client *EncryptionScopesClient) listHandleResponse(resp *http.Response) (EncryptionScopesClientListResponse, error) { - result := EncryptionScopesClientListResponse{RawResponse: resp} + result := EncryptionScopesClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.EncryptionScopeListResult); err != nil { return EncryptionScopesClientListResponse{}, err } @@ -215,7 +236,7 @@ func (client *EncryptionScopesClient) patchCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, encryptionScope) @@ -223,7 +244,7 @@ func (client *EncryptionScopesClient) patchCreateRequest(ctx context.Context, re // patchHandleResponse handles the Patch response. func (client *EncryptionScopesClient) patchHandleResponse(resp *http.Response) (EncryptionScopesClientPatchResponse, error) { - result := EncryptionScopesClientPatchResponse{RawResponse: resp} + result := EncryptionScopesClientPatchResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.EncryptionScope); err != nil { return EncryptionScopesClientPatchResponse{}, err } @@ -281,7 +302,7 @@ func (client *EncryptionScopesClient) putCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, encryptionScope) @@ -289,7 +310,7 @@ func (client *EncryptionScopesClient) putCreateRequest(ctx context.Context, reso // putHandleResponse handles the Put response. func (client *EncryptionScopesClient) putHandleResponse(resp *http.Response) (EncryptionScopesClientPutResponse, error) { - result := EncryptionScopesClientPutResponse{RawResponse: resp} + result := EncryptionScopesClientPutResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.EncryptionScope); err != nil { return EncryptionScopesClientPutResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_fileservices_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_fileservices_client.go index 71bce8574ddc..d2cb29e95faf 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_fileservices_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_fileservices_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type FileServicesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewFileServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *FileServicesClient { +func NewFileServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FileServicesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &FileServicesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // GetServiceProperties - Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource @@ -93,7 +98,7 @@ func (client *FileServicesClient) getServicePropertiesCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -101,7 +106,7 @@ func (client *FileServicesClient) getServicePropertiesCreateRequest(ctx context. // getServicePropertiesHandleResponse handles the GetServiceProperties response. func (client *FileServicesClient) getServicePropertiesHandleResponse(resp *http.Response) (FileServicesClientGetServicePropertiesResponse, error) { - result := FileServicesClientGetServicePropertiesResponse{RawResponse: resp} + result := FileServicesClientGetServicePropertiesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FileServiceProperties); err != nil { return FileServicesClientGetServicePropertiesResponse{}, err } @@ -149,7 +154,7 @@ func (client *FileServicesClient) listCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -157,7 +162,7 @@ func (client *FileServicesClient) listCreateRequest(ctx context.Context, resourc // listHandleResponse handles the List response. func (client *FileServicesClient) listHandleResponse(resp *http.Response) (FileServicesClientListResponse, error) { - result := FileServicesClientListResponse{RawResponse: resp} + result := FileServicesClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FileServiceItems); err != nil { return FileServicesClientListResponse{}, err } @@ -209,7 +214,7 @@ func (client *FileServicesClient) setServicePropertiesCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, parameters) @@ -217,7 +222,7 @@ func (client *FileServicesClient) setServicePropertiesCreateRequest(ctx context. // setServicePropertiesHandleResponse handles the SetServiceProperties response. func (client *FileServicesClient) setServicePropertiesHandleResponse(resp *http.Response) (FileServicesClientSetServicePropertiesResponse, error) { - result := FileServicesClientSetServicePropertiesResponse{RawResponse: resp} + result := FileServicesClientSetServicePropertiesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FileServiceProperties); err != nil { return FileServicesClientSetServicePropertiesResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_fileshares_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_fileshares_client.go index 900da4897a5f..52ad542c0175 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_fileshares_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_fileshares_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type FileSharesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewFileSharesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *FileSharesClient { +func NewFileSharesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FileSharesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &FileSharesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // Create - Creates a new share under the specified account as described by request body. The share resource includes metadata @@ -103,7 +108,7 @@ func (client *FileSharesClient) createCreateRequest(ctx context.Context, resourc if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, fileShare) @@ -111,7 +116,7 @@ func (client *FileSharesClient) createCreateRequest(ctx context.Context, resourc // createHandleResponse handles the Create response. func (client *FileSharesClient) createHandleResponse(resp *http.Response) (FileSharesClientCreateResponse, error) { - result := FileSharesClientCreateResponse{RawResponse: resp} + result := FileSharesClientCreateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FileShare); err != nil { return FileSharesClientCreateResponse{}, err } @@ -139,7 +144,7 @@ func (client *FileSharesClient) Delete(ctx context.Context, resourceGroupName st if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return FileSharesClientDeleteResponse{}, runtime.NewResponseError(resp) } - return FileSharesClientDeleteResponse{RawResponse: resp}, nil + return FileSharesClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -166,7 +171,7 @@ func (client *FileSharesClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") if options != nil && options.Include != nil { reqQP.Set("$include", *options.Include) } @@ -226,7 +231,7 @@ func (client *FileSharesClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } @@ -240,7 +245,7 @@ func (client *FileSharesClient) getCreateRequest(ctx context.Context, resourceGr // getHandleResponse handles the Get response. func (client *FileSharesClient) getHandleResponse(resp *http.Response) (FileSharesClientGetResponse, error) { - result := FileSharesClientGetResponse{RawResponse: resp} + result := FileSharesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FileShare); err != nil { return FileSharesClientGetResponse{}, err } @@ -296,7 +301,7 @@ func (client *FileSharesClient) leaseCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.XMSSnapshot != nil { req.Raw().Header.Set("x-ms-snapshot", *options.XMSSnapshot) @@ -310,7 +315,7 @@ func (client *FileSharesClient) leaseCreateRequest(ctx context.Context, resource // leaseHandleResponse handles the Lease response. func (client *FileSharesClient) leaseHandleResponse(resp *http.Response) (FileSharesClientLeaseResponse, error) { - result := FileSharesClientLeaseResponse{RawResponse: resp} + result := FileSharesClientLeaseResponse{} if val := resp.Header.Get("ETag"); val != "" { result.ETag = &val } @@ -326,16 +331,32 @@ func (client *FileSharesClient) leaseHandleResponse(resp *http.Response) (FileSh // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - FileSharesClientListOptions contains the optional parameters for the FileSharesClient.List method. -func (client *FileSharesClient) List(resourceGroupName string, accountName string, options *FileSharesClientListOptions) *FileSharesClientListPager { - return &FileSharesClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, accountName, options) +func (client *FileSharesClient) List(resourceGroupName string, accountName string, options *FileSharesClientListOptions) *runtime.Pager[FileSharesClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[FileSharesClientListResponse]{ + More: func(page FileSharesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp FileSharesClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.FileShareItems.NextLink) + Fetcher: func(ctx context.Context, page *FileSharesClientListResponse) (FileSharesClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, accountName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return FileSharesClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return FileSharesClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return FileSharesClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -358,7 +379,7 @@ func (client *FileSharesClient) listCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") if options != nil && options.Maxpagesize != nil { reqQP.Set("$maxpagesize", *options.Maxpagesize) } @@ -375,7 +396,7 @@ func (client *FileSharesClient) listCreateRequest(ctx context.Context, resourceG // listHandleResponse handles the List response. func (client *FileSharesClient) listHandleResponse(resp *http.Response) (FileSharesClientListResponse, error) { - result := FileSharesClientListResponse{RawResponse: resp} + result := FileSharesClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FileShareItems); err != nil { return FileSharesClientListResponse{}, err } @@ -403,7 +424,7 @@ func (client *FileSharesClient) Restore(ctx context.Context, resourceGroupName s if !runtime.HasStatusCode(resp, http.StatusOK) { return FileSharesClientRestoreResponse{}, runtime.NewResponseError(resp) } - return FileSharesClientRestoreResponse{RawResponse: resp}, nil + return FileSharesClientRestoreResponse{}, nil } // restoreCreateRequest creates the Restore request. @@ -430,7 +451,7 @@ func (client *FileSharesClient) restoreCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, deletedShare) @@ -486,7 +507,7 @@ func (client *FileSharesClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, fileShare) @@ -494,7 +515,7 @@ func (client *FileSharesClient) updateCreateRequest(ctx context.Context, resourc // updateHandleResponse handles the Update response. func (client *FileSharesClient) updateHandleResponse(resp *http.Response) (FileSharesClientUpdateResponse, error) { - result := FileSharesClientUpdateResponse{RawResponse: resp} + result := FileSharesClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.FileShare); err != nil { return FileSharesClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_localusers_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_localusers_client.go index f658a083ba1d..53d950c08813 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_localusers_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_localusers_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type LocalUsersClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewLocalUsersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *LocalUsersClient { +func NewLocalUsersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LocalUsersClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &LocalUsersClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Create or update the properties of a local user associated with the storage account @@ -98,7 +103,7 @@ func (client *LocalUsersClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, properties) @@ -106,7 +111,7 @@ func (client *LocalUsersClient) createOrUpdateCreateRequest(ctx context.Context, // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *LocalUsersClient) createOrUpdateHandleResponse(resp *http.Response) (LocalUsersClientCreateOrUpdateResponse, error) { - result := LocalUsersClientCreateOrUpdateResponse{RawResponse: resp} + result := LocalUsersClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.LocalUser); err != nil { return LocalUsersClientCreateOrUpdateResponse{}, err } @@ -133,7 +138,7 @@ func (client *LocalUsersClient) Delete(ctx context.Context, resourceGroupName st if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return LocalUsersClientDeleteResponse{}, runtime.NewResponseError(resp) } - return LocalUsersClientDeleteResponse{RawResponse: resp}, nil + return LocalUsersClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -160,7 +165,7 @@ func (client *LocalUsersClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -213,7 +218,7 @@ func (client *LocalUsersClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -221,7 +226,7 @@ func (client *LocalUsersClient) getCreateRequest(ctx context.Context, resourceGr // getHandleResponse handles the Get response. func (client *LocalUsersClient) getHandleResponse(resp *http.Response) (LocalUsersClientGetResponse, error) { - result := LocalUsersClientGetResponse{RawResponse: resp} + result := LocalUsersClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.LocalUser); err != nil { return LocalUsersClientGetResponse{}, err } @@ -234,19 +239,26 @@ func (client *LocalUsersClient) getHandleResponse(resp *http.Response) (LocalUse // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - LocalUsersClientListOptions contains the optional parameters for the LocalUsersClient.List method. -func (client *LocalUsersClient) List(ctx context.Context, resourceGroupName string, accountName string, options *LocalUsersClientListOptions) (LocalUsersClientListResponse, error) { - req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) - if err != nil { - return LocalUsersClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return LocalUsersClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return LocalUsersClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) +func (client *LocalUsersClient) List(resourceGroupName string, accountName string, options *LocalUsersClientListOptions) *runtime.Pager[LocalUsersClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[LocalUsersClientListResponse]{ + More: func(page LocalUsersClientListResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *LocalUsersClientListResponse) (LocalUsersClientListResponse, error) { + req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) + if err != nil { + return LocalUsersClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return LocalUsersClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return LocalUsersClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) } // listCreateRequest creates the List request. @@ -269,7 +281,7 @@ func (client *LocalUsersClient) listCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -277,7 +289,7 @@ func (client *LocalUsersClient) listCreateRequest(ctx context.Context, resourceG // listHandleResponse handles the List response. func (client *LocalUsersClient) listHandleResponse(resp *http.Response) (LocalUsersClientListResponse, error) { - result := LocalUsersClientListResponse{RawResponse: resp} + result := LocalUsersClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.LocalUsers); err != nil { return LocalUsersClientListResponse{}, err } @@ -331,7 +343,7 @@ func (client *LocalUsersClient) listKeysCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -339,7 +351,7 @@ func (client *LocalUsersClient) listKeysCreateRequest(ctx context.Context, resou // listKeysHandleResponse handles the ListKeys response. func (client *LocalUsersClient) listKeysHandleResponse(resp *http.Response) (LocalUsersClientListKeysResponse, error) { - result := LocalUsersClientListKeysResponse{RawResponse: resp} + result := LocalUsersClientListKeysResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.LocalUserKeys); err != nil { return LocalUsersClientListKeysResponse{}, err } @@ -394,7 +406,7 @@ func (client *LocalUsersClient) regeneratePasswordCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -402,7 +414,7 @@ func (client *LocalUsersClient) regeneratePasswordCreateRequest(ctx context.Cont // regeneratePasswordHandleResponse handles the RegeneratePassword response. func (client *LocalUsersClient) regeneratePasswordHandleResponse(resp *http.Response) (LocalUsersClientRegeneratePasswordResponse, error) { - result := LocalUsersClientRegeneratePasswordResponse{RawResponse: resp} + result := LocalUsersClientRegeneratePasswordResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.LocalUserRegeneratePasswordResult); err != nil { return LocalUsersClientRegeneratePasswordResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_managementpolicies_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_managementpolicies_client.go index 9ebe87dd73ab..49fe9f365b75 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_managementpolicies_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_managementpolicies_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type ManagementPoliciesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewManagementPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ManagementPoliciesClient { +func NewManagementPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagementPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ManagementPoliciesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Sets the managementpolicy to the specified storage account. @@ -97,7 +102,7 @@ func (client *ManagementPoliciesClient) createOrUpdateCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, properties) @@ -105,7 +110,7 @@ func (client *ManagementPoliciesClient) createOrUpdateCreateRequest(ctx context. // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *ManagementPoliciesClient) createOrUpdateHandleResponse(resp *http.Response) (ManagementPoliciesClientCreateOrUpdateResponse, error) { - result := ManagementPoliciesClientCreateOrUpdateResponse{RawResponse: resp} + result := ManagementPoliciesClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementPolicy); err != nil { return ManagementPoliciesClientCreateOrUpdateResponse{}, err } @@ -132,7 +137,7 @@ func (client *ManagementPoliciesClient) Delete(ctx context.Context, resourceGrou if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ManagementPoliciesClientDeleteResponse{}, runtime.NewResponseError(resp) } - return ManagementPoliciesClientDeleteResponse{RawResponse: resp}, nil + return ManagementPoliciesClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -159,7 +164,7 @@ func (client *ManagementPoliciesClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } @@ -210,7 +215,7 @@ func (client *ManagementPoliciesClient) getCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -218,7 +223,7 @@ func (client *ManagementPoliciesClient) getCreateRequest(ctx context.Context, re // getHandleResponse handles the Get response. func (client *ManagementPoliciesClient) getHandleResponse(resp *http.Response) (ManagementPoliciesClientGetResponse, error) { - result := ManagementPoliciesClientGetResponse{RawResponse: resp} + result := ManagementPoliciesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ManagementPolicy); err != nil { return ManagementPoliciesClientGetResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_models.go b/sdk/resourcemanager/storage/armstorage/zz_generated_models.go index d9937e9a50cb..ac7482697816 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_models.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_models.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,12 +8,7 @@ package armstorage -import ( - "encoding/json" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) +import "time" type AccessPolicy struct { // Expiry time of the access policy @@ -26,41 +21,6 @@ type AccessPolicy struct { StartTime *time.Time `json:"startTime,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type AccessPolicy. -func (a AccessPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "expiryTime", a.ExpiryTime) - populate(objectMap, "permission", a.Permission) - populateTimeRFC3339(objectMap, "startTime", a.StartTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AccessPolicy. -func (a *AccessPolicy) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "expiryTime": - err = unpopulateTimeRFC3339(val, &a.ExpiryTime) - delete(rawMsg, key) - case "permission": - err = unpopulate(val, &a.Permission) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, &a.StartTime) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // Account - The storage account. type Account struct { // REQUIRED; The geo-location where the resource lives @@ -94,22 +54,6 @@ type Account struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Account. -func (a Account) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocation", a.ExtendedLocation) - populate(objectMap, "id", a.ID) - populate(objectMap, "identity", a.Identity) - populate(objectMap, "kind", a.Kind) - populate(objectMap, "location", a.Location) - populate(objectMap, "name", a.Name) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "sku", a.SKU) - populate(objectMap, "tags", a.Tags) - populate(objectMap, "type", a.Type) - return json.Marshal(objectMap) -} - // AccountCheckNameAvailabilityParameters - The parameters used to check the availability of the storage account name. type AccountCheckNameAvailabilityParameters struct { // REQUIRED; The storage account name. @@ -149,19 +93,6 @@ type AccountCreateParameters struct { Tags map[string]*string `json:"tags,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type AccountCreateParameters. -func (a AccountCreateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocation", a.ExtendedLocation) - populate(objectMap, "identity", a.Identity) - populate(objectMap, "kind", a.Kind) - populate(objectMap, "location", a.Location) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "sku", a.SKU) - populate(objectMap, "tags", a.Tags) - return json.Marshal(objectMap) -} - // AccountImmutabilityPolicyProperties - This defines account-level immutability policy properties. type AccountImmutabilityPolicyProperties struct { // This property can only be changed for disabled and unlocked time-based retention policies. When enabled, new blocks can @@ -211,58 +142,12 @@ type AccountKey struct { Value *string `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type AccountKey. -func (a AccountKey) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "creationTime", a.CreationTime) - populate(objectMap, "keyName", a.KeyName) - populate(objectMap, "permissions", a.Permissions) - populate(objectMap, "value", a.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AccountKey. -func (a *AccountKey) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "creationTime": - err = unpopulateTimeRFC3339(val, &a.CreationTime) - delete(rawMsg, key) - case "keyName": - err = unpopulate(val, &a.KeyName) - delete(rawMsg, key) - case "permissions": - err = unpopulate(val, &a.Permissions) - delete(rawMsg, key) - case "value": - err = unpopulate(val, &a.Value) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // AccountListKeysResult - The response from the ListKeys operation. type AccountListKeysResult struct { // READ-ONLY; Gets the list of storage account keys and their properties for the specified storage account. Keys []*AccountKey `json:"keys,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type AccountListKeysResult. -func (a AccountListKeysResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "keys", a.Keys) - return json.Marshal(objectMap) -} - // AccountListResult - The response from the List Storage Accounts operation. type AccountListResult struct { // READ-ONLY; Request URL that can be used to query next page of storage accounts. Returned when total number of requested @@ -273,14 +158,6 @@ type AccountListResult struct { Value []*Account `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type AccountListResult. -func (a AccountListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", a.NextLink) - populate(objectMap, "value", a.Value) - return json.Marshal(objectMap) -} - // AccountMicrosoftEndpoints - The URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object // via a microsoft routing endpoint. type AccountMicrosoftEndpoints struct { @@ -323,6 +200,11 @@ type AccountProperties struct { // Provides the identity based authentication settings for Azure Files. AzureFilesIdentityBasedAuthentication *AzureFilesIdentityBasedAuthentication `json:"azureFilesIdentityBasedAuthentication,omitempty"` + // Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, + // which creates accounts in an Azure DNS Zone and the endpoint URL + // will have an alphanumeric DNS Zone identifier. + DNSEndpointType *DNSEndpointType `json:"dnsEndpointType,omitempty"` + // A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false // for this property. DefaultToOAuthAuthentication *bool `json:"defaultToOAuthAuthentication,omitempty"` @@ -358,7 +240,12 @@ type AccountProperties struct { // Maintains information about the network routing choice opted by the user for data transfer RoutingPreference *RoutingPreference `json:"routingPreference,omitempty"` - // READ-ONLY; Required for storage accounts where kind = BlobStorage. The access tier used for billing. + // This property is readOnly and is set by server during asynchronous storage account sku conversion operations. + StorageAccountSKUConversionStatus *AccountSKUConversionStatus `json:"storageAccountSkuConversionStatus,omitempty"` + + // READ-ONLY; Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access + // tier is the default value for premium block blobs storage account type and it cannot + // be changed for the premium block blobs storage account type. AccessTier *AccessTier `json:"accessTier,omitempty" azure:"ro"` // READ-ONLY; Blob restore status @@ -425,176 +312,11 @@ type AccountProperties struct { StatusOfSecondary *AccountStatus `json:"statusOfSecondary,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type AccountProperties. -func (a AccountProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accessTier", a.AccessTier) - populate(objectMap, "allowBlobPublicAccess", a.AllowBlobPublicAccess) - populate(objectMap, "allowCrossTenantReplication", a.AllowCrossTenantReplication) - populate(objectMap, "allowSharedKeyAccess", a.AllowSharedKeyAccess) - populate(objectMap, "allowedCopyScope", a.AllowedCopyScope) - populate(objectMap, "azureFilesIdentityBasedAuthentication", a.AzureFilesIdentityBasedAuthentication) - populate(objectMap, "blobRestoreStatus", a.BlobRestoreStatus) - populateTimeRFC3339(objectMap, "creationTime", a.CreationTime) - populate(objectMap, "customDomain", a.CustomDomain) - populate(objectMap, "defaultToOAuthAuthentication", a.DefaultToOAuthAuthentication) - populate(objectMap, "supportsHttpsTrafficOnly", a.EnableHTTPSTrafficOnly) - populate(objectMap, "isNfsV3Enabled", a.EnableNfsV3) - populate(objectMap, "encryption", a.Encryption) - populate(objectMap, "failoverInProgress", a.FailoverInProgress) - populate(objectMap, "geoReplicationStats", a.GeoReplicationStats) - populate(objectMap, "immutableStorageWithVersioning", a.ImmutableStorageWithVersioning) - populate(objectMap, "isHnsEnabled", a.IsHnsEnabled) - populate(objectMap, "isLocalUserEnabled", a.IsLocalUserEnabled) - populate(objectMap, "isSftpEnabled", a.IsSftpEnabled) - populate(objectMap, "keyCreationTime", a.KeyCreationTime) - populate(objectMap, "keyPolicy", a.KeyPolicy) - populate(objectMap, "largeFileSharesState", a.LargeFileSharesState) - populateTimeRFC3339(objectMap, "lastGeoFailoverTime", a.LastGeoFailoverTime) - populate(objectMap, "minimumTlsVersion", a.MinimumTLSVersion) - populate(objectMap, "networkAcls", a.NetworkRuleSet) - populate(objectMap, "primaryEndpoints", a.PrimaryEndpoints) - populate(objectMap, "primaryLocation", a.PrimaryLocation) - populate(objectMap, "privateEndpointConnections", a.PrivateEndpointConnections) - populate(objectMap, "provisioningState", a.ProvisioningState) - populate(objectMap, "publicNetworkAccess", a.PublicNetworkAccess) - populate(objectMap, "routingPreference", a.RoutingPreference) - populate(objectMap, "sasPolicy", a.SasPolicy) - populate(objectMap, "secondaryEndpoints", a.SecondaryEndpoints) - populate(objectMap, "secondaryLocation", a.SecondaryLocation) - populate(objectMap, "statusOfPrimary", a.StatusOfPrimary) - populate(objectMap, "statusOfSecondary", a.StatusOfSecondary) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AccountProperties. -func (a *AccountProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "accessTier": - err = unpopulate(val, &a.AccessTier) - delete(rawMsg, key) - case "allowBlobPublicAccess": - err = unpopulate(val, &a.AllowBlobPublicAccess) - delete(rawMsg, key) - case "allowCrossTenantReplication": - err = unpopulate(val, &a.AllowCrossTenantReplication) - delete(rawMsg, key) - case "allowSharedKeyAccess": - err = unpopulate(val, &a.AllowSharedKeyAccess) - delete(rawMsg, key) - case "allowedCopyScope": - err = unpopulate(val, &a.AllowedCopyScope) - delete(rawMsg, key) - case "azureFilesIdentityBasedAuthentication": - err = unpopulate(val, &a.AzureFilesIdentityBasedAuthentication) - delete(rawMsg, key) - case "blobRestoreStatus": - err = unpopulate(val, &a.BlobRestoreStatus) - delete(rawMsg, key) - case "creationTime": - err = unpopulateTimeRFC3339(val, &a.CreationTime) - delete(rawMsg, key) - case "customDomain": - err = unpopulate(val, &a.CustomDomain) - delete(rawMsg, key) - case "defaultToOAuthAuthentication": - err = unpopulate(val, &a.DefaultToOAuthAuthentication) - delete(rawMsg, key) - case "supportsHttpsTrafficOnly": - err = unpopulate(val, &a.EnableHTTPSTrafficOnly) - delete(rawMsg, key) - case "isNfsV3Enabled": - err = unpopulate(val, &a.EnableNfsV3) - delete(rawMsg, key) - case "encryption": - err = unpopulate(val, &a.Encryption) - delete(rawMsg, key) - case "failoverInProgress": - err = unpopulate(val, &a.FailoverInProgress) - delete(rawMsg, key) - case "geoReplicationStats": - err = unpopulate(val, &a.GeoReplicationStats) - delete(rawMsg, key) - case "immutableStorageWithVersioning": - err = unpopulate(val, &a.ImmutableStorageWithVersioning) - delete(rawMsg, key) - case "isHnsEnabled": - err = unpopulate(val, &a.IsHnsEnabled) - delete(rawMsg, key) - case "isLocalUserEnabled": - err = unpopulate(val, &a.IsLocalUserEnabled) - delete(rawMsg, key) - case "isSftpEnabled": - err = unpopulate(val, &a.IsSftpEnabled) - delete(rawMsg, key) - case "keyCreationTime": - err = unpopulate(val, &a.KeyCreationTime) - delete(rawMsg, key) - case "keyPolicy": - err = unpopulate(val, &a.KeyPolicy) - delete(rawMsg, key) - case "largeFileSharesState": - err = unpopulate(val, &a.LargeFileSharesState) - delete(rawMsg, key) - case "lastGeoFailoverTime": - err = unpopulateTimeRFC3339(val, &a.LastGeoFailoverTime) - delete(rawMsg, key) - case "minimumTlsVersion": - err = unpopulate(val, &a.MinimumTLSVersion) - delete(rawMsg, key) - case "networkAcls": - err = unpopulate(val, &a.NetworkRuleSet) - delete(rawMsg, key) - case "primaryEndpoints": - err = unpopulate(val, &a.PrimaryEndpoints) - delete(rawMsg, key) - case "primaryLocation": - err = unpopulate(val, &a.PrimaryLocation) - delete(rawMsg, key) - case "privateEndpointConnections": - err = unpopulate(val, &a.PrivateEndpointConnections) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, &a.ProvisioningState) - delete(rawMsg, key) - case "publicNetworkAccess": - err = unpopulate(val, &a.PublicNetworkAccess) - delete(rawMsg, key) - case "routingPreference": - err = unpopulate(val, &a.RoutingPreference) - delete(rawMsg, key) - case "sasPolicy": - err = unpopulate(val, &a.SasPolicy) - delete(rawMsg, key) - case "secondaryEndpoints": - err = unpopulate(val, &a.SecondaryEndpoints) - delete(rawMsg, key) - case "secondaryLocation": - err = unpopulate(val, &a.SecondaryLocation) - delete(rawMsg, key) - case "statusOfPrimary": - err = unpopulate(val, &a.StatusOfPrimary) - delete(rawMsg, key) - case "statusOfSecondary": - err = unpopulate(val, &a.StatusOfSecondary) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // AccountPropertiesCreateParameters - The parameters used to create the storage account. type AccountPropertiesCreateParameters struct { - // Required for storage accounts where kind = BlobStorage. The access tier used for billing. + // Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier + // is the default value for premium block blobs storage account type and it cannot + // be changed for the premium block blobs storage account type. AccessTier *AccessTier `json:"accessTier,omitempty"` // Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for @@ -620,6 +342,11 @@ type AccountPropertiesCreateParameters struct { // for the custom domain name property. CustomDomain *CustomDomain `json:"customDomain,omitempty"` + // Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, + // which creates accounts in an Azure DNS Zone and the endpoint URL + // will have an alphanumeric DNS Zone identifier. + DNSEndpointType *DNSEndpointType `json:"dnsEndpointType,omitempty"` + // A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false // for this property. DefaultToOAuthAuthentication *bool `json:"defaultToOAuthAuthentication,omitempty"` @@ -670,7 +397,9 @@ type AccountPropertiesCreateParameters struct { // AccountPropertiesUpdateParameters - The parameters used when updating a storage account. type AccountPropertiesUpdateParameters struct { - // Required for storage accounts where kind = BlobStorage. The access tier used for billing. + // Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier + // is the default value for premium block blobs storage account type and it cannot + // be changed for the premium block blobs storage account type. AccessTier *AccessTier `json:"accessTier,omitempty"` // Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for @@ -696,6 +425,11 @@ type AccountPropertiesUpdateParameters struct { // empty string for the custom domain name property. CustomDomain *CustomDomain `json:"customDomain,omitempty"` + // Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, + // which creates accounts in an Azure DNS Zone and the endpoint URL + // will have an alphanumeric DNS Zone identifier. + DNSEndpointType *DNSEndpointType `json:"dnsEndpointType,omitempty"` + // A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false // for this property. DefaultToOAuthAuthentication *bool `json:"defaultToOAuthAuthentication,omitempty"` @@ -744,6 +478,21 @@ type AccountRegenerateKeyParameters struct { KeyName *string `json:"keyName,omitempty"` } +// AccountSKUConversionStatus - This defines the sku conversion status object for asynchronous sku conversions. +type AccountSKUConversionStatus struct { + // This property represents the target sku name to which the account sku is being converted asynchronously. + TargetSKUName *SKUName `json:"targetSkuName,omitempty"` + + // READ-ONLY; This property represents the sku conversion end time. + EndTime *string `json:"endTime,omitempty" azure:"ro"` + + // READ-ONLY; This property indicates the current sku conversion status. + SKUConversionStatus *SKUConversionStatus `json:"skuConversionStatus,omitempty" azure:"ro"` + + // READ-ONLY; This property represents the sku conversion start time. + StartTime *string `json:"startTime,omitempty" azure:"ro"` +} + // AccountSasParameters - The parameters to list SAS credentials of a storage account. type AccountSasParameters struct { // REQUIRED; The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), @@ -775,61 +524,6 @@ type AccountSasParameters struct { SharedAccessStartTime *time.Time `json:"signedStart,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type AccountSasParameters. -func (a AccountSasParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "signedIp", a.IPAddressOrRange) - populate(objectMap, "keyToSign", a.KeyToSign) - populate(objectMap, "signedPermission", a.Permissions) - populate(objectMap, "signedProtocol", a.Protocols) - populate(objectMap, "signedResourceTypes", a.ResourceTypes) - populate(objectMap, "signedServices", a.Services) - populateTimeRFC3339(objectMap, "signedExpiry", a.SharedAccessExpiryTime) - populateTimeRFC3339(objectMap, "signedStart", a.SharedAccessStartTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AccountSasParameters. -func (a *AccountSasParameters) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "signedIp": - err = unpopulate(val, &a.IPAddressOrRange) - delete(rawMsg, key) - case "keyToSign": - err = unpopulate(val, &a.KeyToSign) - delete(rawMsg, key) - case "signedPermission": - err = unpopulate(val, &a.Permissions) - delete(rawMsg, key) - case "signedProtocol": - err = unpopulate(val, &a.Protocols) - delete(rawMsg, key) - case "signedResourceTypes": - err = unpopulate(val, &a.ResourceTypes) - delete(rawMsg, key) - case "signedServices": - err = unpopulate(val, &a.Services) - delete(rawMsg, key) - case "signedExpiry": - err = unpopulateTimeRFC3339(val, &a.SharedAccessExpiryTime) - delete(rawMsg, key) - case "signedStart": - err = unpopulateTimeRFC3339(val, &a.SharedAccessStartTime) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // AccountUpdateParameters - The parameters that can be provided when updating the storage account properties. type AccountUpdateParameters struct { // The identity of the resource. @@ -851,43 +545,37 @@ type AccountUpdateParameters struct { Tags map[string]*string `json:"tags,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type AccountUpdateParameters. -func (a AccountUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", a.Identity) - populate(objectMap, "kind", a.Kind) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "sku", a.SKU) - populate(objectMap, "tags", a.Tags) - return json.Marshal(objectMap) -} - // AccountsClientBeginAbortHierarchicalNamespaceMigrationOptions contains the optional parameters for the AccountsClient.BeginAbortHierarchicalNamespaceMigration // method. type AccountsClientBeginAbortHierarchicalNamespaceMigrationOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // AccountsClientBeginCreateOptions contains the optional parameters for the AccountsClient.BeginCreate method. type AccountsClientBeginCreateOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // AccountsClientBeginFailoverOptions contains the optional parameters for the AccountsClient.BeginFailover method. type AccountsClientBeginFailoverOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // AccountsClientBeginHierarchicalNamespaceMigrationOptions contains the optional parameters for the AccountsClient.BeginHierarchicalNamespaceMigration // method. type AccountsClientBeginHierarchicalNamespaceMigrationOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // AccountsClientBeginRestoreBlobRangesOptions contains the optional parameters for the AccountsClient.BeginRestoreBlobRanges // method. type AccountsClientBeginRestoreBlobRangesOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // AccountsClientCheckNameAvailabilityOptions contains the optional parameters for the AccountsClient.CheckNameAvailability @@ -1022,21 +710,11 @@ type BlobContainer struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type BlobContainer. -func (b BlobContainer) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", b.ContainerProperties) - populate(objectMap, "etag", b.Etag) - populate(objectMap, "id", b.ID) - populate(objectMap, "name", b.Name) - populate(objectMap, "type", b.Type) - return json.Marshal(objectMap) -} - // BlobContainersClientBeginObjectLevelWormOptions contains the optional parameters for the BlobContainersClient.BeginObjectLevelWorm // method. type BlobContainersClientBeginObjectLevelWormOptions struct { - // placeholder for future optional parameters + // Resumes the LRO from the provided token. + ResumeToken string } // BlobContainersClientClearLegalHoldOptions contains the optional parameters for the BlobContainersClient.ClearLegalHold @@ -1180,28 +858,25 @@ type BlobInventoryPolicyDefinition struct { // inventory. The Schema field value 'Name' is always required. The valid values for this // field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, // AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, - // hdiisfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime'. The valid - // values for 'Container' definition.objectType include 'Name, Last-Modified, - // Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold'. Schema field values - // 'Expiry-Time, hdiisfolder, Owner, Group, Permissions, Acl' are valid only for - // Hns enabled accounts.'Tags' field is only valid for non Hns accounts + // hdiisfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, + // ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, + // ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, + // ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, + // CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, + // ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, + // IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. + // The valid values for 'Container' definition.objectType include 'Name, + // Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, + // DefaultEncryptionScope, DenyEncryptionScopeOverride, + // ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, + // hdiisfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only + // for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts. SchemaFields []*string `json:"schemaFields,omitempty"` // An object that defines the filter set. Filters *BlobInventoryPolicyFilter `json:"filters,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyDefinition. -func (b BlobInventoryPolicyDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "filters", b.Filters) - populate(objectMap, "format", b.Format) - populate(objectMap, "objectType", b.ObjectType) - populate(objectMap, "schedule", b.Schedule) - populate(objectMap, "schemaFields", b.SchemaFields) - return json.Marshal(objectMap) -} - // BlobInventoryPolicyFilter - An object that defines the blob inventory rule filter conditions. For 'Blob' definition.objectType // all filter properties are applicable, 'blobTypes' is required and others are optional. For // 'Container' definition.objectType only prefixMatch is applicable and is optional. @@ -1211,29 +886,29 @@ type BlobInventoryPolicyFilter struct { // 'Blob'. BlobTypes []*string `json:"blobTypes,omitempty"` + // An array of strings with maximum 10 blob prefixes to be excluded from the inventory. + ExcludePrefix []*string `json:"excludePrefix,omitempty"` + // Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' // are required if this property is set to true, else they must be // excluded. IncludeBlobVersions *bool `json:"includeBlobVersions,omitempty"` + // For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. + // For 'Blob' definition.objectType and HNS enabled storage + // accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for + // Hns disabled accounts the definition.schemaFields must include 'Deleted and + // RemainingRetentionDays', else it must be excluded. + IncludeDeleted *bool `json:"includeDeleted,omitempty"` + // Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required // if this property is set to true, else it must be excluded. IncludeSnapshots *bool `json:"includeSnapshots,omitempty"` - // An array of strings for blob prefixes to be matched. + // An array of strings with maximum 10 blob prefixes to be included in the inventory. PrefixMatch []*string `json:"prefixMatch,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyFilter. -func (b BlobInventoryPolicyFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "blobTypes", b.BlobTypes) - populate(objectMap, "includeBlobVersions", b.IncludeBlobVersions) - populate(objectMap, "includeSnapshots", b.IncludeSnapshots) - populate(objectMap, "prefixMatch", b.PrefixMatch) - return json.Marshal(objectMap) -} - // BlobInventoryPolicyProperties - The storage account blob inventory policy properties. type BlobInventoryPolicyProperties struct { // REQUIRED; The storage account blob inventory policy object. It is composed of policy rules. @@ -1243,37 +918,6 @@ type BlobInventoryPolicyProperties struct { LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyProperties. -func (b BlobInventoryPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "lastModifiedTime", b.LastModifiedTime) - populate(objectMap, "policy", b.Policy) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type BlobInventoryPolicyProperties. -func (b *BlobInventoryPolicyProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "lastModifiedTime": - err = unpopulateTimeRFC3339(val, &b.LastModifiedTime) - delete(rawMsg, key) - case "policy": - err = unpopulate(val, &b.Policy) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // BlobInventoryPolicyRule - An object that wraps the blob inventory rule. Each rule is uniquely defined by name. type BlobInventoryPolicyRule struct { // REQUIRED; An object that defines the blob inventory policy rule. @@ -1300,15 +944,10 @@ type BlobInventoryPolicySchema struct { // REQUIRED; The valid value is Inventory Type *InventoryRuleType `json:"type,omitempty"` -} -// MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicySchema. -func (b BlobInventoryPolicySchema) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "enabled", b.Enabled) - populate(objectMap, "rules", b.Rules) - populate(objectMap, "type", b.Type) - return json.Marshal(objectMap) + // READ-ONLY; Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified + // at the rule level 'policy.rule.destination' + Destination *string `json:"destination,omitempty" azure:"ro"` } // BlobRestoreParameters - Blob restore parameters @@ -1320,37 +959,6 @@ type BlobRestoreParameters struct { TimeToRestore *time.Time `json:"timeToRestore,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type BlobRestoreParameters. -func (b BlobRestoreParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "blobRanges", b.BlobRanges) - populateTimeRFC3339(objectMap, "timeToRestore", b.TimeToRestore) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type BlobRestoreParameters. -func (b *BlobRestoreParameters) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "blobRanges": - err = unpopulate(val, &b.BlobRanges) - delete(rawMsg, key) - case "timeToRestore": - err = unpopulateTimeRFC3339(val, &b.TimeToRestore) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // BlobRestoreRange - Blob range type BlobRestoreRange struct { // REQUIRED; Blob end range. This is exclusive. Empty means account end. @@ -1382,13 +990,6 @@ type BlobServiceItems struct { Value []*BlobServiceProperties `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type BlobServiceItems. -func (b BlobServiceItems) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", b.Value) - return json.Marshal(objectMap) -} - // BlobServiceProperties - The properties of a storage account’s Blob service. type BlobServiceProperties struct { // The properties of a storage account’s Blob service. @@ -1482,6 +1083,27 @@ type CheckNameAvailabilityResult struct { Reason *Reason `json:"reason,omitempty" azure:"ro"` } +// CloudError - An error response from the Storage service. +type CloudError struct { + // An error response from the Storage service. + Error *CloudErrorBody `json:"error,omitempty"` +} + +// CloudErrorBody - An error response from the Storage service. +type CloudErrorBody struct { + // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Code *string `json:"code,omitempty"` + + // A list of additional details about the error. + Details []*CloudErrorBody `json:"details,omitempty"` + + // A message describing the error, intended to be suitable for display in a user interface. + Message *string `json:"message,omitempty"` + + // The target of the particular error. For example, the name of the property in error. + Target *string `json:"target,omitempty"` +} + // ContainerProperties - The properties of a container. type ContainerProperties struct { // Default the container to use specified encryption scope for all writes. @@ -1547,105 +1169,6 @@ type ContainerProperties struct { Version *string `json:"version,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ContainerProperties. -func (c ContainerProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "defaultEncryptionScope", c.DefaultEncryptionScope) - populate(objectMap, "deleted", c.Deleted) - populateTimeRFC3339(objectMap, "deletedTime", c.DeletedTime) - populate(objectMap, "denyEncryptionScopeOverride", c.DenyEncryptionScopeOverride) - populate(objectMap, "enableNfsV3AllSquash", c.EnableNfsV3AllSquash) - populate(objectMap, "enableNfsV3RootSquash", c.EnableNfsV3RootSquash) - populate(objectMap, "hasImmutabilityPolicy", c.HasImmutabilityPolicy) - populate(objectMap, "hasLegalHold", c.HasLegalHold) - populate(objectMap, "immutabilityPolicy", c.ImmutabilityPolicy) - populate(objectMap, "immutableStorageWithVersioning", c.ImmutableStorageWithVersioning) - populateTimeRFC3339(objectMap, "lastModifiedTime", c.LastModifiedTime) - populate(objectMap, "leaseDuration", c.LeaseDuration) - populate(objectMap, "leaseState", c.LeaseState) - populate(objectMap, "leaseStatus", c.LeaseStatus) - populate(objectMap, "legalHold", c.LegalHold) - populate(objectMap, "metadata", c.Metadata) - populate(objectMap, "publicAccess", c.PublicAccess) - populate(objectMap, "remainingRetentionDays", c.RemainingRetentionDays) - populate(objectMap, "version", c.Version) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerProperties. -func (c *ContainerProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "defaultEncryptionScope": - err = unpopulate(val, &c.DefaultEncryptionScope) - delete(rawMsg, key) - case "deleted": - err = unpopulate(val, &c.Deleted) - delete(rawMsg, key) - case "deletedTime": - err = unpopulateTimeRFC3339(val, &c.DeletedTime) - delete(rawMsg, key) - case "denyEncryptionScopeOverride": - err = unpopulate(val, &c.DenyEncryptionScopeOverride) - delete(rawMsg, key) - case "enableNfsV3AllSquash": - err = unpopulate(val, &c.EnableNfsV3AllSquash) - delete(rawMsg, key) - case "enableNfsV3RootSquash": - err = unpopulate(val, &c.EnableNfsV3RootSquash) - delete(rawMsg, key) - case "hasImmutabilityPolicy": - err = unpopulate(val, &c.HasImmutabilityPolicy) - delete(rawMsg, key) - case "hasLegalHold": - err = unpopulate(val, &c.HasLegalHold) - delete(rawMsg, key) - case "immutabilityPolicy": - err = unpopulate(val, &c.ImmutabilityPolicy) - delete(rawMsg, key) - case "immutableStorageWithVersioning": - err = unpopulate(val, &c.ImmutableStorageWithVersioning) - delete(rawMsg, key) - case "lastModifiedTime": - err = unpopulateTimeRFC3339(val, &c.LastModifiedTime) - delete(rawMsg, key) - case "leaseDuration": - err = unpopulate(val, &c.LeaseDuration) - delete(rawMsg, key) - case "leaseState": - err = unpopulate(val, &c.LeaseState) - delete(rawMsg, key) - case "leaseStatus": - err = unpopulate(val, &c.LeaseStatus) - delete(rawMsg, key) - case "legalHold": - err = unpopulate(val, &c.LegalHold) - delete(rawMsg, key) - case "metadata": - err = unpopulate(val, &c.Metadata) - delete(rawMsg, key) - case "publicAccess": - err = unpopulate(val, &c.PublicAccess) - delete(rawMsg, key) - case "remainingRetentionDays": - err = unpopulate(val, &c.RemainingRetentionDays) - delete(rawMsg, key) - case "version": - err = unpopulate(val, &c.Version) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // CorsRule - Specifies a CORS rule for the Blob service. type CorsRule struct { // REQUIRED; Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request. @@ -1666,30 +1189,12 @@ type CorsRule struct { MaxAgeInSeconds *int32 `json:"maxAgeInSeconds,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type CorsRule. -func (c CorsRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowedHeaders", c.AllowedHeaders) - populate(objectMap, "allowedMethods", c.AllowedMethods) - populate(objectMap, "allowedOrigins", c.AllowedOrigins) - populate(objectMap, "exposedHeaders", c.ExposedHeaders) - populate(objectMap, "maxAgeInSeconds", c.MaxAgeInSeconds) - return json.Marshal(objectMap) -} - // CorsRules - Sets the CORS rules. You can include up to five CorsRule elements in the request. type CorsRules struct { // The List of CORS rules. You can include up to five CorsRule elements in the request. CorsRules []*CorsRule `json:"corsRules,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type CorsRules. -func (c CorsRules) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "corsRules", c.CorsRules) - return json.Marshal(objectMap) -} - // CustomDomain - The custom domain assigned to this storage account. This can be set via Update. type CustomDomain struct { // REQUIRED; Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source. @@ -1699,25 +1204,46 @@ type CustomDomain struct { UseSubDomainName *bool `json:"useSubDomainName,omitempty"` } -// DateAfterCreation - Object to define the number of days after creation. +// DateAfterCreation - Object to define snapshot and version action conditions. type DateAfterCreation struct { // REQUIRED; Value indicating the age in days after creation DaysAfterCreationGreaterThan *float32 `json:"daysAfterCreationGreaterThan,omitempty"` + + // Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions + // and requires daysAfterCreationGreaterThan to be set for snapshots and blob + // version based actions. The blob will be archived if both the conditions are satisfied. + DaysAfterLastTierChangeGreaterThan *float32 `json:"daysAfterLastTierChangeGreaterThan,omitempty"` } -// DateAfterModification - Object to define the number of days after object last modification Or last access. Properties daysAfterModificationGreaterThan -// and daysAfterLastAccessTimeGreaterThan are mutually exclusive. +// DateAfterModification - Object to define the base blob action conditions. Properties daysAfterModificationGreaterThan, +// daysAfterLastAccessTimeGreaterThan and daysAfterCreationGreaterThan are mutually exclusive. The +// daysAfterLastTierChangeGreaterThan property is only applicable for tierToArchive actions which requires daysAfterModificationGreaterThan +// to be set, also it cannot be used in conjunction with +// daysAfterLastAccessTimeGreaterThan or daysAfterCreationGreaterThan. type DateAfterModification struct { + // Value indicating the age in days after blob creation. + DaysAfterCreationGreaterThan *float32 `json:"daysAfterCreationGreaterThan,omitempty"` + // Value indicating the age in days after last blob access. This property can only be used in conjunction with last access // time tracking policy DaysAfterLastAccessTimeGreaterThan *float32 `json:"daysAfterLastAccessTimeGreaterThan,omitempty"` + // Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions + // and requires daysAfterModificationGreaterThan to be set for baseBlobs + // based actions. The blob will be archived if both the conditions are satisfied. + DaysAfterLastTierChangeGreaterThan *float32 `json:"daysAfterLastTierChangeGreaterThan,omitempty"` + // Value indicating the age in days after last modification DaysAfterModificationGreaterThan *float32 `json:"daysAfterModificationGreaterThan,omitempty"` } // DeleteRetentionPolicy - The service properties for soft delete. type DeleteRetentionPolicy struct { + // This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be + // used blob restore policy. This property only applies to blob service and does + // not apply to containers or file share. + AllowPermanentDelete *bool `json:"allowPermanentDelete,omitempty"` + // Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum // value can be 365. Days *int32 `json:"days,omitempty"` @@ -1751,14 +1277,6 @@ type DeletedAccountListResult struct { Value []*DeletedAccount `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type DeletedAccountListResult. -func (d DeletedAccountListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", d.NextLink) - populate(objectMap, "value", d.Value) - return json.Marshal(objectMap) -} - // DeletedAccountProperties - Attributes of a deleted storage account. type DeletedAccountProperties struct { // READ-ONLY; Creation time of the deleted account. @@ -1849,16 +1367,6 @@ type EncryptionScope struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type EncryptionScope. -func (e EncryptionScope) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", e.EncryptionScopeProperties) - populate(objectMap, "id", e.ID) - populate(objectMap, "name", e.Name) - populate(objectMap, "type", e.Type) - return json.Marshal(objectMap) -} - // EncryptionScopeKeyVaultProperties - The key vault properties for the encryption scope. This is a required field if encryption // scope 'source' attribute is set to 'Microsoft.KeyVault'. type EncryptionScopeKeyVaultProperties struct { @@ -1873,41 +1381,6 @@ type EncryptionScopeKeyVaultProperties struct { LastKeyRotationTimestamp *time.Time `json:"lastKeyRotationTimestamp,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type EncryptionScopeKeyVaultProperties. -func (e EncryptionScopeKeyVaultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "currentVersionedKeyIdentifier", e.CurrentVersionedKeyIdentifier) - populate(objectMap, "keyUri", e.KeyURI) - populateTimeRFC3339(objectMap, "lastKeyRotationTimestamp", e.LastKeyRotationTimestamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionScopeKeyVaultProperties. -func (e *EncryptionScopeKeyVaultProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "currentVersionedKeyIdentifier": - err = unpopulate(val, &e.CurrentVersionedKeyIdentifier) - delete(rawMsg, key) - case "keyUri": - err = unpopulate(val, &e.KeyURI) - delete(rawMsg, key) - case "lastKeyRotationTimestamp": - err = unpopulateTimeRFC3339(val, &e.LastKeyRotationTimestamp) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // EncryptionScopeListResult - List of encryption scopes requested, and if paging is required, a URL to the next page of encryption // scopes. type EncryptionScopeListResult struct { @@ -1919,14 +1392,6 @@ type EncryptionScopeListResult struct { Value []*EncryptionScope `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type EncryptionScopeListResult. -func (e EncryptionScopeListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", e.NextLink) - populate(objectMap, "value", e.Value) - return json.Marshal(objectMap) -} - // EncryptionScopeProperties - Properties of the encryption scope. type EncryptionScopeProperties struct { // The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set @@ -1950,53 +1415,6 @@ type EncryptionScopeProperties struct { LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type EncryptionScopeProperties. -func (e EncryptionScopeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "creationTime", e.CreationTime) - populate(objectMap, "keyVaultProperties", e.KeyVaultProperties) - populateTimeRFC3339(objectMap, "lastModifiedTime", e.LastModifiedTime) - populate(objectMap, "requireInfrastructureEncryption", e.RequireInfrastructureEncryption) - populate(objectMap, "source", e.Source) - populate(objectMap, "state", e.State) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionScopeProperties. -func (e *EncryptionScopeProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "creationTime": - err = unpopulateTimeRFC3339(val, &e.CreationTime) - delete(rawMsg, key) - case "keyVaultProperties": - err = unpopulate(val, &e.KeyVaultProperties) - delete(rawMsg, key) - case "lastModifiedTime": - err = unpopulateTimeRFC3339(val, &e.LastModifiedTime) - delete(rawMsg, key) - case "requireInfrastructureEncryption": - err = unpopulate(val, &e.RequireInfrastructureEncryption) - delete(rawMsg, key) - case "source": - err = unpopulate(val, &e.Source) - delete(rawMsg, key) - case "state": - err = unpopulate(val, &e.State) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // EncryptionScopesClientGetOptions contains the optional parameters for the EncryptionScopesClient.Get method. type EncryptionScopesClientGetOptions struct { // placeholder for future optional parameters @@ -2032,41 +1450,6 @@ type EncryptionService struct { LastEnabledTime *time.Time `json:"lastEnabledTime,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type EncryptionService. -func (e EncryptionService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "enabled", e.Enabled) - populate(objectMap, "keyType", e.KeyType) - populateTimeRFC3339(objectMap, "lastEnabledTime", e.LastEnabledTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionService. -func (e *EncryptionService) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "enabled": - err = unpopulate(val, &e.Enabled) - delete(rawMsg, key) - case "keyType": - err = unpopulate(val, &e.KeyType) - delete(rawMsg, key) - case "lastEnabledTime": - err = unpopulateTimeRFC3339(val, &e.LastEnabledTime) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // EncryptionServices - A list of services that support encryption. type EncryptionServices struct { // The encryption function of the blob storage service. @@ -2109,6 +1492,21 @@ type Endpoints struct { Web *string `json:"web,omitempty" azure:"ro"` } +// ErrorResponse - An error response from the storage resource provider. +type ErrorResponse struct { + // Azure Storage Resource Provider error response body. + Error *ErrorResponseBody `json:"error,omitempty"` +} + +// ErrorResponseBody - Error response body contract. +type ErrorResponseBody struct { + // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Code *string `json:"code,omitempty"` + + // A message describing the error, intended to be suitable for display in a user interface. + Message *string `json:"message,omitempty"` +} + // ExtendedLocation - The complex type of the extended location. type ExtendedLocation struct { // The name of the extended location. @@ -2123,13 +1521,6 @@ type FileServiceItems struct { Value []*FileServiceProperties `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type FileServiceItems. -func (f FileServiceItems) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", f.Value) - return json.Marshal(objectMap) -} - // FileServiceProperties - The properties of File services in storage account. type FileServiceProperties struct { // The properties of File services in storage account. @@ -2197,17 +1588,6 @@ type FileShare struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type FileShare. -func (f FileShare) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "etag", f.Etag) - populate(objectMap, "properties", f.FileShareProperties) - populate(objectMap, "id", f.ID) - populate(objectMap, "name", f.Name) - populate(objectMap, "type", f.Type) - return json.Marshal(objectMap) -} - // FileShareItem - The file share properties be listed out. type FileShareItem struct { // The file share properties be listed out. @@ -2237,14 +1617,6 @@ type FileShareItems struct { Value []*FileShareItem `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type FileShareItems. -func (f FileShareItems) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", f.NextLink) - populate(objectMap, "value", f.Value) - return json.Marshal(objectMap) -} - // FileShareProperties - The properties of the file share. type FileShareProperties struct { // Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage @@ -2305,101 +1677,6 @@ type FileShareProperties struct { Version *string `json:"version,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type FileShareProperties. -func (f FileShareProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "accessTier", f.AccessTier) - populateTimeRFC3339(objectMap, "accessTierChangeTime", f.AccessTierChangeTime) - populate(objectMap, "accessTierStatus", f.AccessTierStatus) - populate(objectMap, "deleted", f.Deleted) - populateTimeRFC3339(objectMap, "deletedTime", f.DeletedTime) - populate(objectMap, "enabledProtocols", f.EnabledProtocols) - populateTimeRFC3339(objectMap, "lastModifiedTime", f.LastModifiedTime) - populate(objectMap, "leaseDuration", f.LeaseDuration) - populate(objectMap, "leaseState", f.LeaseState) - populate(objectMap, "leaseStatus", f.LeaseStatus) - populate(objectMap, "metadata", f.Metadata) - populate(objectMap, "remainingRetentionDays", f.RemainingRetentionDays) - populate(objectMap, "rootSquash", f.RootSquash) - populate(objectMap, "shareQuota", f.ShareQuota) - populate(objectMap, "shareUsageBytes", f.ShareUsageBytes) - populate(objectMap, "signedIdentifiers", f.SignedIdentifiers) - populateTimeRFC3339(objectMap, "snapshotTime", f.SnapshotTime) - populate(objectMap, "version", f.Version) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type FileShareProperties. -func (f *FileShareProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "accessTier": - err = unpopulate(val, &f.AccessTier) - delete(rawMsg, key) - case "accessTierChangeTime": - err = unpopulateTimeRFC3339(val, &f.AccessTierChangeTime) - delete(rawMsg, key) - case "accessTierStatus": - err = unpopulate(val, &f.AccessTierStatus) - delete(rawMsg, key) - case "deleted": - err = unpopulate(val, &f.Deleted) - delete(rawMsg, key) - case "deletedTime": - err = unpopulateTimeRFC3339(val, &f.DeletedTime) - delete(rawMsg, key) - case "enabledProtocols": - err = unpopulate(val, &f.EnabledProtocols) - delete(rawMsg, key) - case "lastModifiedTime": - err = unpopulateTimeRFC3339(val, &f.LastModifiedTime) - delete(rawMsg, key) - case "leaseDuration": - err = unpopulate(val, &f.LeaseDuration) - delete(rawMsg, key) - case "leaseState": - err = unpopulate(val, &f.LeaseState) - delete(rawMsg, key) - case "leaseStatus": - err = unpopulate(val, &f.LeaseStatus) - delete(rawMsg, key) - case "metadata": - err = unpopulate(val, &f.Metadata) - delete(rawMsg, key) - case "remainingRetentionDays": - err = unpopulate(val, &f.RemainingRetentionDays) - delete(rawMsg, key) - case "rootSquash": - err = unpopulate(val, &f.RootSquash) - delete(rawMsg, key) - case "shareQuota": - err = unpopulate(val, &f.ShareQuota) - delete(rawMsg, key) - case "shareUsageBytes": - err = unpopulate(val, &f.ShareUsageBytes) - delete(rawMsg, key) - case "signedIdentifiers": - err = unpopulate(val, &f.SignedIdentifiers) - delete(rawMsg, key) - case "snapshotTime": - err = unpopulateTimeRFC3339(val, &f.SnapshotTime) - delete(rawMsg, key) - case "version": - err = unpopulate(val, &f.Version) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // FileSharesClientCreateOptions contains the optional parameters for the FileSharesClient.Create method. type FileSharesClientCreateOptions struct { // Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string @@ -2475,41 +1752,6 @@ type GeoReplicationStats struct { Status *GeoReplicationStatus `json:"status,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type GeoReplicationStats. -func (g GeoReplicationStats) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "canFailover", g.CanFailover) - populateTimeRFC3339(objectMap, "lastSyncTime", g.LastSyncTime) - populate(objectMap, "status", g.Status) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GeoReplicationStats. -func (g *GeoReplicationStats) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "canFailover": - err = unpopulate(val, &g.CanFailover) - delete(rawMsg, key) - case "lastSyncTime": - err = unpopulateTimeRFC3339(val, &g.LastSyncTime) - delete(rawMsg, key) - case "status": - err = unpopulate(val, &g.Status) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // IPRule - IP rule with specific IP or IP range in CIDR format. type IPRule struct { // REQUIRED; Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. @@ -2536,16 +1778,6 @@ type Identity struct { TenantID *string `json:"tenantId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Identity. -func (i Identity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", i.PrincipalID) - populate(objectMap, "tenantId", i.TenantID) - populate(objectMap, "type", i.Type) - populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) - return json.Marshal(objectMap) -} - // ImmutabilityPolicy - The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag. type ImmutabilityPolicy struct { // REQUIRED; The properties of an ImmutabilityPolicy of a blob container. @@ -2576,15 +1808,6 @@ type ImmutabilityPolicyProperties struct { UpdateHistory []*UpdateHistoryProperty `json:"updateHistory,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ImmutabilityPolicyProperties. -func (i ImmutabilityPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "etag", i.Etag) - populate(objectMap, "properties", i.Properties) - populate(objectMap, "updateHistory", i.UpdateHistory) - return json.Marshal(objectMap) -} - // ImmutabilityPolicyProperty - The properties of an ImmutabilityPolicy of a blob container. type ImmutabilityPolicyProperty struct { // This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to @@ -2633,78 +1856,12 @@ type ImmutableStorageWithVersioning struct { TimeStamp *time.Time `json:"timeStamp,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ImmutableStorageWithVersioning. -func (i ImmutableStorageWithVersioning) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "enabled", i.Enabled) - populate(objectMap, "migrationState", i.MigrationState) - populateTimeRFC3339(objectMap, "timeStamp", i.TimeStamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ImmutableStorageWithVersioning. -func (i *ImmutableStorageWithVersioning) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "enabled": - err = unpopulate(val, &i.Enabled) - delete(rawMsg, key) - case "migrationState": - err = unpopulate(val, &i.MigrationState) - delete(rawMsg, key) - case "timeStamp": - err = unpopulateTimeRFC3339(val, &i.TimeStamp) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // KeyCreationTime - Storage account keys creation time. type KeyCreationTime struct { Key1 *time.Time `json:"key1,omitempty"` Key2 *time.Time `json:"key2,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type KeyCreationTime. -func (k KeyCreationTime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "key1", k.Key1) - populateTimeRFC3339(objectMap, "key2", k.Key2) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type KeyCreationTime. -func (k *KeyCreationTime) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "key1": - err = unpopulateTimeRFC3339(val, &k.Key1) - delete(rawMsg, key) - case "key2": - err = unpopulateTimeRFC3339(val, &k.Key2) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // KeyPolicy assigned to the storage account. type KeyPolicy struct { // REQUIRED; The key expiration period in days. @@ -2722,6 +1879,10 @@ type KeyVaultProperties struct { // The version of KeyVault key. KeyVersion *string `json:"keyversion,omitempty"` + // READ-ONLY; This is a read only property that represents the expiration time of the current version of the customer managed + // key used for encryption. + CurrentVersionedKeyExpirationTimestamp *time.Time `json:"currentVersionedKeyExpirationTimestamp,omitempty" azure:"ro"` + // READ-ONLY; The object identifier of the current versioned Key Vault Key in use. CurrentVersionedKeyIdentifier *string `json:"currentVersionedKeyIdentifier,omitempty" azure:"ro"` @@ -2729,49 +1890,6 @@ type KeyVaultProperties struct { LastKeyRotationTimestamp *time.Time `json:"lastKeyRotationTimestamp,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties. -func (k KeyVaultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "currentVersionedKeyIdentifier", k.CurrentVersionedKeyIdentifier) - populate(objectMap, "keyname", k.KeyName) - populate(objectMap, "keyvaulturi", k.KeyVaultURI) - populate(objectMap, "keyversion", k.KeyVersion) - populateTimeRFC3339(objectMap, "lastKeyRotationTimestamp", k.LastKeyRotationTimestamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultProperties. -func (k *KeyVaultProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "currentVersionedKeyIdentifier": - err = unpopulate(val, &k.CurrentVersionedKeyIdentifier) - delete(rawMsg, key) - case "keyname": - err = unpopulate(val, &k.KeyName) - delete(rawMsg, key) - case "keyvaulturi": - err = unpopulate(val, &k.KeyVaultURI) - delete(rawMsg, key) - case "keyversion": - err = unpopulate(val, &k.KeyVersion) - delete(rawMsg, key) - case "lastKeyRotationTimestamp": - err = unpopulateTimeRFC3339(val, &k.LastKeyRotationTimestamp) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // LastAccessTimeTrackingPolicy - The blob service properties for Last access time based tracking policy. type LastAccessTimeTrackingPolicy struct { // REQUIRED; When set to true last access time based tracking is enabled. @@ -2788,16 +1906,6 @@ type LastAccessTimeTrackingPolicy struct { TrackingGranularityInDays *int32 `json:"trackingGranularityInDays,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type LastAccessTimeTrackingPolicy. -func (l LastAccessTimeTrackingPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "blobType", l.BlobType) - populate(objectMap, "enable", l.Enable) - populate(objectMap, "name", l.Name) - populate(objectMap, "trackingGranularityInDays", l.TrackingGranularityInDays) - return json.Marshal(objectMap) -} - // LeaseContainerRequest - Lease Container request schema. type LeaseContainerRequest struct { // REQUIRED; Specifies the lease action. Can be one of the available actions. @@ -2872,15 +1980,6 @@ type LegalHold struct { HasLegalHold *bool `json:"hasLegalHold,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type LegalHold. -func (l LegalHold) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowProtectedAppendWritesAll", l.AllowProtectedAppendWritesAll) - populate(objectMap, "hasLegalHold", l.HasLegalHold) - populate(objectMap, "tags", l.Tags) - return json.Marshal(objectMap) -} - // LegalHoldProperties - The LegalHold property of a blob container. type LegalHoldProperties struct { // Protected append blob writes history. @@ -2895,15 +1994,6 @@ type LegalHoldProperties struct { HasLegalHold *bool `json:"hasLegalHold,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type LegalHoldProperties. -func (l LegalHoldProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "hasLegalHold", l.HasLegalHold) - populate(objectMap, "protectedAppendWritesHistory", l.ProtectedAppendWritesHistory) - populate(objectMap, "tags", l.Tags) - return json.Marshal(objectMap) -} - // ListAccountSasResponse - The List SAS credentials operation response. type ListAccountSasResponse struct { // READ-ONLY; List SAS credentials of storage account. @@ -2916,13 +2006,6 @@ type ListBlobInventoryPolicy struct { Value []*BlobInventoryPolicy `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ListBlobInventoryPolicy. -func (l ListBlobInventoryPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - // ListContainerItem - The blob container properties be listed out. type ListContainerItem struct { // The blob container properties be listed out. @@ -2952,14 +2035,6 @@ type ListContainerItems struct { Value []*ListContainerItem `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ListContainerItems. -func (l ListContainerItems) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", l.NextLink) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - type ListQueue struct { // List Queue resource properties. QueueProperties *ListQueueProperties `json:"properties,omitempty"` @@ -2979,13 +2054,6 @@ type ListQueueProperties struct { Metadata map[string]*string `json:"metadata,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ListQueueProperties. -func (l ListQueueProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "metadata", l.Metadata) - return json.Marshal(objectMap) -} - // ListQueueResource - Response schema. Contains list of queues returned type ListQueueResource struct { // READ-ONLY; Request URL that can be used to list next page of queues @@ -2995,26 +2063,11 @@ type ListQueueResource struct { Value []*ListQueue `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ListQueueResource. -func (l ListQueueResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", l.NextLink) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - type ListQueueServices struct { // READ-ONLY; List of queue services returned. Value []*QueueServiceProperties `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ListQueueServices. -func (l ListQueueServices) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - // ListServiceSasResponse - The List service SAS credentials operation response. type ListServiceSasResponse struct { // READ-ONLY; List service SAS credentials of specific resource. @@ -3030,26 +2083,11 @@ type ListTableResource struct { Value []*Table `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ListTableResource. -func (l ListTableResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", l.NextLink) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - type ListTableServices struct { // READ-ONLY; List of table services returned. Value []*TableServiceProperties `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ListTableServices. -func (l ListTableServices) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - // LocalUser - The local user associated with the storage accounts. type LocalUser struct { // Storage account local user properties. @@ -3077,14 +2115,6 @@ type LocalUserKeys struct { SharedKey *string `json:"sharedKey,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type LocalUserKeys. -func (l LocalUserKeys) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "sshAuthorizedKeys", l.SSHAuthorizedKeys) - populate(objectMap, "sharedKey", l.SharedKey) - return json.Marshal(objectMap) -} - // LocalUserProperties - The Storage Account Local User properties. type LocalUserProperties struct { // Indicates whether ssh key exists. Set it to false to remove existing SSH key. @@ -3109,19 +2139,6 @@ type LocalUserProperties struct { Sid *string `json:"sid,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type LocalUserProperties. -func (l LocalUserProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "hasSshKey", l.HasSSHKey) - populate(objectMap, "hasSshPassword", l.HasSSHPassword) - populate(objectMap, "hasSharedKey", l.HasSharedKey) - populate(objectMap, "homeDirectory", l.HomeDirectory) - populate(objectMap, "permissionScopes", l.PermissionScopes) - populate(objectMap, "sshAuthorizedKeys", l.SSHAuthorizedKeys) - populate(objectMap, "sid", l.Sid) - return json.Marshal(objectMap) -} - // LocalUserRegeneratePasswordResult - The secrets of Storage Account Local User. type LocalUserRegeneratePasswordResult struct { // READ-ONLY; Auto generated password by the server for SSH authentication if hasSshPassword is set to true on the creation @@ -3135,13 +2152,6 @@ type LocalUsers struct { Value []*LocalUser `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type LocalUsers. -func (l LocalUsers) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - // LocalUsersClientCreateOrUpdateOptions contains the optional parameters for the LocalUsersClient.CreateOrUpdate method. type LocalUsersClientCreateOrUpdateOptions struct { // placeholder for future optional parameters @@ -3255,15 +2265,6 @@ type ManagementPolicyFilter struct { PrefixMatch []*string `json:"prefixMatch,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ManagementPolicyFilter. -func (m ManagementPolicyFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "blobIndexMatch", m.BlobIndexMatch) - populate(objectMap, "blobTypes", m.BlobTypes) - populate(objectMap, "prefixMatch", m.PrefixMatch) - return json.Marshal(objectMap) -} - // ManagementPolicyProperties - The Storage Account ManagementPolicy properties. type ManagementPolicyProperties struct { // REQUIRED; The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. @@ -3273,37 +2274,6 @@ type ManagementPolicyProperties struct { LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ManagementPolicyProperties. -func (m ManagementPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "lastModifiedTime", m.LastModifiedTime) - populate(objectMap, "policy", m.Policy) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagementPolicyProperties. -func (m *ManagementPolicyProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "lastModifiedTime": - err = unpopulateTimeRFC3339(val, &m.LastModifiedTime) - delete(rawMsg, key) - case "policy": - err = unpopulate(val, &m.Policy) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // ManagementPolicyRule - An object that wraps the Lifecycle rule. Each rule is uniquely defined by name. type ManagementPolicyRule struct { // REQUIRED; An object that defines the Lifecycle rule. @@ -3326,13 +2296,6 @@ type ManagementPolicySchema struct { Rules []*ManagementPolicyRule `json:"rules,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ManagementPolicySchema. -func (m ManagementPolicySchema) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "rules", m.Rules) - return json.Marshal(objectMap) -} - // ManagementPolicySnapShot - Management policy action for snapshot. type ManagementPolicySnapShot struct { // The function to delete the blob snapshot @@ -3387,21 +2350,6 @@ type MetricSpecification struct { Unit *string `json:"unit,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type MetricSpecification. -func (m MetricSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "aggregationType", m.AggregationType) - populate(objectMap, "category", m.Category) - populate(objectMap, "dimensions", m.Dimensions) - populate(objectMap, "displayDescription", m.DisplayDescription) - populate(objectMap, "displayName", m.DisplayName) - populate(objectMap, "fillGapWithZero", m.FillGapWithZero) - populate(objectMap, "name", m.Name) - populate(objectMap, "resourceIdDimensionNameOverride", m.ResourceIDDimensionNameOverride) - populate(objectMap, "unit", m.Unit) - return json.Marshal(objectMap) -} - // Multichannel setting. Applies to Premium FileStorage only. type Multichannel struct { // Indicates whether multichannel is enabled @@ -3428,30 +2376,12 @@ type NetworkRuleSet struct { VirtualNetworkRules []*VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSet. -func (n NetworkRuleSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "bypass", n.Bypass) - populate(objectMap, "defaultAction", n.DefaultAction) - populate(objectMap, "ipRules", n.IPRules) - populate(objectMap, "resourceAccessRules", n.ResourceAccessRules) - populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) - return json.Marshal(objectMap) -} - // ObjectReplicationPolicies - List storage account object replication policies. type ObjectReplicationPolicies struct { // The replication policy between two storage accounts. Value []*ObjectReplicationPolicy `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicies. -func (o ObjectReplicationPolicies) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - // ObjectReplicationPoliciesClientCreateOrUpdateOptions contains the optional parameters for the ObjectReplicationPoliciesClient.CreateOrUpdate // method. type ObjectReplicationPoliciesClientCreateOrUpdateOptions struct { @@ -3503,14 +2433,6 @@ type ObjectReplicationPolicyFilter struct { PrefixMatch []*string `json:"prefixMatch,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyFilter. -func (o ObjectReplicationPolicyFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "minCreationTime", o.MinCreationTime) - populate(objectMap, "prefixMatch", o.PrefixMatch) - return json.Marshal(objectMap) -} - // ObjectReplicationPolicyProperties - The Storage Account ObjectReplicationPolicy properties. type ObjectReplicationPolicyProperties struct { // REQUIRED; Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false. @@ -3529,49 +2451,6 @@ type ObjectReplicationPolicyProperties struct { PolicyID *string `json:"policyId,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyProperties. -func (o ObjectReplicationPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "destinationAccount", o.DestinationAccount) - populateTimeRFC3339(objectMap, "enabledTime", o.EnabledTime) - populate(objectMap, "policyId", o.PolicyID) - populate(objectMap, "rules", o.Rules) - populate(objectMap, "sourceAccount", o.SourceAccount) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicyProperties. -func (o *ObjectReplicationPolicyProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "destinationAccount": - err = unpopulate(val, &o.DestinationAccount) - delete(rawMsg, key) - case "enabledTime": - err = unpopulateTimeRFC3339(val, &o.EnabledTime) - delete(rawMsg, key) - case "policyId": - err = unpopulate(val, &o.PolicyID) - delete(rawMsg, key) - case "rules": - err = unpopulate(val, &o.Rules) - delete(rawMsg, key) - case "sourceAccount": - err = unpopulate(val, &o.SourceAccount) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // ObjectReplicationPolicyRule - The replication policy rule between two containers. type ObjectReplicationPolicyRule struct { // REQUIRED; Required. Destination container name. @@ -3624,13 +2503,6 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type OperationListResult. -func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", o.Value) - return json.Marshal(objectMap) -} - // OperationProperties - Properties of operation, include metric specifications. type OperationProperties struct { // One property of operation, include metric specifications. @@ -3681,13 +2553,6 @@ type PrivateEndpointConnectionListResult struct { Value []*PrivateEndpointConnection `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. -func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - // PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties. type PrivateEndpointConnectionProperties struct { // REQUIRED; A collection of information about the state of the connection between service consumer and provider. @@ -3745,13 +2610,6 @@ type PrivateLinkResourceListResult struct { Value []*PrivateLinkResource `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult. -func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - // PrivateLinkResourceProperties - Properties of a private link resource. type PrivateLinkResourceProperties struct { // The private link resource Private link DNS zone name. @@ -3764,15 +2622,6 @@ type PrivateLinkResourceProperties struct { RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. -func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "groupId", p.GroupID) - populate(objectMap, "requiredMembers", p.RequiredMembers) - populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) - return json.Marshal(objectMap) -} - // PrivateLinkResourcesClientListByStorageAccountOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByStorageAccount // method. type PrivateLinkResourcesClientListByStorageAccountOptions struct { @@ -3803,37 +2652,6 @@ type ProtectedAppendWritesHistory struct { Timestamp *time.Time `json:"timestamp,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type ProtectedAppendWritesHistory. -func (p ProtectedAppendWritesHistory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowProtectedAppendWritesAll", p.AllowProtectedAppendWritesAll) - populateTimeRFC3339(objectMap, "timestamp", p.Timestamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedAppendWritesHistory. -func (p *ProtectedAppendWritesHistory) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "allowProtectedAppendWritesAll": - err = unpopulate(val, &p.AllowProtectedAppendWritesAll) - delete(rawMsg, key) - case "timestamp": - err = unpopulateTimeRFC3339(val, &p.Timestamp) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // ProtocolSettings - Protocol settings for file service type ProtocolSettings struct { // Setting for SMB protocol @@ -3867,16 +2685,6 @@ type Queue struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Queue. -func (q Queue) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", q.ID) - populate(objectMap, "name", q.Name) - populate(objectMap, "properties", q.QueueProperties) - populate(objectMap, "type", q.Type) - return json.Marshal(objectMap) -} - // QueueClientCreateOptions contains the optional parameters for the QueueClient.Create method. type QueueClientCreateOptions struct { // placeholder for future optional parameters @@ -3914,14 +2722,6 @@ type QueueProperties struct { ApproximateMessageCount *int32 `json:"approximateMessageCount,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type QueueProperties. -func (q QueueProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "approximateMessageCount", q.ApproximateMessageCount) - populate(objectMap, "metadata", q.Metadata) - return json.Marshal(objectMap) -} - // QueueServiceProperties - The properties of a storage account’s Queue service. type QueueServiceProperties struct { // The properties of a storage account’s Queue service. @@ -3998,45 +2798,6 @@ type RestorePolicyProperties struct { MinRestoreTime *time.Time `json:"minRestoreTime,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type RestorePolicyProperties. -func (r RestorePolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "days", r.Days) - populate(objectMap, "enabled", r.Enabled) - populateTimeRFC3339(objectMap, "lastEnabledTime", r.LastEnabledTime) - populateTimeRFC3339(objectMap, "minRestoreTime", r.MinRestoreTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePolicyProperties. -func (r *RestorePolicyProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "days": - err = unpopulate(val, &r.Days) - delete(rawMsg, key) - case "enabled": - err = unpopulate(val, &r.Enabled) - delete(rawMsg, key) - case "lastEnabledTime": - err = unpopulateTimeRFC3339(val, &r.LastEnabledTime) - delete(rawMsg, key) - case "minRestoreTime": - err = unpopulateTimeRFC3339(val, &r.MinRestoreTime) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // Restriction - The restriction because of which SKU cannot be used. type Restriction struct { // The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when @@ -4052,15 +2813,6 @@ type Restriction struct { Values []*string `json:"values,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type Restriction. -func (r Restriction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "reasonCode", r.ReasonCode) - populate(objectMap, "type", r.Type) - populate(objectMap, "values", r.Values) - return json.Marshal(objectMap) -} - // RoutingPreference - Routing preference defines the type of network, either microsoft or internet routing to be used to // deliver the user data, the default option is microsoft routing type RoutingPreference struct { @@ -4122,32 +2874,12 @@ type SKUInformation struct { Tier *SKUTier `json:"tier,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SKUInformation. -func (s SKUInformation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "capabilities", s.Capabilities) - populate(objectMap, "kind", s.Kind) - populate(objectMap, "locations", s.Locations) - populate(objectMap, "name", s.Name) - populate(objectMap, "resourceType", s.ResourceType) - populate(objectMap, "restrictions", s.Restrictions) - populate(objectMap, "tier", s.Tier) - return json.Marshal(objectMap) -} - // SKUListResult - The response from the List Storage SKUs operation. type SKUListResult struct { // READ-ONLY; Get the list result of storage SKUs and their properties. Value []*SKUInformation `json:"value,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type SKUListResult. -func (s SKUListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - // SKUsClientListOptions contains the optional parameters for the SKUsClient.List method. type SKUsClientListOptions struct { // placeholder for future optional parameters @@ -4230,114 +2962,12 @@ type ServiceSasParameters struct { SharedAccessStartTime *time.Time `json:"signedStart,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ServiceSasParameters. -func (s ServiceSasParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "rscc", s.CacheControl) - populate(objectMap, "canonicalizedResource", s.CanonicalizedResource) - populate(objectMap, "rscd", s.ContentDisposition) - populate(objectMap, "rsce", s.ContentEncoding) - populate(objectMap, "rscl", s.ContentLanguage) - populate(objectMap, "rsct", s.ContentType) - populate(objectMap, "signedIp", s.IPAddressOrRange) - populate(objectMap, "signedIdentifier", s.Identifier) - populate(objectMap, "keyToSign", s.KeyToSign) - populate(objectMap, "endPk", s.PartitionKeyEnd) - populate(objectMap, "startPk", s.PartitionKeyStart) - populate(objectMap, "signedPermission", s.Permissions) - populate(objectMap, "signedProtocol", s.Protocols) - populate(objectMap, "signedResource", s.Resource) - populate(objectMap, "endRk", s.RowKeyEnd) - populate(objectMap, "startRk", s.RowKeyStart) - populateTimeRFC3339(objectMap, "signedExpiry", s.SharedAccessExpiryTime) - populateTimeRFC3339(objectMap, "signedStart", s.SharedAccessStartTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSasParameters. -func (s *ServiceSasParameters) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "rscc": - err = unpopulate(val, &s.CacheControl) - delete(rawMsg, key) - case "canonicalizedResource": - err = unpopulate(val, &s.CanonicalizedResource) - delete(rawMsg, key) - case "rscd": - err = unpopulate(val, &s.ContentDisposition) - delete(rawMsg, key) - case "rsce": - err = unpopulate(val, &s.ContentEncoding) - delete(rawMsg, key) - case "rscl": - err = unpopulate(val, &s.ContentLanguage) - delete(rawMsg, key) - case "rsct": - err = unpopulate(val, &s.ContentType) - delete(rawMsg, key) - case "signedIp": - err = unpopulate(val, &s.IPAddressOrRange) - delete(rawMsg, key) - case "signedIdentifier": - err = unpopulate(val, &s.Identifier) - delete(rawMsg, key) - case "keyToSign": - err = unpopulate(val, &s.KeyToSign) - delete(rawMsg, key) - case "endPk": - err = unpopulate(val, &s.PartitionKeyEnd) - delete(rawMsg, key) - case "startPk": - err = unpopulate(val, &s.PartitionKeyStart) - delete(rawMsg, key) - case "signedPermission": - err = unpopulate(val, &s.Permissions) - delete(rawMsg, key) - case "signedProtocol": - err = unpopulate(val, &s.Protocols) - delete(rawMsg, key) - case "signedResource": - err = unpopulate(val, &s.Resource) - delete(rawMsg, key) - case "endRk": - err = unpopulate(val, &s.RowKeyEnd) - delete(rawMsg, key) - case "startRk": - err = unpopulate(val, &s.RowKeyStart) - delete(rawMsg, key) - case "signedExpiry": - err = unpopulateTimeRFC3339(val, &s.SharedAccessExpiryTime) - delete(rawMsg, key) - case "signedStart": - err = unpopulateTimeRFC3339(val, &s.SharedAccessStartTime) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // ServiceSpecification - One property of operation, include metric specifications. type ServiceSpecification struct { // Metric specifications of operation. MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type ServiceSpecification. -func (s ServiceSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "metricSpecifications", s.MetricSpecifications) - return json.Marshal(objectMap) -} - type SignedIdentifier struct { // Access policy AccessPolicy *AccessPolicy `json:"accessPolicy,omitempty"` @@ -4389,53 +3019,6 @@ type SystemData struct { LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // Table - Properties of the table, including Id, resource name, resource type. type Table struct { // Table resource properties. @@ -4451,9 +3034,22 @@ type Table struct { Type *string `json:"type,omitempty" azure:"ro"` } +// TableAccessPolicy - Table Access Policy Properties Object. +type TableAccessPolicy struct { + // REQUIRED; Required. List of abbreviated permissions. Supported permission values include 'r','a','u','d' + Permission *string `json:"permission,omitempty"` + + // Expiry time of the access policy + ExpiryTime *time.Time `json:"expiryTime,omitempty"` + + // Start time of the access policy + StartTime *time.Time `json:"startTime,omitempty"` +} + // TableClientCreateOptions contains the optional parameters for the TableClient.Create method. type TableClientCreateOptions struct { - // placeholder for future optional parameters + // The parameters to provide to create a table. + Parameters *Table } // TableClientDeleteOptions contains the optional parameters for the TableClient.Delete method. @@ -4473,10 +3069,14 @@ type TableClientListOptions struct { // TableClientUpdateOptions contains the optional parameters for the TableClient.Update method. type TableClientUpdateOptions struct { - // placeholder for future optional parameters + // The parameters to provide to create a table. + Parameters *Table } type TableProperties struct { + // List of stored access policies specified on the table. + SignedIdentifiers []*TableSignedIdentifier `json:"signedIdentifiers,omitempty"` + // READ-ONLY; Table name under the specified account TableName *string `json:"tableName,omitempty" azure:"ro"` } @@ -4521,6 +3121,15 @@ type TableServicesClientSetServicePropertiesOptions struct { // placeholder for future optional parameters } +// TableSignedIdentifier - Object to set Table Access Policy. +type TableSignedIdentifier struct { + // REQUIRED; unique-64-character-value of the stored access policy. + ID *string `json:"id,omitempty"` + + // Access policy + AccessPolicy *TableAccessPolicy `json:"accessPolicy,omitempty"` +} + // TagFilter - Blob index tag based filtering for blob objects type TagFilter struct { // REQUIRED; This is the filter tag name, it can have 1 - 128 characters @@ -4552,49 +3161,6 @@ type TagProperty struct { Upn *string `json:"upn,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TagProperty. -func (t TagProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "objectIdentifier", t.ObjectIdentifier) - populate(objectMap, "tag", t.Tag) - populate(objectMap, "tenantId", t.TenantID) - populateTimeRFC3339(objectMap, "timestamp", t.Timestamp) - populate(objectMap, "upn", t.Upn) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TagProperty. -func (t *TagProperty) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "objectIdentifier": - err = unpopulate(val, &t.ObjectIdentifier) - delete(rawMsg, key) - case "tag": - err = unpopulate(val, &t.Tag) - delete(rawMsg, key) - case "tenantId": - err = unpopulate(val, &t.TenantID) - delete(rawMsg, key) - case "timestamp": - err = unpopulateTimeRFC3339(val, &t.Timestamp) - delete(rawMsg, key) - case "upn": - err = unpopulate(val, &t.Upn) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' // and a 'location' type TrackedResource struct { @@ -4614,17 +3180,6 @@ type TrackedResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type TrackedResource. -func (t TrackedResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", t.ID) - populate(objectMap, "location", t.Location) - populate(objectMap, "name", t.Name) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - // UpdateHistoryProperty - An update history of the ImmutabilityPolicy of a blob container. type UpdateHistoryProperty struct { // This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to @@ -4659,61 +3214,6 @@ type UpdateHistoryProperty struct { Upn *string `json:"upn,omitempty" azure:"ro"` } -// MarshalJSON implements the json.Marshaller interface for type UpdateHistoryProperty. -func (u UpdateHistoryProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowProtectedAppendWrites", u.AllowProtectedAppendWrites) - populate(objectMap, "allowProtectedAppendWritesAll", u.AllowProtectedAppendWritesAll) - populate(objectMap, "immutabilityPeriodSinceCreationInDays", u.ImmutabilityPeriodSinceCreationInDays) - populate(objectMap, "objectIdentifier", u.ObjectIdentifier) - populate(objectMap, "tenantId", u.TenantID) - populateTimeRFC3339(objectMap, "timestamp", u.Timestamp) - populate(objectMap, "update", u.Update) - populate(objectMap, "upn", u.Upn) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateHistoryProperty. -func (u *UpdateHistoryProperty) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return err - } - for key, val := range rawMsg { - var err error - switch key { - case "allowProtectedAppendWrites": - err = unpopulate(val, &u.AllowProtectedAppendWrites) - delete(rawMsg, key) - case "allowProtectedAppendWritesAll": - err = unpopulate(val, &u.AllowProtectedAppendWritesAll) - delete(rawMsg, key) - case "immutabilityPeriodSinceCreationInDays": - err = unpopulate(val, &u.ImmutabilityPeriodSinceCreationInDays) - delete(rawMsg, key) - case "objectIdentifier": - err = unpopulate(val, &u.ObjectIdentifier) - delete(rawMsg, key) - case "tenantId": - err = unpopulate(val, &u.TenantID) - delete(rawMsg, key) - case "timestamp": - err = unpopulateTimeRFC3339(val, &u.Timestamp) - delete(rawMsg, key) - case "update": - err = unpopulate(val, &u.Update) - delete(rawMsg, key) - case "upn": - err = unpopulate(val, &u.Upn) - delete(rawMsg, key) - } - if err != nil { - return err - } - } - return nil -} - // Usage - Describes Storage Resource Usage. type Usage struct { // READ-ONLY; Gets the current count of the allocated resources in the subscription. @@ -4735,13 +3235,6 @@ type UsageListResult struct { Value []*Usage `json:"value,omitempty"` } -// MarshalJSON implements the json.Marshaller interface for type UsageListResult. -func (u UsageListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", u.Value) - return json.Marshal(objectMap) -} - // UsageName - The usage names that can be used; currently limited to StorageAccount. type UsageName struct { // READ-ONLY; Gets a localized string describing the resource name. @@ -4776,20 +3269,3 @@ type VirtualNetworkRule struct { // Gets the state of virtual network rule. State *State `json:"state,omitempty"` } - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, v interface{}) error { - if data == nil { - return nil - } - return json.Unmarshal(data, v) -} diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_models_serde.go b/sdk/resourcemanager/storage/armstorage/zz_generated_models_serde.go new file mode 100644 index 000000000000..137900b63547 --- /dev/null +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_models_serde.go @@ -0,0 +1,1766 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armstorage + +import ( + "encoding/json" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type AccessPolicy. +func (a AccessPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "expiryTime", a.ExpiryTime) + populate(objectMap, "permission", a.Permission) + populateTimeRFC3339(objectMap, "startTime", a.StartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AccessPolicy. +func (a *AccessPolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "expiryTime": + err = unpopulateTimeRFC3339(val, &a.ExpiryTime) + delete(rawMsg, key) + case "permission": + err = unpopulate(val, &a.Permission) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, &a.StartTime) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Account. +func (a Account) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "extendedLocation", a.ExtendedLocation) + populate(objectMap, "id", a.ID) + populate(objectMap, "identity", a.Identity) + populate(objectMap, "kind", a.Kind) + populate(objectMap, "location", a.Location) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "sku", a.SKU) + populate(objectMap, "tags", a.Tags) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AccountCreateParameters. +func (a AccountCreateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "extendedLocation", a.ExtendedLocation) + populate(objectMap, "identity", a.Identity) + populate(objectMap, "kind", a.Kind) + populate(objectMap, "location", a.Location) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "sku", a.SKU) + populate(objectMap, "tags", a.Tags) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AccountKey. +func (a AccountKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "creationTime", a.CreationTime) + populate(objectMap, "keyName", a.KeyName) + populate(objectMap, "permissions", a.Permissions) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AccountKey. +func (a *AccountKey) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "creationTime": + err = unpopulateTimeRFC3339(val, &a.CreationTime) + delete(rawMsg, key) + case "keyName": + err = unpopulate(val, &a.KeyName) + delete(rawMsg, key) + case "permissions": + err = unpopulate(val, &a.Permissions) + delete(rawMsg, key) + case "value": + err = unpopulate(val, &a.Value) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AccountListKeysResult. +func (a AccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "keys", a.Keys) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AccountListResult. +func (a AccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type AccountProperties. +func (a AccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "accessTier", a.AccessTier) + populate(objectMap, "allowBlobPublicAccess", a.AllowBlobPublicAccess) + populate(objectMap, "allowCrossTenantReplication", a.AllowCrossTenantReplication) + populate(objectMap, "allowSharedKeyAccess", a.AllowSharedKeyAccess) + populate(objectMap, "allowedCopyScope", a.AllowedCopyScope) + populate(objectMap, "azureFilesIdentityBasedAuthentication", a.AzureFilesIdentityBasedAuthentication) + populate(objectMap, "blobRestoreStatus", a.BlobRestoreStatus) + populateTimeRFC3339(objectMap, "creationTime", a.CreationTime) + populate(objectMap, "customDomain", a.CustomDomain) + populate(objectMap, "dnsEndpointType", a.DNSEndpointType) + populate(objectMap, "defaultToOAuthAuthentication", a.DefaultToOAuthAuthentication) + populate(objectMap, "supportsHttpsTrafficOnly", a.EnableHTTPSTrafficOnly) + populate(objectMap, "isNfsV3Enabled", a.EnableNfsV3) + populate(objectMap, "encryption", a.Encryption) + populate(objectMap, "failoverInProgress", a.FailoverInProgress) + populate(objectMap, "geoReplicationStats", a.GeoReplicationStats) + populate(objectMap, "immutableStorageWithVersioning", a.ImmutableStorageWithVersioning) + populate(objectMap, "isHnsEnabled", a.IsHnsEnabled) + populate(objectMap, "isLocalUserEnabled", a.IsLocalUserEnabled) + populate(objectMap, "isSftpEnabled", a.IsSftpEnabled) + populate(objectMap, "keyCreationTime", a.KeyCreationTime) + populate(objectMap, "keyPolicy", a.KeyPolicy) + populate(objectMap, "largeFileSharesState", a.LargeFileSharesState) + populateTimeRFC3339(objectMap, "lastGeoFailoverTime", a.LastGeoFailoverTime) + populate(objectMap, "minimumTlsVersion", a.MinimumTLSVersion) + populate(objectMap, "networkAcls", a.NetworkRuleSet) + populate(objectMap, "primaryEndpoints", a.PrimaryEndpoints) + populate(objectMap, "primaryLocation", a.PrimaryLocation) + populate(objectMap, "privateEndpointConnections", a.PrivateEndpointConnections) + populate(objectMap, "provisioningState", a.ProvisioningState) + populate(objectMap, "publicNetworkAccess", a.PublicNetworkAccess) + populate(objectMap, "routingPreference", a.RoutingPreference) + populate(objectMap, "sasPolicy", a.SasPolicy) + populate(objectMap, "secondaryEndpoints", a.SecondaryEndpoints) + populate(objectMap, "secondaryLocation", a.SecondaryLocation) + populate(objectMap, "statusOfPrimary", a.StatusOfPrimary) + populate(objectMap, "statusOfSecondary", a.StatusOfSecondary) + populate(objectMap, "storageAccountSkuConversionStatus", a.StorageAccountSKUConversionStatus) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AccountProperties. +func (a *AccountProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "accessTier": + err = unpopulate(val, &a.AccessTier) + delete(rawMsg, key) + case "allowBlobPublicAccess": + err = unpopulate(val, &a.AllowBlobPublicAccess) + delete(rawMsg, key) + case "allowCrossTenantReplication": + err = unpopulate(val, &a.AllowCrossTenantReplication) + delete(rawMsg, key) + case "allowSharedKeyAccess": + err = unpopulate(val, &a.AllowSharedKeyAccess) + delete(rawMsg, key) + case "allowedCopyScope": + err = unpopulate(val, &a.AllowedCopyScope) + delete(rawMsg, key) + case "azureFilesIdentityBasedAuthentication": + err = unpopulate(val, &a.AzureFilesIdentityBasedAuthentication) + delete(rawMsg, key) + case "blobRestoreStatus": + err = unpopulate(val, &a.BlobRestoreStatus) + delete(rawMsg, key) + case "creationTime": + err = unpopulateTimeRFC3339(val, &a.CreationTime) + delete(rawMsg, key) + case "customDomain": + err = unpopulate(val, &a.CustomDomain) + delete(rawMsg, key) + case "dnsEndpointType": + err = unpopulate(val, &a.DNSEndpointType) + delete(rawMsg, key) + case "defaultToOAuthAuthentication": + err = unpopulate(val, &a.DefaultToOAuthAuthentication) + delete(rawMsg, key) + case "supportsHttpsTrafficOnly": + err = unpopulate(val, &a.EnableHTTPSTrafficOnly) + delete(rawMsg, key) + case "isNfsV3Enabled": + err = unpopulate(val, &a.EnableNfsV3) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, &a.Encryption) + delete(rawMsg, key) + case "failoverInProgress": + err = unpopulate(val, &a.FailoverInProgress) + delete(rawMsg, key) + case "geoReplicationStats": + err = unpopulate(val, &a.GeoReplicationStats) + delete(rawMsg, key) + case "immutableStorageWithVersioning": + err = unpopulate(val, &a.ImmutableStorageWithVersioning) + delete(rawMsg, key) + case "isHnsEnabled": + err = unpopulate(val, &a.IsHnsEnabled) + delete(rawMsg, key) + case "isLocalUserEnabled": + err = unpopulate(val, &a.IsLocalUserEnabled) + delete(rawMsg, key) + case "isSftpEnabled": + err = unpopulate(val, &a.IsSftpEnabled) + delete(rawMsg, key) + case "keyCreationTime": + err = unpopulate(val, &a.KeyCreationTime) + delete(rawMsg, key) + case "keyPolicy": + err = unpopulate(val, &a.KeyPolicy) + delete(rawMsg, key) + case "largeFileSharesState": + err = unpopulate(val, &a.LargeFileSharesState) + delete(rawMsg, key) + case "lastGeoFailoverTime": + err = unpopulateTimeRFC3339(val, &a.LastGeoFailoverTime) + delete(rawMsg, key) + case "minimumTlsVersion": + err = unpopulate(val, &a.MinimumTLSVersion) + delete(rawMsg, key) + case "networkAcls": + err = unpopulate(val, &a.NetworkRuleSet) + delete(rawMsg, key) + case "primaryEndpoints": + err = unpopulate(val, &a.PrimaryEndpoints) + delete(rawMsg, key) + case "primaryLocation": + err = unpopulate(val, &a.PrimaryLocation) + delete(rawMsg, key) + case "privateEndpointConnections": + err = unpopulate(val, &a.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, &a.ProvisioningState) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, &a.PublicNetworkAccess) + delete(rawMsg, key) + case "routingPreference": + err = unpopulate(val, &a.RoutingPreference) + delete(rawMsg, key) + case "sasPolicy": + err = unpopulate(val, &a.SasPolicy) + delete(rawMsg, key) + case "secondaryEndpoints": + err = unpopulate(val, &a.SecondaryEndpoints) + delete(rawMsg, key) + case "secondaryLocation": + err = unpopulate(val, &a.SecondaryLocation) + delete(rawMsg, key) + case "statusOfPrimary": + err = unpopulate(val, &a.StatusOfPrimary) + delete(rawMsg, key) + case "statusOfSecondary": + err = unpopulate(val, &a.StatusOfSecondary) + delete(rawMsg, key) + case "storageAccountSkuConversionStatus": + err = unpopulate(val, &a.StorageAccountSKUConversionStatus) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AccountSasParameters. +func (a AccountSasParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "signedIp", a.IPAddressOrRange) + populate(objectMap, "keyToSign", a.KeyToSign) + populate(objectMap, "signedPermission", a.Permissions) + populate(objectMap, "signedProtocol", a.Protocols) + populate(objectMap, "signedResourceTypes", a.ResourceTypes) + populate(objectMap, "signedServices", a.Services) + populateTimeRFC3339(objectMap, "signedExpiry", a.SharedAccessExpiryTime) + populateTimeRFC3339(objectMap, "signedStart", a.SharedAccessStartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AccountSasParameters. +func (a *AccountSasParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "signedIp": + err = unpopulate(val, &a.IPAddressOrRange) + delete(rawMsg, key) + case "keyToSign": + err = unpopulate(val, &a.KeyToSign) + delete(rawMsg, key) + case "signedPermission": + err = unpopulate(val, &a.Permissions) + delete(rawMsg, key) + case "signedProtocol": + err = unpopulate(val, &a.Protocols) + delete(rawMsg, key) + case "signedResourceTypes": + err = unpopulate(val, &a.ResourceTypes) + delete(rawMsg, key) + case "signedServices": + err = unpopulate(val, &a.Services) + delete(rawMsg, key) + case "signedExpiry": + err = unpopulateTimeRFC3339(val, &a.SharedAccessExpiryTime) + delete(rawMsg, key) + case "signedStart": + err = unpopulateTimeRFC3339(val, &a.SharedAccessStartTime) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AccountUpdateParameters. +func (a AccountUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "identity", a.Identity) + populate(objectMap, "kind", a.Kind) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "sku", a.SKU) + populate(objectMap, "tags", a.Tags) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type BlobContainer. +func (b BlobContainer) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "properties", b.ContainerProperties) + populate(objectMap, "etag", b.Etag) + populate(objectMap, "id", b.ID) + populate(objectMap, "name", b.Name) + populate(objectMap, "type", b.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyDefinition. +func (b BlobInventoryPolicyDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "filters", b.Filters) + populate(objectMap, "format", b.Format) + populate(objectMap, "objectType", b.ObjectType) + populate(objectMap, "schedule", b.Schedule) + populate(objectMap, "schemaFields", b.SchemaFields) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyFilter. +func (b BlobInventoryPolicyFilter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "blobTypes", b.BlobTypes) + populate(objectMap, "excludePrefix", b.ExcludePrefix) + populate(objectMap, "includeBlobVersions", b.IncludeBlobVersions) + populate(objectMap, "includeDeleted", b.IncludeDeleted) + populate(objectMap, "includeSnapshots", b.IncludeSnapshots) + populate(objectMap, "prefixMatch", b.PrefixMatch) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyProperties. +func (b BlobInventoryPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "lastModifiedTime", b.LastModifiedTime) + populate(objectMap, "policy", b.Policy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BlobInventoryPolicyProperties. +func (b *BlobInventoryPolicyProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "lastModifiedTime": + err = unpopulateTimeRFC3339(val, &b.LastModifiedTime) + delete(rawMsg, key) + case "policy": + err = unpopulate(val, &b.Policy) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicySchema. +func (b BlobInventoryPolicySchema) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "destination", b.Destination) + populate(objectMap, "enabled", b.Enabled) + populate(objectMap, "rules", b.Rules) + populate(objectMap, "type", b.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type BlobRestoreParameters. +func (b BlobRestoreParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "blobRanges", b.BlobRanges) + populateTimeRFC3339(objectMap, "timeToRestore", b.TimeToRestore) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BlobRestoreParameters. +func (b *BlobRestoreParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "blobRanges": + err = unpopulate(val, &b.BlobRanges) + delete(rawMsg, key) + case "timeToRestore": + err = unpopulateTimeRFC3339(val, &b.TimeToRestore) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type BlobServiceItems. +func (b BlobServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", b.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type CloudErrorBody. +func (c CloudErrorBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "code", c.Code) + populate(objectMap, "details", c.Details) + populate(objectMap, "message", c.Message) + populate(objectMap, "target", c.Target) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ContainerProperties. +func (c ContainerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "defaultEncryptionScope", c.DefaultEncryptionScope) + populate(objectMap, "deleted", c.Deleted) + populateTimeRFC3339(objectMap, "deletedTime", c.DeletedTime) + populate(objectMap, "denyEncryptionScopeOverride", c.DenyEncryptionScopeOverride) + populate(objectMap, "enableNfsV3AllSquash", c.EnableNfsV3AllSquash) + populate(objectMap, "enableNfsV3RootSquash", c.EnableNfsV3RootSquash) + populate(objectMap, "hasImmutabilityPolicy", c.HasImmutabilityPolicy) + populate(objectMap, "hasLegalHold", c.HasLegalHold) + populate(objectMap, "immutabilityPolicy", c.ImmutabilityPolicy) + populate(objectMap, "immutableStorageWithVersioning", c.ImmutableStorageWithVersioning) + populateTimeRFC3339(objectMap, "lastModifiedTime", c.LastModifiedTime) + populate(objectMap, "leaseDuration", c.LeaseDuration) + populate(objectMap, "leaseState", c.LeaseState) + populate(objectMap, "leaseStatus", c.LeaseStatus) + populate(objectMap, "legalHold", c.LegalHold) + populate(objectMap, "metadata", c.Metadata) + populate(objectMap, "publicAccess", c.PublicAccess) + populate(objectMap, "remainingRetentionDays", c.RemainingRetentionDays) + populate(objectMap, "version", c.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerProperties. +func (c *ContainerProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "defaultEncryptionScope": + err = unpopulate(val, &c.DefaultEncryptionScope) + delete(rawMsg, key) + case "deleted": + err = unpopulate(val, &c.Deleted) + delete(rawMsg, key) + case "deletedTime": + err = unpopulateTimeRFC3339(val, &c.DeletedTime) + delete(rawMsg, key) + case "denyEncryptionScopeOverride": + err = unpopulate(val, &c.DenyEncryptionScopeOverride) + delete(rawMsg, key) + case "enableNfsV3AllSquash": + err = unpopulate(val, &c.EnableNfsV3AllSquash) + delete(rawMsg, key) + case "enableNfsV3RootSquash": + err = unpopulate(val, &c.EnableNfsV3RootSquash) + delete(rawMsg, key) + case "hasImmutabilityPolicy": + err = unpopulate(val, &c.HasImmutabilityPolicy) + delete(rawMsg, key) + case "hasLegalHold": + err = unpopulate(val, &c.HasLegalHold) + delete(rawMsg, key) + case "immutabilityPolicy": + err = unpopulate(val, &c.ImmutabilityPolicy) + delete(rawMsg, key) + case "immutableStorageWithVersioning": + err = unpopulate(val, &c.ImmutableStorageWithVersioning) + delete(rawMsg, key) + case "lastModifiedTime": + err = unpopulateTimeRFC3339(val, &c.LastModifiedTime) + delete(rawMsg, key) + case "leaseDuration": + err = unpopulate(val, &c.LeaseDuration) + delete(rawMsg, key) + case "leaseState": + err = unpopulate(val, &c.LeaseState) + delete(rawMsg, key) + case "leaseStatus": + err = unpopulate(val, &c.LeaseStatus) + delete(rawMsg, key) + case "legalHold": + err = unpopulate(val, &c.LegalHold) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, &c.Metadata) + delete(rawMsg, key) + case "publicAccess": + err = unpopulate(val, &c.PublicAccess) + delete(rawMsg, key) + case "remainingRetentionDays": + err = unpopulate(val, &c.RemainingRetentionDays) + delete(rawMsg, key) + case "version": + err = unpopulate(val, &c.Version) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type CorsRule. +func (c CorsRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "allowedHeaders", c.AllowedHeaders) + populate(objectMap, "allowedMethods", c.AllowedMethods) + populate(objectMap, "allowedOrigins", c.AllowedOrigins) + populate(objectMap, "exposedHeaders", c.ExposedHeaders) + populate(objectMap, "maxAgeInSeconds", c.MaxAgeInSeconds) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type CorsRules. +func (c CorsRules) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "corsRules", c.CorsRules) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type DeletedAccountListResult. +func (d DeletedAccountListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type EncryptionScope. +func (e EncryptionScope) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "properties", e.EncryptionScopeProperties) + populate(objectMap, "id", e.ID) + populate(objectMap, "name", e.Name) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type EncryptionScopeKeyVaultProperties. +func (e EncryptionScopeKeyVaultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "currentVersionedKeyIdentifier", e.CurrentVersionedKeyIdentifier) + populate(objectMap, "keyUri", e.KeyURI) + populateTimeRFC3339(objectMap, "lastKeyRotationTimestamp", e.LastKeyRotationTimestamp) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionScopeKeyVaultProperties. +func (e *EncryptionScopeKeyVaultProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "currentVersionedKeyIdentifier": + err = unpopulate(val, &e.CurrentVersionedKeyIdentifier) + delete(rawMsg, key) + case "keyUri": + err = unpopulate(val, &e.KeyURI) + delete(rawMsg, key) + case "lastKeyRotationTimestamp": + err = unpopulateTimeRFC3339(val, &e.LastKeyRotationTimestamp) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EncryptionScopeListResult. +func (e EncryptionScopeListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", e.NextLink) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type EncryptionScopeProperties. +func (e EncryptionScopeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "creationTime", e.CreationTime) + populate(objectMap, "keyVaultProperties", e.KeyVaultProperties) + populateTimeRFC3339(objectMap, "lastModifiedTime", e.LastModifiedTime) + populate(objectMap, "requireInfrastructureEncryption", e.RequireInfrastructureEncryption) + populate(objectMap, "source", e.Source) + populate(objectMap, "state", e.State) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionScopeProperties. +func (e *EncryptionScopeProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "creationTime": + err = unpopulateTimeRFC3339(val, &e.CreationTime) + delete(rawMsg, key) + case "keyVaultProperties": + err = unpopulate(val, &e.KeyVaultProperties) + delete(rawMsg, key) + case "lastModifiedTime": + err = unpopulateTimeRFC3339(val, &e.LastModifiedTime) + delete(rawMsg, key) + case "requireInfrastructureEncryption": + err = unpopulate(val, &e.RequireInfrastructureEncryption) + delete(rawMsg, key) + case "source": + err = unpopulate(val, &e.Source) + delete(rawMsg, key) + case "state": + err = unpopulate(val, &e.State) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EncryptionService. +func (e EncryptionService) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "enabled", e.Enabled) + populate(objectMap, "keyType", e.KeyType) + populateTimeRFC3339(objectMap, "lastEnabledTime", e.LastEnabledTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionService. +func (e *EncryptionService) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "enabled": + err = unpopulate(val, &e.Enabled) + delete(rawMsg, key) + case "keyType": + err = unpopulate(val, &e.KeyType) + delete(rawMsg, key) + case "lastEnabledTime": + err = unpopulateTimeRFC3339(val, &e.LastEnabledTime) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FileServiceItems. +func (f FileServiceItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", f.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type FileShare. +func (f FileShare) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "etag", f.Etag) + populate(objectMap, "properties", f.FileShareProperties) + populate(objectMap, "id", f.ID) + populate(objectMap, "name", f.Name) + populate(objectMap, "type", f.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type FileShareItems. +func (f FileShareItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", f.NextLink) + populate(objectMap, "value", f.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type FileShareProperties. +func (f FileShareProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "accessTier", f.AccessTier) + populateTimeRFC3339(objectMap, "accessTierChangeTime", f.AccessTierChangeTime) + populate(objectMap, "accessTierStatus", f.AccessTierStatus) + populate(objectMap, "deleted", f.Deleted) + populateTimeRFC3339(objectMap, "deletedTime", f.DeletedTime) + populate(objectMap, "enabledProtocols", f.EnabledProtocols) + populateTimeRFC3339(objectMap, "lastModifiedTime", f.LastModifiedTime) + populate(objectMap, "leaseDuration", f.LeaseDuration) + populate(objectMap, "leaseState", f.LeaseState) + populate(objectMap, "leaseStatus", f.LeaseStatus) + populate(objectMap, "metadata", f.Metadata) + populate(objectMap, "remainingRetentionDays", f.RemainingRetentionDays) + populate(objectMap, "rootSquash", f.RootSquash) + populate(objectMap, "shareQuota", f.ShareQuota) + populate(objectMap, "shareUsageBytes", f.ShareUsageBytes) + populate(objectMap, "signedIdentifiers", f.SignedIdentifiers) + populateTimeRFC3339(objectMap, "snapshotTime", f.SnapshotTime) + populate(objectMap, "version", f.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FileShareProperties. +func (f *FileShareProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "accessTier": + err = unpopulate(val, &f.AccessTier) + delete(rawMsg, key) + case "accessTierChangeTime": + err = unpopulateTimeRFC3339(val, &f.AccessTierChangeTime) + delete(rawMsg, key) + case "accessTierStatus": + err = unpopulate(val, &f.AccessTierStatus) + delete(rawMsg, key) + case "deleted": + err = unpopulate(val, &f.Deleted) + delete(rawMsg, key) + case "deletedTime": + err = unpopulateTimeRFC3339(val, &f.DeletedTime) + delete(rawMsg, key) + case "enabledProtocols": + err = unpopulate(val, &f.EnabledProtocols) + delete(rawMsg, key) + case "lastModifiedTime": + err = unpopulateTimeRFC3339(val, &f.LastModifiedTime) + delete(rawMsg, key) + case "leaseDuration": + err = unpopulate(val, &f.LeaseDuration) + delete(rawMsg, key) + case "leaseState": + err = unpopulate(val, &f.LeaseState) + delete(rawMsg, key) + case "leaseStatus": + err = unpopulate(val, &f.LeaseStatus) + delete(rawMsg, key) + case "metadata": + err = unpopulate(val, &f.Metadata) + delete(rawMsg, key) + case "remainingRetentionDays": + err = unpopulate(val, &f.RemainingRetentionDays) + delete(rawMsg, key) + case "rootSquash": + err = unpopulate(val, &f.RootSquash) + delete(rawMsg, key) + case "shareQuota": + err = unpopulate(val, &f.ShareQuota) + delete(rawMsg, key) + case "shareUsageBytes": + err = unpopulate(val, &f.ShareUsageBytes) + delete(rawMsg, key) + case "signedIdentifiers": + err = unpopulate(val, &f.SignedIdentifiers) + delete(rawMsg, key) + case "snapshotTime": + err = unpopulateTimeRFC3339(val, &f.SnapshotTime) + delete(rawMsg, key) + case "version": + err = unpopulate(val, &f.Version) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GeoReplicationStats. +func (g GeoReplicationStats) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "canFailover", g.CanFailover) + populateTimeRFC3339(objectMap, "lastSyncTime", g.LastSyncTime) + populate(objectMap, "status", g.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GeoReplicationStats. +func (g *GeoReplicationStats) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "canFailover": + err = unpopulate(val, &g.CanFailover) + delete(rawMsg, key) + case "lastSyncTime": + err = unpopulateTimeRFC3339(val, &g.LastSyncTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, &g.Status) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Identity. +func (i Identity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "principalId", i.PrincipalID) + populate(objectMap, "tenantId", i.TenantID) + populate(objectMap, "type", i.Type) + populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ImmutabilityPolicyProperties. +func (i ImmutabilityPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "etag", i.Etag) + populate(objectMap, "properties", i.Properties) + populate(objectMap, "updateHistory", i.UpdateHistory) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ImmutableStorageWithVersioning. +func (i ImmutableStorageWithVersioning) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "enabled", i.Enabled) + populate(objectMap, "migrationState", i.MigrationState) + populateTimeRFC3339(objectMap, "timeStamp", i.TimeStamp) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImmutableStorageWithVersioning. +func (i *ImmutableStorageWithVersioning) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "enabled": + err = unpopulate(val, &i.Enabled) + delete(rawMsg, key) + case "migrationState": + err = unpopulate(val, &i.MigrationState) + delete(rawMsg, key) + case "timeStamp": + err = unpopulateTimeRFC3339(val, &i.TimeStamp) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KeyCreationTime. +func (k KeyCreationTime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "key1", k.Key1) + populateTimeRFC3339(objectMap, "key2", k.Key2) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyCreationTime. +func (k *KeyCreationTime) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "key1": + err = unpopulateTimeRFC3339(val, &k.Key1) + delete(rawMsg, key) + case "key2": + err = unpopulateTimeRFC3339(val, &k.Key2) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties. +func (k KeyVaultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "currentVersionedKeyExpirationTimestamp", k.CurrentVersionedKeyExpirationTimestamp) + populate(objectMap, "currentVersionedKeyIdentifier", k.CurrentVersionedKeyIdentifier) + populate(objectMap, "keyname", k.KeyName) + populate(objectMap, "keyvaulturi", k.KeyVaultURI) + populate(objectMap, "keyversion", k.KeyVersion) + populateTimeRFC3339(objectMap, "lastKeyRotationTimestamp", k.LastKeyRotationTimestamp) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultProperties. +func (k *KeyVaultProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "currentVersionedKeyExpirationTimestamp": + err = unpopulateTimeRFC3339(val, &k.CurrentVersionedKeyExpirationTimestamp) + delete(rawMsg, key) + case "currentVersionedKeyIdentifier": + err = unpopulate(val, &k.CurrentVersionedKeyIdentifier) + delete(rawMsg, key) + case "keyname": + err = unpopulate(val, &k.KeyName) + delete(rawMsg, key) + case "keyvaulturi": + err = unpopulate(val, &k.KeyVaultURI) + delete(rawMsg, key) + case "keyversion": + err = unpopulate(val, &k.KeyVersion) + delete(rawMsg, key) + case "lastKeyRotationTimestamp": + err = unpopulateTimeRFC3339(val, &k.LastKeyRotationTimestamp) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LastAccessTimeTrackingPolicy. +func (l LastAccessTimeTrackingPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "blobType", l.BlobType) + populate(objectMap, "enable", l.Enable) + populate(objectMap, "name", l.Name) + populate(objectMap, "trackingGranularityInDays", l.TrackingGranularityInDays) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type LegalHold. +func (l LegalHold) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "allowProtectedAppendWritesAll", l.AllowProtectedAppendWritesAll) + populate(objectMap, "hasLegalHold", l.HasLegalHold) + populate(objectMap, "tags", l.Tags) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type LegalHoldProperties. +func (l LegalHoldProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "hasLegalHold", l.HasLegalHold) + populate(objectMap, "protectedAppendWritesHistory", l.ProtectedAppendWritesHistory) + populate(objectMap, "tags", l.Tags) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ListBlobInventoryPolicy. +func (l ListBlobInventoryPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ListContainerItems. +func (l ListContainerItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ListQueueProperties. +func (l ListQueueProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "metadata", l.Metadata) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ListQueueResource. +func (l ListQueueResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ListQueueServices. +func (l ListQueueServices) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ListTableResource. +func (l ListTableResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ListTableServices. +func (l ListTableServices) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type LocalUserKeys. +func (l LocalUserKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "sshAuthorizedKeys", l.SSHAuthorizedKeys) + populate(objectMap, "sharedKey", l.SharedKey) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type LocalUserProperties. +func (l LocalUserProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "hasSshKey", l.HasSSHKey) + populate(objectMap, "hasSshPassword", l.HasSSHPassword) + populate(objectMap, "hasSharedKey", l.HasSharedKey) + populate(objectMap, "homeDirectory", l.HomeDirectory) + populate(objectMap, "permissionScopes", l.PermissionScopes) + populate(objectMap, "sshAuthorizedKeys", l.SSHAuthorizedKeys) + populate(objectMap, "sid", l.Sid) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type LocalUsers. +func (l LocalUsers) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ManagementPolicyFilter. +func (m ManagementPolicyFilter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "blobIndexMatch", m.BlobIndexMatch) + populate(objectMap, "blobTypes", m.BlobTypes) + populate(objectMap, "prefixMatch", m.PrefixMatch) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ManagementPolicyProperties. +func (m ManagementPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "lastModifiedTime", m.LastModifiedTime) + populate(objectMap, "policy", m.Policy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagementPolicyProperties. +func (m *ManagementPolicyProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "lastModifiedTime": + err = unpopulateTimeRFC3339(val, &m.LastModifiedTime) + delete(rawMsg, key) + case "policy": + err = unpopulate(val, &m.Policy) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ManagementPolicySchema. +func (m ManagementPolicySchema) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "rules", m.Rules) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type MetricSpecification. +func (m MetricSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "aggregationType", m.AggregationType) + populate(objectMap, "category", m.Category) + populate(objectMap, "dimensions", m.Dimensions) + populate(objectMap, "displayDescription", m.DisplayDescription) + populate(objectMap, "displayName", m.DisplayName) + populate(objectMap, "fillGapWithZero", m.FillGapWithZero) + populate(objectMap, "name", m.Name) + populate(objectMap, "resourceIdDimensionNameOverride", m.ResourceIDDimensionNameOverride) + populate(objectMap, "unit", m.Unit) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSet. +func (n NetworkRuleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "bypass", n.Bypass) + populate(objectMap, "defaultAction", n.DefaultAction) + populate(objectMap, "ipRules", n.IPRules) + populate(objectMap, "resourceAccessRules", n.ResourceAccessRules) + populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicies. +func (o ObjectReplicationPolicies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyFilter. +func (o ObjectReplicationPolicyFilter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "minCreationTime", o.MinCreationTime) + populate(objectMap, "prefixMatch", o.PrefixMatch) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyProperties. +func (o ObjectReplicationPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "destinationAccount", o.DestinationAccount) + populateTimeRFC3339(objectMap, "enabledTime", o.EnabledTime) + populate(objectMap, "policyId", o.PolicyID) + populate(objectMap, "rules", o.Rules) + populate(objectMap, "sourceAccount", o.SourceAccount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicyProperties. +func (o *ObjectReplicationPolicyProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "destinationAccount": + err = unpopulate(val, &o.DestinationAccount) + delete(rawMsg, key) + case "enabledTime": + err = unpopulateTimeRFC3339(val, &o.EnabledTime) + delete(rawMsg, key) + case "policyId": + err = unpopulate(val, &o.PolicyID) + delete(rawMsg, key) + case "rules": + err = unpopulate(val, &o.Rules) + delete(rawMsg, key) + case "sourceAccount": + err = unpopulate(val, &o.SourceAccount) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. +func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult. +func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. +func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "groupId", p.GroupID) + populate(objectMap, "requiredMembers", p.RequiredMembers) + populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ProtectedAppendWritesHistory. +func (p ProtectedAppendWritesHistory) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "allowProtectedAppendWritesAll", p.AllowProtectedAppendWritesAll) + populateTimeRFC3339(objectMap, "timestamp", p.Timestamp) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedAppendWritesHistory. +func (p *ProtectedAppendWritesHistory) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "allowProtectedAppendWritesAll": + err = unpopulate(val, &p.AllowProtectedAppendWritesAll) + delete(rawMsg, key) + case "timestamp": + err = unpopulateTimeRFC3339(val, &p.Timestamp) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Queue. +func (q Queue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", q.ID) + populate(objectMap, "name", q.Name) + populate(objectMap, "properties", q.QueueProperties) + populate(objectMap, "type", q.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type QueueProperties. +func (q QueueProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "approximateMessageCount", q.ApproximateMessageCount) + populate(objectMap, "metadata", q.Metadata) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type RestorePolicyProperties. +func (r RestorePolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "days", r.Days) + populate(objectMap, "enabled", r.Enabled) + populateTimeRFC3339(objectMap, "lastEnabledTime", r.LastEnabledTime) + populateTimeRFC3339(objectMap, "minRestoreTime", r.MinRestoreTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePolicyProperties. +func (r *RestorePolicyProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "days": + err = unpopulate(val, &r.Days) + delete(rawMsg, key) + case "enabled": + err = unpopulate(val, &r.Enabled) + delete(rawMsg, key) + case "lastEnabledTime": + err = unpopulateTimeRFC3339(val, &r.LastEnabledTime) + delete(rawMsg, key) + case "minRestoreTime": + err = unpopulateTimeRFC3339(val, &r.MinRestoreTime) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Restriction. +func (r Restriction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "reasonCode", r.ReasonCode) + populate(objectMap, "type", r.Type) + populate(objectMap, "values", r.Values) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SKUInformation. +func (s SKUInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "capabilities", s.Capabilities) + populate(objectMap, "kind", s.Kind) + populate(objectMap, "locations", s.Locations) + populate(objectMap, "name", s.Name) + populate(objectMap, "resourceType", s.ResourceType) + populate(objectMap, "restrictions", s.Restrictions) + populate(objectMap, "tier", s.Tier) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SKUListResult. +func (s SKUListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type ServiceSasParameters. +func (s ServiceSasParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "rscc", s.CacheControl) + populate(objectMap, "canonicalizedResource", s.CanonicalizedResource) + populate(objectMap, "rscd", s.ContentDisposition) + populate(objectMap, "rsce", s.ContentEncoding) + populate(objectMap, "rscl", s.ContentLanguage) + populate(objectMap, "rsct", s.ContentType) + populate(objectMap, "signedIp", s.IPAddressOrRange) + populate(objectMap, "signedIdentifier", s.Identifier) + populate(objectMap, "keyToSign", s.KeyToSign) + populate(objectMap, "endPk", s.PartitionKeyEnd) + populate(objectMap, "startPk", s.PartitionKeyStart) + populate(objectMap, "signedPermission", s.Permissions) + populate(objectMap, "signedProtocol", s.Protocols) + populate(objectMap, "signedResource", s.Resource) + populate(objectMap, "endRk", s.RowKeyEnd) + populate(objectMap, "startRk", s.RowKeyStart) + populateTimeRFC3339(objectMap, "signedExpiry", s.SharedAccessExpiryTime) + populateTimeRFC3339(objectMap, "signedStart", s.SharedAccessStartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSasParameters. +func (s *ServiceSasParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "rscc": + err = unpopulate(val, &s.CacheControl) + delete(rawMsg, key) + case "canonicalizedResource": + err = unpopulate(val, &s.CanonicalizedResource) + delete(rawMsg, key) + case "rscd": + err = unpopulate(val, &s.ContentDisposition) + delete(rawMsg, key) + case "rsce": + err = unpopulate(val, &s.ContentEncoding) + delete(rawMsg, key) + case "rscl": + err = unpopulate(val, &s.ContentLanguage) + delete(rawMsg, key) + case "rsct": + err = unpopulate(val, &s.ContentType) + delete(rawMsg, key) + case "signedIp": + err = unpopulate(val, &s.IPAddressOrRange) + delete(rawMsg, key) + case "signedIdentifier": + err = unpopulate(val, &s.Identifier) + delete(rawMsg, key) + case "keyToSign": + err = unpopulate(val, &s.KeyToSign) + delete(rawMsg, key) + case "endPk": + err = unpopulate(val, &s.PartitionKeyEnd) + delete(rawMsg, key) + case "startPk": + err = unpopulate(val, &s.PartitionKeyStart) + delete(rawMsg, key) + case "signedPermission": + err = unpopulate(val, &s.Permissions) + delete(rawMsg, key) + case "signedProtocol": + err = unpopulate(val, &s.Protocols) + delete(rawMsg, key) + case "signedResource": + err = unpopulate(val, &s.Resource) + delete(rawMsg, key) + case "endRk": + err = unpopulate(val, &s.RowKeyEnd) + delete(rawMsg, key) + case "startRk": + err = unpopulate(val, &s.RowKeyStart) + delete(rawMsg, key) + case "signedExpiry": + err = unpopulateTimeRFC3339(val, &s.SharedAccessExpiryTime) + delete(rawMsg, key) + case "signedStart": + err = unpopulateTimeRFC3339(val, &s.SharedAccessStartTime) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServiceSpecification. +func (s ServiceSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "metricSpecifications", s.MetricSpecifications) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Table. +func (t Table) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", t.ID) + populate(objectMap, "name", t.Name) + populate(objectMap, "properties", t.TableProperties) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type TableAccessPolicy. +func (t TableAccessPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populateTimeRFC3339(objectMap, "expiryTime", t.ExpiryTime) + populate(objectMap, "permission", t.Permission) + populateTimeRFC3339(objectMap, "startTime", t.StartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TableAccessPolicy. +func (t *TableAccessPolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "expiryTime": + err = unpopulateTimeRFC3339(val, &t.ExpiryTime) + delete(rawMsg, key) + case "permission": + err = unpopulate(val, &t.Permission) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, &t.StartTime) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TableProperties. +func (t TableProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "signedIdentifiers", t.SignedIdentifiers) + populate(objectMap, "tableName", t.TableName) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type TagProperty. +func (t TagProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "objectIdentifier", t.ObjectIdentifier) + populate(objectMap, "tag", t.Tag) + populate(objectMap, "tenantId", t.TenantID) + populateTimeRFC3339(objectMap, "timestamp", t.Timestamp) + populate(objectMap, "upn", t.Upn) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TagProperty. +func (t *TagProperty) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "objectIdentifier": + err = unpopulate(val, &t.ObjectIdentifier) + delete(rawMsg, key) + case "tag": + err = unpopulate(val, &t.Tag) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, &t.TenantID) + delete(rawMsg, key) + case "timestamp": + err = unpopulateTimeRFC3339(val, &t.Timestamp) + delete(rawMsg, key) + case "upn": + err = unpopulate(val, &t.Upn) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TrackedResource. +func (t TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "id", t.ID) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// MarshalJSON implements the json.Marshaller interface for type UpdateHistoryProperty. +func (u UpdateHistoryProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "allowProtectedAppendWrites", u.AllowProtectedAppendWrites) + populate(objectMap, "allowProtectedAppendWritesAll", u.AllowProtectedAppendWritesAll) + populate(objectMap, "immutabilityPeriodSinceCreationInDays", u.ImmutabilityPeriodSinceCreationInDays) + populate(objectMap, "objectIdentifier", u.ObjectIdentifier) + populate(objectMap, "tenantId", u.TenantID) + populateTimeRFC3339(objectMap, "timestamp", u.Timestamp) + populate(objectMap, "update", u.Update) + populate(objectMap, "upn", u.Upn) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateHistoryProperty. +func (u *UpdateHistoryProperty) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return err + } + for key, val := range rawMsg { + var err error + switch key { + case "allowProtectedAppendWrites": + err = unpopulate(val, &u.AllowProtectedAppendWrites) + delete(rawMsg, key) + case "allowProtectedAppendWritesAll": + err = unpopulate(val, &u.AllowProtectedAppendWritesAll) + delete(rawMsg, key) + case "immutabilityPeriodSinceCreationInDays": + err = unpopulate(val, &u.ImmutabilityPeriodSinceCreationInDays) + delete(rawMsg, key) + case "objectIdentifier": + err = unpopulate(val, &u.ObjectIdentifier) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, &u.TenantID) + delete(rawMsg, key) + case "timestamp": + err = unpopulateTimeRFC3339(val, &u.Timestamp) + delete(rawMsg, key) + case "update": + err = unpopulate(val, &u.Update) + delete(rawMsg, key) + case "upn": + err = unpopulate(val, &u.Upn) + delete(rawMsg, key) + } + if err != nil { + return err + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type UsageListResult. +func (u UsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + populate(objectMap, "value", u.Value) + return json.Marshal(objectMap) +} + +func populate(m map[string]interface{}, k string, v interface{}) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, v interface{}) error { + if data == nil { + return nil + } + return json.Unmarshal(data, v) +} diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_objectreplicationpolicies_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_objectreplicationpolicies_client.go index e859deeecb18..9f9cde377075 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_objectreplicationpolicies_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_objectreplicationpolicies_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type ObjectReplicationPoliciesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewObjectReplicationPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *ObjectReplicationPoliciesClient { +func NewObjectReplicationPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ObjectReplicationPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &ObjectReplicationPoliciesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // CreateOrUpdate - Create or update the object replication policy of the storage account. @@ -99,7 +104,7 @@ func (client *ObjectReplicationPoliciesClient) createOrUpdateCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, properties) @@ -107,7 +112,7 @@ func (client *ObjectReplicationPoliciesClient) createOrUpdateCreateRequest(ctx c // createOrUpdateHandleResponse handles the CreateOrUpdate response. func (client *ObjectReplicationPoliciesClient) createOrUpdateHandleResponse(resp *http.Response) (ObjectReplicationPoliciesClientCreateOrUpdateResponse, error) { - result := ObjectReplicationPoliciesClientCreateOrUpdateResponse{RawResponse: resp} + result := ObjectReplicationPoliciesClientCreateOrUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ObjectReplicationPolicy); err != nil { return ObjectReplicationPoliciesClientCreateOrUpdateResponse{}, err } @@ -136,7 +141,7 @@ func (client *ObjectReplicationPoliciesClient) Delete(ctx context.Context, resou if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return ObjectReplicationPoliciesClientDeleteResponse{}, runtime.NewResponseError(resp) } - return ObjectReplicationPoliciesClientDeleteResponse{RawResponse: resp}, nil + return ObjectReplicationPoliciesClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -163,7 +168,7 @@ func (client *ObjectReplicationPoliciesClient) deleteCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -218,7 +223,7 @@ func (client *ObjectReplicationPoliciesClient) getCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -226,7 +231,7 @@ func (client *ObjectReplicationPoliciesClient) getCreateRequest(ctx context.Cont // getHandleResponse handles the Get response. func (client *ObjectReplicationPoliciesClient) getHandleResponse(resp *http.Response) (ObjectReplicationPoliciesClientGetResponse, error) { - result := ObjectReplicationPoliciesClientGetResponse{RawResponse: resp} + result := ObjectReplicationPoliciesClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ObjectReplicationPolicy); err != nil { return ObjectReplicationPoliciesClientGetResponse{}, err } @@ -240,19 +245,26 @@ func (client *ObjectReplicationPoliciesClient) getHandleResponse(resp *http.Resp // 3 and 24 characters in length and use numbers and lower-case letters only. // options - ObjectReplicationPoliciesClientListOptions contains the optional parameters for the ObjectReplicationPoliciesClient.List // method. -func (client *ObjectReplicationPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *ObjectReplicationPoliciesClientListOptions) (ObjectReplicationPoliciesClientListResponse, error) { - req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) - if err != nil { - return ObjectReplicationPoliciesClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return ObjectReplicationPoliciesClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return ObjectReplicationPoliciesClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) +func (client *ObjectReplicationPoliciesClient) List(resourceGroupName string, accountName string, options *ObjectReplicationPoliciesClientListOptions) *runtime.Pager[ObjectReplicationPoliciesClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[ObjectReplicationPoliciesClientListResponse]{ + More: func(page ObjectReplicationPoliciesClientListResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *ObjectReplicationPoliciesClientListResponse) (ObjectReplicationPoliciesClientListResponse, error) { + req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) + if err != nil { + return ObjectReplicationPoliciesClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ObjectReplicationPoliciesClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ObjectReplicationPoliciesClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) } // listCreateRequest creates the List request. @@ -275,7 +287,7 @@ func (client *ObjectReplicationPoliciesClient) listCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -283,7 +295,7 @@ func (client *ObjectReplicationPoliciesClient) listCreateRequest(ctx context.Con // listHandleResponse handles the List response. func (client *ObjectReplicationPoliciesClient) listHandleResponse(resp *http.Response) (ObjectReplicationPoliciesClientListResponse, error) { - result := ObjectReplicationPoliciesClientListResponse{RawResponse: resp} + result := ObjectReplicationPoliciesClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ObjectReplicationPolicies); err != nil { return ObjectReplicationPoliciesClientListResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_operations_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_operations_client.go index 00c84f809f81..68285b3ccf76 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_operations_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_operations_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -13,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -28,37 +29,48 @@ type OperationsClient struct { // NewOperationsClient creates a new instance of OperationsClient with the specified values. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) *OperationsClient { +func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &OperationsClient{ - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // List - Lists all of the available Storage Rest API operations. // If the operation fails it returns an *azcore.ResponseError type. // options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. -func (client *OperationsClient) List(ctx context.Context, options *OperationsClientListOptions) (OperationsClientListResponse, error) { - req, err := client.listCreateRequest(ctx, options) - if err != nil { - return OperationsClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return OperationsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return OperationsClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) +func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[OperationsClientListResponse]{ + More: func(page OperationsClientListResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { + req, err := client.listCreateRequest(ctx, options) + if err != nil { + return OperationsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return OperationsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return OperationsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) } // listCreateRequest creates the List request. @@ -69,7 +81,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -77,7 +89,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { - result := OperationsClientListResponse{RawResponse: resp} + result := OperationsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_pagers.go b/sdk/resourcemanager/storage/armstorage/zz_generated_pagers.go deleted file mode 100644 index 7ec7dea776b5..000000000000 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_pagers.go +++ /dev/null @@ -1,449 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armstorage - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "reflect" -) - -// AccountsClientListByResourceGroupPager provides operations for iterating over paged responses. -type AccountsClientListByResourceGroupPager struct { - client *AccountsClient - current AccountsClientListByResourceGroupResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, AccountsClientListByResourceGroupResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *AccountsClientListByResourceGroupPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *AccountsClientListByResourceGroupPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.AccountListResult.NextLink == nil || len(*p.current.AccountListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listByResourceGroupHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current AccountsClientListByResourceGroupResponse page. -func (p *AccountsClientListByResourceGroupPager) PageResponse() AccountsClientListByResourceGroupResponse { - return p.current -} - -// AccountsClientListPager provides operations for iterating over paged responses. -type AccountsClientListPager struct { - client *AccountsClient - current AccountsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, AccountsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *AccountsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *AccountsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.AccountListResult.NextLink == nil || len(*p.current.AccountListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current AccountsClientListResponse page. -func (p *AccountsClientListPager) PageResponse() AccountsClientListResponse { - return p.current -} - -// BlobContainersClientListPager provides operations for iterating over paged responses. -type BlobContainersClientListPager struct { - client *BlobContainersClient - current BlobContainersClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, BlobContainersClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *BlobContainersClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *BlobContainersClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ListContainerItems.NextLink == nil || len(*p.current.ListContainerItems.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current BlobContainersClientListResponse page. -func (p *BlobContainersClientListPager) PageResponse() BlobContainersClientListResponse { - return p.current -} - -// DeletedAccountsClientListPager provides operations for iterating over paged responses. -type DeletedAccountsClientListPager struct { - client *DeletedAccountsClient - current DeletedAccountsClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, DeletedAccountsClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *DeletedAccountsClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *DeletedAccountsClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.DeletedAccountListResult.NextLink == nil || len(*p.current.DeletedAccountListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current DeletedAccountsClientListResponse page. -func (p *DeletedAccountsClientListPager) PageResponse() DeletedAccountsClientListResponse { - return p.current -} - -// EncryptionScopesClientListPager provides operations for iterating over paged responses. -type EncryptionScopesClientListPager struct { - client *EncryptionScopesClient - current EncryptionScopesClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, EncryptionScopesClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *EncryptionScopesClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *EncryptionScopesClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.EncryptionScopeListResult.NextLink == nil || len(*p.current.EncryptionScopeListResult.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current EncryptionScopesClientListResponse page. -func (p *EncryptionScopesClientListPager) PageResponse() EncryptionScopesClientListResponse { - return p.current -} - -// FileSharesClientListPager provides operations for iterating over paged responses. -type FileSharesClientListPager struct { - client *FileSharesClient - current FileSharesClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, FileSharesClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *FileSharesClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *FileSharesClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.FileShareItems.NextLink == nil || len(*p.current.FileShareItems.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current FileSharesClientListResponse page. -func (p *FileSharesClientListPager) PageResponse() FileSharesClientListResponse { - return p.current -} - -// QueueClientListPager provides operations for iterating over paged responses. -type QueueClientListPager struct { - client *QueueClient - current QueueClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, QueueClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *QueueClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *QueueClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ListQueueResource.NextLink == nil || len(*p.current.ListQueueResource.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current QueueClientListResponse page. -func (p *QueueClientListPager) PageResponse() QueueClientListResponse { - return p.current -} - -// TableClientListPager provides operations for iterating over paged responses. -type TableClientListPager struct { - client *TableClient - current TableClientListResponse - err error - requester func(context.Context) (*policy.Request, error) - advancer func(context.Context, TableClientListResponse) (*policy.Request, error) -} - -// Err returns the last error encountered while paging. -func (p *TableClientListPager) Err() error { - return p.err -} - -// NextPage returns true if the pager advanced to the next page. -// Returns false if there are no more pages or an error occurred. -func (p *TableClientListPager) NextPage(ctx context.Context) bool { - var req *policy.Request - var err error - if !reflect.ValueOf(p.current).IsZero() { - if p.current.ListTableResource.NextLink == nil || len(*p.current.ListTableResource.NextLink) == 0 { - return false - } - req, err = p.advancer(ctx, p.current) - } else { - req, err = p.requester(ctx) - } - if err != nil { - p.err = err - return false - } - resp, err := p.client.pl.Do(req) - if err != nil { - p.err = err - return false - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - p.err = runtime.NewResponseError(resp) - return false - } - result, err := p.client.listHandleResponse(resp) - if err != nil { - p.err = err - return false - } - p.current = result - return true -} - -// PageResponse returns the current TableClientListResponse page. -func (p *TableClientListPager) PageResponse() TableClientListResponse { - return p.current -} diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_pollers.go b/sdk/resourcemanager/storage/armstorage/zz_generated_pollers.go deleted file mode 100644 index 14446d61b395..000000000000 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_pollers.go +++ /dev/null @@ -1,273 +0,0 @@ -//go:build go1.16 -// +build go1.16 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armstorage - -import ( - "context" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "net/http" -) - -// AccountsClientAbortHierarchicalNamespaceMigrationPoller provides polling facilities until the operation reaches a terminal state. -type AccountsClientAbortHierarchicalNamespaceMigrationPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *AccountsClientAbortHierarchicalNamespaceMigrationPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *AccountsClientAbortHierarchicalNamespaceMigrationPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final AccountsClientAbortHierarchicalNamespaceMigrationResponse will be returned. -func (p *AccountsClientAbortHierarchicalNamespaceMigrationPoller) FinalResponse(ctx context.Context) (AccountsClientAbortHierarchicalNamespaceMigrationResponse, error) { - respType := AccountsClientAbortHierarchicalNamespaceMigrationResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return AccountsClientAbortHierarchicalNamespaceMigrationResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *AccountsClientAbortHierarchicalNamespaceMigrationPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// AccountsClientCreatePoller provides polling facilities until the operation reaches a terminal state. -type AccountsClientCreatePoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *AccountsClientCreatePoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *AccountsClientCreatePoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final AccountsClientCreateResponse will be returned. -func (p *AccountsClientCreatePoller) FinalResponse(ctx context.Context) (AccountsClientCreateResponse, error) { - respType := AccountsClientCreateResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.Account) - if err != nil { - return AccountsClientCreateResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *AccountsClientCreatePoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// AccountsClientFailoverPoller provides polling facilities until the operation reaches a terminal state. -type AccountsClientFailoverPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *AccountsClientFailoverPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *AccountsClientFailoverPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final AccountsClientFailoverResponse will be returned. -func (p *AccountsClientFailoverPoller) FinalResponse(ctx context.Context) (AccountsClientFailoverResponse, error) { - respType := AccountsClientFailoverResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return AccountsClientFailoverResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *AccountsClientFailoverPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// AccountsClientHierarchicalNamespaceMigrationPoller provides polling facilities until the operation reaches a terminal state. -type AccountsClientHierarchicalNamespaceMigrationPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *AccountsClientHierarchicalNamespaceMigrationPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *AccountsClientHierarchicalNamespaceMigrationPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final AccountsClientHierarchicalNamespaceMigrationResponse will be returned. -func (p *AccountsClientHierarchicalNamespaceMigrationPoller) FinalResponse(ctx context.Context) (AccountsClientHierarchicalNamespaceMigrationResponse, error) { - respType := AccountsClientHierarchicalNamespaceMigrationResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return AccountsClientHierarchicalNamespaceMigrationResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *AccountsClientHierarchicalNamespaceMigrationPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// AccountsClientRestoreBlobRangesPoller provides polling facilities until the operation reaches a terminal state. -type AccountsClientRestoreBlobRangesPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *AccountsClientRestoreBlobRangesPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *AccountsClientRestoreBlobRangesPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final AccountsClientRestoreBlobRangesResponse will be returned. -func (p *AccountsClientRestoreBlobRangesPoller) FinalResponse(ctx context.Context) (AccountsClientRestoreBlobRangesResponse, error) { - respType := AccountsClientRestoreBlobRangesResponse{} - resp, err := p.pt.FinalResponse(ctx, &respType.BlobRestoreStatus) - if err != nil { - return AccountsClientRestoreBlobRangesResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *AccountsClientRestoreBlobRangesPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} - -// BlobContainersClientObjectLevelWormPoller provides polling facilities until the operation reaches a terminal state. -type BlobContainersClientObjectLevelWormPoller struct { - pt *azcore.Poller -} - -// Done returns true if the LRO has reached a terminal state. -func (p *BlobContainersClientObjectLevelWormPoller) Done() bool { - return p.pt.Done() -} - -// Poll fetches the latest state of the LRO. It returns an HTTP response or error. -// If the LRO has completed successfully, the poller's state is updated and the HTTP -// response is returned. -// If the LRO has completed with failure or was cancelled, the poller's state is -// updated and the error is returned. -// If the LRO has not reached a terminal state, the poller's state is updated and -// the latest HTTP response is returned. -// If Poll fails, the poller's state is unmodified and the error is returned. -// Calling Poll on an LRO that has reached a terminal state will return the final -// HTTP response or error. -func (p *BlobContainersClientObjectLevelWormPoller) Poll(ctx context.Context) (*http.Response, error) { - return p.pt.Poll(ctx) -} - -// FinalResponse performs a final GET to the service and returns the final response -// for the polling operation. If there is an error performing the final GET then an error is returned. -// If the final GET succeeded then the final BlobContainersClientObjectLevelWormResponse will be returned. -func (p *BlobContainersClientObjectLevelWormPoller) FinalResponse(ctx context.Context) (BlobContainersClientObjectLevelWormResponse, error) { - respType := BlobContainersClientObjectLevelWormResponse{} - resp, err := p.pt.FinalResponse(ctx, nil) - if err != nil { - return BlobContainersClientObjectLevelWormResponse{}, err - } - respType.RawResponse = resp - return respType, nil -} - -// ResumeToken returns a value representing the poller that can be used to resume -// the LRO at a later time. ResumeTokens are unique per service operation. -func (p *BlobContainersClientObjectLevelWormPoller) ResumeToken() (string, error) { - return p.pt.ResumeToken() -} diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_privateendpointconnections_client.go index 9688ffed7238..85920badba58 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_privateendpointconnections_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type PrivateEndpointConnectionsClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PrivateEndpointConnectionsClient { +func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &PrivateEndpointConnectionsClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // Delete - Deletes the specified private endpoint connection associated with the storage account. @@ -69,7 +74,7 @@ func (client *PrivateEndpointConnectionsClient) Delete(ctx context.Context, reso if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { return PrivateEndpointConnectionsClientDeleteResponse{}, runtime.NewResponseError(resp) } - return PrivateEndpointConnectionsClientDeleteResponse{RawResponse: resp}, nil + return PrivateEndpointConnectionsClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -96,7 +101,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -149,7 +154,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -157,7 +162,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con // getHandleResponse handles the Get response. func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientGetResponse, error) { - result := PrivateEndpointConnectionsClientGetResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnection); err != nil { return PrivateEndpointConnectionsClientGetResponse{}, err } @@ -171,19 +176,26 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // 3 and 24 characters in length and use numbers and lower-case letters only. // options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List // method. -func (client *PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, accountName string, options *PrivateEndpointConnectionsClientListOptions) (PrivateEndpointConnectionsClientListResponse, error) { - req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) - if err != nil { - return PrivateEndpointConnectionsClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return PrivateEndpointConnectionsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PrivateEndpointConnectionsClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) +func (client *PrivateEndpointConnectionsClient) List(resourceGroupName string, accountName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[PrivateEndpointConnectionsClientListResponse]{ + More: func(page PrivateEndpointConnectionsClientListResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *PrivateEndpointConnectionsClientListResponse) (PrivateEndpointConnectionsClientListResponse, error) { + req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) + if err != nil { + return PrivateEndpointConnectionsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return PrivateEndpointConnectionsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return PrivateEndpointConnectionsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) } // listCreateRequest creates the List request. @@ -206,7 +218,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -214,7 +226,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co // listHandleResponse handles the List response. func (client *PrivateEndpointConnectionsClient) listHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientListResponse, error) { - result := PrivateEndpointConnectionsClientListResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnectionListResult); err != nil { return PrivateEndpointConnectionsClientListResponse{}, err } @@ -269,7 +281,7 @@ func (client *PrivateEndpointConnectionsClient) putCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, properties) @@ -277,7 +289,7 @@ func (client *PrivateEndpointConnectionsClient) putCreateRequest(ctx context.Con // putHandleResponse handles the Put response. func (client *PrivateEndpointConnectionsClient) putHandleResponse(resp *http.Response) (PrivateEndpointConnectionsClientPutResponse, error) { - result := PrivateEndpointConnectionsClientPutResponse{RawResponse: resp} + result := PrivateEndpointConnectionsClientPutResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateEndpointConnection); err != nil { return PrivateEndpointConnectionsClientPutResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_privatelinkresources_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_privatelinkresources_client.go index 17df5f007b59..d5c5d11fbd68 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_privatelinkresources_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_privatelinkresources_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type PrivateLinkResourcesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *PrivateLinkResourcesClient { +func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &PrivateLinkResourcesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // ListByStorageAccount - Gets the private link resources that need to be created for a storage account. @@ -91,7 +96,7 @@ func (client *PrivateLinkResourcesClient) listByStorageAccountCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -99,7 +104,7 @@ func (client *PrivateLinkResourcesClient) listByStorageAccountCreateRequest(ctx // listByStorageAccountHandleResponse handles the ListByStorageAccount response. func (client *PrivateLinkResourcesClient) listByStorageAccountHandleResponse(resp *http.Response) (PrivateLinkResourcesClientListByStorageAccountResponse, error) { - result := PrivateLinkResourcesClientListByStorageAccountResponse{RawResponse: resp} + result := PrivateLinkResourcesClientListByStorageAccountResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PrivateLinkResourceListResult); err != nil { return PrivateLinkResourcesClientListByStorageAccountResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_queue_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_queue_client.go index 4079eb053e91..2b361dea19ab 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_queue_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_queue_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type QueueClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewQueueClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *QueueClient { +func NewQueueClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*QueueClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &QueueClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // Create - Creates a new queue with the specified queue name, under the specified account. @@ -98,7 +103,7 @@ func (client *QueueClient) createCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, queue) @@ -106,7 +111,7 @@ func (client *QueueClient) createCreateRequest(ctx context.Context, resourceGrou // createHandleResponse handles the Create response. func (client *QueueClient) createHandleResponse(resp *http.Response) (QueueClientCreateResponse, error) { - result := QueueClientCreateResponse{RawResponse: resp} + result := QueueClientCreateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Queue); err != nil { return QueueClientCreateResponse{}, err } @@ -134,7 +139,7 @@ func (client *QueueClient) Delete(ctx context.Context, resourceGroupName string, if !runtime.HasStatusCode(resp, http.StatusNoContent) { return QueueClientDeleteResponse{}, runtime.NewResponseError(resp) } - return QueueClientDeleteResponse{RawResponse: resp}, nil + return QueueClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -161,7 +166,7 @@ func (client *QueueClient) deleteCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -215,7 +220,7 @@ func (client *QueueClient) getCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -223,7 +228,7 @@ func (client *QueueClient) getCreateRequest(ctx context.Context, resourceGroupNa // getHandleResponse handles the Get response. func (client *QueueClient) getHandleResponse(resp *http.Response) (QueueClientGetResponse, error) { - result := QueueClientGetResponse{RawResponse: resp} + result := QueueClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Queue); err != nil { return QueueClientGetResponse{}, err } @@ -236,16 +241,32 @@ func (client *QueueClient) getHandleResponse(resp *http.Response) (QueueClientGe // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - QueueClientListOptions contains the optional parameters for the QueueClient.List method. -func (client *QueueClient) List(resourceGroupName string, accountName string, options *QueueClientListOptions) *QueueClientListPager { - return &QueueClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, accountName, options) +func (client *QueueClient) List(resourceGroupName string, accountName string, options *QueueClientListOptions) *runtime.Pager[QueueClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[QueueClientListResponse]{ + More: func(page QueueClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp QueueClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ListQueueResource.NextLink) + Fetcher: func(ctx context.Context, page *QueueClientListResponse) (QueueClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, accountName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return QueueClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return QueueClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return QueueClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -268,7 +289,7 @@ func (client *QueueClient) listCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") if options != nil && options.Maxpagesize != nil { reqQP.Set("$maxpagesize", *options.Maxpagesize) } @@ -282,7 +303,7 @@ func (client *QueueClient) listCreateRequest(ctx context.Context, resourceGroupN // listHandleResponse handles the List response. func (client *QueueClient) listHandleResponse(resp *http.Response) (QueueClientListResponse, error) { - result := QueueClientListResponse{RawResponse: resp} + result := QueueClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListQueueResource); err != nil { return QueueClientListResponse{}, err } @@ -338,7 +359,7 @@ func (client *QueueClient) updateCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, queue) @@ -346,7 +367,7 @@ func (client *QueueClient) updateCreateRequest(ctx context.Context, resourceGrou // updateHandleResponse handles the Update response. func (client *QueueClient) updateHandleResponse(resp *http.Response) (QueueClientUpdateResponse, error) { - result := QueueClientUpdateResponse{RawResponse: resp} + result := QueueClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Queue); err != nil { return QueueClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_queueservices_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_queueservices_client.go index 08b61365a160..87b113bd329b 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_queueservices_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_queueservices_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type QueueServicesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewQueueServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *QueueServicesClient { +func NewQueueServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*QueueServicesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &QueueServicesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // GetServiceProperties - Gets the properties of a storage account’s Queue service, including properties for Storage Analytics @@ -93,7 +98,7 @@ func (client *QueueServicesClient) getServicePropertiesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -101,7 +106,7 @@ func (client *QueueServicesClient) getServicePropertiesCreateRequest(ctx context // getServicePropertiesHandleResponse handles the GetServiceProperties response. func (client *QueueServicesClient) getServicePropertiesHandleResponse(resp *http.Response) (QueueServicesClientGetServicePropertiesResponse, error) { - result := QueueServicesClientGetServicePropertiesResponse{RawResponse: resp} + result := QueueServicesClientGetServicePropertiesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.QueueServiceProperties); err != nil { return QueueServicesClientGetServicePropertiesResponse{}, err } @@ -149,7 +154,7 @@ func (client *QueueServicesClient) listCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -157,7 +162,7 @@ func (client *QueueServicesClient) listCreateRequest(ctx context.Context, resour // listHandleResponse handles the List response. func (client *QueueServicesClient) listHandleResponse(resp *http.Response) (QueueServicesClientListResponse, error) { - result := QueueServicesClientListResponse{RawResponse: resp} + result := QueueServicesClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListQueueServices); err != nil { return QueueServicesClientListResponse{}, err } @@ -210,7 +215,7 @@ func (client *QueueServicesClient) setServicePropertiesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, parameters) @@ -218,7 +223,7 @@ func (client *QueueServicesClient) setServicePropertiesCreateRequest(ctx context // setServicePropertiesHandleResponse handles the SetServiceProperties response. func (client *QueueServicesClient) setServicePropertiesHandleResponse(resp *http.Response) (QueueServicesClientSetServicePropertiesResponse, error) { - result := QueueServicesClientSetServicePropertiesResponse{RawResponse: resp} + result := QueueServicesClientSetServicePropertiesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.QueueServiceProperties); err != nil { return QueueServicesClientSetServicePropertiesResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_response_types.go b/sdk/resourcemanager/storage/armstorage/zz_generated_response_types.go index 30e8edb969d0..6d24bd7096c9 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_response_types.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_response_types.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -8,397 +8,93 @@ package armstorage -import ( - "context" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "net/http" - "time" -) - -// AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse contains the response from method AccountsClient.AbortHierarchicalNamespaceMigration. -type AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse struct { - // Poller contains an initialized poller. - Poller *AccountsClientAbortHierarchicalNamespaceMigrationPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (AccountsClientAbortHierarchicalNamespaceMigrationResponse, error) { - respType := AccountsClientAbortHierarchicalNamespaceMigrationResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse from the provided client and resume -// token. -func (l *AccountsClientAbortHierarchicalNamespaceMigrationPollerResponse) Resume(ctx context.Context, client *AccountsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("AccountsClient.AbortHierarchicalNamespaceMigration", token, client.pl) - if err != nil { - return err - } - poller := &AccountsClientAbortHierarchicalNamespaceMigrationPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // AccountsClientAbortHierarchicalNamespaceMigrationResponse contains the response from method AccountsClient.AbortHierarchicalNamespaceMigration. type AccountsClientAbortHierarchicalNamespaceMigrationResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // AccountsClientCheckNameAvailabilityResponse contains the response from method AccountsClient.CheckNameAvailability. type AccountsClientCheckNameAvailabilityResponse struct { - AccountsClientCheckNameAvailabilityResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientCheckNameAvailabilityResult contains the result from method AccountsClient.CheckNameAvailability. -type AccountsClientCheckNameAvailabilityResult struct { CheckNameAvailabilityResult } -// AccountsClientCreatePollerResponse contains the response from method AccountsClient.Create. -type AccountsClientCreatePollerResponse struct { - // Poller contains an initialized poller. - Poller *AccountsClientCreatePoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l AccountsClientCreatePollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (AccountsClientCreateResponse, error) { - respType := AccountsClientCreateResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.Account) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a AccountsClientCreatePollerResponse from the provided client and resume token. -func (l *AccountsClientCreatePollerResponse) Resume(ctx context.Context, client *AccountsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("AccountsClient.Create", token, client.pl) - if err != nil { - return err - } - poller := &AccountsClientCreatePoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // AccountsClientCreateResponse contains the response from method AccountsClient.Create. type AccountsClientCreateResponse struct { - AccountsClientCreateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientCreateResult contains the result from method AccountsClient.Create. -type AccountsClientCreateResult struct { Account } // AccountsClientDeleteResponse contains the response from method AccountsClient.Delete. type AccountsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientFailoverPollerResponse contains the response from method AccountsClient.Failover. -type AccountsClientFailoverPollerResponse struct { - // Poller contains an initialized poller. - Poller *AccountsClientFailoverPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l AccountsClientFailoverPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (AccountsClientFailoverResponse, error) { - respType := AccountsClientFailoverResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a AccountsClientFailoverPollerResponse from the provided client and resume token. -func (l *AccountsClientFailoverPollerResponse) Resume(ctx context.Context, client *AccountsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("AccountsClient.Failover", token, client.pl) - if err != nil { - return err - } - poller := &AccountsClientFailoverPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil + // placeholder for future response values } // AccountsClientFailoverResponse contains the response from method AccountsClient.Failover. type AccountsClientFailoverResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // AccountsClientGetPropertiesResponse contains the response from method AccountsClient.GetProperties. type AccountsClientGetPropertiesResponse struct { - AccountsClientGetPropertiesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientGetPropertiesResult contains the result from method AccountsClient.GetProperties. -type AccountsClientGetPropertiesResult struct { Account } -// AccountsClientHierarchicalNamespaceMigrationPollerResponse contains the response from method AccountsClient.HierarchicalNamespaceMigration. -type AccountsClientHierarchicalNamespaceMigrationPollerResponse struct { - // Poller contains an initialized poller. - Poller *AccountsClientHierarchicalNamespaceMigrationPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l AccountsClientHierarchicalNamespaceMigrationPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (AccountsClientHierarchicalNamespaceMigrationResponse, error) { - respType := AccountsClientHierarchicalNamespaceMigrationResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a AccountsClientHierarchicalNamespaceMigrationPollerResponse from the provided client and resume token. -func (l *AccountsClientHierarchicalNamespaceMigrationPollerResponse) Resume(ctx context.Context, client *AccountsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("AccountsClient.HierarchicalNamespaceMigration", token, client.pl) - if err != nil { - return err - } - poller := &AccountsClientHierarchicalNamespaceMigrationPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // AccountsClientHierarchicalNamespaceMigrationResponse contains the response from method AccountsClient.HierarchicalNamespaceMigration. type AccountsClientHierarchicalNamespaceMigrationResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // AccountsClientListAccountSASResponse contains the response from method AccountsClient.ListAccountSAS. type AccountsClientListAccountSASResponse struct { - AccountsClientListAccountSASResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientListAccountSASResult contains the result from method AccountsClient.ListAccountSAS. -type AccountsClientListAccountSASResult struct { ListAccountSasResponse } // AccountsClientListByResourceGroupResponse contains the response from method AccountsClient.ListByResourceGroup. type AccountsClientListByResourceGroupResponse struct { - AccountsClientListByResourceGroupResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientListByResourceGroupResult contains the result from method AccountsClient.ListByResourceGroup. -type AccountsClientListByResourceGroupResult struct { AccountListResult } // AccountsClientListKeysResponse contains the response from method AccountsClient.ListKeys. type AccountsClientListKeysResponse struct { - AccountsClientListKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientListKeysResult contains the result from method AccountsClient.ListKeys. -type AccountsClientListKeysResult struct { AccountListKeysResult } // AccountsClientListResponse contains the response from method AccountsClient.List. type AccountsClientListResponse struct { - AccountsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientListResult contains the result from method AccountsClient.List. -type AccountsClientListResult struct { AccountListResult } // AccountsClientListServiceSASResponse contains the response from method AccountsClient.ListServiceSAS. type AccountsClientListServiceSASResponse struct { - AccountsClientListServiceSASResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientListServiceSASResult contains the result from method AccountsClient.ListServiceSAS. -type AccountsClientListServiceSASResult struct { ListServiceSasResponse } // AccountsClientRegenerateKeyResponse contains the response from method AccountsClient.RegenerateKey. type AccountsClientRegenerateKeyResponse struct { - AccountsClientRegenerateKeyResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientRegenerateKeyResult contains the result from method AccountsClient.RegenerateKey. -type AccountsClientRegenerateKeyResult struct { AccountListKeysResult } -// AccountsClientRestoreBlobRangesPollerResponse contains the response from method AccountsClient.RestoreBlobRanges. -type AccountsClientRestoreBlobRangesPollerResponse struct { - // Poller contains an initialized poller. - Poller *AccountsClientRestoreBlobRangesPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l AccountsClientRestoreBlobRangesPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (AccountsClientRestoreBlobRangesResponse, error) { - respType := AccountsClientRestoreBlobRangesResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, &respType.BlobRestoreStatus) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a AccountsClientRestoreBlobRangesPollerResponse from the provided client and resume token. -func (l *AccountsClientRestoreBlobRangesPollerResponse) Resume(ctx context.Context, client *AccountsClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("AccountsClient.RestoreBlobRanges", token, client.pl) - if err != nil { - return err - } - poller := &AccountsClientRestoreBlobRangesPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // AccountsClientRestoreBlobRangesResponse contains the response from method AccountsClient.RestoreBlobRanges. type AccountsClientRestoreBlobRangesResponse struct { - AccountsClientRestoreBlobRangesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientRestoreBlobRangesResult contains the result from method AccountsClient.RestoreBlobRanges. -type AccountsClientRestoreBlobRangesResult struct { BlobRestoreStatus } // AccountsClientRevokeUserDelegationKeysResponse contains the response from method AccountsClient.RevokeUserDelegationKeys. type AccountsClientRevokeUserDelegationKeysResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // AccountsClientUpdateResponse contains the response from method AccountsClient.Update. type AccountsClientUpdateResponse struct { - AccountsClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// AccountsClientUpdateResult contains the result from method AccountsClient.Update. -type AccountsClientUpdateResult struct { Account } // BlobContainersClientClearLegalHoldResponse contains the response from method BlobContainersClient.ClearLegalHold. type BlobContainersClientClearLegalHoldResponse struct { - BlobContainersClientClearLegalHoldResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientClearLegalHoldResult contains the result from method BlobContainersClient.ClearLegalHold. -type BlobContainersClientClearLegalHoldResult struct { LegalHold } // BlobContainersClientCreateOrUpdateImmutabilityPolicyResponse contains the response from method BlobContainersClient.CreateOrUpdateImmutabilityPolicy. type BlobContainersClientCreateOrUpdateImmutabilityPolicyResponse struct { - BlobContainersClientCreateOrUpdateImmutabilityPolicyResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientCreateOrUpdateImmutabilityPolicyResult contains the result from method BlobContainersClient.CreateOrUpdateImmutabilityPolicy. -type BlobContainersClientCreateOrUpdateImmutabilityPolicyResult struct { ImmutabilityPolicy // ETag contains the information returned from the ETag header response. ETag *string @@ -406,25 +102,11 @@ type BlobContainersClientCreateOrUpdateImmutabilityPolicyResult struct { // BlobContainersClientCreateResponse contains the response from method BlobContainersClient.Create. type BlobContainersClientCreateResponse struct { - BlobContainersClientCreateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientCreateResult contains the result from method BlobContainersClient.Create. -type BlobContainersClientCreateResult struct { BlobContainer } // BlobContainersClientDeleteImmutabilityPolicyResponse contains the response from method BlobContainersClient.DeleteImmutabilityPolicy. type BlobContainersClientDeleteImmutabilityPolicyResponse struct { - BlobContainersClientDeleteImmutabilityPolicyResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientDeleteImmutabilityPolicyResult contains the result from method BlobContainersClient.DeleteImmutabilityPolicy. -type BlobContainersClientDeleteImmutabilityPolicyResult struct { ImmutabilityPolicy // ETag contains the information returned from the ETag header response. ETag *string @@ -432,19 +114,11 @@ type BlobContainersClientDeleteImmutabilityPolicyResult struct { // BlobContainersClientDeleteResponse contains the response from method BlobContainersClient.Delete. type BlobContainersClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // BlobContainersClientExtendImmutabilityPolicyResponse contains the response from method BlobContainersClient.ExtendImmutabilityPolicy. type BlobContainersClientExtendImmutabilityPolicyResponse struct { - BlobContainersClientExtendImmutabilityPolicyResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientExtendImmutabilityPolicyResult contains the result from method BlobContainersClient.ExtendImmutabilityPolicy. -type BlobContainersClientExtendImmutabilityPolicyResult struct { ImmutabilityPolicy // ETag contains the information returned from the ETag header response. ETag *string @@ -452,13 +126,6 @@ type BlobContainersClientExtendImmutabilityPolicyResult struct { // BlobContainersClientGetImmutabilityPolicyResponse contains the response from method BlobContainersClient.GetImmutabilityPolicy. type BlobContainersClientGetImmutabilityPolicyResponse struct { - BlobContainersClientGetImmutabilityPolicyResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientGetImmutabilityPolicyResult contains the result from method BlobContainersClient.GetImmutabilityPolicy. -type BlobContainersClientGetImmutabilityPolicyResult struct { ImmutabilityPolicy // ETag contains the information returned from the ETag header response. ETag *string @@ -466,349 +133,138 @@ type BlobContainersClientGetImmutabilityPolicyResult struct { // BlobContainersClientGetResponse contains the response from method BlobContainersClient.Get. type BlobContainersClientGetResponse struct { - BlobContainersClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientGetResult contains the result from method BlobContainersClient.Get. -type BlobContainersClientGetResult struct { BlobContainer } // BlobContainersClientLeaseResponse contains the response from method BlobContainersClient.Lease. type BlobContainersClientLeaseResponse struct { - BlobContainersClientLeaseResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientLeaseResult contains the result from method BlobContainersClient.Lease. -type BlobContainersClientLeaseResult struct { LeaseContainerResponse } // BlobContainersClientListResponse contains the response from method BlobContainersClient.List. type BlobContainersClientListResponse struct { - BlobContainersClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientListResult contains the result from method BlobContainersClient.List. -type BlobContainersClientListResult struct { ListContainerItems } // BlobContainersClientLockImmutabilityPolicyResponse contains the response from method BlobContainersClient.LockImmutabilityPolicy. type BlobContainersClientLockImmutabilityPolicyResponse struct { - BlobContainersClientLockImmutabilityPolicyResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientLockImmutabilityPolicyResult contains the result from method BlobContainersClient.LockImmutabilityPolicy. -type BlobContainersClientLockImmutabilityPolicyResult struct { ImmutabilityPolicy // ETag contains the information returned from the ETag header response. ETag *string } -// BlobContainersClientObjectLevelWormPollerResponse contains the response from method BlobContainersClient.ObjectLevelWorm. -type BlobContainersClientObjectLevelWormPollerResponse struct { - // Poller contains an initialized poller. - Poller *BlobContainersClientObjectLevelWormPoller - - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received. -// freq: the time to wait between intervals in absence of a Retry-After header. Allowed minimum is one second. -// A good starting value is 30 seconds. Note that some resources might benefit from a different value. -func (l BlobContainersClientObjectLevelWormPollerResponse) PollUntilDone(ctx context.Context, freq time.Duration) (BlobContainersClientObjectLevelWormResponse, error) { - respType := BlobContainersClientObjectLevelWormResponse{} - resp, err := l.Poller.pt.PollUntilDone(ctx, freq, nil) - if err != nil { - return respType, err - } - respType.RawResponse = resp - return respType, nil -} - -// Resume rehydrates a BlobContainersClientObjectLevelWormPollerResponse from the provided client and resume token. -func (l *BlobContainersClientObjectLevelWormPollerResponse) Resume(ctx context.Context, client *BlobContainersClient, token string) error { - pt, err := armruntime.NewPollerFromResumeToken("BlobContainersClient.ObjectLevelWorm", token, client.pl) - if err != nil { - return err - } - poller := &BlobContainersClientObjectLevelWormPoller{ - pt: pt, - } - resp, err := poller.Poll(ctx) - if err != nil { - return err - } - l.Poller = poller - l.RawResponse = resp - return nil -} - // BlobContainersClientObjectLevelWormResponse contains the response from method BlobContainersClient.ObjectLevelWorm. type BlobContainersClientObjectLevelWormResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // BlobContainersClientSetLegalHoldResponse contains the response from method BlobContainersClient.SetLegalHold. type BlobContainersClientSetLegalHoldResponse struct { - BlobContainersClientSetLegalHoldResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientSetLegalHoldResult contains the result from method BlobContainersClient.SetLegalHold. -type BlobContainersClientSetLegalHoldResult struct { LegalHold } // BlobContainersClientUpdateResponse contains the response from method BlobContainersClient.Update. type BlobContainersClientUpdateResponse struct { - BlobContainersClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobContainersClientUpdateResult contains the result from method BlobContainersClient.Update. -type BlobContainersClientUpdateResult struct { BlobContainer } // BlobInventoryPoliciesClientCreateOrUpdateResponse contains the response from method BlobInventoryPoliciesClient.CreateOrUpdate. type BlobInventoryPoliciesClientCreateOrUpdateResponse struct { - BlobInventoryPoliciesClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobInventoryPoliciesClientCreateOrUpdateResult contains the result from method BlobInventoryPoliciesClient.CreateOrUpdate. -type BlobInventoryPoliciesClientCreateOrUpdateResult struct { BlobInventoryPolicy } // BlobInventoryPoliciesClientDeleteResponse contains the response from method BlobInventoryPoliciesClient.Delete. type BlobInventoryPoliciesClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // BlobInventoryPoliciesClientGetResponse contains the response from method BlobInventoryPoliciesClient.Get. type BlobInventoryPoliciesClientGetResponse struct { - BlobInventoryPoliciesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobInventoryPoliciesClientGetResult contains the result from method BlobInventoryPoliciesClient.Get. -type BlobInventoryPoliciesClientGetResult struct { BlobInventoryPolicy } // BlobInventoryPoliciesClientListResponse contains the response from method BlobInventoryPoliciesClient.List. type BlobInventoryPoliciesClientListResponse struct { - BlobInventoryPoliciesClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobInventoryPoliciesClientListResult contains the result from method BlobInventoryPoliciesClient.List. -type BlobInventoryPoliciesClientListResult struct { ListBlobInventoryPolicy } // BlobServicesClientGetServicePropertiesResponse contains the response from method BlobServicesClient.GetServiceProperties. type BlobServicesClientGetServicePropertiesResponse struct { - BlobServicesClientGetServicePropertiesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobServicesClientGetServicePropertiesResult contains the result from method BlobServicesClient.GetServiceProperties. -type BlobServicesClientGetServicePropertiesResult struct { BlobServiceProperties } // BlobServicesClientListResponse contains the response from method BlobServicesClient.List. type BlobServicesClientListResponse struct { - BlobServicesClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobServicesClientListResult contains the result from method BlobServicesClient.List. -type BlobServicesClientListResult struct { BlobServiceItems } // BlobServicesClientSetServicePropertiesResponse contains the response from method BlobServicesClient.SetServiceProperties. type BlobServicesClientSetServicePropertiesResponse struct { - BlobServicesClientSetServicePropertiesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// BlobServicesClientSetServicePropertiesResult contains the result from method BlobServicesClient.SetServiceProperties. -type BlobServicesClientSetServicePropertiesResult struct { BlobServiceProperties } // DeletedAccountsClientGetResponse contains the response from method DeletedAccountsClient.Get. type DeletedAccountsClientGetResponse struct { - DeletedAccountsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DeletedAccountsClientGetResult contains the result from method DeletedAccountsClient.Get. -type DeletedAccountsClientGetResult struct { DeletedAccount } // DeletedAccountsClientListResponse contains the response from method DeletedAccountsClient.List. type DeletedAccountsClientListResponse struct { - DeletedAccountsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// DeletedAccountsClientListResult contains the result from method DeletedAccountsClient.List. -type DeletedAccountsClientListResult struct { DeletedAccountListResult } // EncryptionScopesClientGetResponse contains the response from method EncryptionScopesClient.Get. type EncryptionScopesClientGetResponse struct { - EncryptionScopesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EncryptionScopesClientGetResult contains the result from method EncryptionScopesClient.Get. -type EncryptionScopesClientGetResult struct { EncryptionScope } // EncryptionScopesClientListResponse contains the response from method EncryptionScopesClient.List. type EncryptionScopesClientListResponse struct { - EncryptionScopesClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EncryptionScopesClientListResult contains the result from method EncryptionScopesClient.List. -type EncryptionScopesClientListResult struct { EncryptionScopeListResult } // EncryptionScopesClientPatchResponse contains the response from method EncryptionScopesClient.Patch. type EncryptionScopesClientPatchResponse struct { - EncryptionScopesClientPatchResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EncryptionScopesClientPatchResult contains the result from method EncryptionScopesClient.Patch. -type EncryptionScopesClientPatchResult struct { EncryptionScope } // EncryptionScopesClientPutResponse contains the response from method EncryptionScopesClient.Put. type EncryptionScopesClientPutResponse struct { - EncryptionScopesClientPutResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// EncryptionScopesClientPutResult contains the result from method EncryptionScopesClient.Put. -type EncryptionScopesClientPutResult struct { EncryptionScope } // FileServicesClientGetServicePropertiesResponse contains the response from method FileServicesClient.GetServiceProperties. type FileServicesClientGetServicePropertiesResponse struct { - FileServicesClientGetServicePropertiesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// FileServicesClientGetServicePropertiesResult contains the result from method FileServicesClient.GetServiceProperties. -type FileServicesClientGetServicePropertiesResult struct { FileServiceProperties } // FileServicesClientListResponse contains the response from method FileServicesClient.List. type FileServicesClientListResponse struct { - FileServicesClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// FileServicesClientListResult contains the result from method FileServicesClient.List. -type FileServicesClientListResult struct { FileServiceItems } // FileServicesClientSetServicePropertiesResponse contains the response from method FileServicesClient.SetServiceProperties. type FileServicesClientSetServicePropertiesResponse struct { - FileServicesClientSetServicePropertiesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// FileServicesClientSetServicePropertiesResult contains the result from method FileServicesClient.SetServiceProperties. -type FileServicesClientSetServicePropertiesResult struct { FileServiceProperties } // FileSharesClientCreateResponse contains the response from method FileSharesClient.Create. type FileSharesClientCreateResponse struct { - FileSharesClientCreateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// FileSharesClientCreateResult contains the result from method FileSharesClient.Create. -type FileSharesClientCreateResult struct { FileShare } // FileSharesClientDeleteResponse contains the response from method FileSharesClient.Delete. type FileSharesClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // FileSharesClientGetResponse contains the response from method FileSharesClient.Get. type FileSharesClientGetResponse struct { - FileSharesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// FileSharesClientGetResult contains the result from method FileSharesClient.Get. -type FileSharesClientGetResult struct { FileShare } // FileSharesClientLeaseResponse contains the response from method FileSharesClient.Lease. type FileSharesClientLeaseResponse struct { - FileSharesClientLeaseResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// FileSharesClientLeaseResult contains the result from method FileSharesClient.Lease. -type FileSharesClientLeaseResult struct { LeaseShareResponse // ETag contains the information returned from the ETag header response. ETag *string @@ -816,438 +272,200 @@ type FileSharesClientLeaseResult struct { // FileSharesClientListResponse contains the response from method FileSharesClient.List. type FileSharesClientListResponse struct { - FileSharesClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// FileSharesClientListResult contains the result from method FileSharesClient.List. -type FileSharesClientListResult struct { FileShareItems } // FileSharesClientRestoreResponse contains the response from method FileSharesClient.Restore. type FileSharesClientRestoreResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // FileSharesClientUpdateResponse contains the response from method FileSharesClient.Update. type FileSharesClientUpdateResponse struct { - FileSharesClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// FileSharesClientUpdateResult contains the result from method FileSharesClient.Update. -type FileSharesClientUpdateResult struct { FileShare } // LocalUsersClientCreateOrUpdateResponse contains the response from method LocalUsersClient.CreateOrUpdate. type LocalUsersClientCreateOrUpdateResponse struct { - LocalUsersClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// LocalUsersClientCreateOrUpdateResult contains the result from method LocalUsersClient.CreateOrUpdate. -type LocalUsersClientCreateOrUpdateResult struct { LocalUser } // LocalUsersClientDeleteResponse contains the response from method LocalUsersClient.Delete. type LocalUsersClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // LocalUsersClientGetResponse contains the response from method LocalUsersClient.Get. type LocalUsersClientGetResponse struct { - LocalUsersClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// LocalUsersClientGetResult contains the result from method LocalUsersClient.Get. -type LocalUsersClientGetResult struct { LocalUser } // LocalUsersClientListKeysResponse contains the response from method LocalUsersClient.ListKeys. type LocalUsersClientListKeysResponse struct { - LocalUsersClientListKeysResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// LocalUsersClientListKeysResult contains the result from method LocalUsersClient.ListKeys. -type LocalUsersClientListKeysResult struct { LocalUserKeys } // LocalUsersClientListResponse contains the response from method LocalUsersClient.List. type LocalUsersClientListResponse struct { - LocalUsersClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// LocalUsersClientListResult contains the result from method LocalUsersClient.List. -type LocalUsersClientListResult struct { LocalUsers } // LocalUsersClientRegeneratePasswordResponse contains the response from method LocalUsersClient.RegeneratePassword. type LocalUsersClientRegeneratePasswordResponse struct { - LocalUsersClientRegeneratePasswordResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// LocalUsersClientRegeneratePasswordResult contains the result from method LocalUsersClient.RegeneratePassword. -type LocalUsersClientRegeneratePasswordResult struct { LocalUserRegeneratePasswordResult } // ManagementPoliciesClientCreateOrUpdateResponse contains the response from method ManagementPoliciesClient.CreateOrUpdate. type ManagementPoliciesClientCreateOrUpdateResponse struct { - ManagementPoliciesClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementPoliciesClientCreateOrUpdateResult contains the result from method ManagementPoliciesClient.CreateOrUpdate. -type ManagementPoliciesClientCreateOrUpdateResult struct { ManagementPolicy } // ManagementPoliciesClientDeleteResponse contains the response from method ManagementPoliciesClient.Delete. type ManagementPoliciesClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ManagementPoliciesClientGetResponse contains the response from method ManagementPoliciesClient.Get. type ManagementPoliciesClientGetResponse struct { - ManagementPoliciesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ManagementPoliciesClientGetResult contains the result from method ManagementPoliciesClient.Get. -type ManagementPoliciesClientGetResult struct { ManagementPolicy } // ObjectReplicationPoliciesClientCreateOrUpdateResponse contains the response from method ObjectReplicationPoliciesClient.CreateOrUpdate. type ObjectReplicationPoliciesClientCreateOrUpdateResponse struct { - ObjectReplicationPoliciesClientCreateOrUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ObjectReplicationPoliciesClientCreateOrUpdateResult contains the result from method ObjectReplicationPoliciesClient.CreateOrUpdate. -type ObjectReplicationPoliciesClientCreateOrUpdateResult struct { ObjectReplicationPolicy } // ObjectReplicationPoliciesClientDeleteResponse contains the response from method ObjectReplicationPoliciesClient.Delete. type ObjectReplicationPoliciesClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // ObjectReplicationPoliciesClientGetResponse contains the response from method ObjectReplicationPoliciesClient.Get. type ObjectReplicationPoliciesClientGetResponse struct { - ObjectReplicationPoliciesClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ObjectReplicationPoliciesClientGetResult contains the result from method ObjectReplicationPoliciesClient.Get. -type ObjectReplicationPoliciesClientGetResult struct { ObjectReplicationPolicy } // ObjectReplicationPoliciesClientListResponse contains the response from method ObjectReplicationPoliciesClient.List. type ObjectReplicationPoliciesClientListResponse struct { - ObjectReplicationPoliciesClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// ObjectReplicationPoliciesClientListResult contains the result from method ObjectReplicationPoliciesClient.List. -type ObjectReplicationPoliciesClientListResult struct { ObjectReplicationPolicies } // OperationsClientListResponse contains the response from method OperationsClient.List. type OperationsClientListResponse struct { - OperationsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// OperationsClientListResult contains the result from method OperationsClient.List. -type OperationsClientListResult struct { OperationListResult } // PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete. type PrivateEndpointConnectionsClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get. type PrivateEndpointConnectionsClientGetResponse struct { - PrivateEndpointConnectionsClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientGetResult contains the result from method PrivateEndpointConnectionsClient.Get. -type PrivateEndpointConnectionsClientGetResult struct { PrivateEndpointConnection } // PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.List. type PrivateEndpointConnectionsClientListResponse struct { - PrivateEndpointConnectionsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientListResult contains the result from method PrivateEndpointConnectionsClient.List. -type PrivateEndpointConnectionsClientListResult struct { PrivateEndpointConnectionListResult } // PrivateEndpointConnectionsClientPutResponse contains the response from method PrivateEndpointConnectionsClient.Put. type PrivateEndpointConnectionsClientPutResponse struct { - PrivateEndpointConnectionsClientPutResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateEndpointConnectionsClientPutResult contains the result from method PrivateEndpointConnectionsClient.Put. -type PrivateEndpointConnectionsClientPutResult struct { PrivateEndpointConnection } // PrivateLinkResourcesClientListByStorageAccountResponse contains the response from method PrivateLinkResourcesClient.ListByStorageAccount. type PrivateLinkResourcesClientListByStorageAccountResponse struct { - PrivateLinkResourcesClientListByStorageAccountResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// PrivateLinkResourcesClientListByStorageAccountResult contains the result from method PrivateLinkResourcesClient.ListByStorageAccount. -type PrivateLinkResourcesClientListByStorageAccountResult struct { PrivateLinkResourceListResult } // QueueClientCreateResponse contains the response from method QueueClient.Create. type QueueClientCreateResponse struct { - QueueClientCreateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueueClientCreateResult contains the result from method QueueClient.Create. -type QueueClientCreateResult struct { Queue } // QueueClientDeleteResponse contains the response from method QueueClient.Delete. type QueueClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // QueueClientGetResponse contains the response from method QueueClient.Get. type QueueClientGetResponse struct { - QueueClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueueClientGetResult contains the result from method QueueClient.Get. -type QueueClientGetResult struct { Queue } // QueueClientListResponse contains the response from method QueueClient.List. type QueueClientListResponse struct { - QueueClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueueClientListResult contains the result from method QueueClient.List. -type QueueClientListResult struct { ListQueueResource } // QueueClientUpdateResponse contains the response from method QueueClient.Update. type QueueClientUpdateResponse struct { - QueueClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueueClientUpdateResult contains the result from method QueueClient.Update. -type QueueClientUpdateResult struct { Queue } // QueueServicesClientGetServicePropertiesResponse contains the response from method QueueServicesClient.GetServiceProperties. type QueueServicesClientGetServicePropertiesResponse struct { - QueueServicesClientGetServicePropertiesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueueServicesClientGetServicePropertiesResult contains the result from method QueueServicesClient.GetServiceProperties. -type QueueServicesClientGetServicePropertiesResult struct { QueueServiceProperties } // QueueServicesClientListResponse contains the response from method QueueServicesClient.List. type QueueServicesClientListResponse struct { - QueueServicesClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueueServicesClientListResult contains the result from method QueueServicesClient.List. -type QueueServicesClientListResult struct { ListQueueServices } // QueueServicesClientSetServicePropertiesResponse contains the response from method QueueServicesClient.SetServiceProperties. type QueueServicesClientSetServicePropertiesResponse struct { - QueueServicesClientSetServicePropertiesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// QueueServicesClientSetServicePropertiesResult contains the result from method QueueServicesClient.SetServiceProperties. -type QueueServicesClientSetServicePropertiesResult struct { QueueServiceProperties } // SKUsClientListResponse contains the response from method SKUsClient.List. type SKUsClientListResponse struct { - SKUsClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// SKUsClientListResult contains the result from method SKUsClient.List. -type SKUsClientListResult struct { SKUListResult } // TableClientCreateResponse contains the response from method TableClient.Create. type TableClientCreateResponse struct { - TableClientCreateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TableClientCreateResult contains the result from method TableClient.Create. -type TableClientCreateResult struct { Table } // TableClientDeleteResponse contains the response from method TableClient.Delete. type TableClientDeleteResponse struct { - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response + // placeholder for future response values } // TableClientGetResponse contains the response from method TableClient.Get. type TableClientGetResponse struct { - TableClientGetResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TableClientGetResult contains the result from method TableClient.Get. -type TableClientGetResult struct { Table } // TableClientListResponse contains the response from method TableClient.List. type TableClientListResponse struct { - TableClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TableClientListResult contains the result from method TableClient.List. -type TableClientListResult struct { ListTableResource } // TableClientUpdateResponse contains the response from method TableClient.Update. type TableClientUpdateResponse struct { - TableClientUpdateResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TableClientUpdateResult contains the result from method TableClient.Update. -type TableClientUpdateResult struct { Table } // TableServicesClientGetServicePropertiesResponse contains the response from method TableServicesClient.GetServiceProperties. type TableServicesClientGetServicePropertiesResponse struct { - TableServicesClientGetServicePropertiesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TableServicesClientGetServicePropertiesResult contains the result from method TableServicesClient.GetServiceProperties. -type TableServicesClientGetServicePropertiesResult struct { TableServiceProperties } // TableServicesClientListResponse contains the response from method TableServicesClient.List. type TableServicesClientListResponse struct { - TableServicesClientListResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TableServicesClientListResult contains the result from method TableServicesClient.List. -type TableServicesClientListResult struct { ListTableServices } // TableServicesClientSetServicePropertiesResponse contains the response from method TableServicesClient.SetServiceProperties. type TableServicesClientSetServicePropertiesResponse struct { - TableServicesClientSetServicePropertiesResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// TableServicesClientSetServicePropertiesResult contains the result from method TableServicesClient.SetServiceProperties. -type TableServicesClientSetServicePropertiesResult struct { TableServiceProperties } // UsagesClientListByLocationResponse contains the response from method UsagesClient.ListByLocation. type UsagesClientListByLocationResponse struct { - UsagesClientListByLocationResult - // RawResponse contains the underlying HTTP response. - RawResponse *http.Response -} - -// UsagesClientListByLocationResult contains the result from method UsagesClient.ListByLocation. -type UsagesClientListByLocationResult struct { UsageListResult } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_skus_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_skus_client.go index e80f6beedabe..64047dc157fd 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_skus_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_skus_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,38 +34,49 @@ type SKUsClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *SKUsClient { +func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SKUsClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &SKUsClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // List - Lists the available SKUs supported by Microsoft.Storage for given subscription. // If the operation fails it returns an *azcore.ResponseError type. // options - SKUsClientListOptions contains the optional parameters for the SKUsClient.List method. -func (client *SKUsClient) List(ctx context.Context, options *SKUsClientListOptions) (SKUsClientListResponse, error) { - req, err := client.listCreateRequest(ctx, options) - if err != nil { - return SKUsClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return SKUsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SKUsClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) +func (client *SKUsClient) List(options *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[SKUsClientListResponse]{ + More: func(page SKUsClientListResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *SKUsClientListResponse) (SKUsClientListResponse, error) { + req, err := client.listCreateRequest(ctx, options) + if err != nil { + return SKUsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SKUsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SKUsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) } // listCreateRequest creates the List request. @@ -79,7 +91,7 @@ func (client *SKUsClient) listCreateRequest(ctx context.Context, options *SKUsCl return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -87,7 +99,7 @@ func (client *SKUsClient) listCreateRequest(ctx context.Context, options *SKUsCl // listHandleResponse handles the List response. func (client *SKUsClient) listHandleResponse(resp *http.Response) (SKUsClientListResponse, error) { - result := SKUsClientListResponse{RawResponse: resp} + result := SKUsClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SKUListResult); err != nil { return SKUsClientListResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_table_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_table_client.go index d00734d2814b..5b7760d766b3 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_table_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_table_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type TableClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewTableClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *TableClient { +func NewTableClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TableClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &TableClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // Create - Creates a new table with the specified table name, under the specified account. @@ -96,15 +101,18 @@ func (client *TableClient) createCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") + if options != nil && options.Parameters != nil { + return req, runtime.MarshalAsJSON(req, *options.Parameters) + } return req, nil } // createHandleResponse handles the Create response. func (client *TableClient) createHandleResponse(resp *http.Response) (TableClientCreateResponse, error) { - result := TableClientCreateResponse{RawResponse: resp} + result := TableClientCreateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Table); err != nil { return TableClientCreateResponse{}, err } @@ -131,7 +139,7 @@ func (client *TableClient) Delete(ctx context.Context, resourceGroupName string, if !runtime.HasStatusCode(resp, http.StatusNoContent) { return TableClientDeleteResponse{}, runtime.NewResponseError(resp) } - return TableClientDeleteResponse{RawResponse: resp}, nil + return TableClientDeleteResponse{}, nil } // deleteCreateRequest creates the Delete request. @@ -158,7 +166,7 @@ func (client *TableClient) deleteCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -211,7 +219,7 @@ func (client *TableClient) getCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -219,7 +227,7 @@ func (client *TableClient) getCreateRequest(ctx context.Context, resourceGroupNa // getHandleResponse handles the Get response. func (client *TableClient) getHandleResponse(resp *http.Response) (TableClientGetResponse, error) { - result := TableClientGetResponse{RawResponse: resp} + result := TableClientGetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Table); err != nil { return TableClientGetResponse{}, err } @@ -232,16 +240,32 @@ func (client *TableClient) getHandleResponse(resp *http.Response) (TableClientGe // accountName - The name of the storage account within the specified resource group. Storage account names must be between // 3 and 24 characters in length and use numbers and lower-case letters only. // options - TableClientListOptions contains the optional parameters for the TableClient.List method. -func (client *TableClient) List(resourceGroupName string, accountName string, options *TableClientListOptions) *TableClientListPager { - return &TableClientListPager{ - client: client, - requester: func(ctx context.Context) (*policy.Request, error) { - return client.listCreateRequest(ctx, resourceGroupName, accountName, options) +func (client *TableClient) List(resourceGroupName string, accountName string, options *TableClientListOptions) *runtime.Pager[TableClientListResponse] { + return runtime.NewPager(runtime.PageProcessor[TableClientListResponse]{ + More: func(page TableClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 }, - advancer: func(ctx context.Context, resp TableClientListResponse) (*policy.Request, error) { - return runtime.NewRequest(ctx, http.MethodGet, *resp.ListTableResource.NextLink) + Fetcher: func(ctx context.Context, page *TableClientListResponse) (TableClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, accountName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return TableClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return TableClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return TableClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) }, - } + }) } // listCreateRequest creates the List request. @@ -264,7 +288,7 @@ func (client *TableClient) listCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -272,7 +296,7 @@ func (client *TableClient) listCreateRequest(ctx context.Context, resourceGroupN // listHandleResponse handles the List response. func (client *TableClient) listHandleResponse(resp *http.Response) (TableClientListResponse, error) { - result := TableClientListResponse{RawResponse: resp} + result := TableClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListTableResource); err != nil { return TableClientListResponse{}, err } @@ -326,15 +350,18 @@ func (client *TableClient) updateCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") + if options != nil && options.Parameters != nil { + return req, runtime.MarshalAsJSON(req, *options.Parameters) + } return req, nil } // updateHandleResponse handles the Update response. func (client *TableClient) updateHandleResponse(resp *http.Response) (TableClientUpdateResponse, error) { - result := TableClientUpdateResponse{RawResponse: resp} + result := TableClientUpdateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.Table); err != nil { return TableClientUpdateResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_tableservices_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_tableservices_client.go index 261bbb1d61f8..820b71dd96bf 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_tableservices_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_tableservices_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,20 +34,24 @@ type TableServicesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewTableServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *TableServicesClient { +func NewTableServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TableServicesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &TableServicesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // GetServiceProperties - Gets the properties of a storage account’s Table service, including properties for Storage Analytics @@ -93,7 +98,7 @@ func (client *TableServicesClient) getServicePropertiesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -101,7 +106,7 @@ func (client *TableServicesClient) getServicePropertiesCreateRequest(ctx context // getServicePropertiesHandleResponse handles the GetServiceProperties response. func (client *TableServicesClient) getServicePropertiesHandleResponse(resp *http.Response) (TableServicesClientGetServicePropertiesResponse, error) { - result := TableServicesClientGetServicePropertiesResponse{RawResponse: resp} + result := TableServicesClientGetServicePropertiesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.TableServiceProperties); err != nil { return TableServicesClientGetServicePropertiesResponse{}, err } @@ -149,7 +154,7 @@ func (client *TableServicesClient) listCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -157,7 +162,7 @@ func (client *TableServicesClient) listCreateRequest(ctx context.Context, resour // listHandleResponse handles the List response. func (client *TableServicesClient) listHandleResponse(resp *http.Response) (TableServicesClientListResponse, error) { - result := TableServicesClientListResponse{RawResponse: resp} + result := TableServicesClientListResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ListTableServices); err != nil { return TableServicesClientListResponse{}, err } @@ -210,7 +215,7 @@ func (client *TableServicesClient) setServicePropertiesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, runtime.MarshalAsJSON(req, parameters) @@ -218,7 +223,7 @@ func (client *TableServicesClient) setServicePropertiesCreateRequest(ctx context // setServicePropertiesHandleResponse handles the SetServiceProperties response. func (client *TableServicesClient) setServicePropertiesHandleResponse(resp *http.Response) (TableServicesClientSetServicePropertiesResponse, error) { - result := TableServicesClientSetServicePropertiesResponse{RawResponse: resp} + result := TableServicesClientSetServicePropertiesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.TableServiceProperties); err != nil { return TableServicesClientSetServicePropertiesResponse{}, err } diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_time_rfc3339.go b/sdk/resourcemanager/storage/armstorage/zz_generated_time_rfc3339.go index 19d8416b1f8f..87de9f499b7a 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_time_rfc3339.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. diff --git a/sdk/resourcemanager/storage/armstorage/zz_generated_usages_client.go b/sdk/resourcemanager/storage/armstorage/zz_generated_usages_client.go index 7940b3c97830..32b012770b08 100644 --- a/sdk/resourcemanager/storage/armstorage/zz_generated_usages_client.go +++ b/sdk/resourcemanager/storage/armstorage/zz_generated_usages_client.go @@ -1,5 +1,5 @@ -//go:build go1.16 -// +build go1.16 +//go:build go1.18 +// +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. @@ -14,6 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" @@ -33,39 +34,50 @@ type UsagesClient struct { // subscriptionID - The ID of the target subscription. // credential - used to authorize requests. Usually a credential from azidentity. // options - pass nil to accept the default values. -func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *UsagesClient { +func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsagesClient, error) { if options == nil { options = &arm.ClientOptions{} } - ep := options.Endpoint - if len(ep) == 0 { - ep = arm.AzurePublicCloud + ep := cloud.AzurePublicCloud.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err } client := &UsagesClient{ subscriptionID: subscriptionID, - host: string(ep), - pl: armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options), + host: ep, + pl: pl, } - return client + return client, nil } // ListByLocation - Gets the current usage count and the limit for the resources of the location under the subscription. // If the operation fails it returns an *azcore.ResponseError type. // location - The location of the Azure Storage resource. // options - UsagesClientListByLocationOptions contains the optional parameters for the UsagesClient.ListByLocation method. -func (client *UsagesClient) ListByLocation(ctx context.Context, location string, options *UsagesClientListByLocationOptions) (UsagesClientListByLocationResponse, error) { - req, err := client.listByLocationCreateRequest(ctx, location, options) - if err != nil { - return UsagesClientListByLocationResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return UsagesClientListByLocationResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return UsagesClientListByLocationResponse{}, runtime.NewResponseError(resp) - } - return client.listByLocationHandleResponse(resp) +func (client *UsagesClient) ListByLocation(location string, options *UsagesClientListByLocationOptions) *runtime.Pager[UsagesClientListByLocationResponse] { + return runtime.NewPager(runtime.PageProcessor[UsagesClientListByLocationResponse]{ + More: func(page UsagesClientListByLocationResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *UsagesClientListByLocationResponse) (UsagesClientListByLocationResponse, error) { + req, err := client.listByLocationCreateRequest(ctx, location, options) + if err != nil { + return UsagesClientListByLocationResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return UsagesClientListByLocationResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return UsagesClientListByLocationResponse{}, runtime.NewResponseError(resp) + } + return client.listByLocationHandleResponse(resp) + }, + }) } // listByLocationCreateRequest creates the ListByLocation request. @@ -84,7 +96,7 @@ func (client *UsagesClient) listByLocationCreateRequest(ctx context.Context, loc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-08-01") + reqQP.Set("api-version", "2021-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header.Set("Accept", "application/json") return req, nil @@ -92,7 +104,7 @@ func (client *UsagesClient) listByLocationCreateRequest(ctx context.Context, loc // listByLocationHandleResponse handles the ListByLocation response. func (client *UsagesClient) listByLocationHandleResponse(resp *http.Response) (UsagesClientListByLocationResponse, error) { - result := UsagesClientListByLocationResponse{RawResponse: resp} + result := UsagesClientListByLocationResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.UsageListResult); err != nil { return UsagesClientListByLocationResponse{}, err }