[Release] sdk/resourcemanager/netapp/armnetapp/7.3.0 generation from spec commit: 366aaa13cdd218b9adac716680e49473673410c8 (#23646)
This commit is contained in:
Родитель
66611fdddd
Коммит
877027e7a3
|
@ -1,5 +1,21 @@
|
|||
# Release History
|
||||
|
||||
## 7.3.0 (2024-10-23)
|
||||
### Features Added
|
||||
|
||||
- New function `*VolumesClient.BeginAuthorizeExternalReplication(context.Context, string, string, string, string, *VolumesClientBeginAuthorizeExternalReplicationOptions) (*runtime.Poller[VolumesClientAuthorizeExternalReplicationResponse], error)`
|
||||
- New function `*VolumesClient.BeginFinalizeExternalReplication(context.Context, string, string, string, string, *VolumesClientBeginFinalizeExternalReplicationOptions) (*runtime.Poller[VolumesClientFinalizeExternalReplicationResponse], error)`
|
||||
- New function `*VolumesClient.BeginPeerExternalCluster(context.Context, string, string, string, string, PeerClusterForVolumeMigrationRequest, *VolumesClientBeginPeerExternalClusterOptions) (*runtime.Poller[VolumesClientPeerExternalClusterResponse], error)`
|
||||
- New function `*VolumesClient.BeginPerformReplicationTransfer(context.Context, string, string, string, string, *VolumesClientBeginPerformReplicationTransferOptions) (*runtime.Poller[VolumesClientPerformReplicationTransferResponse], error)`
|
||||
- New struct `ClusterPeerCommandResponse`
|
||||
- New struct `PeerClusterForVolumeMigrationRequest`
|
||||
- New struct `RemotePath`
|
||||
- New struct `SvmPeerCommandResponse`
|
||||
- New field `AvailabilityZone` in struct `FilePathAvailabilityRequest`
|
||||
- New field `RemotePath` in struct `ReplicationObject`
|
||||
- New field `EffectiveNetworkFeatures` in struct `VolumeProperties`
|
||||
|
||||
|
||||
## 7.2.0 (2024-08-23)
|
||||
### Features Added
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential,
|
|||
// BeginCreateOrUpdate - Create or update the specified NetApp account within the resource group
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - body - NetApp Account object supplied in the body of the operation.
|
||||
|
@ -73,7 +73,7 @@ func (client *AccountsClient) BeginCreateOrUpdate(ctx context.Context, resourceG
|
|||
// CreateOrUpdate - Create or update the specified NetApp account within the resource group
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *AccountsClient) createOrUpdate(ctx context.Context, resourceGroupName string, accountName string, body Account, options *AccountsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginCreateOrUpdate"
|
||||
|
@ -115,7 +115,7 @@ func (client *AccountsClient) createOrUpdateCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -127,7 +127,7 @@ func (client *AccountsClient) createOrUpdateCreateRequest(ctx context.Context, r
|
|||
// BeginDelete - Delete the specified NetApp account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - AccountsClientBeginDeleteOptions contains the optional parameters for the AccountsClient.BeginDelete method.
|
||||
|
@ -152,7 +152,7 @@ func (client *AccountsClient) BeginDelete(ctx context.Context, resourceGroupName
|
|||
// Delete - Delete the specified NetApp account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *AccountsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginDelete"
|
||||
|
@ -194,7 +194,7 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -203,7 +203,7 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG
|
|||
// Get - Get the NetApp account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - AccountsClientGetOptions contains the optional parameters for the AccountsClient.Get method.
|
||||
|
@ -249,7 +249,7 @@ func (client *AccountsClient) getCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -266,7 +266,7 @@ func (client *AccountsClient) getHandleResponse(resp *http.Response) (AccountsCl
|
|||
|
||||
// NewListPager - List and describe all NetApp accounts in the resource group.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - options - AccountsClientListOptions contains the optional parameters for the AccountsClient.NewListPager method.
|
||||
func (client *AccountsClient) NewListPager(resourceGroupName string, options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] {
|
||||
|
@ -308,7 +308,7 @@ func (client *AccountsClient) listCreateRequest(ctx context.Context, resourceGro
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -325,7 +325,7 @@ func (client *AccountsClient) listHandleResponse(resp *http.Response) (AccountsC
|
|||
|
||||
// NewListBySubscriptionPager - List and describe all NetApp accounts in the subscription.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - options - AccountsClientListBySubscriptionOptions contains the optional parameters for the AccountsClient.NewListBySubscriptionPager
|
||||
// method.
|
||||
func (client *AccountsClient) NewListBySubscriptionPager(options *AccountsClientListBySubscriptionOptions) *runtime.Pager[AccountsClientListBySubscriptionResponse] {
|
||||
|
@ -363,7 +363,7 @@ func (client *AccountsClient) listBySubscriptionCreateRequest(ctx context.Contex
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -383,7 +383,7 @@ func (client *AccountsClient) listBySubscriptionHandleResponse(resp *http.Respon
|
|||
// operation will fix it.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - AccountsClientBeginRenewCredentialsOptions contains the optional parameters for the AccountsClient.BeginRenewCredentials
|
||||
|
@ -411,7 +411,7 @@ func (client *AccountsClient) BeginRenewCredentials(ctx context.Context, resourc
|
|||
// operation will fix it.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *AccountsClient) renewCredentials(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginRenewCredentialsOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginRenewCredentials"
|
||||
|
@ -453,7 +453,7 @@ func (client *AccountsClient) renewCredentialsCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -462,7 +462,7 @@ func (client *AccountsClient) renewCredentialsCreateRequest(ctx context.Context,
|
|||
// BeginUpdate - Patch the specified NetApp account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - body - NetApp Account object supplied in the body of the operation.
|
||||
|
@ -488,7 +488,7 @@ func (client *AccountsClient) BeginUpdate(ctx context.Context, resourceGroupName
|
|||
// Update - Patch the specified NetApp account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *AccountsClient) update(ctx context.Context, resourceGroupName string, accountName string, body AccountPatch, options *AccountsClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginUpdate"
|
||||
|
@ -530,7 +530,7 @@ func (client *AccountsClient) updateCreateRequest(ctx context.Context, resourceG
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json
|
||||
func ExampleAccountsClient_NewListBySubscriptionPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -55,7 +55,7 @@ func ExampleAccountsClient_NewListBySubscriptionPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Get.json
|
||||
func ExampleAccountsClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -98,7 +98,7 @@ func ExampleAccountsClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_CreateOrUpdate.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdate.json
|
||||
func ExampleAccountsClient_BeginCreateOrUpdate_accountsCreateOrUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -134,7 +134,7 @@ func ExampleAccountsClient_BeginCreateOrUpdate_accountsCreateOrUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_CreateOrUpdateAD.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdateAD.json
|
||||
func ExampleAccountsClient_BeginCreateOrUpdate_accountsCreateOrUpdateWithActiveDirectory() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -197,7 +197,7 @@ func ExampleAccountsClient_BeginCreateOrUpdate_accountsCreateOrUpdateWithActiveD
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Delete.json
|
||||
func ExampleAccountsClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -218,7 +218,7 @@ func ExampleAccountsClient_BeginDelete() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Update.json
|
||||
func ExampleAccountsClient_BeginUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -255,7 +255,7 @@ func ExampleAccountsClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_RenewCredentials.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_RenewCredentials.json
|
||||
func ExampleAccountsClient_BeginRenewCredentials() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
``` yaml
|
||||
azure-arm: true
|
||||
require:
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/readme.md
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/readme.go.md
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/readme.md
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/readme.go.md
|
||||
license-header: MICROSOFT_MIT_NO_VERSION
|
||||
module-version: 7.2.0
|
||||
tag: package-2024-03
|
||||
module-version: 7.3.0
|
||||
tag: package-2024-07
|
||||
```
|
|
@ -46,7 +46,7 @@ func NewBackupPoliciesClient(subscriptionID string, credential azcore.TokenCrede
|
|||
// BeginCreate - Create a backup policy for Netapp Account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupPolicyName - Backup policy Name which uniquely identify backup policy.
|
||||
|
@ -74,7 +74,7 @@ func (client *BackupPoliciesClient) BeginCreate(ctx context.Context, resourceGro
|
|||
// Create - Create a backup policy for Netapp Account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupPoliciesClient) create(ctx context.Context, resourceGroupName string, accountName string, backupPolicyName string, body BackupPolicy, options *BackupPoliciesClientBeginCreateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupPoliciesClient.BeginCreate"
|
||||
|
@ -120,7 +120,7 @@ func (client *BackupPoliciesClient) createCreateRequest(ctx context.Context, res
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -132,7 +132,7 @@ func (client *BackupPoliciesClient) createCreateRequest(ctx context.Context, res
|
|||
// BeginDelete - Delete backup policy
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupPolicyName - Backup policy Name which uniquely identify backup policy.
|
||||
|
@ -159,7 +159,7 @@ func (client *BackupPoliciesClient) BeginDelete(ctx context.Context, resourceGro
|
|||
// Delete - Delete backup policy
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupPoliciesClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, backupPolicyName string, options *BackupPoliciesClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupPoliciesClient.BeginDelete"
|
||||
|
@ -205,7 +205,7 @@ func (client *BackupPoliciesClient) deleteCreateRequest(ctx context.Context, res
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -214,7 +214,7 @@ func (client *BackupPoliciesClient) deleteCreateRequest(ctx context.Context, res
|
|||
// Get - Get a particular backup Policy
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupPolicyName - Backup policy Name which uniquely identify backup policy.
|
||||
|
@ -265,7 +265,7 @@ func (client *BackupPoliciesClient) getCreateRequest(ctx context.Context, resour
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -282,7 +282,7 @@ func (client *BackupPoliciesClient) getHandleResponse(resp *http.Response) (Back
|
|||
|
||||
// NewListPager - List backup policies for Netapp Account
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - BackupPoliciesClientListOptions contains the optional parameters for the BackupPoliciesClient.NewListPager method.
|
||||
|
@ -330,7 +330,7 @@ func (client *BackupPoliciesClient) listCreateRequest(ctx context.Context, resou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -348,7 +348,7 @@ func (client *BackupPoliciesClient) listHandleResponse(resp *http.Response) (Bac
|
|||
// BeginUpdate - Patch a backup policy for Netapp Account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupPolicyName - Backup policy Name which uniquely identify backup policy.
|
||||
|
@ -376,7 +376,7 @@ func (client *BackupPoliciesClient) BeginUpdate(ctx context.Context, resourceGro
|
|||
// Update - Patch a backup policy for Netapp Account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupPoliciesClient) update(ctx context.Context, resourceGroupName string, accountName string, backupPolicyName string, body BackupPolicyPatch, options *BackupPoliciesClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupPoliciesClient.BeginUpdate"
|
||||
|
@ -422,7 +422,7 @@ func (client *BackupPoliciesClient) updateCreateRequest(ctx context.Context, res
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupPolicies_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_List.json
|
||||
func ExampleBackupPoliciesClient_NewListPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -59,7 +59,7 @@ func ExampleBackupPoliciesClient_NewListPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupPolicies_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Get.json
|
||||
func ExampleBackupPoliciesClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -98,7 +98,7 @@ func ExampleBackupPoliciesClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupPolicies_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Create.json
|
||||
func ExampleBackupPoliciesClient_BeginCreate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -143,7 +143,7 @@ func ExampleBackupPoliciesClient_BeginCreate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupPolicies_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Update.json
|
||||
func ExampleBackupPoliciesClient_BeginUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -195,7 +195,7 @@ func ExampleBackupPoliciesClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupPolicies_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Delete.json
|
||||
func ExampleBackupPoliciesClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewBackupsClient(subscriptionID string, credential azcore.TokenCredential,
|
|||
// BeginCreate - Create a backup under the Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupVaultName - The name of the Backup Vault
|
||||
|
@ -74,7 +74,7 @@ func (client *BackupsClient) BeginCreate(ctx context.Context, resourceGroupName
|
|||
// Create - Create a backup under the Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupsClient) create(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, backupName string, body Backup, options *BackupsClientBeginCreateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupsClient.BeginCreate"
|
||||
|
@ -124,7 +124,7 @@ func (client *BackupsClient) createCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -136,7 +136,7 @@ func (client *BackupsClient) createCreateRequest(ctx context.Context, resourceGr
|
|||
// BeginDelete - Delete a Backup under the Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupVaultName - The name of the Backup Vault
|
||||
|
@ -163,7 +163,7 @@ func (client *BackupsClient) BeginDelete(ctx context.Context, resourceGroupName
|
|||
// Delete - Delete a Backup under the Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, backupName string, options *BackupsClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupsClient.BeginDelete"
|
||||
|
@ -213,7 +213,7 @@ func (client *BackupsClient) deleteCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -222,7 +222,7 @@ func (client *BackupsClient) deleteCreateRequest(ctx context.Context, resourceGr
|
|||
// Get - Get the specified Backup under Backup Vault.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupVaultName - The name of the Backup Vault
|
||||
|
@ -278,7 +278,7 @@ func (client *BackupsClient) getCreateRequest(ctx context.Context, resourceGroup
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -296,7 +296,7 @@ func (client *BackupsClient) getHandleResponse(resp *http.Response) (BackupsClie
|
|||
// GetLatestStatus - Get the latest status of the backup for a volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -352,7 +352,7 @@ func (client *BackupsClient) getLatestStatusCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -370,7 +370,7 @@ func (client *BackupsClient) getLatestStatusHandleResponse(resp *http.Response)
|
|||
// GetVolumeLatestRestoreStatus - Get the latest status of the restore for a volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -427,7 +427,7 @@ func (client *BackupsClient) getVolumeLatestRestoreStatusCreateRequest(ctx conte
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -444,7 +444,7 @@ func (client *BackupsClient) getVolumeLatestRestoreStatusHandleResponse(resp *ht
|
|||
|
||||
// NewListByVaultPager - List all backups Under a Backup Vault
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupVaultName - The name of the Backup Vault
|
||||
|
@ -499,7 +499,7 @@ func (client *BackupsClient) listByVaultCreateRequest(ctx context.Context, resou
|
|||
if options != nil && options.Filter != nil {
|
||||
reqQP.Set("$filter", *options.Filter)
|
||||
}
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -517,7 +517,7 @@ func (client *BackupsClient) listByVaultHandleResponse(resp *http.Response) (Bac
|
|||
// BeginUpdate - Patch a Backup under the Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupVaultName - The name of the Backup Vault
|
||||
|
@ -545,7 +545,7 @@ func (client *BackupsClient) BeginUpdate(ctx context.Context, resourceGroupName
|
|||
// Update - Patch a Backup under the Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupsClient) update(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, backupName string, body BackupPatch, options *BackupsClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupsClient.BeginUpdate"
|
||||
|
@ -595,7 +595,7 @@ func (client *BackupsClient) updateCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_LatestBackupStatus.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestBackupStatus.json
|
||||
func ExampleBackupsClient_GetLatestStatus() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -48,7 +48,7 @@ func ExampleBackupsClient_GetLatestStatus() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_LatestRestoreStatus.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestRestoreStatus.json
|
||||
func ExampleBackupsClient_GetVolumeLatestRestoreStatus() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -76,7 +76,7 @@ func ExampleBackupsClient_GetVolumeLatestRestoreStatus() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_List.json
|
||||
func ExampleBackupsClient_NewListByVaultPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -119,7 +119,7 @@ func ExampleBackupsClient_NewListByVaultPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Get.json
|
||||
func ExampleBackupsClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -154,7 +154,7 @@ func ExampleBackupsClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Create.json
|
||||
func ExampleBackupsClient_BeginCreate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -197,7 +197,7 @@ func ExampleBackupsClient_BeginCreate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Update.json
|
||||
func ExampleBackupsClient_BeginUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -235,7 +235,7 @@ func ExampleBackupsClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Delete.json
|
||||
func ExampleBackupsClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewBackupsUnderAccountClient(subscriptionID string, credential azcore.Token
|
|||
// BeginMigrateBackups - Migrate the backups under a NetApp account to backup vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - body - Migrate backups under an account payload supplied in the body of the operation.
|
||||
|
@ -73,7 +73,7 @@ func (client *BackupsUnderAccountClient) BeginMigrateBackups(ctx context.Context
|
|||
// MigrateBackups - Migrate the backups under a NetApp account to backup vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupsUnderAccountClient) migrateBackups(ctx context.Context, resourceGroupName string, accountName string, body BackupsMigrationRequest, options *BackupsUnderAccountClientBeginMigrateBackupsOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupsUnderAccountClient.BeginMigrateBackups"
|
||||
|
@ -115,7 +115,7 @@ func (client *BackupsUnderAccountClient) migrateBackupsCreateRequest(ctx context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderAccount_Migrate.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderAccount_Migrate.json
|
||||
func ExampleBackupsUnderAccountClient_BeginMigrateBackups() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewBackupsUnderBackupVaultClient(subscriptionID string, credential azcore.T
|
|||
// BeginRestoreFiles - Restore the specified files from the specified backup to the active filesystem
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupVaultName - The name of the Backup Vault
|
||||
|
@ -75,7 +75,7 @@ func (client *BackupsUnderBackupVaultClient) BeginRestoreFiles(ctx context.Conte
|
|||
// RestoreFiles - Restore the specified files from the specified backup to the active filesystem
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupsUnderBackupVaultClient) restoreFiles(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, backupName string, body BackupRestoreFiles, options *BackupsUnderBackupVaultClientBeginRestoreFilesOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupsUnderBackupVaultClient.BeginRestoreFiles"
|
||||
|
@ -125,7 +125,7 @@ func (client *BackupsUnderBackupVaultClient) restoreFilesCreateRequest(ctx conte
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_SingleFileRestore.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_SingleFileRestore.json
|
||||
func ExampleBackupsUnderBackupVaultClient_BeginRestoreFiles() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewBackupsUnderVolumeClient(subscriptionID string, credential azcore.TokenC
|
|||
// BeginMigrateBackups - Migrate the backups under volume to backup vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -75,7 +75,7 @@ func (client *BackupsUnderVolumeClient) BeginMigrateBackups(ctx context.Context,
|
|||
// MigrateBackups - Migrate the backups under volume to backup vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupsUnderVolumeClient) migrateBackups(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body BackupsMigrationRequest, options *BackupsUnderVolumeClientBeginMigrateBackupsOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupsUnderVolumeClient.BeginMigrateBackups"
|
||||
|
@ -125,7 +125,7 @@ func (client *BackupsUnderVolumeClient) migrateBackupsCreateRequest(ctx context.
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderVolume_Migrate.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderVolume_Migrate.json
|
||||
func ExampleBackupsUnderVolumeClient_BeginMigrateBackups() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewBackupVaultsClient(subscriptionID string, credential azcore.TokenCredent
|
|||
// BeginCreateOrUpdate - Create or update the specified Backup Vault in the NetApp account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupVaultName - The name of the Backup Vault
|
||||
|
@ -74,7 +74,7 @@ func (client *BackupVaultsClient) BeginCreateOrUpdate(ctx context.Context, resou
|
|||
// CreateOrUpdate - Create or update the specified Backup Vault in the NetApp account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupVaultsClient) createOrUpdate(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, body BackupVault, options *BackupVaultsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupVaultsClient.BeginCreateOrUpdate"
|
||||
|
@ -120,7 +120,7 @@ func (client *BackupVaultsClient) createOrUpdateCreateRequest(ctx context.Contex
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -132,7 +132,7 @@ func (client *BackupVaultsClient) createOrUpdateCreateRequest(ctx context.Contex
|
|||
// BeginDelete - Delete the specified Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupVaultName - The name of the Backup Vault
|
||||
|
@ -159,7 +159,7 @@ func (client *BackupVaultsClient) BeginDelete(ctx context.Context, resourceGroup
|
|||
// Delete - Delete the specified Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupVaultsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, options *BackupVaultsClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupVaultsClient.BeginDelete"
|
||||
|
@ -205,7 +205,7 @@ func (client *BackupVaultsClient) deleteCreateRequest(ctx context.Context, resou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -214,7 +214,7 @@ func (client *BackupVaultsClient) deleteCreateRequest(ctx context.Context, resou
|
|||
// Get - Get the Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupVaultName - The name of the Backup Vault
|
||||
|
@ -265,7 +265,7 @@ func (client *BackupVaultsClient) getCreateRequest(ctx context.Context, resource
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -282,7 +282,7 @@ func (client *BackupVaultsClient) getHandleResponse(resp *http.Response) (Backup
|
|||
|
||||
// NewListByNetAppAccountPager - List and describe all Backup Vaults in the NetApp account.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - BackupVaultsClientListByNetAppAccountOptions contains the optional parameters for the BackupVaultsClient.NewListByNetAppAccountPager
|
||||
|
@ -330,7 +330,7 @@ func (client *BackupVaultsClient) listByNetAppAccountCreateRequest(ctx context.C
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -348,7 +348,7 @@ func (client *BackupVaultsClient) listByNetAppAccountHandleResponse(resp *http.R
|
|||
// BeginUpdate - Patch the specified NetApp Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - backupVaultName - The name of the Backup Vault
|
||||
|
@ -376,7 +376,7 @@ func (client *BackupVaultsClient) BeginUpdate(ctx context.Context, resourceGroup
|
|||
// Update - Patch the specified NetApp Backup Vault
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *BackupVaultsClient) update(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, body BackupVaultPatch, options *BackupVaultsClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "BackupVaultsClient.BeginUpdate"
|
||||
|
@ -422,7 +422,7 @@ func (client *BackupVaultsClient) updateCreateRequest(ctx context.Context, resou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupVaults_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_List.json
|
||||
func ExampleBackupVaultsClient_NewListByNetAppAccountPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -58,7 +58,7 @@ func ExampleBackupVaultsClient_NewListByNetAppAccountPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupVaults_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Get.json
|
||||
func ExampleBackupVaultsClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -90,7 +90,7 @@ func ExampleBackupVaultsClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupVaults_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Create.json
|
||||
func ExampleBackupVaultsClient_BeginCreateOrUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -125,7 +125,7 @@ func ExampleBackupVaultsClient_BeginCreateOrUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupVaults_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Update.json
|
||||
func ExampleBackupVaultsClient_BeginUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -165,7 +165,7 @@ func ExampleBackupVaultsClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupVaults_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Delete.json
|
||||
func ExampleBackupVaultsClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -10,7 +10,7 @@ package armnetapp
|
|||
|
||||
const (
|
||||
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp"
|
||||
moduleVersion = "v7.2.0"
|
||||
moduleVersion = "v7.3.0"
|
||||
)
|
||||
|
||||
// ActiveDirectoryStatus - Status of the Active Directory
|
||||
|
|
|
@ -26,6 +26,10 @@ import (
|
|||
|
||||
// VolumesServer is a fake server for instances of the armnetapp.VolumesClient type.
|
||||
type VolumesServer struct {
|
||||
// BeginAuthorizeExternalReplication is the fake for method VolumesClient.BeginAuthorizeExternalReplication
|
||||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginAuthorizeExternalReplication func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *armnetapp.VolumesClientBeginAuthorizeExternalReplicationOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientAuthorizeExternalReplicationResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginAuthorizeReplication is the fake for method VolumesClient.BeginAuthorizeReplication
|
||||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginAuthorizeReplication func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body armnetapp.AuthorizeRequest, options *armnetapp.VolumesClientBeginAuthorizeReplicationOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientAuthorizeReplicationResponse], errResp azfake.ErrorResponder)
|
||||
|
@ -50,6 +54,10 @@ type VolumesServer struct {
|
|||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginDeleteReplication func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *armnetapp.VolumesClientBeginDeleteReplicationOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientDeleteReplicationResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginFinalizeExternalReplication is the fake for method VolumesClient.BeginFinalizeExternalReplication
|
||||
// HTTP status codes to indicate success: http.StatusAccepted
|
||||
BeginFinalizeExternalReplication func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *armnetapp.VolumesClientBeginFinalizeExternalReplicationOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientFinalizeExternalReplicationResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginFinalizeRelocation is the fake for method VolumesClient.BeginFinalizeRelocation
|
||||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginFinalizeRelocation func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *armnetapp.VolumesClientBeginFinalizeRelocationOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientFinalizeRelocationResponse], errResp azfake.ErrorResponder)
|
||||
|
@ -70,6 +78,14 @@ type VolumesServer struct {
|
|||
// HTTP status codes to indicate success: http.StatusOK
|
||||
NewListReplicationsPager func(resourceGroupName string, accountName string, poolName string, volumeName string, options *armnetapp.VolumesClientListReplicationsOptions) (resp azfake.PagerResponder[armnetapp.VolumesClientListReplicationsResponse])
|
||||
|
||||
// BeginPeerExternalCluster is the fake for method VolumesClient.BeginPeerExternalCluster
|
||||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginPeerExternalCluster func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body armnetapp.PeerClusterForVolumeMigrationRequest, options *armnetapp.VolumesClientBeginPeerExternalClusterOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientPeerExternalClusterResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginPerformReplicationTransfer is the fake for method VolumesClient.BeginPerformReplicationTransfer
|
||||
// HTTP status codes to indicate success: http.StatusAccepted
|
||||
BeginPerformReplicationTransfer func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *armnetapp.VolumesClientBeginPerformReplicationTransferOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientPerformReplicationTransferResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginPoolChange is the fake for method VolumesClient.BeginPoolChange
|
||||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginPoolChange func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body armnetapp.PoolChangeRequest, options *armnetapp.VolumesClientBeginPoolChangeOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientPoolChangeResponse], errResp azfake.ErrorResponder)
|
||||
|
@ -121,16 +137,20 @@ type VolumesServer struct {
|
|||
func NewVolumesServerTransport(srv *VolumesServer) *VolumesServerTransport {
|
||||
return &VolumesServerTransport{
|
||||
srv: srv,
|
||||
beginAuthorizeExternalReplication: newTracker[azfake.PollerResponder[armnetapp.VolumesClientAuthorizeExternalReplicationResponse]](),
|
||||
beginAuthorizeReplication: newTracker[azfake.PollerResponder[armnetapp.VolumesClientAuthorizeReplicationResponse]](),
|
||||
beginBreakFileLocks: newTracker[azfake.PollerResponder[armnetapp.VolumesClientBreakFileLocksResponse]](),
|
||||
beginBreakReplication: newTracker[azfake.PollerResponder[armnetapp.VolumesClientBreakReplicationResponse]](),
|
||||
beginCreateOrUpdate: newTracker[azfake.PollerResponder[armnetapp.VolumesClientCreateOrUpdateResponse]](),
|
||||
beginDelete: newTracker[azfake.PollerResponder[armnetapp.VolumesClientDeleteResponse]](),
|
||||
beginDeleteReplication: newTracker[azfake.PollerResponder[armnetapp.VolumesClientDeleteReplicationResponse]](),
|
||||
beginFinalizeExternalReplication: newTracker[azfake.PollerResponder[armnetapp.VolumesClientFinalizeExternalReplicationResponse]](),
|
||||
beginFinalizeRelocation: newTracker[azfake.PollerResponder[armnetapp.VolumesClientFinalizeRelocationResponse]](),
|
||||
newListPager: newTracker[azfake.PagerResponder[armnetapp.VolumesClientListResponse]](),
|
||||
beginListGetGroupIDListForLdapUser: newTracker[azfake.PollerResponder[armnetapp.VolumesClientListGetGroupIDListForLdapUserResponse]](),
|
||||
newListReplicationsPager: newTracker[azfake.PagerResponder[armnetapp.VolumesClientListReplicationsResponse]](),
|
||||
beginPeerExternalCluster: newTracker[azfake.PollerResponder[armnetapp.VolumesClientPeerExternalClusterResponse]](),
|
||||
beginPerformReplicationTransfer: newTracker[azfake.PollerResponder[armnetapp.VolumesClientPerformReplicationTransferResponse]](),
|
||||
beginPoolChange: newTracker[azfake.PollerResponder[armnetapp.VolumesClientPoolChangeResponse]](),
|
||||
beginPopulateAvailabilityZone: newTracker[azfake.PollerResponder[armnetapp.VolumesClientPopulateAvailabilityZoneResponse]](),
|
||||
beginReInitializeReplication: newTracker[azfake.PollerResponder[armnetapp.VolumesClientReInitializeReplicationResponse]](),
|
||||
|
@ -148,16 +168,20 @@ func NewVolumesServerTransport(srv *VolumesServer) *VolumesServerTransport {
|
|||
// Don't use this type directly, use NewVolumesServerTransport instead.
|
||||
type VolumesServerTransport struct {
|
||||
srv *VolumesServer
|
||||
beginAuthorizeExternalReplication *tracker[azfake.PollerResponder[armnetapp.VolumesClientAuthorizeExternalReplicationResponse]]
|
||||
beginAuthorizeReplication *tracker[azfake.PollerResponder[armnetapp.VolumesClientAuthorizeReplicationResponse]]
|
||||
beginBreakFileLocks *tracker[azfake.PollerResponder[armnetapp.VolumesClientBreakFileLocksResponse]]
|
||||
beginBreakReplication *tracker[azfake.PollerResponder[armnetapp.VolumesClientBreakReplicationResponse]]
|
||||
beginCreateOrUpdate *tracker[azfake.PollerResponder[armnetapp.VolumesClientCreateOrUpdateResponse]]
|
||||
beginDelete *tracker[azfake.PollerResponder[armnetapp.VolumesClientDeleteResponse]]
|
||||
beginDeleteReplication *tracker[azfake.PollerResponder[armnetapp.VolumesClientDeleteReplicationResponse]]
|
||||
beginFinalizeExternalReplication *tracker[azfake.PollerResponder[armnetapp.VolumesClientFinalizeExternalReplicationResponse]]
|
||||
beginFinalizeRelocation *tracker[azfake.PollerResponder[armnetapp.VolumesClientFinalizeRelocationResponse]]
|
||||
newListPager *tracker[azfake.PagerResponder[armnetapp.VolumesClientListResponse]]
|
||||
beginListGetGroupIDListForLdapUser *tracker[azfake.PollerResponder[armnetapp.VolumesClientListGetGroupIDListForLdapUserResponse]]
|
||||
newListReplicationsPager *tracker[azfake.PagerResponder[armnetapp.VolumesClientListReplicationsResponse]]
|
||||
beginPeerExternalCluster *tracker[azfake.PollerResponder[armnetapp.VolumesClientPeerExternalClusterResponse]]
|
||||
beginPerformReplicationTransfer *tracker[azfake.PollerResponder[armnetapp.VolumesClientPerformReplicationTransferResponse]]
|
||||
beginPoolChange *tracker[azfake.PollerResponder[armnetapp.VolumesClientPoolChangeResponse]]
|
||||
beginPopulateAvailabilityZone *tracker[azfake.PollerResponder[armnetapp.VolumesClientPopulateAvailabilityZoneResponse]]
|
||||
beginReInitializeReplication *tracker[azfake.PollerResponder[armnetapp.VolumesClientReInitializeReplicationResponse]]
|
||||
|
@ -182,6 +206,8 @@ func (v *VolumesServerTransport) Do(req *http.Request) (*http.Response, error) {
|
|||
var err error
|
||||
|
||||
switch method {
|
||||
case "VolumesClient.BeginAuthorizeExternalReplication":
|
||||
resp, err = v.dispatchBeginAuthorizeExternalReplication(req)
|
||||
case "VolumesClient.BeginAuthorizeReplication":
|
||||
resp, err = v.dispatchBeginAuthorizeReplication(req)
|
||||
case "VolumesClient.BeginBreakFileLocks":
|
||||
|
@ -194,6 +220,8 @@ func (v *VolumesServerTransport) Do(req *http.Request) (*http.Response, error) {
|
|||
resp, err = v.dispatchBeginDelete(req)
|
||||
case "VolumesClient.BeginDeleteReplication":
|
||||
resp, err = v.dispatchBeginDeleteReplication(req)
|
||||
case "VolumesClient.BeginFinalizeExternalReplication":
|
||||
resp, err = v.dispatchBeginFinalizeExternalReplication(req)
|
||||
case "VolumesClient.BeginFinalizeRelocation":
|
||||
resp, err = v.dispatchBeginFinalizeRelocation(req)
|
||||
case "VolumesClient.Get":
|
||||
|
@ -204,6 +232,10 @@ func (v *VolumesServerTransport) Do(req *http.Request) (*http.Response, error) {
|
|||
resp, err = v.dispatchBeginListGetGroupIDListForLdapUser(req)
|
||||
case "VolumesClient.NewListReplicationsPager":
|
||||
resp, err = v.dispatchNewListReplicationsPager(req)
|
||||
case "VolumesClient.BeginPeerExternalCluster":
|
||||
resp, err = v.dispatchBeginPeerExternalCluster(req)
|
||||
case "VolumesClient.BeginPerformReplicationTransfer":
|
||||
resp, err = v.dispatchBeginPerformReplicationTransfer(req)
|
||||
case "VolumesClient.BeginPoolChange":
|
||||
resp, err = v.dispatchBeginPoolChange(req)
|
||||
case "VolumesClient.BeginPopulateAvailabilityZone":
|
||||
|
@ -237,6 +269,58 @@ func (v *VolumesServerTransport) Do(req *http.Request) (*http.Response, error) {
|
|||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchBeginAuthorizeExternalReplication(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.BeginAuthorizeExternalReplication == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginAuthorizeExternalReplication not implemented")}
|
||||
}
|
||||
beginAuthorizeExternalReplication := v.beginAuthorizeExternalReplication.get(req)
|
||||
if beginAuthorizeExternalReplication == nil {
|
||||
const regexStr = `/subscriptions/(?P<subscriptionId>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P<resourceGroupName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetApp/netAppAccounts/(?P<accountName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/capacityPools/(?P<poolName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/volumes/(?P<volumeName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/authorizeExternalReplication`
|
||||
regex := regexp.MustCompile(regexStr)
|
||||
matches := regex.FindStringSubmatch(req.URL.EscapedPath())
|
||||
if matches == nil || len(matches) < 5 {
|
||||
return nil, fmt.Errorf("failed to parse path %s", req.URL.Path)
|
||||
}
|
||||
resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
accountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("accountName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poolNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("poolName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
volumeNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("volumeName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
respr, errRespr := v.srv.BeginAuthorizeExternalReplication(req.Context(), resourceGroupNameParam, accountNameParam, poolNameParam, volumeNameParam, nil)
|
||||
if respErr := server.GetError(errRespr, req); respErr != nil {
|
||||
return nil, respErr
|
||||
}
|
||||
beginAuthorizeExternalReplication = &respr
|
||||
v.beginAuthorizeExternalReplication.add(req, beginAuthorizeExternalReplication)
|
||||
}
|
||||
|
||||
resp, err := server.PollerResponderNext(beginAuthorizeExternalReplication, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) {
|
||||
v.beginAuthorizeExternalReplication.remove(req)
|
||||
return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)}
|
||||
}
|
||||
if !server.PollerResponderMore(beginAuthorizeExternalReplication) {
|
||||
v.beginAuthorizeExternalReplication.remove(req)
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchBeginAuthorizeReplication(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.BeginAuthorizeReplication == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginAuthorizeReplication not implemented")}
|
||||
|
@ -592,6 +676,58 @@ func (v *VolumesServerTransport) dispatchBeginDeleteReplication(req *http.Reques
|
|||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchBeginFinalizeExternalReplication(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.BeginFinalizeExternalReplication == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginFinalizeExternalReplication not implemented")}
|
||||
}
|
||||
beginFinalizeExternalReplication := v.beginFinalizeExternalReplication.get(req)
|
||||
if beginFinalizeExternalReplication == nil {
|
||||
const regexStr = `/subscriptions/(?P<subscriptionId>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P<resourceGroupName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetApp/netAppAccounts/(?P<accountName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/capacityPools/(?P<poolName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/volumes/(?P<volumeName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/finalizeExternalReplication`
|
||||
regex := regexp.MustCompile(regexStr)
|
||||
matches := regex.FindStringSubmatch(req.URL.EscapedPath())
|
||||
if matches == nil || len(matches) < 5 {
|
||||
return nil, fmt.Errorf("failed to parse path %s", req.URL.Path)
|
||||
}
|
||||
resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
accountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("accountName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poolNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("poolName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
volumeNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("volumeName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
respr, errRespr := v.srv.BeginFinalizeExternalReplication(req.Context(), resourceGroupNameParam, accountNameParam, poolNameParam, volumeNameParam, nil)
|
||||
if respErr := server.GetError(errRespr, req); respErr != nil {
|
||||
return nil, respErr
|
||||
}
|
||||
beginFinalizeExternalReplication = &respr
|
||||
v.beginFinalizeExternalReplication.add(req, beginFinalizeExternalReplication)
|
||||
}
|
||||
|
||||
resp, err := server.PollerResponderNext(beginFinalizeExternalReplication, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !contains([]int{http.StatusAccepted}, resp.StatusCode) {
|
||||
v.beginFinalizeExternalReplication.remove(req)
|
||||
return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted", resp.StatusCode)}
|
||||
}
|
||||
if !server.PollerResponderMore(beginFinalizeExternalReplication) {
|
||||
v.beginFinalizeExternalReplication.remove(req)
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchBeginFinalizeRelocation(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.BeginFinalizeRelocation == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginFinalizeRelocation not implemented")}
|
||||
|
@ -832,6 +968,114 @@ func (v *VolumesServerTransport) dispatchNewListReplicationsPager(req *http.Requ
|
|||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchBeginPeerExternalCluster(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.BeginPeerExternalCluster == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginPeerExternalCluster not implemented")}
|
||||
}
|
||||
beginPeerExternalCluster := v.beginPeerExternalCluster.get(req)
|
||||
if beginPeerExternalCluster == nil {
|
||||
const regexStr = `/subscriptions/(?P<subscriptionId>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P<resourceGroupName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetApp/netAppAccounts/(?P<accountName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/capacityPools/(?P<poolName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/volumes/(?P<volumeName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/peerExternalCluster`
|
||||
regex := regexp.MustCompile(regexStr)
|
||||
matches := regex.FindStringSubmatch(req.URL.EscapedPath())
|
||||
if matches == nil || len(matches) < 5 {
|
||||
return nil, fmt.Errorf("failed to parse path %s", req.URL.Path)
|
||||
}
|
||||
body, err := server.UnmarshalRequestAsJSON[armnetapp.PeerClusterForVolumeMigrationRequest](req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
accountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("accountName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poolNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("poolName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
volumeNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("volumeName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
respr, errRespr := v.srv.BeginPeerExternalCluster(req.Context(), resourceGroupNameParam, accountNameParam, poolNameParam, volumeNameParam, body, nil)
|
||||
if respErr := server.GetError(errRespr, req); respErr != nil {
|
||||
return nil, respErr
|
||||
}
|
||||
beginPeerExternalCluster = &respr
|
||||
v.beginPeerExternalCluster.add(req, beginPeerExternalCluster)
|
||||
}
|
||||
|
||||
resp, err := server.PollerResponderNext(beginPeerExternalCluster, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) {
|
||||
v.beginPeerExternalCluster.remove(req)
|
||||
return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)}
|
||||
}
|
||||
if !server.PollerResponderMore(beginPeerExternalCluster) {
|
||||
v.beginPeerExternalCluster.remove(req)
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchBeginPerformReplicationTransfer(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.BeginPerformReplicationTransfer == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginPerformReplicationTransfer not implemented")}
|
||||
}
|
||||
beginPerformReplicationTransfer := v.beginPerformReplicationTransfer.get(req)
|
||||
if beginPerformReplicationTransfer == nil {
|
||||
const regexStr = `/subscriptions/(?P<subscriptionId>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P<resourceGroupName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetApp/netAppAccounts/(?P<accountName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/capacityPools/(?P<poolName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/volumes/(?P<volumeName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/performReplicationTransfer`
|
||||
regex := regexp.MustCompile(regexStr)
|
||||
matches := regex.FindStringSubmatch(req.URL.EscapedPath())
|
||||
if matches == nil || len(matches) < 5 {
|
||||
return nil, fmt.Errorf("failed to parse path %s", req.URL.Path)
|
||||
}
|
||||
resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
accountNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("accountName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poolNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("poolName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
volumeNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("volumeName")])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
respr, errRespr := v.srv.BeginPerformReplicationTransfer(req.Context(), resourceGroupNameParam, accountNameParam, poolNameParam, volumeNameParam, nil)
|
||||
if respErr := server.GetError(errRespr, req); respErr != nil {
|
||||
return nil, respErr
|
||||
}
|
||||
beginPerformReplicationTransfer = &respr
|
||||
v.beginPerformReplicationTransfer.add(req, beginPerformReplicationTransfer)
|
||||
}
|
||||
|
||||
resp, err := server.PollerResponderNext(beginPerformReplicationTransfer, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !contains([]int{http.StatusAccepted}, resp.StatusCode) {
|
||||
v.beginPerformReplicationTransfer.remove(req)
|
||||
return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted", resp.StatusCode)}
|
||||
}
|
||||
if !server.PollerResponderMore(beginPerformReplicationTransfer) {
|
||||
v.beginPerformReplicationTransfer.remove(req)
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchBeginPoolChange(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.BeginPoolChange == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginPoolChange not implemented")}
|
||||
|
|
|
@ -129,8 +129,7 @@ type ActiveDirectory struct {
|
|||
// If enabled, Traffic between the SMB server to Domain Controller (DC) will be encrypted.
|
||||
EncryptDCConnections *bool
|
||||
|
||||
// kdc server IP addresses for the active directory machine. This optional parameter is used only while creating kerberos
|
||||
// volume.
|
||||
// kdc server IP address for the active directory machine. This optional parameter is used only while creating kerberos volume.
|
||||
KdcIP *string
|
||||
|
||||
// Specifies whether or not the LDAP traffic needs to be secured via TLS.
|
||||
|
@ -281,7 +280,7 @@ type BackupPolicyProperties struct {
|
|||
// Weekly backups count to keep
|
||||
WeeklyBackupsToKeep *int32
|
||||
|
||||
// READ-ONLY; Backup Policy Resource ID
|
||||
// READ-ONLY; Backup Policy GUID ID
|
||||
BackupPolicyID *string
|
||||
|
||||
// READ-ONLY; Azure lifecycle management
|
||||
|
@ -522,6 +521,13 @@ type CheckAvailabilityResponse struct {
|
|||
Reason *InAvailabilityReasonType
|
||||
}
|
||||
|
||||
// ClusterPeerCommandResponse - Information about cluster peering process
|
||||
type ClusterPeerCommandResponse struct {
|
||||
// A command that needs to be run on the external ONTAP to accept cluster peering. Will only be present if clusterPeeringStatus
|
||||
// is pending
|
||||
PeerAcceptCommand *string
|
||||
}
|
||||
|
||||
// DailySchedule - Daily Schedule properties
|
||||
type DailySchedule struct {
|
||||
// Indicates which hour in UTC timezone a snapshot should be taken
|
||||
|
@ -613,6 +619,10 @@ type FilePathAvailabilityRequest struct {
|
|||
|
||||
// REQUIRED; The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes
|
||||
SubnetID *string
|
||||
|
||||
// The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region.
|
||||
// The lookup will retrieve the physical zone where volume is placed.
|
||||
AvailabilityZone *string
|
||||
}
|
||||
|
||||
// GetGroupIDListForLDAPUserRequest - Get group Id list for LDAP User request
|
||||
|
@ -862,6 +872,12 @@ type OperationProperties struct {
|
|||
ServiceSpecification *ServiceSpecification
|
||||
}
|
||||
|
||||
// PeerClusterForVolumeMigrationRequest - Source Cluster properties for a cluster peer request
|
||||
type PeerClusterForVolumeMigrationRequest struct {
|
||||
// REQUIRED; A list of IC-LIF IPs that can be used to connect to the On-prem cluster
|
||||
PeerIPAddresses []*string
|
||||
}
|
||||
|
||||
// PlacementKeyValuePairs - Application specific parameters for the placement of volumes in the volume group
|
||||
type PlacementKeyValuePairs struct {
|
||||
// REQUIRED; Key for an application specific parameter for the placement of volumes in the volume group
|
||||
|
@ -998,6 +1014,18 @@ type RelocateVolumeRequest struct {
|
|||
CreationToken *string
|
||||
}
|
||||
|
||||
// RemotePath - The full path to a volume that is to be migrated into ANF. Required for Migration volumes
|
||||
type RemotePath struct {
|
||||
// REQUIRED; The Path to a ONTAP Host
|
||||
ExternalHostName *string
|
||||
|
||||
// REQUIRED; The name of a server on the ONTAP Host
|
||||
ServerName *string
|
||||
|
||||
// REQUIRED; The name of a volume on the server
|
||||
VolumeName *string
|
||||
}
|
||||
|
||||
// Replication properties
|
||||
type Replication struct {
|
||||
// REQUIRED; The resource ID of the remote volume.
|
||||
|
@ -1024,6 +1052,9 @@ type ReplicationObject struct {
|
|||
// Indicates whether the local volume is the source or destination for the Volume Replication
|
||||
EndpointType *EndpointType
|
||||
|
||||
// The full path to a volume that is to be migrated into ANF. Required for Migration volumes
|
||||
RemotePath *RemotePath
|
||||
|
||||
// The remote region for the other end of the Volume Replication.
|
||||
RemoteVolumeRegion *string
|
||||
|
||||
|
@ -1361,6 +1392,13 @@ type SubvolumesList struct {
|
|||
Value []*SubvolumeInfo
|
||||
}
|
||||
|
||||
// SvmPeerCommandResponse - Information about svm peering process
|
||||
type SvmPeerCommandResponse struct {
|
||||
// A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if svmPeeringStatus is
|
||||
// pending
|
||||
SvmPeeringCommand *string
|
||||
}
|
||||
|
||||
// SystemData - Metadata pertaining to creation and last modification of the resource.
|
||||
type SystemData struct {
|
||||
// The timestamp of resource creation (UTC).
|
||||
|
@ -1754,7 +1792,7 @@ type VolumeProperties struct {
|
|||
// Specifies whether LDAP is enabled or not for a given NFS volume.
|
||||
LdapEnabled *bool
|
||||
|
||||
// Network features available to the volume, or current state of update.
|
||||
// The original value of the network features type available to the volume at the time it was created.
|
||||
NetworkFeatures *NetworkFeatures
|
||||
|
||||
// Application specific placement rules for the particular volume
|
||||
|
@ -1824,6 +1862,9 @@ type VolumeProperties struct {
|
|||
// READ-ONLY; Data store resource unique identifier
|
||||
DataStoreResourceID []*string
|
||||
|
||||
// READ-ONLY; The effective value of the network features type available to the volume, or current effective state of update.
|
||||
EffectiveNetworkFeatures *NetworkFeatures
|
||||
|
||||
// READ-ONLY; Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01.
|
||||
Encrypted *bool
|
||||
|
||||
|
|
|
@ -1234,6 +1234,33 @@ func (c *CheckAvailabilityResponse) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type ClusterPeerCommandResponse.
|
||||
func (c ClusterPeerCommandResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "peerAcceptCommand", c.PeerAcceptCommand)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterPeerCommandResponse.
|
||||
func (c *ClusterPeerCommandResponse) UnmarshalJSON(data []byte) error {
|
||||
var rawMsg map[string]json.RawMessage
|
||||
if err := json.Unmarshal(data, &rawMsg); err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", c, err)
|
||||
}
|
||||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "peerAcceptCommand":
|
||||
err = unpopulate(val, "PeerAcceptCommand", &c.PeerAcceptCommand)
|
||||
delete(rawMsg, key)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", c, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type DailySchedule.
|
||||
func (d DailySchedule) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
|
@ -1421,6 +1448,7 @@ func (e *ExportPolicyRule) UnmarshalJSON(data []byte) error {
|
|||
// MarshalJSON implements the json.Marshaller interface for type FilePathAvailabilityRequest.
|
||||
func (f FilePathAvailabilityRequest) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "availabilityZone", f.AvailabilityZone)
|
||||
populate(objectMap, "name", f.Name)
|
||||
populate(objectMap, "subnetId", f.SubnetID)
|
||||
return json.Marshal(objectMap)
|
||||
|
@ -1435,6 +1463,9 @@ func (f *FilePathAvailabilityRequest) UnmarshalJSON(data []byte) error {
|
|||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "availabilityZone":
|
||||
err = unpopulate(val, "AvailabilityZone", &f.AvailabilityZone)
|
||||
delete(rawMsg, key)
|
||||
case "name":
|
||||
err = unpopulate(val, "Name", &f.Name)
|
||||
delete(rawMsg, key)
|
||||
|
@ -2092,6 +2123,33 @@ func (o *OperationProperties) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type PeerClusterForVolumeMigrationRequest.
|
||||
func (p PeerClusterForVolumeMigrationRequest) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "peerIpAddresses", p.PeerIPAddresses)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements the json.Unmarshaller interface for type PeerClusterForVolumeMigrationRequest.
|
||||
func (p *PeerClusterForVolumeMigrationRequest) UnmarshalJSON(data []byte) error {
|
||||
var rawMsg map[string]json.RawMessage
|
||||
if err := json.Unmarshal(data, &rawMsg); err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", p, err)
|
||||
}
|
||||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "peerIpAddresses":
|
||||
err = unpopulate(val, "PeerIPAddresses", &p.PeerIPAddresses)
|
||||
delete(rawMsg, key)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", p, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type PlacementKeyValuePairs.
|
||||
func (p PlacementKeyValuePairs) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
|
@ -2500,6 +2558,41 @@ func (r *RelocateVolumeRequest) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type RemotePath.
|
||||
func (r RemotePath) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "externalHostName", r.ExternalHostName)
|
||||
populate(objectMap, "serverName", r.ServerName)
|
||||
populate(objectMap, "volumeName", r.VolumeName)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements the json.Unmarshaller interface for type RemotePath.
|
||||
func (r *RemotePath) UnmarshalJSON(data []byte) error {
|
||||
var rawMsg map[string]json.RawMessage
|
||||
if err := json.Unmarshal(data, &rawMsg); err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", r, err)
|
||||
}
|
||||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "externalHostName":
|
||||
err = unpopulate(val, "ExternalHostName", &r.ExternalHostName)
|
||||
delete(rawMsg, key)
|
||||
case "serverName":
|
||||
err = unpopulate(val, "ServerName", &r.ServerName)
|
||||
delete(rawMsg, key)
|
||||
case "volumeName":
|
||||
err = unpopulate(val, "VolumeName", &r.VolumeName)
|
||||
delete(rawMsg, key)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", r, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type Replication.
|
||||
func (r Replication) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
|
@ -2547,6 +2640,7 @@ func (r *Replication) UnmarshalJSON(data []byte) error {
|
|||
func (r ReplicationObject) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "endpointType", r.EndpointType)
|
||||
populate(objectMap, "remotePath", r.RemotePath)
|
||||
populate(objectMap, "remoteVolumeRegion", r.RemoteVolumeRegion)
|
||||
populate(objectMap, "remoteVolumeResourceId", r.RemoteVolumeResourceID)
|
||||
populate(objectMap, "replicationId", r.ReplicationID)
|
||||
|
@ -2566,6 +2660,9 @@ func (r *ReplicationObject) UnmarshalJSON(data []byte) error {
|
|||
case "endpointType":
|
||||
err = unpopulate(val, "EndpointType", &r.EndpointType)
|
||||
delete(rawMsg, key)
|
||||
case "remotePath":
|
||||
err = unpopulate(val, "RemotePath", &r.RemotePath)
|
||||
delete(rawMsg, key)
|
||||
case "remoteVolumeRegion":
|
||||
err = unpopulate(val, "RemoteVolumeRegion", &r.RemoteVolumeRegion)
|
||||
delete(rawMsg, key)
|
||||
|
@ -3459,6 +3556,33 @@ func (s *SubvolumesList) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type SvmPeerCommandResponse.
|
||||
func (s SvmPeerCommandResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "svmPeeringCommand", s.SvmPeeringCommand)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements the json.Unmarshaller interface for type SvmPeerCommandResponse.
|
||||
func (s *SvmPeerCommandResponse) UnmarshalJSON(data []byte) error {
|
||||
var rawMsg map[string]json.RawMessage
|
||||
if err := json.Unmarshal(data, &rawMsg); err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", s, err)
|
||||
}
|
||||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "svmPeeringCommand":
|
||||
err = unpopulate(val, "SvmPeeringCommand", &s.SvmPeeringCommand)
|
||||
delete(rawMsg, key)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", s, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type SystemData.
|
||||
func (s SystemData) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
|
@ -4219,6 +4343,7 @@ func (v VolumeProperties) MarshalJSON() ([]byte, error) {
|
|||
populate(objectMap, "defaultGroupQuotaInKiBs", v.DefaultGroupQuotaInKiBs)
|
||||
populate(objectMap, "defaultUserQuotaInKiBs", v.DefaultUserQuotaInKiBs)
|
||||
populate(objectMap, "deleteBaseSnapshot", v.DeleteBaseSnapshot)
|
||||
populate(objectMap, "effectiveNetworkFeatures", v.EffectiveNetworkFeatures)
|
||||
populate(objectMap, "enableSubvolumes", v.EnableSubvolumes)
|
||||
populate(objectMap, "encrypted", v.Encrypted)
|
||||
populate(objectMap, "encryptionKeySource", v.EncryptionKeySource)
|
||||
|
@ -4315,6 +4440,9 @@ func (v *VolumeProperties) UnmarshalJSON(data []byte) error {
|
|||
case "deleteBaseSnapshot":
|
||||
err = unpopulate(val, "DeleteBaseSnapshot", &v.DeleteBaseSnapshot)
|
||||
delete(rawMsg, key)
|
||||
case "effectiveNetworkFeatures":
|
||||
err = unpopulate(val, "EffectiveNetworkFeatures", &v.EffectiveNetworkFeatures)
|
||||
delete(rawMsg, key)
|
||||
case "enableSubvolumes":
|
||||
err = unpopulate(val, "EnableSubvolumes", &v.EnableSubvolumes)
|
||||
delete(rawMsg, key)
|
||||
|
|
|
@ -39,7 +39,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO
|
|||
|
||||
// NewListPager - Lists all of the available Microsoft.NetApp Rest API operations
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
|
||||
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] {
|
||||
return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{
|
||||
|
@ -73,7 +73,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options *
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
@ -17,7 +17,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/OperationList.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/OperationList.json
|
||||
func ExampleOperationsClient_NewListPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -409,6 +409,13 @@ type VolumeQuotaRulesClientListByVolumeOptions struct {
|
|||
// placeholder for future optional parameters
|
||||
}
|
||||
|
||||
// VolumesClientBeginAuthorizeExternalReplicationOptions contains the optional parameters for the VolumesClient.BeginAuthorizeExternalReplication
|
||||
// method.
|
||||
type VolumesClientBeginAuthorizeExternalReplicationOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// VolumesClientBeginAuthorizeReplicationOptions contains the optional parameters for the VolumesClient.BeginAuthorizeReplication
|
||||
// method.
|
||||
type VolumesClientBeginAuthorizeReplicationOptions struct {
|
||||
|
@ -457,6 +464,13 @@ type VolumesClientBeginDeleteReplicationOptions struct {
|
|||
ResumeToken string
|
||||
}
|
||||
|
||||
// VolumesClientBeginFinalizeExternalReplicationOptions contains the optional parameters for the VolumesClient.BeginFinalizeExternalReplication
|
||||
// method.
|
||||
type VolumesClientBeginFinalizeExternalReplicationOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// VolumesClientBeginFinalizeRelocationOptions contains the optional parameters for the VolumesClient.BeginFinalizeRelocation
|
||||
// method.
|
||||
type VolumesClientBeginFinalizeRelocationOptions struct {
|
||||
|
@ -471,6 +485,20 @@ type VolumesClientBeginListGetGroupIDListForLdapUserOptions struct {
|
|||
ResumeToken string
|
||||
}
|
||||
|
||||
// VolumesClientBeginPeerExternalClusterOptions contains the optional parameters for the VolumesClient.BeginPeerExternalCluster
|
||||
// method.
|
||||
type VolumesClientBeginPeerExternalClusterOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// VolumesClientBeginPerformReplicationTransferOptions contains the optional parameters for the VolumesClient.BeginPerformReplicationTransfer
|
||||
// method.
|
||||
type VolumesClientBeginPerformReplicationTransferOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// VolumesClientBeginPoolChangeOptions contains the optional parameters for the VolumesClient.BeginPoolChange method.
|
||||
type VolumesClientBeginPoolChangeOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewPoolsClient(subscriptionID string, credential azcore.TokenCredential, op
|
|||
// BeginCreateOrUpdate - Create or Update a capacity pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -74,7 +74,7 @@ func (client *PoolsClient) BeginCreateOrUpdate(ctx context.Context, resourceGrou
|
|||
// CreateOrUpdate - Create or Update a capacity pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *PoolsClient) createOrUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, body CapacityPool, options *PoolsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "PoolsClient.BeginCreateOrUpdate"
|
||||
|
@ -120,7 +120,7 @@ func (client *PoolsClient) createOrUpdateCreateRequest(ctx context.Context, reso
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -132,7 +132,7 @@ func (client *PoolsClient) createOrUpdateCreateRequest(ctx context.Context, reso
|
|||
// BeginDelete - Delete the specified capacity pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -158,7 +158,7 @@ func (client *PoolsClient) BeginDelete(ctx context.Context, resourceGroupName st
|
|||
// Delete - Delete the specified capacity pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *PoolsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, poolName string, options *PoolsClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "PoolsClient.BeginDelete"
|
||||
|
@ -204,7 +204,7 @@ func (client *PoolsClient) deleteCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -213,7 +213,7 @@ func (client *PoolsClient) deleteCreateRequest(ctx context.Context, resourceGrou
|
|||
// Get - Get details of the specified capacity pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -264,7 +264,7 @@ func (client *PoolsClient) getCreateRequest(ctx context.Context, resourceGroupNa
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -281,7 +281,7 @@ func (client *PoolsClient) getHandleResponse(resp *http.Response) (PoolsClientGe
|
|||
|
||||
// NewListPager - List all capacity pools in the NetApp Account
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - PoolsClientListOptions contains the optional parameters for the PoolsClient.NewListPager method.
|
||||
|
@ -328,7 +328,7 @@ func (client *PoolsClient) listCreateRequest(ctx context.Context, resourceGroupN
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -346,7 +346,7 @@ func (client *PoolsClient) listHandleResponse(resp *http.Response) (PoolsClientL
|
|||
// BeginUpdate - Patch the specified capacity pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -373,7 +373,7 @@ func (client *PoolsClient) BeginUpdate(ctx context.Context, resourceGroupName st
|
|||
// Update - Patch the specified capacity pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *PoolsClient) update(ctx context.Context, resourceGroupName string, accountName string, poolName string, body CapacityPoolPatch, options *PoolsClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "PoolsClient.BeginUpdate"
|
||||
|
@ -419,7 +419,7 @@ func (client *PoolsClient) updateCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Pools_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_List.json
|
||||
func ExamplePoolsClient_NewListPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -54,13 +54,14 @@ func ExamplePoolsClient_NewListPager() {
|
|||
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium),
|
||||
// Size: to.Ptr[int64](4398046511104),
|
||||
// TotalThroughputMibps: to.Ptr[float32](281.474),
|
||||
// UtilizedThroughputMibps: to.Ptr[float32](100.474),
|
||||
// },
|
||||
// }},
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Pools_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Get.json
|
||||
func ExamplePoolsClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -95,7 +96,7 @@ func ExamplePoolsClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Pools_CreateOrUpdate.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_CreateOrUpdate.json
|
||||
func ExamplePoolsClient_BeginCreateOrUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -140,7 +141,7 @@ func ExamplePoolsClient_BeginCreateOrUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Pools_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Update.json
|
||||
func ExamplePoolsClient_BeginUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -179,7 +180,7 @@ func ExamplePoolsClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Pools_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Delete.json
|
||||
func ExamplePoolsClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewResourceClient(subscriptionID string, credential azcore.TokenCredential,
|
|||
// CheckFilePathAvailability - Check if a file path is available.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - location - The name of the Azure region.
|
||||
// - body - File path availability request.
|
||||
// - options - ResourceClientCheckFilePathAvailabilityOptions contains the optional parameters for the ResourceClient.CheckFilePathAvailability
|
||||
|
@ -89,7 +89,7 @@ func (client *ResourceClient) checkFilePathAvailabilityCreateRequest(ctx context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -110,7 +110,7 @@ func (client *ResourceClient) checkFilePathAvailabilityHandleResponse(resp *http
|
|||
// CheckNameAvailability - Check if a resource name is available.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - location - The name of the Azure region.
|
||||
// - body - Name availability request.
|
||||
// - options - ResourceClientCheckNameAvailabilityOptions contains the optional parameters for the ResourceClient.CheckNameAvailability
|
||||
|
@ -153,7 +153,7 @@ func (client *ResourceClient) checkNameAvailabilityCreateRequest(ctx context.Con
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -174,7 +174,7 @@ func (client *ResourceClient) checkNameAvailabilityHandleResponse(resp *http.Res
|
|||
// CheckQuotaAvailability - Check if a quota is available.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - location - The name of the Azure region.
|
||||
// - body - Quota availability request.
|
||||
// - options - ResourceClientCheckQuotaAvailabilityOptions contains the optional parameters for the ResourceClient.CheckQuotaAvailability
|
||||
|
@ -217,7 +217,7 @@ func (client *ResourceClient) checkQuotaAvailabilityCreateRequest(ctx context.Co
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -238,7 +238,7 @@ func (client *ResourceClient) checkQuotaAvailabilityHandleResponse(resp *http.Re
|
|||
// QueryNetworkSiblingSet - Get details of the specified network sibling set.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - location - The name of the Azure region.
|
||||
// - body - Network sibling set to query.
|
||||
// - options - ResourceClientQueryNetworkSiblingSetOptions contains the optional parameters for the ResourceClient.QueryNetworkSiblingSet
|
||||
|
@ -281,7 +281,7 @@ func (client *ResourceClient) queryNetworkSiblingSetCreateRequest(ctx context.Co
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -302,7 +302,7 @@ func (client *ResourceClient) queryNetworkSiblingSetHandleResponse(resp *http.Re
|
|||
// QueryRegionInfo - Provides storage to network proximity and logical zone mapping information.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - location - The name of the Azure region.
|
||||
// - options - ResourceClientQueryRegionInfoOptions contains the optional parameters for the ResourceClient.QueryRegionInfo
|
||||
// method.
|
||||
|
@ -344,7 +344,7 @@ func (client *ResourceClient) queryRegionInfoCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -362,7 +362,7 @@ func (client *ResourceClient) queryRegionInfoHandleResponse(resp *http.Response)
|
|||
// BeginUpdateNetworkSiblingSet - Update the network features of the specified network sibling set.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - location - The name of the Azure region.
|
||||
// - body - Update for the specified network sibling set.
|
||||
// - options - ResourceClientBeginUpdateNetworkSiblingSetOptions contains the optional parameters for the ResourceClient.BeginUpdateNetworkSiblingSet
|
||||
|
@ -388,7 +388,7 @@ func (client *ResourceClient) BeginUpdateNetworkSiblingSet(ctx context.Context,
|
|||
// UpdateNetworkSiblingSet - Update the network features of the specified network sibling set.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *ResourceClient) updateNetworkSiblingSet(ctx context.Context, location string, body UpdateNetworkSiblingSetRequest, options *ResourceClientBeginUpdateNetworkSiblingSetOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "ResourceClient.BeginUpdateNetworkSiblingSet"
|
||||
|
@ -426,7 +426,7 @@ func (client *ResourceClient) updateNetworkSiblingSetCreateRequest(ctx context.C
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/CheckNameAvailability.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckNameAvailability.json
|
||||
func ExampleResourceClient_CheckNameAvailability() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -45,7 +45,7 @@ func ExampleResourceClient_CheckNameAvailability() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/CheckFilePathAvailability.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckFilePathAvailability.json
|
||||
func ExampleResourceClient_CheckFilePathAvailability() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -71,7 +71,7 @@ func ExampleResourceClient_CheckFilePathAvailability() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/CheckQuotaAvailability.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckQuotaAvailability.json
|
||||
func ExampleResourceClient_CheckQuotaAvailability() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -98,7 +98,7 @@ func ExampleResourceClient_CheckQuotaAvailability() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/RegionInfo.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfo.json
|
||||
func ExampleResourceClient_QueryRegionInfo() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -126,7 +126,7 @@ func ExampleResourceClient_QueryRegionInfo() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/NetworkSiblingSet_Query.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Query.json
|
||||
func ExampleResourceClient_QueryNetworkSiblingSet() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -174,7 +174,7 @@ func ExampleResourceClient_QueryNetworkSiblingSet() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/NetworkSiblingSet_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Update.json
|
||||
func ExampleResourceClient_BeginUpdateNetworkSiblingSet() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewResourceQuotaLimitsClient(subscriptionID string, credential azcore.Token
|
|||
// Get - Get the default and current subscription quota limit
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - location - The name of the Azure region.
|
||||
// - quotaLimitName - The name of the Quota Limit
|
||||
// - options - ResourceQuotaLimitsClientGetOptions contains the optional parameters for the ResourceQuotaLimitsClient.Get method.
|
||||
|
@ -92,7 +92,7 @@ func (client *ResourceQuotaLimitsClient) getCreateRequest(ctx context.Context, l
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -109,7 +109,7 @@ func (client *ResourceQuotaLimitsClient) getHandleResponse(resp *http.Response)
|
|||
|
||||
// NewListPager - Get the default and current limits for quotas
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - location - The name of the Azure region.
|
||||
// - options - ResourceQuotaLimitsClientListOptions contains the optional parameters for the ResourceQuotaLimitsClient.NewListPager
|
||||
// method.
|
||||
|
@ -153,7 +153,7 @@ func (client *ResourceQuotaLimitsClient) listCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
@ -17,7 +17,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/QuotaLimits_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_List.json
|
||||
func ExampleResourceQuotaLimitsClient_NewListPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -117,7 +117,7 @@ func ExampleResourceQuotaLimitsClient_NewListPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/QuotaLimits_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_Get.json
|
||||
func ExampleResourceQuotaLimitsClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewResourceRegionInfosClient(subscriptionID string, credential azcore.Token
|
|||
// Get - Provides storage to network proximity and logical zone mapping information.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - location - The name of the Azure region.
|
||||
// - options - ResourceRegionInfosClientGetOptions contains the optional parameters for the ResourceRegionInfosClient.Get method.
|
||||
func (client *ResourceRegionInfosClient) Get(ctx context.Context, location string, options *ResourceRegionInfosClientGetOptions) (ResourceRegionInfosClientGetResponse, error) {
|
||||
|
@ -87,7 +87,7 @@ func (client *ResourceRegionInfosClient) getCreateRequest(ctx context.Context, l
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -104,7 +104,7 @@ func (client *ResourceRegionInfosClient) getHandleResponse(resp *http.Response)
|
|||
|
||||
// NewListPager - Provides region specific information.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - location - The name of the Azure region.
|
||||
// - options - ResourceRegionInfosClientListOptions contains the optional parameters for the ResourceRegionInfosClient.NewListPager
|
||||
// method.
|
||||
|
@ -147,7 +147,7 @@ func (client *ResourceRegionInfosClient) listCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
@ -17,7 +17,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/RegionInfos_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_List.json
|
||||
func ExampleResourceRegionInfosClient_NewListPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -66,7 +66,7 @@ func ExampleResourceRegionInfosClient_NewListPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/RegionInfos_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_Get.json
|
||||
func ExampleResourceRegionInfosClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -414,6 +414,12 @@ type VolumeQuotaRulesClientUpdateResponse struct {
|
|||
VolumeQuotaRule
|
||||
}
|
||||
|
||||
// VolumesClientAuthorizeExternalReplicationResponse contains the response from method VolumesClient.BeginAuthorizeExternalReplication.
|
||||
type VolumesClientAuthorizeExternalReplicationResponse struct {
|
||||
// Information about svm peering process
|
||||
SvmPeerCommandResponse
|
||||
}
|
||||
|
||||
// VolumesClientAuthorizeReplicationResponse contains the response from method VolumesClient.BeginAuthorizeReplication.
|
||||
type VolumesClientAuthorizeReplicationResponse struct {
|
||||
// placeholder for future response values
|
||||
|
@ -445,6 +451,11 @@ type VolumesClientDeleteResponse struct {
|
|||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// VolumesClientFinalizeExternalReplicationResponse contains the response from method VolumesClient.BeginFinalizeExternalReplication.
|
||||
type VolumesClientFinalizeExternalReplicationResponse struct {
|
||||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// VolumesClientFinalizeRelocationResponse contains the response from method VolumesClient.BeginFinalizeRelocation.
|
||||
type VolumesClientFinalizeRelocationResponse struct {
|
||||
// placeholder for future response values
|
||||
|
@ -474,6 +485,17 @@ type VolumesClientListResponse struct {
|
|||
VolumeList
|
||||
}
|
||||
|
||||
// VolumesClientPeerExternalClusterResponse contains the response from method VolumesClient.BeginPeerExternalCluster.
|
||||
type VolumesClientPeerExternalClusterResponse struct {
|
||||
// Information about cluster peering process
|
||||
ClusterPeerCommandResponse
|
||||
}
|
||||
|
||||
// VolumesClientPerformReplicationTransferResponse contains the response from method VolumesClient.BeginPerformReplicationTransfer.
|
||||
type VolumesClientPerformReplicationTransferResponse struct {
|
||||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// VolumesClientPoolChangeResponse contains the response from method VolumesClient.BeginPoolChange.
|
||||
type VolumesClientPoolChangeResponse struct {
|
||||
// placeholder for future response values
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewSnapshotPoliciesClient(subscriptionID string, credential azcore.TokenCre
|
|||
// Create - Create a snapshot policy
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - snapshotPolicyName - The name of the snapshot policy
|
||||
|
@ -98,7 +98,7 @@ func (client *SnapshotPoliciesClient) createCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -119,7 +119,7 @@ func (client *SnapshotPoliciesClient) createHandleResponse(resp *http.Response)
|
|||
// BeginDelete - Delete snapshot policy
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - snapshotPolicyName - The name of the snapshot policy
|
||||
|
@ -146,7 +146,7 @@ func (client *SnapshotPoliciesClient) BeginDelete(ctx context.Context, resourceG
|
|||
// Delete - Delete snapshot policy
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *SnapshotPoliciesClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, snapshotPolicyName string, options *SnapshotPoliciesClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "SnapshotPoliciesClient.BeginDelete"
|
||||
|
@ -192,7 +192,7 @@ func (client *SnapshotPoliciesClient) deleteCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -201,7 +201,7 @@ func (client *SnapshotPoliciesClient) deleteCreateRequest(ctx context.Context, r
|
|||
// Get - Get a snapshot Policy
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - snapshotPolicyName - The name of the snapshot policy
|
||||
|
@ -252,7 +252,7 @@ func (client *SnapshotPoliciesClient) getCreateRequest(ctx context.Context, reso
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -269,7 +269,7 @@ func (client *SnapshotPoliciesClient) getHandleResponse(resp *http.Response) (Sn
|
|||
|
||||
// NewListPager - List snapshot policy
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - SnapshotPoliciesClientListOptions contains the optional parameters for the SnapshotPoliciesClient.NewListPager
|
||||
|
@ -318,7 +318,7 @@ func (client *SnapshotPoliciesClient) listCreateRequest(ctx context.Context, res
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -336,7 +336,7 @@ func (client *SnapshotPoliciesClient) listHandleResponse(resp *http.Response) (S
|
|||
// ListVolumes - Get volumes associated with snapshot policy
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - snapshotPolicyName - The name of the snapshot policy
|
||||
|
@ -388,7 +388,7 @@ func (client *SnapshotPoliciesClient) listVolumesCreateRequest(ctx context.Conte
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -406,7 +406,7 @@ func (client *SnapshotPoliciesClient) listVolumesHandleResponse(resp *http.Respo
|
|||
// BeginUpdate - Patch a snapshot policy
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - snapshotPolicyName - The name of the snapshot policy
|
||||
|
@ -434,7 +434,7 @@ func (client *SnapshotPoliciesClient) BeginUpdate(ctx context.Context, resourceG
|
|||
// Update - Patch a snapshot policy
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *SnapshotPoliciesClient) update(ctx context.Context, resourceGroupName string, accountName string, snapshotPolicyName string, body SnapshotPolicyPatch, options *SnapshotPoliciesClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "SnapshotPoliciesClient.BeginUpdate"
|
||||
|
@ -480,7 +480,7 @@ func (client *SnapshotPoliciesClient) updateCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_List.json
|
||||
func ExampleSnapshotPoliciesClient_NewListPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -77,7 +77,7 @@ func ExampleSnapshotPoliciesClient_NewListPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Get.json
|
||||
func ExampleSnapshotPoliciesClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -128,7 +128,7 @@ func ExampleSnapshotPoliciesClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Create.json
|
||||
func ExampleSnapshotPoliciesClient_Create() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -205,7 +205,7 @@ func ExampleSnapshotPoliciesClient_Create() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Update.json
|
||||
func ExampleSnapshotPoliciesClient_BeginUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -286,7 +286,7 @@ func ExampleSnapshotPoliciesClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Delete.json
|
||||
func ExampleSnapshotPoliciesClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -307,7 +307,7 @@ func ExampleSnapshotPoliciesClient_BeginDelete() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_ListVolumes.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_ListVolumes.json
|
||||
func ExampleSnapshotPoliciesClient_ListVolumes() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewSnapshotsClient(subscriptionID string, credential azcore.TokenCredential
|
|||
// BeginCreate - Create the specified snapshot within the given volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -75,7 +75,7 @@ func (client *SnapshotsClient) BeginCreate(ctx context.Context, resourceGroupNam
|
|||
// Create - Create the specified snapshot within the given volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *SnapshotsClient) create(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string, body Snapshot, options *SnapshotsClientBeginCreateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "SnapshotsClient.BeginCreate"
|
||||
|
@ -129,7 +129,7 @@ func (client *SnapshotsClient) createCreateRequest(ctx context.Context, resource
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -141,7 +141,7 @@ func (client *SnapshotsClient) createCreateRequest(ctx context.Context, resource
|
|||
// BeginDelete - Delete snapshot
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -169,7 +169,7 @@ func (client *SnapshotsClient) BeginDelete(ctx context.Context, resourceGroupNam
|
|||
// Delete - Delete snapshot
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *SnapshotsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string, options *SnapshotsClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "SnapshotsClient.BeginDelete"
|
||||
|
@ -223,7 +223,7 @@ func (client *SnapshotsClient) deleteCreateRequest(ctx context.Context, resource
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -232,7 +232,7 @@ func (client *SnapshotsClient) deleteCreateRequest(ctx context.Context, resource
|
|||
// Get - Get details of the specified snapshot
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -293,7 +293,7 @@ func (client *SnapshotsClient) getCreateRequest(ctx context.Context, resourceGro
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -310,7 +310,7 @@ func (client *SnapshotsClient) getHandleResponse(resp *http.Response) (Snapshots
|
|||
|
||||
// NewListPager - List all snapshots associated with the volume
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -368,7 +368,7 @@ func (client *SnapshotsClient) listCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -386,7 +386,7 @@ func (client *SnapshotsClient) listHandleResponse(resp *http.Response) (Snapshot
|
|||
// BeginRestoreFiles - Restore the specified files from the specified snapshot to the active filesystem
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -416,7 +416,7 @@ func (client *SnapshotsClient) BeginRestoreFiles(ctx context.Context, resourceGr
|
|||
// RestoreFiles - Restore the specified files from the specified snapshot to the active filesystem
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *SnapshotsClient) restoreFiles(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string, body SnapshotRestoreFiles, options *SnapshotsClientBeginRestoreFilesOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "SnapshotsClient.BeginRestoreFiles"
|
||||
|
@ -470,7 +470,7 @@ func (client *SnapshotsClient) restoreFilesCreateRequest(ctx context.Context, re
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -482,7 +482,7 @@ func (client *SnapshotsClient) restoreFilesCreateRequest(ctx context.Context, re
|
|||
// BeginUpdate - Patch a snapshot
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -511,7 +511,7 @@ func (client *SnapshotsClient) BeginUpdate(ctx context.Context, resourceGroupNam
|
|||
// Update - Patch a snapshot
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *SnapshotsClient) update(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string, body any, options *SnapshotsClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "SnapshotsClient.BeginUpdate"
|
||||
|
@ -565,7 +565,7 @@ func (client *SnapshotsClient) updateCreateRequest(ctx context.Context, resource
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_List.json
|
||||
func ExampleSnapshotsClient_NewListPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -57,7 +57,7 @@ func ExampleSnapshotsClient_NewListPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Get.json
|
||||
func ExampleSnapshotsClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -88,7 +88,7 @@ func ExampleSnapshotsClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Create.json
|
||||
func ExampleSnapshotsClient_BeginCreate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -111,7 +111,7 @@ func ExampleSnapshotsClient_BeginCreate() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Update.json
|
||||
func ExampleSnapshotsClient_BeginUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -146,7 +146,7 @@ func ExampleSnapshotsClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Delete.json
|
||||
func ExampleSnapshotsClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -167,7 +167,7 @@ func ExampleSnapshotsClient_BeginDelete() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_SingleFileRestore.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_SingleFileRestore.json
|
||||
func ExampleSnapshotsClient_BeginRestoreFiles() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewSubvolumesClient(subscriptionID string, credential azcore.TokenCredentia
|
|||
// BeginCreate - Creates a subvolume in the path or clones the subvolume mentioned in the parentPath
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -75,7 +75,7 @@ func (client *SubvolumesClient) BeginCreate(ctx context.Context, resourceGroupNa
|
|||
// Create - Creates a subvolume in the path or clones the subvolume mentioned in the parentPath
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *SubvolumesClient) create(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, subvolumeName string, body SubvolumeInfo, options *SubvolumesClientBeginCreateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "SubvolumesClient.BeginCreate"
|
||||
|
@ -129,7 +129,7 @@ func (client *SubvolumesClient) createCreateRequest(ctx context.Context, resourc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -141,7 +141,7 @@ func (client *SubvolumesClient) createCreateRequest(ctx context.Context, resourc
|
|||
// BeginDelete - Delete subvolume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -169,7 +169,7 @@ func (client *SubvolumesClient) BeginDelete(ctx context.Context, resourceGroupNa
|
|||
// Delete - Delete subvolume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *SubvolumesClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, subvolumeName string, options *SubvolumesClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "SubvolumesClient.BeginDelete"
|
||||
|
@ -223,7 +223,7 @@ func (client *SubvolumesClient) deleteCreateRequest(ctx context.Context, resourc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -232,7 +232,7 @@ func (client *SubvolumesClient) deleteCreateRequest(ctx context.Context, resourc
|
|||
// Get - Returns the path associated with the subvolumeName provided
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -293,7 +293,7 @@ func (client *SubvolumesClient) getCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -311,7 +311,7 @@ func (client *SubvolumesClient) getHandleResponse(resp *http.Response) (Subvolum
|
|||
// BeginGetMetadata - Get details of the specified subvolume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -340,7 +340,7 @@ func (client *SubvolumesClient) BeginGetMetadata(ctx context.Context, resourceGr
|
|||
// GetMetadata - Get details of the specified subvolume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *SubvolumesClient) getMetadata(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, subvolumeName string, options *SubvolumesClientBeginGetMetadataOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "SubvolumesClient.BeginGetMetadata"
|
||||
|
@ -394,7 +394,7 @@ func (client *SubvolumesClient) getMetadataCreateRequest(ctx context.Context, re
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -402,7 +402,7 @@ func (client *SubvolumesClient) getMetadataCreateRequest(ctx context.Context, re
|
|||
|
||||
// NewListByVolumePager - Returns a list of the subvolumes in the volume
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -460,7 +460,7 @@ func (client *SubvolumesClient) listByVolumeCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -478,7 +478,7 @@ func (client *SubvolumesClient) listByVolumeHandleResponse(resp *http.Response)
|
|||
// BeginUpdate - Patch a subvolume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -507,7 +507,7 @@ func (client *SubvolumesClient) BeginUpdate(ctx context.Context, resourceGroupNa
|
|||
// Update - Patch a subvolume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *SubvolumesClient) update(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, subvolumeName string, body SubvolumePatchRequest, options *SubvolumesClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "SubvolumesClient.BeginUpdate"
|
||||
|
@ -561,7 +561,7 @@ func (client *SubvolumesClient) updateCreateRequest(ctx context.Context, resourc
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_List.json
|
||||
func ExampleSubvolumesClient_NewListByVolumePager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -55,7 +55,7 @@ func ExampleSubvolumesClient_NewListByVolumePager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Get.json
|
||||
func ExampleSubvolumesClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -84,7 +84,7 @@ func ExampleSubvolumesClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Create.json
|
||||
func ExampleSubvolumesClient_BeginCreate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -122,7 +122,7 @@ func ExampleSubvolumesClient_BeginCreate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Update.json
|
||||
func ExampleSubvolumesClient_BeginUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -159,7 +159,7 @@ func ExampleSubvolumesClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Delete.json
|
||||
func ExampleSubvolumesClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -180,7 +180,7 @@ func ExampleSubvolumesClient_BeginDelete() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_Metadata.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Metadata.json
|
||||
func ExampleSubvolumesClient_BeginGetMetadata() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewVolumeGroupsClient(subscriptionID string, credential azcore.TokenCredent
|
|||
// BeginCreate - Create a volume group along with specified volumes
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - volumeGroupName - The name of the volumeGroup
|
||||
|
@ -73,7 +73,7 @@ func (client *VolumeGroupsClient) BeginCreate(ctx context.Context, resourceGroup
|
|||
// Create - Create a volume group along with specified volumes
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumeGroupsClient) create(ctx context.Context, resourceGroupName string, accountName string, volumeGroupName string, body VolumeGroupDetails, options *VolumeGroupsClientBeginCreateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumeGroupsClient.BeginCreate"
|
||||
|
@ -119,7 +119,7 @@ func (client *VolumeGroupsClient) createCreateRequest(ctx context.Context, resou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -131,7 +131,7 @@ func (client *VolumeGroupsClient) createCreateRequest(ctx context.Context, resou
|
|||
// BeginDelete - Delete the specified volume group only if there are no volumes under volume group.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - volumeGroupName - The name of the volumeGroup
|
||||
|
@ -157,7 +157,7 @@ func (client *VolumeGroupsClient) BeginDelete(ctx context.Context, resourceGroup
|
|||
// Delete - Delete the specified volume group only if there are no volumes under volume group.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumeGroupsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, volumeGroupName string, options *VolumeGroupsClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumeGroupsClient.BeginDelete"
|
||||
|
@ -203,7 +203,7 @@ func (client *VolumeGroupsClient) deleteCreateRequest(ctx context.Context, resou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -212,7 +212,7 @@ func (client *VolumeGroupsClient) deleteCreateRequest(ctx context.Context, resou
|
|||
// Get - Get details of the specified volume group
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - volumeGroupName - The name of the volumeGroup
|
||||
|
@ -263,7 +263,7 @@ func (client *VolumeGroupsClient) getCreateRequest(ctx context.Context, resource
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -280,7 +280,7 @@ func (client *VolumeGroupsClient) getHandleResponse(resp *http.Response) (Volume
|
|||
|
||||
// NewListByNetAppAccountPager - List all volume groups for given account
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - VolumeGroupsClientListByNetAppAccountOptions contains the optional parameters for the VolumeGroupsClient.NewListByNetAppAccountPager
|
||||
|
@ -329,7 +329,7 @@ func (client *VolumeGroupsClient) listByNetAppAccountCreateRequest(ctx context.C
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_List_Oracle.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_Oracle.json
|
||||
func ExampleVolumeGroupsClient_NewListByNetAppAccountPager_volumeGroupsListOracle() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -61,7 +61,7 @@ func ExampleVolumeGroupsClient_NewListByNetAppAccountPager_volumeGroupsListOracl
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_List_SapHana.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_SapHana.json
|
||||
func ExampleVolumeGroupsClient_NewListByNetAppAccountPager_volumeGroupsListSapHana() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -104,7 +104,7 @@ func ExampleVolumeGroupsClient_NewListByNetAppAccountPager_volumeGroupsListSapHa
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_Get_Oracle.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_Oracle.json
|
||||
func ExampleVolumeGroupsClient_Get_volumeGroupsGetOracle() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -584,7 +584,7 @@ func ExampleVolumeGroupsClient_Get_volumeGroupsGetOracle() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_Get_SapHana.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_SapHana.json
|
||||
func ExampleVolumeGroupsClient_Get_volumeGroupsGetSapHana() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -800,7 +800,7 @@ func ExampleVolumeGroupsClient_Get_volumeGroupsGetSapHana() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_Create_Oracle.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_Oracle.json
|
||||
func ExampleVolumeGroupsClient_BeginCreate_volumeGroupsCreateOracle() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -1251,7 +1251,7 @@ func ExampleVolumeGroupsClient_BeginCreate_volumeGroupsCreateOracle() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_Create_SapHana.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_SapHana.json
|
||||
func ExampleVolumeGroupsClient_BeginCreate_volumeGroupsCreateSapHana() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -1452,7 +1452,7 @@ func ExampleVolumeGroupsClient_BeginCreate_volumeGroupsCreateSapHana() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Delete.json
|
||||
func ExampleVolumeGroupsClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewVolumeQuotaRulesClient(subscriptionID string, credential azcore.TokenCre
|
|||
// BeginCreate - Create the specified quota rule within the given volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -76,7 +76,7 @@ func (client *VolumeQuotaRulesClient) BeginCreate(ctx context.Context, resourceG
|
|||
// Create - Create the specified quota rule within the given volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumeQuotaRulesClient) create(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, volumeQuotaRuleName string, body VolumeQuotaRule, options *VolumeQuotaRulesClientBeginCreateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumeQuotaRulesClient.BeginCreate"
|
||||
|
@ -130,7 +130,7 @@ func (client *VolumeQuotaRulesClient) createCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -142,7 +142,7 @@ func (client *VolumeQuotaRulesClient) createCreateRequest(ctx context.Context, r
|
|||
// BeginDelete - Delete quota rule
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -171,7 +171,7 @@ func (client *VolumeQuotaRulesClient) BeginDelete(ctx context.Context, resourceG
|
|||
// Delete - Delete quota rule
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumeQuotaRulesClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, volumeQuotaRuleName string, options *VolumeQuotaRulesClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumeQuotaRulesClient.BeginDelete"
|
||||
|
@ -225,7 +225,7 @@ func (client *VolumeQuotaRulesClient) deleteCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -234,7 +234,7 @@ func (client *VolumeQuotaRulesClient) deleteCreateRequest(ctx context.Context, r
|
|||
// Get - Get details of the specified quota rule
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -295,7 +295,7 @@ func (client *VolumeQuotaRulesClient) getCreateRequest(ctx context.Context, reso
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -312,7 +312,7 @@ func (client *VolumeQuotaRulesClient) getHandleResponse(resp *http.Response) (Vo
|
|||
|
||||
// NewListByVolumePager - List all quota rules associated with the volume
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -371,7 +371,7 @@ func (client *VolumeQuotaRulesClient) listByVolumeCreateRequest(ctx context.Cont
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -389,7 +389,7 @@ func (client *VolumeQuotaRulesClient) listByVolumeHandleResponse(resp *http.Resp
|
|||
// BeginUpdate - Patch a quota rule
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -419,7 +419,7 @@ func (client *VolumeQuotaRulesClient) BeginUpdate(ctx context.Context, resourceG
|
|||
// Update - Patch a quota rule
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumeQuotaRulesClient) update(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, volumeQuotaRuleName string, body VolumeQuotaRulePatch, options *VolumeQuotaRulesClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumeQuotaRulesClient.BeginUpdate"
|
||||
|
@ -473,7 +473,7 @@ func (client *VolumeQuotaRulesClient) updateCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeQuotaRules_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_List.json
|
||||
func ExampleVolumeQuotaRulesClient_NewListByVolumePager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -58,7 +58,7 @@ func ExampleVolumeQuotaRulesClient_NewListByVolumePager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeQuotaRules_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Get.json
|
||||
func ExampleVolumeQuotaRulesClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -90,7 +90,7 @@ func ExampleVolumeQuotaRulesClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeQuotaRules_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Create.json
|
||||
func ExampleVolumeQuotaRulesClient_BeginCreate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -133,7 +133,7 @@ func ExampleVolumeQuotaRulesClient_BeginCreate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeQuotaRules_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Update.json
|
||||
func ExampleVolumeQuotaRulesClient_BeginUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -173,7 +173,7 @@ func ExampleVolumeQuotaRulesClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeQuotaRules_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Delete.json
|
||||
func ExampleVolumeQuotaRulesClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -44,10 +44,99 @@ func NewVolumesClient(subscriptionID string, credential azcore.TokenCredential,
|
|||
return client, nil
|
||||
}
|
||||
|
||||
// BeginAuthorizeExternalReplication - Starts SVM peering and returns a command to be run on the external ONTAP to accept
|
||||
// it. Once the SVM have been peered a SnapMirror will be created
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
// - volumeName - The name of the volume
|
||||
// - options - VolumesClientBeginAuthorizeExternalReplicationOptions contains the optional parameters for the VolumesClient.BeginAuthorizeExternalReplication
|
||||
// method.
|
||||
func (client *VolumesClient) BeginAuthorizeExternalReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginAuthorizeExternalReplicationOptions) (*runtime.Poller[VolumesClientAuthorizeExternalReplicationResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.authorizeExternalReplication(ctx, resourceGroupName, accountName, poolName, volumeName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VolumesClientAuthorizeExternalReplicationResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VolumesClientAuthorizeExternalReplicationResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// AuthorizeExternalReplication - Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once
|
||||
// the SVM have been peered a SnapMirror will be created
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) authorizeExternalReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginAuthorizeExternalReplicationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginAuthorizeExternalReplication"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.authorizeExternalReplicationCreateRequest(ctx, resourceGroupName, accountName, poolName, volumeName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpResp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) {
|
||||
err = runtime.NewResponseError(httpResp)
|
||||
return nil, err
|
||||
}
|
||||
return httpResp, nil
|
||||
}
|
||||
|
||||
// authorizeExternalReplicationCreateRequest creates the AuthorizeExternalReplication request.
|
||||
func (client *VolumesClient) authorizeExternalReplicationCreateRequest(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginAuthorizeExternalReplicationOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeExternalReplication"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if poolName == "" {
|
||||
return nil, errors.New("parameter poolName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{poolName}", url.PathEscape(poolName))
|
||||
if volumeName == "" {
|
||||
return nil, errors.New("parameter volumeName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{volumeName}", url.PathEscape(volumeName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// BeginAuthorizeReplication - Authorize the replication connection on the source volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -76,7 +165,7 @@ func (client *VolumesClient) BeginAuthorizeReplication(ctx context.Context, reso
|
|||
// AuthorizeReplication - Authorize the replication connection on the source volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) authorizeReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body AuthorizeRequest, options *VolumesClientBeginAuthorizeReplicationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginAuthorizeReplication"
|
||||
|
@ -126,7 +215,7 @@ func (client *VolumesClient) authorizeReplicationCreateRequest(ctx context.Conte
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -138,7 +227,7 @@ func (client *VolumesClient) authorizeReplicationCreateRequest(ctx context.Conte
|
|||
// BeginBreakFileLocks - Break all the file locks on a volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -166,7 +255,7 @@ func (client *VolumesClient) BeginBreakFileLocks(ctx context.Context, resourceGr
|
|||
// BreakFileLocks - Break all the file locks on a volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) breakFileLocks(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginBreakFileLocksOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginBreakFileLocks"
|
||||
|
@ -216,7 +305,7 @@ func (client *VolumesClient) breakFileLocksCreateRequest(ctx context.Context, re
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Body != nil {
|
||||
|
@ -231,7 +320,7 @@ func (client *VolumesClient) breakFileLocksCreateRequest(ctx context.Context, re
|
|||
// BeginBreakReplication - Break the replication connection on the destination volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -259,7 +348,7 @@ func (client *VolumesClient) BeginBreakReplication(ctx context.Context, resource
|
|||
// BreakReplication - Break the replication connection on the destination volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) breakReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginBreakReplicationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginBreakReplication"
|
||||
|
@ -309,7 +398,7 @@ func (client *VolumesClient) breakReplicationCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Body != nil {
|
||||
|
@ -324,7 +413,7 @@ func (client *VolumesClient) breakReplicationCreateRequest(ctx context.Context,
|
|||
// BeginCreateOrUpdate - Create or update the specified volume within the capacity pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -353,7 +442,7 @@ func (client *VolumesClient) BeginCreateOrUpdate(ctx context.Context, resourceGr
|
|||
// CreateOrUpdate - Create or update the specified volume within the capacity pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) createOrUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body Volume, options *VolumesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginCreateOrUpdate"
|
||||
|
@ -403,7 +492,7 @@ func (client *VolumesClient) createOrUpdateCreateRequest(ctx context.Context, re
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -415,7 +504,7 @@ func (client *VolumesClient) createOrUpdateCreateRequest(ctx context.Context, re
|
|||
// BeginDelete - Delete the specified volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -442,7 +531,7 @@ func (client *VolumesClient) BeginDelete(ctx context.Context, resourceGroupName
|
|||
// Delete - Delete the specified volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginDeleteOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginDelete"
|
||||
|
@ -492,7 +581,7 @@ func (client *VolumesClient) deleteCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
if options != nil && options.ForceDelete != nil {
|
||||
reqQP.Set("forceDelete", strconv.FormatBool(*options.ForceDelete))
|
||||
}
|
||||
|
@ -504,7 +593,7 @@ func (client *VolumesClient) deleteCreateRequest(ctx context.Context, resourceGr
|
|||
// BeginDeleteReplication - Delete the replication connection on the destination volume, and send release to the source replication
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -532,7 +621,7 @@ func (client *VolumesClient) BeginDeleteReplication(ctx context.Context, resourc
|
|||
// DeleteReplication - Delete the replication connection on the destination volume, and send release to the source replication
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) deleteReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginDeleteReplicationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginDeleteReplication"
|
||||
|
@ -582,7 +671,96 @@ func (client *VolumesClient) deleteReplicationCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// BeginFinalizeExternalReplication - Finalizes the migration of an external volume by releasing the replication and breaking
|
||||
// the external cluster peering if no other migration is active.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
// - volumeName - The name of the volume
|
||||
// - options - VolumesClientBeginFinalizeExternalReplicationOptions contains the optional parameters for the VolumesClient.BeginFinalizeExternalReplication
|
||||
// method.
|
||||
func (client *VolumesClient) BeginFinalizeExternalReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginFinalizeExternalReplicationOptions) (*runtime.Poller[VolumesClientFinalizeExternalReplicationResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.finalizeExternalReplication(ctx, resourceGroupName, accountName, poolName, volumeName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VolumesClientFinalizeExternalReplicationResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VolumesClientFinalizeExternalReplicationResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// FinalizeExternalReplication - Finalizes the migration of an external volume by releasing the replication and breaking the
|
||||
// external cluster peering if no other migration is active.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) finalizeExternalReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginFinalizeExternalReplicationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginFinalizeExternalReplication"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.finalizeExternalReplicationCreateRequest(ctx, resourceGroupName, accountName, poolName, volumeName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpResp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !runtime.HasStatusCode(httpResp, http.StatusAccepted) {
|
||||
err = runtime.NewResponseError(httpResp)
|
||||
return nil, err
|
||||
}
|
||||
return httpResp, nil
|
||||
}
|
||||
|
||||
// finalizeExternalReplicationCreateRequest creates the FinalizeExternalReplication request.
|
||||
func (client *VolumesClient) finalizeExternalReplicationCreateRequest(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginFinalizeExternalReplicationOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeExternalReplication"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if poolName == "" {
|
||||
return nil, errors.New("parameter poolName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{poolName}", url.PathEscape(poolName))
|
||||
if volumeName == "" {
|
||||
return nil, errors.New("parameter volumeName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{volumeName}", url.PathEscape(volumeName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -591,7 +769,7 @@ func (client *VolumesClient) deleteReplicationCreateRequest(ctx context.Context,
|
|||
// BeginFinalizeRelocation - Finalizes the relocation of the volume and cleans up the old volume.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -618,7 +796,7 @@ func (client *VolumesClient) BeginFinalizeRelocation(ctx context.Context, resour
|
|||
// FinalizeRelocation - Finalizes the relocation of the volume and cleans up the old volume.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) finalizeRelocation(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginFinalizeRelocationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginFinalizeRelocation"
|
||||
|
@ -668,7 +846,7 @@ func (client *VolumesClient) finalizeRelocationCreateRequest(ctx context.Context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -677,7 +855,7 @@ func (client *VolumesClient) finalizeRelocationCreateRequest(ctx context.Context
|
|||
// Get - Get the details of the specified volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -733,7 +911,7 @@ func (client *VolumesClient) getCreateRequest(ctx context.Context, resourceGroup
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -750,7 +928,7 @@ func (client *VolumesClient) getHandleResponse(resp *http.Response) (VolumesClie
|
|||
|
||||
// NewListPager - List all volumes within the capacity pool
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -802,7 +980,7 @@ func (client *VolumesClient) listCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -820,7 +998,7 @@ func (client *VolumesClient) listHandleResponse(resp *http.Response) (VolumesCli
|
|||
// BeginListGetGroupIDListForLdapUser - Returns the list of group Ids for a specific LDAP User
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -849,7 +1027,7 @@ func (client *VolumesClient) BeginListGetGroupIDListForLdapUser(ctx context.Cont
|
|||
// ListGetGroupIDListForLdapUser - Returns the list of group Ids for a specific LDAP User
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) listGetGroupIDListForLdapUser(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body GetGroupIDListForLDAPUserRequest, options *VolumesClientBeginListGetGroupIDListForLdapUserOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginListGetGroupIDListForLdapUser"
|
||||
|
@ -899,7 +1077,7 @@ func (client *VolumesClient) listGetGroupIDListForLdapUserCreateRequest(ctx cont
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -910,7 +1088,7 @@ func (client *VolumesClient) listGetGroupIDListForLdapUserCreateRequest(ctx cont
|
|||
|
||||
// NewListReplicationsPager - List all replications for a specified volume
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -969,7 +1147,7 @@ func (client *VolumesClient) listReplicationsCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -984,10 +1162,188 @@ func (client *VolumesClient) listReplicationsHandleResponse(resp *http.Response)
|
|||
return result, nil
|
||||
}
|
||||
|
||||
// BeginPeerExternalCluster - Starts peering the external cluster for this migration volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
// - volumeName - The name of the volume
|
||||
// - body - Cluster peer request object supplied in the body of the operation.
|
||||
// - options - VolumesClientBeginPeerExternalClusterOptions contains the optional parameters for the VolumesClient.BeginPeerExternalCluster
|
||||
// method.
|
||||
func (client *VolumesClient) BeginPeerExternalCluster(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body PeerClusterForVolumeMigrationRequest, options *VolumesClientBeginPeerExternalClusterOptions) (*runtime.Poller[VolumesClientPeerExternalClusterResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.peerExternalCluster(ctx, resourceGroupName, accountName, poolName, volumeName, body, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VolumesClientPeerExternalClusterResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VolumesClientPeerExternalClusterResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// PeerExternalCluster - Starts peering the external cluster for this migration volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) peerExternalCluster(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body PeerClusterForVolumeMigrationRequest, options *VolumesClientBeginPeerExternalClusterOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginPeerExternalCluster"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.peerExternalClusterCreateRequest(ctx, resourceGroupName, accountName, poolName, volumeName, body, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpResp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) {
|
||||
err = runtime.NewResponseError(httpResp)
|
||||
return nil, err
|
||||
}
|
||||
return httpResp, nil
|
||||
}
|
||||
|
||||
// peerExternalClusterCreateRequest creates the PeerExternalCluster request.
|
||||
func (client *VolumesClient) peerExternalClusterCreateRequest(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body PeerClusterForVolumeMigrationRequest, options *VolumesClientBeginPeerExternalClusterOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/peerExternalCluster"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if poolName == "" {
|
||||
return nil, errors.New("parameter poolName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{poolName}", url.PathEscape(poolName))
|
||||
if volumeName == "" {
|
||||
return nil, errors.New("parameter volumeName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{volumeName}", url.PathEscape(volumeName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// BeginPerformReplicationTransfer - Performs an adhoc replication transfer on a volume with volumeType Migration
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
// - volumeName - The name of the volume
|
||||
// - options - VolumesClientBeginPerformReplicationTransferOptions contains the optional parameters for the VolumesClient.BeginPerformReplicationTransfer
|
||||
// method.
|
||||
func (client *VolumesClient) BeginPerformReplicationTransfer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginPerformReplicationTransferOptions) (*runtime.Poller[VolumesClientPerformReplicationTransferResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.performReplicationTransfer(ctx, resourceGroupName, accountName, poolName, volumeName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VolumesClientPerformReplicationTransferResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VolumesClientPerformReplicationTransferResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// PerformReplicationTransfer - Performs an adhoc replication transfer on a volume with volumeType Migration
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) performReplicationTransfer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginPerformReplicationTransferOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginPerformReplicationTransfer"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.performReplicationTransferCreateRequest(ctx, resourceGroupName, accountName, poolName, volumeName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpResp, err := client.internal.Pipeline().Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !runtime.HasStatusCode(httpResp, http.StatusAccepted) {
|
||||
err = runtime.NewResponseError(httpResp)
|
||||
return nil, err
|
||||
}
|
||||
return httpResp, nil
|
||||
}
|
||||
|
||||
// performReplicationTransferCreateRequest creates the PerformReplicationTransfer request.
|
||||
func (client *VolumesClient) performReplicationTransferCreateRequest(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginPerformReplicationTransferOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/performReplicationTransfer"
|
||||
if client.subscriptionID == "" {
|
||||
return nil, errors.New("parameter client.subscriptionID cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID))
|
||||
if resourceGroupName == "" {
|
||||
return nil, errors.New("parameter resourceGroupName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName))
|
||||
if accountName == "" {
|
||||
return nil, errors.New("parameter accountName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName))
|
||||
if poolName == "" {
|
||||
return nil, errors.New("parameter poolName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{poolName}", url.PathEscape(poolName))
|
||||
if volumeName == "" {
|
||||
return nil, errors.New("parameter volumeName cannot be empty")
|
||||
}
|
||||
urlPath = strings.ReplaceAll(urlPath, "{volumeName}", url.PathEscape(volumeName))
|
||||
req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// BeginPoolChange - Moves volume to another pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1015,7 +1371,7 @@ func (client *VolumesClient) BeginPoolChange(ctx context.Context, resourceGroupN
|
|||
// PoolChange - Moves volume to another pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) poolChange(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body PoolChangeRequest, options *VolumesClientBeginPoolChangeOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginPoolChange"
|
||||
|
@ -1065,7 +1421,7 @@ func (client *VolumesClient) poolChangeCreateRequest(ctx context.Context, resour
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -1077,7 +1433,7 @@ func (client *VolumesClient) poolChangeCreateRequest(ctx context.Context, resour
|
|||
// BeginPopulateAvailabilityZone - This operation will populate availability zone information for a volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1105,7 +1461,7 @@ func (client *VolumesClient) BeginPopulateAvailabilityZone(ctx context.Context,
|
|||
// PopulateAvailabilityZone - This operation will populate availability zone information for a volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) populateAvailabilityZone(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginPopulateAvailabilityZoneOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginPopulateAvailabilityZone"
|
||||
|
@ -1155,7 +1511,7 @@ func (client *VolumesClient) populateAvailabilityZoneCreateRequest(ctx context.C
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1164,7 +1520,7 @@ func (client *VolumesClient) populateAvailabilityZoneCreateRequest(ctx context.C
|
|||
// BeginReInitializeReplication - Re-Initializes the replication connection on the destination volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1192,7 +1548,7 @@ func (client *VolumesClient) BeginReInitializeReplication(ctx context.Context, r
|
|||
// ReInitializeReplication - Re-Initializes the replication connection on the destination volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) reInitializeReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginReInitializeReplicationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginReInitializeReplication"
|
||||
|
@ -1242,7 +1598,7 @@ func (client *VolumesClient) reInitializeReplicationCreateRequest(ctx context.Co
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1252,7 +1608,7 @@ func (client *VolumesClient) reInitializeReplicationCreateRequest(ctx context.Co
|
|||
// or policy-based snapshots
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1282,7 +1638,7 @@ func (client *VolumesClient) BeginReestablishReplication(ctx context.Context, re
|
|||
// snapshots
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) reestablishReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body ReestablishReplicationRequest, options *VolumesClientBeginReestablishReplicationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginReestablishReplication"
|
||||
|
@ -1332,7 +1688,7 @@ func (client *VolumesClient) reestablishReplicationCreateRequest(ctx context.Con
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -1344,7 +1700,7 @@ func (client *VolumesClient) reestablishReplicationCreateRequest(ctx context.Con
|
|||
// BeginRelocate - Relocates volume to a new stamp
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1370,7 +1726,7 @@ func (client *VolumesClient) BeginRelocate(ctx context.Context, resourceGroupNam
|
|||
// Relocate - Relocates volume to a new stamp
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) relocate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginRelocateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginRelocate"
|
||||
|
@ -1420,7 +1776,7 @@ func (client *VolumesClient) relocateCreateRequest(ctx context.Context, resource
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Body != nil {
|
||||
|
@ -1435,7 +1791,7 @@ func (client *VolumesClient) relocateCreateRequest(ctx context.Context, resource
|
|||
// ReplicationStatus - Get the status of the replication
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1492,7 +1848,7 @@ func (client *VolumesClient) replicationStatusCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1510,7 +1866,7 @@ func (client *VolumesClient) replicationStatusHandleResponse(resp *http.Response
|
|||
// BeginResetCifsPassword - Reset cifs password from volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1537,7 +1893,7 @@ func (client *VolumesClient) BeginResetCifsPassword(ctx context.Context, resourc
|
|||
// ResetCifsPassword - Reset cifs password from volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) resetCifsPassword(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginResetCifsPasswordOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginResetCifsPassword"
|
||||
|
@ -1587,7 +1943,7 @@ func (client *VolumesClient) resetCifsPasswordCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1597,7 +1953,7 @@ func (client *VolumesClient) resetCifsPasswordCreateRequest(ctx context.Context,
|
|||
// it will reverse-resync the connection and sync from destination to source.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1626,7 +1982,7 @@ func (client *VolumesClient) BeginResyncReplication(ctx context.Context, resourc
|
|||
// reverse-resync the connection and sync from destination to source.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) resyncReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginResyncReplicationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginResyncReplication"
|
||||
|
@ -1676,7 +2032,7 @@ func (client *VolumesClient) resyncReplicationCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1685,7 +2041,7 @@ func (client *VolumesClient) resyncReplicationCreateRequest(ctx context.Context,
|
|||
// BeginRevert - Revert a volume to the snapshot specified in the body
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1713,7 +2069,7 @@ func (client *VolumesClient) BeginRevert(ctx context.Context, resourceGroupName
|
|||
// Revert - Revert a volume to the snapshot specified in the body
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) revert(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body VolumeRevert, options *VolumesClientBeginRevertOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginRevert"
|
||||
|
@ -1763,7 +2119,7 @@ func (client *VolumesClient) revertCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -1776,7 +2132,7 @@ func (client *VolumesClient) revertCreateRequest(ctx context.Context, resourceGr
|
|||
// volume.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1804,7 +2160,7 @@ func (client *VolumesClient) BeginRevertRelocation(ctx context.Context, resource
|
|||
// volume.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) revertRelocation(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginRevertRelocationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginRevertRelocation"
|
||||
|
@ -1854,7 +2210,7 @@ func (client *VolumesClient) revertRelocationCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1863,7 +2219,7 @@ func (client *VolumesClient) revertRelocationCreateRequest(ctx context.Context,
|
|||
// BeginUpdate - Patch the specified volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - poolName - The name of the capacity pool
|
||||
|
@ -1891,7 +2247,7 @@ func (client *VolumesClient) BeginUpdate(ctx context.Context, resourceGroupName
|
|||
// Update - Patch the specified volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-03-01
|
||||
// Generated from API version 2024-07-01
|
||||
func (client *VolumesClient) update(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body VolumePatch, options *VolumesClientBeginUpdateOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginUpdate"
|
||||
|
@ -1941,7 +2297,7 @@ func (client *VolumesClient) updateCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-03-01")
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
)
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_List.json
|
||||
func ExampleVolumesClient_NewListPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -64,7 +64,7 @@ func ExampleVolumesClient_NewListPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Get.json
|
||||
func ExampleVolumesClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -102,7 +102,7 @@ func ExampleVolumesClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_CreateOrUpdate.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_CreateOrUpdate.json
|
||||
func ExampleVolumesClient_BeginCreateOrUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -150,7 +150,7 @@ func ExampleVolumesClient_BeginCreateOrUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Update.json
|
||||
func ExampleVolumesClient_BeginUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -197,7 +197,7 @@ func ExampleVolumesClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Delete.json
|
||||
func ExampleVolumesClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -218,7 +218,7 @@ func ExampleVolumesClient_BeginDelete() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_PopulateAvailabilityZones.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PopulateAvailabilityZones.json
|
||||
func ExampleVolumesClient_BeginPopulateAvailabilityZone() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -260,7 +260,7 @@ func ExampleVolumesClient_BeginPopulateAvailabilityZone() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_Revert.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Revert.json
|
||||
func ExampleVolumesClient_BeginRevert() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -283,7 +283,7 @@ func ExampleVolumesClient_BeginRevert() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ResetCifsPassword.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResetCifsPassword.json
|
||||
func ExampleVolumesClient_BeginResetCifsPassword() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -304,7 +304,7 @@ func ExampleVolumesClient_BeginResetCifsPassword() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_BreakFileLocks.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakFileLocks.json
|
||||
func ExampleVolumesClient_BeginBreakFileLocks() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -329,7 +329,7 @@ func ExampleVolumesClient_BeginBreakFileLocks() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/GroupIdListForLDAPUser.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/GroupIdListForLDAPUser.json
|
||||
func ExampleVolumesClient_BeginListGetGroupIDListForLdapUser() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -360,7 +360,7 @@ func ExampleVolumesClient_BeginListGetGroupIDListForLdapUser() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_BreakReplication.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakReplication.json
|
||||
func ExampleVolumesClient_BeginBreakReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -384,7 +384,7 @@ func ExampleVolumesClient_BeginBreakReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ReestablishReplication.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReestablishReplication.json
|
||||
func ExampleVolumesClient_BeginReestablishReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -407,7 +407,7 @@ func ExampleVolumesClient_BeginReestablishReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ReplicationStatus.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReplicationStatus.json
|
||||
func ExampleVolumesClient_ReplicationStatus() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -434,7 +434,7 @@ func ExampleVolumesClient_ReplicationStatus() {
|
|||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ListReplications.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ListReplications.json
|
||||
func ExampleVolumesClient_NewListReplicationsPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -467,7 +467,7 @@ func ExampleVolumesClient_NewListReplicationsPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ResyncReplication.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResyncReplication.json
|
||||
func ExampleVolumesClient_BeginResyncReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -488,7 +488,7 @@ func ExampleVolumesClient_BeginResyncReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_DeleteReplication.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_DeleteReplication.json
|
||||
func ExampleVolumesClient_BeginDeleteReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -509,7 +509,7 @@ func ExampleVolumesClient_BeginDeleteReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_AuthorizeReplication.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeReplication.json
|
||||
func ExampleVolumesClient_BeginAuthorizeReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -532,7 +532,7 @@ func ExampleVolumesClient_BeginAuthorizeReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ReInitializeReplication.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReInitializeReplication.json
|
||||
func ExampleVolumesClient_BeginReInitializeReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -553,7 +553,111 @@ func ExampleVolumesClient_BeginReInitializeReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_PoolChange.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PeerExternalCluster.json
|
||||
func ExampleVolumesClient_BeginPeerExternalCluster() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to obtain a credential: %v", err)
|
||||
}
|
||||
ctx := context.Background()
|
||||
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to create client: %v", err)
|
||||
}
|
||||
poller, err := clientFactory.NewVolumesClient().BeginPeerExternalCluster(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.PeerClusterForVolumeMigrationRequest{
|
||||
PeerIPAddresses: []*string{
|
||||
to.Ptr("0.0.0.1"),
|
||||
to.Ptr("0.0.0.2"),
|
||||
to.Ptr("0.0.0.3"),
|
||||
to.Ptr("0.0.0.4"),
|
||||
to.Ptr("0.0.0.5"),
|
||||
to.Ptr("0.0.0.6")},
|
||||
}, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to finish the request: %v", err)
|
||||
}
|
||||
res, err := poller.PollUntilDone(ctx, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to pull the result: %v", err)
|
||||
}
|
||||
// You could use response here. We use blank identifier for just demo purposes.
|
||||
_ = res
|
||||
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
|
||||
// res.ClusterPeerCommandResponse = armnetapp.ClusterPeerCommandResponse{
|
||||
// PeerAcceptCommand: to.Ptr("cluster peer create -ipspace replication -encryption-protocol-proposed tls-psk -passphrase passphraseString -peer-addrs 1.1.1.1,1.1.1.2,1.1.1.3,1.1.1.4,1.1.1.5,1.1.1.6"),
|
||||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeExternalReplication.json
|
||||
func ExampleVolumesClient_BeginAuthorizeExternalReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to obtain a credential: %v", err)
|
||||
}
|
||||
ctx := context.Background()
|
||||
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to create client: %v", err)
|
||||
}
|
||||
poller, err := clientFactory.NewVolumesClient().BeginAuthorizeExternalReplication(ctx, "myRG", "account1", "pool1", "volume1", nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to finish the request: %v", err)
|
||||
}
|
||||
res, err := poller.PollUntilDone(ctx, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to pull the result: %v", err)
|
||||
}
|
||||
// You could use response here. We use blank identifier for just demo purposes.
|
||||
_ = res
|
||||
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
|
||||
// res.SvmPeerCommandResponse = armnetapp.SvmPeerCommandResponse{
|
||||
// SvmPeeringCommand: to.Ptr("vserver peer accept -vserver OnPremSvm -peer-vserver AnfSvm"),
|
||||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeExternalReplication.json
|
||||
func ExampleVolumesClient_BeginFinalizeExternalReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to obtain a credential: %v", err)
|
||||
}
|
||||
ctx := context.Background()
|
||||
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to create client: %v", err)
|
||||
}
|
||||
poller, err := clientFactory.NewVolumesClient().BeginFinalizeExternalReplication(ctx, "myRG", "account1", "pool1", "volume1", nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to finish the request: %v", err)
|
||||
}
|
||||
_, err = poller.PollUntilDone(ctx, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to pull the result: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PerformReplicationTransfer.json
|
||||
func ExampleVolumesClient_BeginPerformReplicationTransfer() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to obtain a credential: %v", err)
|
||||
}
|
||||
ctx := context.Background()
|
||||
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to create client: %v", err)
|
||||
}
|
||||
poller, err := clientFactory.NewVolumesClient().BeginPerformReplicationTransfer(ctx, "myRG", "account1", "pool1", "volume1", nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to finish the request: %v", err)
|
||||
}
|
||||
_, err = poller.PollUntilDone(ctx, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to pull the result: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PoolChange.json
|
||||
func ExampleVolumesClient_BeginPoolChange() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -576,7 +680,7 @@ func ExampleVolumesClient_BeginPoolChange() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_Relocate.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Relocate.json
|
||||
func ExampleVolumesClient_BeginRelocate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -597,7 +701,7 @@ func ExampleVolumesClient_BeginRelocate() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_FinalizeRelocation.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeRelocation.json
|
||||
func ExampleVolumesClient_BeginFinalizeRelocation() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -618,7 +722,7 @@ func ExampleVolumesClient_BeginFinalizeRelocation() {
|
|||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/c7b98b36e4023331545051284d8500adf98f02fe/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_RevertRelocation.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_RevertRelocation.json
|
||||
func ExampleVolumesClient_BeginRevertRelocation() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
Загрузка…
Ссылка в новой задаче