[Release] sdk/resourcemanager/netapp/armnetapp/7.4.0-beta.1 generation from spec commit: e838027e88cca634c1545e744630de9262a6e72a (#23771)
This commit is contained in:
Родитель
6bb3a65136
Коммит
9776c62f78
|
@ -1,5 +1,32 @@
|
|||
# Release History
|
||||
|
||||
## 7.4.0-beta.1 (2024-11-18)
|
||||
### Features Added
|
||||
|
||||
- New value `ServiceLevelFlexible` added to enum type `ServiceLevel`
|
||||
- New enum type `AcceptGrowCapacityPoolForShortTermCloneSplit` with values `AcceptGrowCapacityPoolForShortTermCloneSplitAccepted`, `AcceptGrowCapacityPoolForShortTermCloneSplitDeclined`
|
||||
- New enum type `ReplicationType` with values `ReplicationTypeCrossRegionReplication`, `ReplicationTypeCrossZoneReplication`
|
||||
- New enum type `VolumeLanguage` with values `VolumeLanguageAr`, `VolumeLanguageArUTF8`, `VolumeLanguageC`, `VolumeLanguageCUTF8`, `VolumeLanguageCs`, `VolumeLanguageCsUTF8`, `VolumeLanguageDa`, `VolumeLanguageDaUTF8`, `VolumeLanguageDe`, `VolumeLanguageDeUTF8`, `VolumeLanguageEn`, `VolumeLanguageEnUTF8`, `VolumeLanguageEnUs`, `VolumeLanguageEnUsUTF8`, `VolumeLanguageEs`, `VolumeLanguageEsUTF8`, `VolumeLanguageFi`, `VolumeLanguageFiUTF8`, `VolumeLanguageFr`, `VolumeLanguageFrUTF8`, `VolumeLanguageHe`, `VolumeLanguageHeUTF8`, `VolumeLanguageHr`, `VolumeLanguageHrUTF8`, `VolumeLanguageHu`, `VolumeLanguageHuUTF8`, `VolumeLanguageIt`, `VolumeLanguageItUTF8`, `VolumeLanguageJa`, `VolumeLanguageJaJp932`, `VolumeLanguageJaJp932UTF8`, `VolumeLanguageJaJpPck`, `VolumeLanguageJaJpPckUTF8`, `VolumeLanguageJaJpPckV2`, `VolumeLanguageJaJpPckV2UTF8`, `VolumeLanguageJaUTF8`, `VolumeLanguageJaV1`, `VolumeLanguageJaV1UTF8`, `VolumeLanguageKo`, `VolumeLanguageKoUTF8`, `VolumeLanguageNl`, `VolumeLanguageNlUTF8`, `VolumeLanguageNo`, `VolumeLanguageNoUTF8`, `VolumeLanguagePl`, `VolumeLanguagePlUTF8`, `VolumeLanguagePt`, `VolumeLanguagePtUTF8`, `VolumeLanguageRo`, `VolumeLanguageRoUTF8`, `VolumeLanguageRu`, `VolumeLanguageRuUTF8`, `VolumeLanguageSk`, `VolumeLanguageSkUTF8`, `VolumeLanguageSl`, `VolumeLanguageSlUTF8`, `VolumeLanguageSv`, `VolumeLanguageSvUTF8`, `VolumeLanguageTr`, `VolumeLanguageTrUTF8`, `VolumeLanguageUTF8Mb4`, `VolumeLanguageZh`, `VolumeLanguageZhGbk`, `VolumeLanguageZhGbkUTF8`, `VolumeLanguageZhTw`, `VolumeLanguageZhTwBig5`, `VolumeLanguageZhTwBig5UTF8`, `VolumeLanguageZhTwUTF8`, `VolumeLanguageZhUTF8`
|
||||
- New function `*AccountsClient.BeginChangeKeyVault(context.Context, string, string, *AccountsClientBeginChangeKeyVaultOptions) (*runtime.Poller[AccountsClientChangeKeyVaultResponse], error)`
|
||||
- New function `*AccountsClient.BeginGetChangeKeyVaultInformation(context.Context, string, string, *AccountsClientBeginGetChangeKeyVaultInformationOptions) (*runtime.Poller[AccountsClientGetChangeKeyVaultInformationResponse], error)`
|
||||
- New function `*AccountsClient.BeginTransitionToCmk(context.Context, string, string, *AccountsClientBeginTransitionToCmkOptions) (*runtime.Poller[AccountsClientTransitionToCmkResponse], error)`
|
||||
- New function `*VolumesClient.BeginListQuotaReport(context.Context, string, string, string, string, *VolumesClientBeginListQuotaReportOptions) (*runtime.Poller[VolumesClientListQuotaReportResponse], error)`
|
||||
- New function `*VolumesClient.BeginSplitCloneFromParent(context.Context, string, string, string, string, *VolumesClientBeginSplitCloneFromParentOptions) (*runtime.Poller[VolumesClientSplitCloneFromParentResponse], error)`
|
||||
- New struct `ChangeKeyVault`
|
||||
- New struct `DestinationReplication`
|
||||
- New struct `EncryptionTransitionRequest`
|
||||
- New struct `KeyVaultPrivateEndpoint`
|
||||
- New struct `ListQuotaReportResponse`
|
||||
- New struct `QuotaReport`
|
||||
- New field `IsMultiAdEnabled`, `NfsV4IDDomain` in struct `AccountProperties`
|
||||
- New field `IsLargeVolume` in struct `BackupProperties`
|
||||
- New field `FederatedClientID` in struct `EncryptionIdentity`
|
||||
- New field `CustomThroughputMibps` in struct `PoolPatchProperties`
|
||||
- New field `CustomThroughputMibps` in struct `PoolProperties`
|
||||
- New field `DestinationReplications` in struct `ReplicationObject`
|
||||
- New field `AcceptGrowCapacityPoolForShortTermCloneSplit`, `InheritedSizeInBytes`, `Language` in struct `VolumeProperties`
|
||||
|
||||
|
||||
## 7.3.0 (2024-10-23)
|
||||
### Features Added
|
||||
|
||||
|
|
|
@ -43,10 +43,95 @@ func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential,
|
|||
return client, nil
|
||||
}
|
||||
|
||||
// BeginChangeKeyVault - Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports
|
||||
// HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - AccountsClientBeginChangeKeyVaultOptions contains the optional parameters for the AccountsClient.BeginChangeKeyVault
|
||||
// method.
|
||||
func (client *AccountsClient) BeginChangeKeyVault(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginChangeKeyVaultOptions) (*runtime.Poller[AccountsClientChangeKeyVaultResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.changeKeyVault(ctx, resourceGroupName, accountName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[AccountsClientChangeKeyVaultResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[AccountsClientChangeKeyVaultResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// ChangeKeyVault - Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM
|
||||
// to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01-preview
|
||||
func (client *AccountsClient) changeKeyVault(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginChangeKeyVaultOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginChangeKeyVault"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.changeKeyVaultCreateRequest(ctx, resourceGroupName, accountName, 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
|
||||
}
|
||||
|
||||
// changeKeyVaultCreateRequest creates the ChangeKeyVault request.
|
||||
func (client *AccountsClient) changeKeyVaultCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginChangeKeyVaultOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/changeKeyVault"
|
||||
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))
|
||||
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-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Body != nil {
|
||||
if err := runtime.MarshalAsJSON(req, *options.Body); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return req, nil
|
||||
}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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 +158,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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 +200,7 @@ func (client *AccountsClient) createOrUpdateCreateRequest(ctx context.Context, r
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -127,7 +212,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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 +237,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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 +279,7 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -203,7 +288,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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 +334,7 @@ func (client *AccountsClient) getCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -264,9 +349,90 @@ func (client *AccountsClient) getHandleResponse(resp *http.Response) (AccountsCl
|
|||
return result, nil
|
||||
}
|
||||
|
||||
// BeginGetChangeKeyVaultInformation - Contains data from encryption.keyVaultProperties as well as information about which
|
||||
// private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as
|
||||
// request body for POST request.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - AccountsClientBeginGetChangeKeyVaultInformationOptions contains the optional parameters for the AccountsClient.BeginGetChangeKeyVaultInformation
|
||||
// method.
|
||||
func (client *AccountsClient) BeginGetChangeKeyVaultInformation(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginGetChangeKeyVaultInformationOptions) (*runtime.Poller[AccountsClientGetChangeKeyVaultInformationResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.getChangeKeyVaultInformation(ctx, resourceGroupName, accountName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[AccountsClientGetChangeKeyVaultInformationResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[AccountsClientGetChangeKeyVaultInformationResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// GetChangeKeyVaultInformation - Contains data from encryption.keyVaultProperties as well as information about which private
|
||||
// endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as
|
||||
// request body for POST request.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01-preview
|
||||
func (client *AccountsClient) getChangeKeyVaultInformation(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginGetChangeKeyVaultInformationOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginGetChangeKeyVaultInformation"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.getChangeKeyVaultInformationCreateRequest(ctx, resourceGroupName, accountName, 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
|
||||
}
|
||||
|
||||
// getChangeKeyVaultInformationCreateRequest creates the GetChangeKeyVaultInformation request.
|
||||
func (client *AccountsClient) getChangeKeyVaultInformationCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginGetChangeKeyVaultInformationOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/getKeyVaultStatus"
|
||||
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))
|
||||
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-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// NewListPager - List and describe all NetApp accounts in the resource group.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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 +474,7 @@ func (client *AccountsClient) listCreateRequest(ctx context.Context, resourceGro
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -325,7 +491,7 @@ func (client *AccountsClient) listHandleResponse(resp *http.Response) (AccountsC
|
|||
|
||||
// NewListBySubscriptionPager - List and describe all NetApp accounts in the subscription.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - options - AccountsClientListBySubscriptionOptions contains the optional parameters for the AccountsClient.NewListBySubscriptionPager
|
||||
// method.
|
||||
func (client *AccountsClient) NewListBySubscriptionPager(options *AccountsClientListBySubscriptionOptions) *runtime.Pager[AccountsClientListBySubscriptionResponse] {
|
||||
|
@ -363,7 +529,7 @@ func (client *AccountsClient) listBySubscriptionCreateRequest(ctx context.Contex
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -383,7 +549,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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 +577,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
func (client *AccountsClient) renewCredentials(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginRenewCredentialsOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginRenewCredentials"
|
||||
|
@ -453,16 +619,103 @@ func (client *AccountsClient) renewCredentialsCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// BeginTransitionToCmk - Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or
|
||||
// Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from
|
||||
// another account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - resourceGroupName - The name of the resource group. The name is case insensitive.
|
||||
// - accountName - The name of the NetApp account
|
||||
// - options - AccountsClientBeginTransitionToCmkOptions contains the optional parameters for the AccountsClient.BeginTransitionToCmk
|
||||
// method.
|
||||
func (client *AccountsClient) BeginTransitionToCmk(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginTransitionToCmkOptions) (*runtime.Poller[AccountsClientTransitionToCmkResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.transitionToCmk(ctx, resourceGroupName, accountName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[AccountsClientTransitionToCmkResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[AccountsClientTransitionToCmkResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// TransitionToCmk - Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure
|
||||
// Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from
|
||||
// another account.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01-preview
|
||||
func (client *AccountsClient) transitionToCmk(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginTransitionToCmkOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "AccountsClient.BeginTransitionToCmk"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.transitionToCmkCreateRequest(ctx, resourceGroupName, accountName, 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
|
||||
}
|
||||
|
||||
// transitionToCmkCreateRequest creates the TransitionToCmk request.
|
||||
func (client *AccountsClient) transitionToCmkCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginTransitionToCmkOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/transitiontocmk"
|
||||
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))
|
||||
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-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Body != nil {
|
||||
if err := runtime.MarshalAsJSON(req, *options.Body); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return req, nil
|
||||
}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// BeginUpdate - Patch the specified NetApp account
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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 +741,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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 +783,7 @@ func (client *AccountsClient) updateCreateRequest(ctx context.Context, resourceG
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdate.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdateAD.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_RenewCredentials.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_RenewCredentials.json
|
||||
func ExampleAccountsClient_BeginRenewCredentials() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -275,3 +275,80 @@ func ExampleAccountsClient_BeginRenewCredentials() {
|
|||
log.Fatalf("failed to pull the result: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_TransitionEncryptionKey.json
|
||||
func ExampleAccountsClient_BeginTransitionToCmk() {
|
||||
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.NewAccountsClient().BeginTransitionToCmk(ctx, "myRG", "account1", &armnetapp.AccountsClientBeginTransitionToCmkOptions{Body: &armnetapp.EncryptionTransitionRequest{
|
||||
PrivateEndpointID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"),
|
||||
VirtualNetworkID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1"),
|
||||
},
|
||||
})
|
||||
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/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_GetChangeKeyVaultInformation.json
|
||||
func ExampleAccountsClient_BeginGetChangeKeyVaultInformation() {
|
||||
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.NewAccountsClient().BeginGetChangeKeyVaultInformation(ctx, "myRG", "account1", 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/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_ChangeKeyVault.json
|
||||
func ExampleAccountsClient_BeginChangeKeyVault() {
|
||||
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.NewAccountsClient().BeginChangeKeyVault(ctx, "myRG", "account1", &armnetapp.AccountsClientBeginChangeKeyVaultOptions{Body: &armnetapp.ChangeKeyVault{
|
||||
KeyName: to.Ptr("rsakey"),
|
||||
KeyVaultPrivateEndpoints: []*armnetapp.KeyVaultPrivateEndpoint{
|
||||
{
|
||||
PrivateEndpointID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"),
|
||||
VirtualNetworkID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1"),
|
||||
}},
|
||||
KeyVaultResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.KeyVault/managedHSMs/my-hsm"),
|
||||
KeyVaultURI: to.Ptr("https://my-key-vault.managedhsm.azure.net"),
|
||||
},
|
||||
})
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
``` yaml
|
||||
azure-arm: true
|
||||
require:
|
||||
- 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
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/readme.md
|
||||
- https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/readme.go.md
|
||||
license-header: MICROSOFT_MIT_NO_VERSION
|
||||
module-version: 7.3.0
|
||||
tag: package-2024-07
|
||||
module-version: 7.4.0-beta.1
|
||||
tag: package-preview-2024-07-01-preview
|
||||
```
|
|
@ -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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestBackupStatus.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestRestoreStatus.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderAccount_Migrate.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_SingleFileRestore.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderVolume_Migrate.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Delete.json
|
||||
func ExampleBackupVaultsClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -10,9 +10,30 @@ package armnetapp
|
|||
|
||||
const (
|
||||
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp"
|
||||
moduleVersion = "v7.3.0"
|
||||
moduleVersion = "v7.4.0-beta.1"
|
||||
)
|
||||
|
||||
// AcceptGrowCapacityPoolForShortTermCloneSplit - While auto splitting the short term clone volume, if the parent pool does
|
||||
// not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased
|
||||
// billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted.
|
||||
type AcceptGrowCapacityPoolForShortTermCloneSplit string
|
||||
|
||||
const (
|
||||
// AcceptGrowCapacityPoolForShortTermCloneSplitAccepted - Auto grow capacity pool for short term clone split is accepted.
|
||||
AcceptGrowCapacityPoolForShortTermCloneSplitAccepted AcceptGrowCapacityPoolForShortTermCloneSplit = "Accepted"
|
||||
// AcceptGrowCapacityPoolForShortTermCloneSplitDeclined - Auto grow capacity pool for short term clone split is declined.
|
||||
// Short term clone volume creation will not be allowed, to create short term clone volume accept auto grow capacity pool.
|
||||
AcceptGrowCapacityPoolForShortTermCloneSplitDeclined AcceptGrowCapacityPoolForShortTermCloneSplit = "Declined"
|
||||
)
|
||||
|
||||
// PossibleAcceptGrowCapacityPoolForShortTermCloneSplitValues returns the possible values for the AcceptGrowCapacityPoolForShortTermCloneSplit const type.
|
||||
func PossibleAcceptGrowCapacityPoolForShortTermCloneSplitValues() []AcceptGrowCapacityPoolForShortTermCloneSplit {
|
||||
return []AcceptGrowCapacityPoolForShortTermCloneSplit{
|
||||
AcceptGrowCapacityPoolForShortTermCloneSplitAccepted,
|
||||
AcceptGrowCapacityPoolForShortTermCloneSplitDeclined,
|
||||
}
|
||||
}
|
||||
|
||||
// ActiveDirectoryStatus - Status of the Active Directory
|
||||
type ActiveDirectoryStatus string
|
||||
|
||||
|
@ -559,6 +580,24 @@ func PossibleReplicationScheduleValues() []ReplicationSchedule {
|
|||
}
|
||||
}
|
||||
|
||||
// ReplicationType - Indicates whether the replication is cross zone or cross region.
|
||||
type ReplicationType string
|
||||
|
||||
const (
|
||||
// ReplicationTypeCrossRegionReplication - Cross region replication
|
||||
ReplicationTypeCrossRegionReplication ReplicationType = "CrossRegionReplication"
|
||||
// ReplicationTypeCrossZoneReplication - Cross zone replication
|
||||
ReplicationTypeCrossZoneReplication ReplicationType = "CrossZoneReplication"
|
||||
)
|
||||
|
||||
// PossibleReplicationTypeValues returns the possible values for the ReplicationType const type.
|
||||
func PossibleReplicationTypeValues() []ReplicationType {
|
||||
return []ReplicationType{
|
||||
ReplicationTypeCrossRegionReplication,
|
||||
ReplicationTypeCrossZoneReplication,
|
||||
}
|
||||
}
|
||||
|
||||
// SecurityStyle - The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol
|
||||
type SecurityStyle string
|
||||
|
||||
|
@ -579,6 +618,8 @@ func PossibleSecurityStyleValues() []SecurityStyle {
|
|||
type ServiceLevel string
|
||||
|
||||
const (
|
||||
// ServiceLevelFlexible - Flexible service level
|
||||
ServiceLevelFlexible ServiceLevel = "Flexible"
|
||||
// ServiceLevelPremium - Premium service level
|
||||
ServiceLevelPremium ServiceLevel = "Premium"
|
||||
// ServiceLevelStandard - Standard service level
|
||||
|
@ -592,6 +633,7 @@ const (
|
|||
// PossibleServiceLevelValues returns the possible values for the ServiceLevel const type.
|
||||
func PossibleServiceLevelValues() []ServiceLevel {
|
||||
return []ServiceLevel{
|
||||
ServiceLevelFlexible,
|
||||
ServiceLevelPremium,
|
||||
ServiceLevelStandard,
|
||||
ServiceLevelStandardZRS,
|
||||
|
@ -636,7 +678,7 @@ func PossibleSmbNonBrowsableValues() []SmbNonBrowsable {
|
|||
}
|
||||
}
|
||||
|
||||
// Type - Type of quota
|
||||
// Type - Type of quota rule
|
||||
type Type string
|
||||
|
||||
const (
|
||||
|
@ -660,6 +702,225 @@ func PossibleTypeValues() []Type {
|
|||
}
|
||||
}
|
||||
|
||||
// VolumeLanguage - Language supported for volume.
|
||||
type VolumeLanguage string
|
||||
|
||||
const (
|
||||
// VolumeLanguageAr - Arabic - Deprecated
|
||||
VolumeLanguageAr VolumeLanguage = "ar"
|
||||
// VolumeLanguageArUTF8 - Arabic with UTF-8
|
||||
VolumeLanguageArUTF8 VolumeLanguage = "ar.utf-8"
|
||||
// VolumeLanguageC - Posix - Deprecated
|
||||
VolumeLanguageC VolumeLanguage = "c"
|
||||
// VolumeLanguageCUTF8 - Posix with UTF-8
|
||||
VolumeLanguageCUTF8 VolumeLanguage = "c.utf-8"
|
||||
// VolumeLanguageCs - Czech - Deprecated
|
||||
VolumeLanguageCs VolumeLanguage = "cs"
|
||||
// VolumeLanguageCsUTF8 - Czech with UTF-8
|
||||
VolumeLanguageCsUTF8 VolumeLanguage = "cs.utf-8"
|
||||
// VolumeLanguageDa - Danish - Deprecated
|
||||
VolumeLanguageDa VolumeLanguage = "da"
|
||||
// VolumeLanguageDaUTF8 - Danish with UTF-8
|
||||
VolumeLanguageDaUTF8 VolumeLanguage = "da.utf-8"
|
||||
// VolumeLanguageDe - German - Deprecated
|
||||
VolumeLanguageDe VolumeLanguage = "de"
|
||||
// VolumeLanguageDeUTF8 - German with UTF-8
|
||||
VolumeLanguageDeUTF8 VolumeLanguage = "de.utf-8"
|
||||
// VolumeLanguageEn - English - Deprecated
|
||||
VolumeLanguageEn VolumeLanguage = "en"
|
||||
// VolumeLanguageEnUTF8 - English with UTF-8
|
||||
VolumeLanguageEnUTF8 VolumeLanguage = "en.utf-8"
|
||||
// VolumeLanguageEnUs - US English - Deprecated
|
||||
VolumeLanguageEnUs VolumeLanguage = "en-us"
|
||||
// VolumeLanguageEnUsUTF8 - US English with UTF-8
|
||||
VolumeLanguageEnUsUTF8 VolumeLanguage = "en-us.utf-8"
|
||||
// VolumeLanguageEs - Spanish - Deprecated
|
||||
VolumeLanguageEs VolumeLanguage = "es"
|
||||
// VolumeLanguageEsUTF8 - Spanish with UTF-8
|
||||
VolumeLanguageEsUTF8 VolumeLanguage = "es.utf-8"
|
||||
// VolumeLanguageFi - Finnish - Deprecated
|
||||
VolumeLanguageFi VolumeLanguage = "fi"
|
||||
// VolumeLanguageFiUTF8 - Finnish with UTF-8
|
||||
VolumeLanguageFiUTF8 VolumeLanguage = "fi.utf-8"
|
||||
// VolumeLanguageFr - French - Deprecated
|
||||
VolumeLanguageFr VolumeLanguage = "fr"
|
||||
// VolumeLanguageFrUTF8 - French with UTF-8
|
||||
VolumeLanguageFrUTF8 VolumeLanguage = "fr.utf-8"
|
||||
// VolumeLanguageHe - Hebrew - Deprecated
|
||||
VolumeLanguageHe VolumeLanguage = "he"
|
||||
// VolumeLanguageHeUTF8 - Hebrew with UTF-8
|
||||
VolumeLanguageHeUTF8 VolumeLanguage = "he.utf-8"
|
||||
// VolumeLanguageHr - Croatian - Deprecated
|
||||
VolumeLanguageHr VolumeLanguage = "hr"
|
||||
// VolumeLanguageHrUTF8 - Croatian with UTF-8
|
||||
VolumeLanguageHrUTF8 VolumeLanguage = "hr.utf-8"
|
||||
// VolumeLanguageHu - Hungarian - Deprecated
|
||||
VolumeLanguageHu VolumeLanguage = "hu"
|
||||
// VolumeLanguageHuUTF8 - Hungarian with UTF-8
|
||||
VolumeLanguageHuUTF8 VolumeLanguage = "hu.utf-8"
|
||||
// VolumeLanguageIt - Italian - Deprecated
|
||||
VolumeLanguageIt VolumeLanguage = "it"
|
||||
// VolumeLanguageItUTF8 - Italian with UTF-8
|
||||
VolumeLanguageItUTF8 VolumeLanguage = "it.utf-8"
|
||||
// VolumeLanguageJa - Japanese euc-j - Deprecated
|
||||
VolumeLanguageJa VolumeLanguage = "ja"
|
||||
// VolumeLanguageJaJp932 - Japanese cp932
|
||||
VolumeLanguageJaJp932 VolumeLanguage = "ja-jp.932"
|
||||
// VolumeLanguageJaJp932UTF8 - Japanese cp932 with UTF-8 - Deprecated
|
||||
VolumeLanguageJaJp932UTF8 VolumeLanguage = "ja-jp.932.utf-8"
|
||||
// VolumeLanguageJaJpPck - Japanese pck
|
||||
VolumeLanguageJaJpPck VolumeLanguage = "ja-jp.pck"
|
||||
// VolumeLanguageJaJpPckUTF8 - Japanese pck with UTF-8 - Deprecated
|
||||
VolumeLanguageJaJpPckUTF8 VolumeLanguage = "ja-jp.pck.utf-8"
|
||||
// VolumeLanguageJaJpPckV2 - Japanese pck - sjis
|
||||
VolumeLanguageJaJpPckV2 VolumeLanguage = "ja-jp.pck-v2"
|
||||
// VolumeLanguageJaJpPckV2UTF8 - Japanese pck - sjis with UTF-8 - Deprecated
|
||||
VolumeLanguageJaJpPckV2UTF8 VolumeLanguage = "ja-jp.pck-v2.utf-8"
|
||||
// VolumeLanguageJaUTF8 - Japanese euc-j with UTF-8
|
||||
VolumeLanguageJaUTF8 VolumeLanguage = "ja.utf-8"
|
||||
// VolumeLanguageJaV1 - Japanese euc-j - Deprecated
|
||||
VolumeLanguageJaV1 VolumeLanguage = "ja-v1"
|
||||
// VolumeLanguageJaV1UTF8 - Japanese euc-j with UTF-8
|
||||
VolumeLanguageJaV1UTF8 VolumeLanguage = "ja-v1.utf-8"
|
||||
// VolumeLanguageKo - Korean - Deprecated
|
||||
VolumeLanguageKo VolumeLanguage = "ko"
|
||||
// VolumeLanguageKoUTF8 - Korean with UTF-8
|
||||
VolumeLanguageKoUTF8 VolumeLanguage = "ko.utf-8"
|
||||
// VolumeLanguageNl - Dutch - Deprecated
|
||||
VolumeLanguageNl VolumeLanguage = "nl"
|
||||
// VolumeLanguageNlUTF8 - Dutch with UTF-8
|
||||
VolumeLanguageNlUTF8 VolumeLanguage = "nl.utf-8"
|
||||
// VolumeLanguageNo - Norwegian - Deprecated
|
||||
VolumeLanguageNo VolumeLanguage = "no"
|
||||
// VolumeLanguageNoUTF8 - Norwegian with UTF-8
|
||||
VolumeLanguageNoUTF8 VolumeLanguage = "no.utf-8"
|
||||
// VolumeLanguagePl - Polish - Deprecated
|
||||
VolumeLanguagePl VolumeLanguage = "pl"
|
||||
// VolumeLanguagePlUTF8 - Polish with UTF-8
|
||||
VolumeLanguagePlUTF8 VolumeLanguage = "pl.utf-8"
|
||||
// VolumeLanguagePt - Portuguese - Deprecated
|
||||
VolumeLanguagePt VolumeLanguage = "pt"
|
||||
// VolumeLanguagePtUTF8 - Portuguese with UTF-8
|
||||
VolumeLanguagePtUTF8 VolumeLanguage = "pt.utf-8"
|
||||
// VolumeLanguageRo - Romanian - Deprecated
|
||||
VolumeLanguageRo VolumeLanguage = "ro"
|
||||
// VolumeLanguageRoUTF8 - Romanian with UTF-8
|
||||
VolumeLanguageRoUTF8 VolumeLanguage = "ro.utf-8"
|
||||
// VolumeLanguageRu - Russian - Deprecated
|
||||
VolumeLanguageRu VolumeLanguage = "ru"
|
||||
// VolumeLanguageRuUTF8 - Russian with UTF-8
|
||||
VolumeLanguageRuUTF8 VolumeLanguage = "ru.utf-8"
|
||||
// VolumeLanguageSk - Slovak - Deprecated
|
||||
VolumeLanguageSk VolumeLanguage = "sk"
|
||||
// VolumeLanguageSkUTF8 - Slovak with UTF-8
|
||||
VolumeLanguageSkUTF8 VolumeLanguage = "sk.utf-8"
|
||||
// VolumeLanguageSl - Slovenian - Deprecated
|
||||
VolumeLanguageSl VolumeLanguage = "sl"
|
||||
// VolumeLanguageSlUTF8 - Slovenian with UTF-8
|
||||
VolumeLanguageSlUTF8 VolumeLanguage = "sl.utf-8"
|
||||
// VolumeLanguageSv - Swedish - Deprecated
|
||||
VolumeLanguageSv VolumeLanguage = "sv"
|
||||
// VolumeLanguageSvUTF8 - Swedish with UTF-8
|
||||
VolumeLanguageSvUTF8 VolumeLanguage = "sv.utf-8"
|
||||
// VolumeLanguageTr - Turkish - Deprecated
|
||||
VolumeLanguageTr VolumeLanguage = "tr"
|
||||
// VolumeLanguageTrUTF8 - Turkish with UTF-8
|
||||
VolumeLanguageTrUTF8 VolumeLanguage = "tr.utf-8"
|
||||
// VolumeLanguageUTF8Mb4 - UTF-8 with 4 byte character support
|
||||
VolumeLanguageUTF8Mb4 VolumeLanguage = "utf8mb4"
|
||||
// VolumeLanguageZh - Simplified Chinese - Deprecated
|
||||
VolumeLanguageZh VolumeLanguage = "zh"
|
||||
// VolumeLanguageZhGbk - Simplified gbk Chinese
|
||||
VolumeLanguageZhGbk VolumeLanguage = "zh.gbk"
|
||||
// VolumeLanguageZhGbkUTF8 - Simplified gbk Chinese with UTF-8 - Deprecated
|
||||
VolumeLanguageZhGbkUTF8 VolumeLanguage = "zh.gbk.utf-8"
|
||||
// VolumeLanguageZhTw - Traditional Chinese EUC-TW
|
||||
VolumeLanguageZhTw VolumeLanguage = "zh-tw"
|
||||
// VolumeLanguageZhTwBig5 - Traditional Chinese BIG 5
|
||||
VolumeLanguageZhTwBig5 VolumeLanguage = "zh-tw.big5"
|
||||
// VolumeLanguageZhTwBig5UTF8 - Traditional Chinese BIG 5 with UTF-8 - Deprecated
|
||||
VolumeLanguageZhTwBig5UTF8 VolumeLanguage = "zh-tw.big5.utf-8"
|
||||
// VolumeLanguageZhTwUTF8 - Traditional Chinese EUC-TW with UTF-8 - Deprecated
|
||||
VolumeLanguageZhTwUTF8 VolumeLanguage = "zh-tw.utf-8"
|
||||
// VolumeLanguageZhUTF8 - Simplified Chinese with UTF-8
|
||||
VolumeLanguageZhUTF8 VolumeLanguage = "zh.utf-8"
|
||||
)
|
||||
|
||||
// PossibleVolumeLanguageValues returns the possible values for the VolumeLanguage const type.
|
||||
func PossibleVolumeLanguageValues() []VolumeLanguage {
|
||||
return []VolumeLanguage{
|
||||
VolumeLanguageAr,
|
||||
VolumeLanguageArUTF8,
|
||||
VolumeLanguageC,
|
||||
VolumeLanguageCUTF8,
|
||||
VolumeLanguageCs,
|
||||
VolumeLanguageCsUTF8,
|
||||
VolumeLanguageDa,
|
||||
VolumeLanguageDaUTF8,
|
||||
VolumeLanguageDe,
|
||||
VolumeLanguageDeUTF8,
|
||||
VolumeLanguageEn,
|
||||
VolumeLanguageEnUTF8,
|
||||
VolumeLanguageEnUs,
|
||||
VolumeLanguageEnUsUTF8,
|
||||
VolumeLanguageEs,
|
||||
VolumeLanguageEsUTF8,
|
||||
VolumeLanguageFi,
|
||||
VolumeLanguageFiUTF8,
|
||||
VolumeLanguageFr,
|
||||
VolumeLanguageFrUTF8,
|
||||
VolumeLanguageHe,
|
||||
VolumeLanguageHeUTF8,
|
||||
VolumeLanguageHr,
|
||||
VolumeLanguageHrUTF8,
|
||||
VolumeLanguageHu,
|
||||
VolumeLanguageHuUTF8,
|
||||
VolumeLanguageIt,
|
||||
VolumeLanguageItUTF8,
|
||||
VolumeLanguageJa,
|
||||
VolumeLanguageJaJp932,
|
||||
VolumeLanguageJaJp932UTF8,
|
||||
VolumeLanguageJaJpPck,
|
||||
VolumeLanguageJaJpPckUTF8,
|
||||
VolumeLanguageJaJpPckV2,
|
||||
VolumeLanguageJaJpPckV2UTF8,
|
||||
VolumeLanguageJaUTF8,
|
||||
VolumeLanguageJaV1,
|
||||
VolumeLanguageJaV1UTF8,
|
||||
VolumeLanguageKo,
|
||||
VolumeLanguageKoUTF8,
|
||||
VolumeLanguageNl,
|
||||
VolumeLanguageNlUTF8,
|
||||
VolumeLanguageNo,
|
||||
VolumeLanguageNoUTF8,
|
||||
VolumeLanguagePl,
|
||||
VolumeLanguagePlUTF8,
|
||||
VolumeLanguagePt,
|
||||
VolumeLanguagePtUTF8,
|
||||
VolumeLanguageRo,
|
||||
VolumeLanguageRoUTF8,
|
||||
VolumeLanguageRu,
|
||||
VolumeLanguageRuUTF8,
|
||||
VolumeLanguageSk,
|
||||
VolumeLanguageSkUTF8,
|
||||
VolumeLanguageSl,
|
||||
VolumeLanguageSlUTF8,
|
||||
VolumeLanguageSv,
|
||||
VolumeLanguageSvUTF8,
|
||||
VolumeLanguageTr,
|
||||
VolumeLanguageTrUTF8,
|
||||
VolumeLanguageUTF8Mb4,
|
||||
VolumeLanguageZh,
|
||||
VolumeLanguageZhGbk,
|
||||
VolumeLanguageZhGbkUTF8,
|
||||
VolumeLanguageZhTw,
|
||||
VolumeLanguageZhTwBig5,
|
||||
VolumeLanguageZhTwBig5UTF8,
|
||||
VolumeLanguageZhTwUTF8,
|
||||
VolumeLanguageZhUTF8,
|
||||
}
|
||||
}
|
||||
|
||||
// VolumeStorageToNetworkProximity - Provides storage to network proximity information for the volume.
|
||||
type VolumeStorageToNetworkProximity string
|
||||
|
||||
|
|
|
@ -19,11 +19,16 @@ import (
|
|||
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"reflect"
|
||||
"regexp"
|
||||
)
|
||||
|
||||
// AccountsServer is a fake server for instances of the armnetapp.AccountsClient type.
|
||||
type AccountsServer struct {
|
||||
// BeginChangeKeyVault is the fake for method AccountsClient.BeginChangeKeyVault
|
||||
// HTTP status codes to indicate success: http.StatusAccepted
|
||||
BeginChangeKeyVault func(ctx context.Context, resourceGroupName string, accountName string, options *armnetapp.AccountsClientBeginChangeKeyVaultOptions) (resp azfake.PollerResponder[armnetapp.AccountsClientChangeKeyVaultResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginCreateOrUpdate is the fake for method AccountsClient.BeginCreateOrUpdate
|
||||
// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
|
||||
BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, accountName string, body armnetapp.Account, options *armnetapp.AccountsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnetapp.AccountsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)
|
||||
|
@ -36,6 +41,10 @@ type AccountsServer struct {
|
|||
// HTTP status codes to indicate success: http.StatusOK
|
||||
Get func(ctx context.Context, resourceGroupName string, accountName string, options *armnetapp.AccountsClientGetOptions) (resp azfake.Responder[armnetapp.AccountsClientGetResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginGetChangeKeyVaultInformation is the fake for method AccountsClient.BeginGetChangeKeyVaultInformation
|
||||
// HTTP status codes to indicate success: http.StatusAccepted
|
||||
BeginGetChangeKeyVaultInformation func(ctx context.Context, resourceGroupName string, accountName string, options *armnetapp.AccountsClientBeginGetChangeKeyVaultInformationOptions) (resp azfake.PollerResponder[armnetapp.AccountsClientGetChangeKeyVaultInformationResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// NewListPager is the fake for method AccountsClient.NewListPager
|
||||
// HTTP status codes to indicate success: http.StatusOK
|
||||
NewListPager func(resourceGroupName string, options *armnetapp.AccountsClientListOptions) (resp azfake.PagerResponder[armnetapp.AccountsClientListResponse])
|
||||
|
@ -48,6 +57,10 @@ type AccountsServer struct {
|
|||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginRenewCredentials func(ctx context.Context, resourceGroupName string, accountName string, options *armnetapp.AccountsClientBeginRenewCredentialsOptions) (resp azfake.PollerResponder[armnetapp.AccountsClientRenewCredentialsResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginTransitionToCmk is the fake for method AccountsClient.BeginTransitionToCmk
|
||||
// HTTP status codes to indicate success: http.StatusAccepted
|
||||
BeginTransitionToCmk func(ctx context.Context, resourceGroupName string, accountName string, options *armnetapp.AccountsClientBeginTransitionToCmkOptions) (resp azfake.PollerResponder[armnetapp.AccountsClientTransitionToCmkResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginUpdate is the fake for method AccountsClient.BeginUpdate
|
||||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginUpdate func(ctx context.Context, resourceGroupName string, accountName string, body armnetapp.AccountPatch, options *armnetapp.AccountsClientBeginUpdateOptions) (resp azfake.PollerResponder[armnetapp.AccountsClientUpdateResponse], errResp azfake.ErrorResponder)
|
||||
|
@ -58,26 +71,32 @@ type AccountsServer struct {
|
|||
// azcore.ClientOptions.Transporter field in the client's constructor parameters.
|
||||
func NewAccountsServerTransport(srv *AccountsServer) *AccountsServerTransport {
|
||||
return &AccountsServerTransport{
|
||||
srv: srv,
|
||||
beginCreateOrUpdate: newTracker[azfake.PollerResponder[armnetapp.AccountsClientCreateOrUpdateResponse]](),
|
||||
beginDelete: newTracker[azfake.PollerResponder[armnetapp.AccountsClientDeleteResponse]](),
|
||||
newListPager: newTracker[azfake.PagerResponder[armnetapp.AccountsClientListResponse]](),
|
||||
newListBySubscriptionPager: newTracker[azfake.PagerResponder[armnetapp.AccountsClientListBySubscriptionResponse]](),
|
||||
beginRenewCredentials: newTracker[azfake.PollerResponder[armnetapp.AccountsClientRenewCredentialsResponse]](),
|
||||
beginUpdate: newTracker[azfake.PollerResponder[armnetapp.AccountsClientUpdateResponse]](),
|
||||
srv: srv,
|
||||
beginChangeKeyVault: newTracker[azfake.PollerResponder[armnetapp.AccountsClientChangeKeyVaultResponse]](),
|
||||
beginCreateOrUpdate: newTracker[azfake.PollerResponder[armnetapp.AccountsClientCreateOrUpdateResponse]](),
|
||||
beginDelete: newTracker[azfake.PollerResponder[armnetapp.AccountsClientDeleteResponse]](),
|
||||
beginGetChangeKeyVaultInformation: newTracker[azfake.PollerResponder[armnetapp.AccountsClientGetChangeKeyVaultInformationResponse]](),
|
||||
newListPager: newTracker[azfake.PagerResponder[armnetapp.AccountsClientListResponse]](),
|
||||
newListBySubscriptionPager: newTracker[azfake.PagerResponder[armnetapp.AccountsClientListBySubscriptionResponse]](),
|
||||
beginRenewCredentials: newTracker[azfake.PollerResponder[armnetapp.AccountsClientRenewCredentialsResponse]](),
|
||||
beginTransitionToCmk: newTracker[azfake.PollerResponder[armnetapp.AccountsClientTransitionToCmkResponse]](),
|
||||
beginUpdate: newTracker[azfake.PollerResponder[armnetapp.AccountsClientUpdateResponse]](),
|
||||
}
|
||||
}
|
||||
|
||||
// AccountsServerTransport connects instances of armnetapp.AccountsClient to instances of AccountsServer.
|
||||
// Don't use this type directly, use NewAccountsServerTransport instead.
|
||||
type AccountsServerTransport struct {
|
||||
srv *AccountsServer
|
||||
beginCreateOrUpdate *tracker[azfake.PollerResponder[armnetapp.AccountsClientCreateOrUpdateResponse]]
|
||||
beginDelete *tracker[azfake.PollerResponder[armnetapp.AccountsClientDeleteResponse]]
|
||||
newListPager *tracker[azfake.PagerResponder[armnetapp.AccountsClientListResponse]]
|
||||
newListBySubscriptionPager *tracker[azfake.PagerResponder[armnetapp.AccountsClientListBySubscriptionResponse]]
|
||||
beginRenewCredentials *tracker[azfake.PollerResponder[armnetapp.AccountsClientRenewCredentialsResponse]]
|
||||
beginUpdate *tracker[azfake.PollerResponder[armnetapp.AccountsClientUpdateResponse]]
|
||||
srv *AccountsServer
|
||||
beginChangeKeyVault *tracker[azfake.PollerResponder[armnetapp.AccountsClientChangeKeyVaultResponse]]
|
||||
beginCreateOrUpdate *tracker[azfake.PollerResponder[armnetapp.AccountsClientCreateOrUpdateResponse]]
|
||||
beginDelete *tracker[azfake.PollerResponder[armnetapp.AccountsClientDeleteResponse]]
|
||||
beginGetChangeKeyVaultInformation *tracker[azfake.PollerResponder[armnetapp.AccountsClientGetChangeKeyVaultInformationResponse]]
|
||||
newListPager *tracker[azfake.PagerResponder[armnetapp.AccountsClientListResponse]]
|
||||
newListBySubscriptionPager *tracker[azfake.PagerResponder[armnetapp.AccountsClientListBySubscriptionResponse]]
|
||||
beginRenewCredentials *tracker[azfake.PollerResponder[armnetapp.AccountsClientRenewCredentialsResponse]]
|
||||
beginTransitionToCmk *tracker[azfake.PollerResponder[armnetapp.AccountsClientTransitionToCmkResponse]]
|
||||
beginUpdate *tracker[azfake.PollerResponder[armnetapp.AccountsClientUpdateResponse]]
|
||||
}
|
||||
|
||||
// Do implements the policy.Transporter interface for AccountsServerTransport.
|
||||
|
@ -92,18 +111,24 @@ func (a *AccountsServerTransport) Do(req *http.Request) (*http.Response, error)
|
|||
var err error
|
||||
|
||||
switch method {
|
||||
case "AccountsClient.BeginChangeKeyVault":
|
||||
resp, err = a.dispatchBeginChangeKeyVault(req)
|
||||
case "AccountsClient.BeginCreateOrUpdate":
|
||||
resp, err = a.dispatchBeginCreateOrUpdate(req)
|
||||
case "AccountsClient.BeginDelete":
|
||||
resp, err = a.dispatchBeginDelete(req)
|
||||
case "AccountsClient.Get":
|
||||
resp, err = a.dispatchGet(req)
|
||||
case "AccountsClient.BeginGetChangeKeyVaultInformation":
|
||||
resp, err = a.dispatchBeginGetChangeKeyVaultInformation(req)
|
||||
case "AccountsClient.NewListPager":
|
||||
resp, err = a.dispatchNewListPager(req)
|
||||
case "AccountsClient.NewListBySubscriptionPager":
|
||||
resp, err = a.dispatchNewListBySubscriptionPager(req)
|
||||
case "AccountsClient.BeginRenewCredentials":
|
||||
resp, err = a.dispatchBeginRenewCredentials(req)
|
||||
case "AccountsClient.BeginTransitionToCmk":
|
||||
resp, err = a.dispatchBeginTransitionToCmk(req)
|
||||
case "AccountsClient.BeginUpdate":
|
||||
resp, err = a.dispatchBeginUpdate(req)
|
||||
default:
|
||||
|
@ -117,6 +142,60 @@ func (a *AccountsServerTransport) Do(req *http.Request) (*http.Response, error)
|
|||
return resp, nil
|
||||
}
|
||||
|
||||
func (a *AccountsServerTransport) dispatchBeginChangeKeyVault(req *http.Request) (*http.Response, error) {
|
||||
if a.srv.BeginChangeKeyVault == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginChangeKeyVault not implemented")}
|
||||
}
|
||||
beginChangeKeyVault := a.beginChangeKeyVault.get(req)
|
||||
if beginChangeKeyVault == 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~%@]+)/changeKeyVault`
|
||||
regex := regexp.MustCompile(regexStr)
|
||||
matches := regex.FindStringSubmatch(req.URL.EscapedPath())
|
||||
if matches == nil || len(matches) < 3 {
|
||||
return nil, fmt.Errorf("failed to parse path %s", req.URL.Path)
|
||||
}
|
||||
body, err := server.UnmarshalRequestAsJSON[armnetapp.ChangeKeyVault](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
|
||||
}
|
||||
var options *armnetapp.AccountsClientBeginChangeKeyVaultOptions
|
||||
if !reflect.ValueOf(body).IsZero() {
|
||||
options = &armnetapp.AccountsClientBeginChangeKeyVaultOptions{
|
||||
Body: &body,
|
||||
}
|
||||
}
|
||||
respr, errRespr := a.srv.BeginChangeKeyVault(req.Context(), resourceGroupNameParam, accountNameParam, options)
|
||||
if respErr := server.GetError(errRespr, req); respErr != nil {
|
||||
return nil, respErr
|
||||
}
|
||||
beginChangeKeyVault = &respr
|
||||
a.beginChangeKeyVault.add(req, beginChangeKeyVault)
|
||||
}
|
||||
|
||||
resp, err := server.PollerResponderNext(beginChangeKeyVault, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !contains([]int{http.StatusAccepted}, resp.StatusCode) {
|
||||
a.beginChangeKeyVault.remove(req)
|
||||
return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted", resp.StatusCode)}
|
||||
}
|
||||
if !server.PollerResponderMore(beginChangeKeyVault) {
|
||||
a.beginChangeKeyVault.remove(req)
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (a *AccountsServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) {
|
||||
if a.srv.BeginCreateOrUpdate == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginCreateOrUpdate not implemented")}
|
||||
|
@ -242,6 +321,50 @@ func (a *AccountsServerTransport) dispatchGet(req *http.Request) (*http.Response
|
|||
return resp, nil
|
||||
}
|
||||
|
||||
func (a *AccountsServerTransport) dispatchBeginGetChangeKeyVaultInformation(req *http.Request) (*http.Response, error) {
|
||||
if a.srv.BeginGetChangeKeyVaultInformation == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginGetChangeKeyVaultInformation not implemented")}
|
||||
}
|
||||
beginGetChangeKeyVaultInformation := a.beginGetChangeKeyVaultInformation.get(req)
|
||||
if beginGetChangeKeyVaultInformation == 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~%@]+)/getKeyVaultStatus`
|
||||
regex := regexp.MustCompile(regexStr)
|
||||
matches := regex.FindStringSubmatch(req.URL.EscapedPath())
|
||||
if matches == nil || len(matches) < 3 {
|
||||
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
|
||||
}
|
||||
respr, errRespr := a.srv.BeginGetChangeKeyVaultInformation(req.Context(), resourceGroupNameParam, accountNameParam, nil)
|
||||
if respErr := server.GetError(errRespr, req); respErr != nil {
|
||||
return nil, respErr
|
||||
}
|
||||
beginGetChangeKeyVaultInformation = &respr
|
||||
a.beginGetChangeKeyVaultInformation.add(req, beginGetChangeKeyVaultInformation)
|
||||
}
|
||||
|
||||
resp, err := server.PollerResponderNext(beginGetChangeKeyVaultInformation, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !contains([]int{http.StatusAccepted}, resp.StatusCode) {
|
||||
a.beginGetChangeKeyVaultInformation.remove(req)
|
||||
return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted", resp.StatusCode)}
|
||||
}
|
||||
if !server.PollerResponderMore(beginGetChangeKeyVaultInformation) {
|
||||
a.beginGetChangeKeyVaultInformation.remove(req)
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (a *AccountsServerTransport) dispatchNewListPager(req *http.Request) (*http.Response, error) {
|
||||
if a.srv.NewListPager == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method NewListPager not implemented")}
|
||||
|
@ -356,6 +479,60 @@ func (a *AccountsServerTransport) dispatchBeginRenewCredentials(req *http.Reques
|
|||
return resp, nil
|
||||
}
|
||||
|
||||
func (a *AccountsServerTransport) dispatchBeginTransitionToCmk(req *http.Request) (*http.Response, error) {
|
||||
if a.srv.BeginTransitionToCmk == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginTransitionToCmk not implemented")}
|
||||
}
|
||||
beginTransitionToCmk := a.beginTransitionToCmk.get(req)
|
||||
if beginTransitionToCmk == 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~%@]+)/transitiontocmk`
|
||||
regex := regexp.MustCompile(regexStr)
|
||||
matches := regex.FindStringSubmatch(req.URL.EscapedPath())
|
||||
if matches == nil || len(matches) < 3 {
|
||||
return nil, fmt.Errorf("failed to parse path %s", req.URL.Path)
|
||||
}
|
||||
body, err := server.UnmarshalRequestAsJSON[armnetapp.EncryptionTransitionRequest](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
|
||||
}
|
||||
var options *armnetapp.AccountsClientBeginTransitionToCmkOptions
|
||||
if !reflect.ValueOf(body).IsZero() {
|
||||
options = &armnetapp.AccountsClientBeginTransitionToCmkOptions{
|
||||
Body: &body,
|
||||
}
|
||||
}
|
||||
respr, errRespr := a.srv.BeginTransitionToCmk(req.Context(), resourceGroupNameParam, accountNameParam, options)
|
||||
if respErr := server.GetError(errRespr, req); respErr != nil {
|
||||
return nil, respErr
|
||||
}
|
||||
beginTransitionToCmk = &respr
|
||||
a.beginTransitionToCmk.add(req, beginTransitionToCmk)
|
||||
}
|
||||
|
||||
resp, err := server.PollerResponderNext(beginTransitionToCmk, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !contains([]int{http.StatusAccepted}, resp.StatusCode) {
|
||||
a.beginTransitionToCmk.remove(req)
|
||||
return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted", resp.StatusCode)}
|
||||
}
|
||||
if !server.PollerResponderMore(beginTransitionToCmk) {
|
||||
a.beginTransitionToCmk.remove(req)
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (a *AccountsServerTransport) dispatchBeginUpdate(req *http.Request) (*http.Response, error) {
|
||||
if a.srv.BeginUpdate == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginUpdate not implemented")}
|
||||
|
|
|
@ -74,6 +74,10 @@ type VolumesServer struct {
|
|||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginListGetGroupIDListForLdapUser func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body armnetapp.GetGroupIDListForLDAPUserRequest, options *armnetapp.VolumesClientBeginListGetGroupIDListForLdapUserOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientListGetGroupIDListForLdapUserResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginListQuotaReport is the fake for method VolumesClient.BeginListQuotaReport
|
||||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginListQuotaReport func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *armnetapp.VolumesClientBeginListQuotaReportOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientListQuotaReportResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// NewListReplicationsPager is the fake for method VolumesClient.NewListReplicationsPager
|
||||
// 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])
|
||||
|
@ -126,6 +130,10 @@ type VolumesServer struct {
|
|||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginRevertRelocation func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *armnetapp.VolumesClientBeginRevertRelocationOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientRevertRelocationResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginSplitCloneFromParent is the fake for method VolumesClient.BeginSplitCloneFromParent
|
||||
// HTTP status codes to indicate success: http.StatusAccepted
|
||||
BeginSplitCloneFromParent func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *armnetapp.VolumesClientBeginSplitCloneFromParentOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientSplitCloneFromParentResponse], errResp azfake.ErrorResponder)
|
||||
|
||||
// BeginUpdate is the fake for method VolumesClient.BeginUpdate
|
||||
// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
|
||||
BeginUpdate func(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body armnetapp.VolumePatch, options *armnetapp.VolumesClientBeginUpdateOptions) (resp azfake.PollerResponder[armnetapp.VolumesClientUpdateResponse], errResp azfake.ErrorResponder)
|
||||
|
@ -148,6 +156,7 @@ func NewVolumesServerTransport(srv *VolumesServer) *VolumesServerTransport {
|
|||
beginFinalizeRelocation: newTracker[azfake.PollerResponder[armnetapp.VolumesClientFinalizeRelocationResponse]](),
|
||||
newListPager: newTracker[azfake.PagerResponder[armnetapp.VolumesClientListResponse]](),
|
||||
beginListGetGroupIDListForLdapUser: newTracker[azfake.PollerResponder[armnetapp.VolumesClientListGetGroupIDListForLdapUserResponse]](),
|
||||
beginListQuotaReport: newTracker[azfake.PollerResponder[armnetapp.VolumesClientListQuotaReportResponse]](),
|
||||
newListReplicationsPager: newTracker[azfake.PagerResponder[armnetapp.VolumesClientListReplicationsResponse]](),
|
||||
beginPeerExternalCluster: newTracker[azfake.PollerResponder[armnetapp.VolumesClientPeerExternalClusterResponse]](),
|
||||
beginPerformReplicationTransfer: newTracker[azfake.PollerResponder[armnetapp.VolumesClientPerformReplicationTransferResponse]](),
|
||||
|
@ -160,6 +169,7 @@ func NewVolumesServerTransport(srv *VolumesServer) *VolumesServerTransport {
|
|||
beginResyncReplication: newTracker[azfake.PollerResponder[armnetapp.VolumesClientResyncReplicationResponse]](),
|
||||
beginRevert: newTracker[azfake.PollerResponder[armnetapp.VolumesClientRevertResponse]](),
|
||||
beginRevertRelocation: newTracker[azfake.PollerResponder[armnetapp.VolumesClientRevertRelocationResponse]](),
|
||||
beginSplitCloneFromParent: newTracker[azfake.PollerResponder[armnetapp.VolumesClientSplitCloneFromParentResponse]](),
|
||||
beginUpdate: newTracker[azfake.PollerResponder[armnetapp.VolumesClientUpdateResponse]](),
|
||||
}
|
||||
}
|
||||
|
@ -179,6 +189,7 @@ type VolumesServerTransport struct {
|
|||
beginFinalizeRelocation *tracker[azfake.PollerResponder[armnetapp.VolumesClientFinalizeRelocationResponse]]
|
||||
newListPager *tracker[azfake.PagerResponder[armnetapp.VolumesClientListResponse]]
|
||||
beginListGetGroupIDListForLdapUser *tracker[azfake.PollerResponder[armnetapp.VolumesClientListGetGroupIDListForLdapUserResponse]]
|
||||
beginListQuotaReport *tracker[azfake.PollerResponder[armnetapp.VolumesClientListQuotaReportResponse]]
|
||||
newListReplicationsPager *tracker[azfake.PagerResponder[armnetapp.VolumesClientListReplicationsResponse]]
|
||||
beginPeerExternalCluster *tracker[azfake.PollerResponder[armnetapp.VolumesClientPeerExternalClusterResponse]]
|
||||
beginPerformReplicationTransfer *tracker[azfake.PollerResponder[armnetapp.VolumesClientPerformReplicationTransferResponse]]
|
||||
|
@ -191,6 +202,7 @@ type VolumesServerTransport struct {
|
|||
beginResyncReplication *tracker[azfake.PollerResponder[armnetapp.VolumesClientResyncReplicationResponse]]
|
||||
beginRevert *tracker[azfake.PollerResponder[armnetapp.VolumesClientRevertResponse]]
|
||||
beginRevertRelocation *tracker[azfake.PollerResponder[armnetapp.VolumesClientRevertRelocationResponse]]
|
||||
beginSplitCloneFromParent *tracker[azfake.PollerResponder[armnetapp.VolumesClientSplitCloneFromParentResponse]]
|
||||
beginUpdate *tracker[azfake.PollerResponder[armnetapp.VolumesClientUpdateResponse]]
|
||||
}
|
||||
|
||||
|
@ -230,6 +242,8 @@ func (v *VolumesServerTransport) Do(req *http.Request) (*http.Response, error) {
|
|||
resp, err = v.dispatchNewListPager(req)
|
||||
case "VolumesClient.BeginListGetGroupIDListForLdapUser":
|
||||
resp, err = v.dispatchBeginListGetGroupIDListForLdapUser(req)
|
||||
case "VolumesClient.BeginListQuotaReport":
|
||||
resp, err = v.dispatchBeginListQuotaReport(req)
|
||||
case "VolumesClient.NewListReplicationsPager":
|
||||
resp, err = v.dispatchNewListReplicationsPager(req)
|
||||
case "VolumesClient.BeginPeerExternalCluster":
|
||||
|
@ -256,6 +270,8 @@ func (v *VolumesServerTransport) Do(req *http.Request) (*http.Response, error) {
|
|||
resp, err = v.dispatchBeginRevert(req)
|
||||
case "VolumesClient.BeginRevertRelocation":
|
||||
resp, err = v.dispatchBeginRevertRelocation(req)
|
||||
case "VolumesClient.BeginSplitCloneFromParent":
|
||||
resp, err = v.dispatchBeginSplitCloneFromParent(req)
|
||||
case "VolumesClient.BeginUpdate":
|
||||
resp, err = v.dispatchBeginUpdate(req)
|
||||
default:
|
||||
|
@ -922,6 +938,58 @@ func (v *VolumesServerTransport) dispatchBeginListGetGroupIDListForLdapUser(req
|
|||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchBeginListQuotaReport(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.BeginListQuotaReport == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginListQuotaReport not implemented")}
|
||||
}
|
||||
beginListQuotaReport := v.beginListQuotaReport.get(req)
|
||||
if beginListQuotaReport == 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~%@]+)/listQuotaReport`
|
||||
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.BeginListQuotaReport(req.Context(), resourceGroupNameParam, accountNameParam, poolNameParam, volumeNameParam, nil)
|
||||
if respErr := server.GetError(errRespr, req); respErr != nil {
|
||||
return nil, respErr
|
||||
}
|
||||
beginListQuotaReport = &respr
|
||||
v.beginListQuotaReport.add(req, beginListQuotaReport)
|
||||
}
|
||||
|
||||
resp, err := server.PollerResponderNext(beginListQuotaReport, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) {
|
||||
v.beginListQuotaReport.remove(req)
|
||||
return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)}
|
||||
}
|
||||
if !server.PollerResponderMore(beginListQuotaReport) {
|
||||
v.beginListQuotaReport.remove(req)
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchNewListReplicationsPager(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.NewListReplicationsPager == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method NewListReplicationsPager not implemented")}
|
||||
|
@ -1607,6 +1675,58 @@ func (v *VolumesServerTransport) dispatchBeginRevertRelocation(req *http.Request
|
|||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchBeginSplitCloneFromParent(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.BeginSplitCloneFromParent == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginSplitCloneFromParent not implemented")}
|
||||
}
|
||||
beginSplitCloneFromParent := v.beginSplitCloneFromParent.get(req)
|
||||
if beginSplitCloneFromParent == 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~%@]+)/splitCloneFromParent`
|
||||
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.BeginSplitCloneFromParent(req.Context(), resourceGroupNameParam, accountNameParam, poolNameParam, volumeNameParam, nil)
|
||||
if respErr := server.GetError(errRespr, req); respErr != nil {
|
||||
return nil, respErr
|
||||
}
|
||||
beginSplitCloneFromParent = &respr
|
||||
v.beginSplitCloneFromParent.add(req, beginSplitCloneFromParent)
|
||||
}
|
||||
|
||||
resp, err := server.PollerResponderNext(beginSplitCloneFromParent, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !contains([]int{http.StatusAccepted}, resp.StatusCode) {
|
||||
v.beginSplitCloneFromParent.remove(req)
|
||||
return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted", resp.StatusCode)}
|
||||
}
|
||||
if !server.PollerResponderMore(beginSplitCloneFromParent) {
|
||||
v.beginSplitCloneFromParent.remove(req)
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func (v *VolumesServerTransport) dispatchBeginUpdate(req *http.Request) (*http.Response, error) {
|
||||
if v.srv.BeginUpdate == nil {
|
||||
return nil, &nonRetriableError{errors.New("fake for method BeginUpdate not implemented")}
|
||||
|
|
|
@ -93,9 +93,16 @@ type AccountProperties struct {
|
|||
// Encryption settings
|
||||
Encryption *AccountEncryption
|
||||
|
||||
// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and
|
||||
// only affect non ldap NFSv4 volumes.
|
||||
NfsV4IDDomain *string
|
||||
|
||||
// READ-ONLY; Shows the status of disableShowmount for all volumes under the subscription, null equals false
|
||||
DisableShowmount *bool
|
||||
|
||||
// READ-ONLY; This will have true value only if account is Multiple AD enabled.
|
||||
IsMultiAdEnabled *bool
|
||||
|
||||
// READ-ONLY; Azure lifecycle management
|
||||
ProvisioningState *string
|
||||
}
|
||||
|
@ -280,7 +287,7 @@ type BackupPolicyProperties struct {
|
|||
// Weekly backups count to keep
|
||||
WeeklyBackupsToKeep *int32
|
||||
|
||||
// READ-ONLY; Backup Policy GUID ID
|
||||
// READ-ONLY; Backup Policy Resource ID
|
||||
BackupPolicyID *string
|
||||
|
||||
// READ-ONLY; Azure lifecycle management
|
||||
|
@ -322,6 +329,9 @@ type BackupProperties struct {
|
|||
// READ-ONLY; Failure reason
|
||||
FailureReason *string
|
||||
|
||||
// READ-ONLY; Specifies if the backup is for a large volume.
|
||||
IsLargeVolume *bool
|
||||
|
||||
// READ-ONLY; Azure lifecycle management
|
||||
ProvisioningState *string
|
||||
|
||||
|
@ -506,6 +516,22 @@ type CapacityPoolPatch struct {
|
|||
Type *string
|
||||
}
|
||||
|
||||
// ChangeKeyVault - Change key vault request
|
||||
type ChangeKeyVault struct {
|
||||
// REQUIRED; The name of the key that should be used for encryption.
|
||||
KeyName *string
|
||||
|
||||
// REQUIRED; Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed
|
||||
// keys needs its own key vault private endpoint.
|
||||
KeyVaultPrivateEndpoints []*KeyVaultPrivateEndpoint
|
||||
|
||||
// REQUIRED; The URI of the key vault/managed HSM that should be used for encryption.
|
||||
KeyVaultURI *string
|
||||
|
||||
// Azure resource ID of the key vault/managed HSM that should be used for encryption.
|
||||
KeyVaultResourceID *string
|
||||
}
|
||||
|
||||
// CheckAvailabilityResponse - Information regarding availability of a resource.
|
||||
type CheckAvailabilityResponse struct {
|
||||
// true indicates name is valid and available. false indicates the name is invalid, unavailable, or both.
|
||||
|
@ -543,6 +569,21 @@ type DailySchedule struct {
|
|||
UsedBytes *int64
|
||||
}
|
||||
|
||||
// DestinationReplication - Destination replication properties
|
||||
type DestinationReplication struct {
|
||||
// The remote region for the destination volume.
|
||||
Region *string
|
||||
|
||||
// Indicates whether the replication is cross zone or cross region.
|
||||
ReplicationType *ReplicationType
|
||||
|
||||
// The resource ID of the remote volume
|
||||
ResourceID *string
|
||||
|
||||
// The remote zone for the destination volume.
|
||||
Zone *string
|
||||
}
|
||||
|
||||
// Dimension of blobs, possibly be blob type or access tier.
|
||||
type Dimension struct {
|
||||
// Display name of dimension.
|
||||
|
@ -554,6 +595,9 @@ type Dimension struct {
|
|||
|
||||
// EncryptionIdentity - Identity used to authenticate with key vault.
|
||||
type EncryptionIdentity struct {
|
||||
// ClientId of the multi-tenant AAD Application. Used to access cross-tenant KeyVaults.
|
||||
FederatedClientID *string
|
||||
|
||||
// The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type
|
||||
// has 'UserAssigned'. It should match key of identity.userAssignedIdentities.
|
||||
UserAssignedIdentity *string
|
||||
|
@ -562,6 +606,15 @@ type EncryptionIdentity struct {
|
|||
PrincipalID *string
|
||||
}
|
||||
|
||||
// EncryptionTransitionRequest - Encryption transition request
|
||||
type EncryptionTransitionRequest struct {
|
||||
// REQUIRED; Identifier of the private endpoint to reach the Azure Key Vault
|
||||
PrivateEndpointID *string
|
||||
|
||||
// REQUIRED; Identifier for the virtual network
|
||||
VirtualNetworkID *string
|
||||
}
|
||||
|
||||
// ExportPolicyRule - Volume Export Policy Rule
|
||||
type ExportPolicyRule struct {
|
||||
// Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names
|
||||
|
@ -649,6 +702,16 @@ type HourlySchedule struct {
|
|||
UsedBytes *int64
|
||||
}
|
||||
|
||||
// KeyVaultPrivateEndpoint - Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted
|
||||
// with customer-managed keys needs its own key vault private endpoint.
|
||||
type KeyVaultPrivateEndpoint struct {
|
||||
// Identifier of the private endpoint to reach the Azure Key Vault
|
||||
PrivateEndpointID *string
|
||||
|
||||
// Identifier for the virtual network id
|
||||
VirtualNetworkID *string
|
||||
}
|
||||
|
||||
// KeyVaultProperties - Properties of key vault.
|
||||
type KeyVaultProperties struct {
|
||||
// REQUIRED; The name of KeyVault key.
|
||||
|
@ -679,6 +742,15 @@ type LdapSearchScopeOpt struct {
|
|||
UserDN *string
|
||||
}
|
||||
|
||||
// ListQuotaReportResponse - Quota Report for volume
|
||||
type ListQuotaReportResponse struct {
|
||||
// URL to get the next set of results.
|
||||
NextLink *string
|
||||
|
||||
// List of volume quota report records
|
||||
Value []*QuotaReport
|
||||
}
|
||||
|
||||
// ListReplications - List Replications
|
||||
type ListReplications struct {
|
||||
// A list of replications
|
||||
|
@ -898,6 +970,10 @@ type PoolPatchProperties struct {
|
|||
// If enabled (true) the pool can contain cool Access enabled volumes.
|
||||
CoolAccess *bool
|
||||
|
||||
// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType
|
||||
// pool with Flexible service level
|
||||
CustomThroughputMibps *float32
|
||||
|
||||
// The qos type of the pool
|
||||
QosType *QosType
|
||||
|
||||
|
@ -916,6 +992,10 @@ type PoolProperties struct {
|
|||
// If enabled (true) the pool can contain cool Access enabled volumes.
|
||||
CoolAccess *bool
|
||||
|
||||
// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType
|
||||
// pool with Flexible service level
|
||||
CustomThroughputMibps *float32
|
||||
|
||||
// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value
|
||||
// can only be set when creating new pool.
|
||||
EncryptionType *EncryptionType
|
||||
|
@ -958,6 +1038,28 @@ type QuotaAvailabilityRequest struct {
|
|||
Type *CheckQuotaNameResourceTypes
|
||||
}
|
||||
|
||||
// QuotaReport - Quota report record properties
|
||||
type QuotaReport struct {
|
||||
// Flag to indicate whether the quota is derived from default quota.
|
||||
IsDerivedQuota *bool
|
||||
|
||||
// Percentage of used size compared to total size.
|
||||
PercentageUsed *float32
|
||||
|
||||
// Specifies the total size limit in kibibytes for the user/group quota.
|
||||
QuotaLimitTotalInKiBs *int64
|
||||
|
||||
// Specifies the current usage in kibibytes for the user/group quota.
|
||||
QuotaLimitUsedInKiBs *int64
|
||||
|
||||
// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command
|
||||
// for the user or group and SID can be found by running
|
||||
QuotaTarget *string
|
||||
|
||||
// Type of quota
|
||||
QuotaType *Type
|
||||
}
|
||||
|
||||
// ReestablishReplicationRequest - Re-establish request object supplied in the body of the operation.
|
||||
type ReestablishReplicationRequest struct {
|
||||
// Resource id of the source volume for the replication
|
||||
|
@ -1046,9 +1148,6 @@ type Replication struct {
|
|||
|
||||
// ReplicationObject - Replication properties
|
||||
type ReplicationObject struct {
|
||||
// REQUIRED; The resource ID of the remote volume.
|
||||
RemoteVolumeResourceID *string
|
||||
|
||||
// Indicates whether the local volume is the source or destination for the Volume Replication
|
||||
EndpointType *EndpointType
|
||||
|
||||
|
@ -1058,9 +1157,15 @@ type ReplicationObject struct {
|
|||
// The remote region for the other end of the Volume Replication.
|
||||
RemoteVolumeRegion *string
|
||||
|
||||
// The resource ID of the remote volume. Required for cross region and cross zone replication
|
||||
RemoteVolumeResourceID *string
|
||||
|
||||
// Schedule
|
||||
ReplicationSchedule *ReplicationSchedule
|
||||
|
||||
// READ-ONLY; A list of destination replications
|
||||
DestinationReplications []*DestinationReplication
|
||||
|
||||
// READ-ONLY; Id
|
||||
ReplicationID *string
|
||||
}
|
||||
|
@ -1693,8 +1798,8 @@ type VolumePatchProperties struct {
|
|||
|
||||
// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes,
|
||||
// valid values are in the range 50GiB to 100TiB. For large volumes, valid
|
||||
// values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in
|
||||
// bytes as multiples of 1 GiB.
|
||||
// values are in the range 100TiB to 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes
|
||||
// as multiples of 1 GiB.
|
||||
UsageThreshold *int64
|
||||
}
|
||||
|
||||
|
@ -1723,10 +1828,15 @@ type VolumeProperties struct {
|
|||
|
||||
// REQUIRED; Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular
|
||||
// volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid
|
||||
// values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in
|
||||
// bytes as multiples of 1 GiB.
|
||||
// values are in the range 100TiB to 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes
|
||||
// as multiples of 1 GiB.
|
||||
UsageThreshold *int64
|
||||
|
||||
// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume
|
||||
// after split, it will be automatically resized, which will lead to increased
|
||||
// billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted.
|
||||
AcceptGrowCapacityPoolForShortTermCloneSplit *AcceptGrowCapacityPoolForShortTermCloneSplit
|
||||
|
||||
// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose
|
||||
AvsDataStore *AvsDataStore
|
||||
|
||||
|
@ -1789,6 +1899,9 @@ type VolumeProperties struct {
|
|||
// = 'Microsoft.KeyVault'.
|
||||
KeyVaultPrivateEndpointResourceID *string
|
||||
|
||||
// Language supported for volume.
|
||||
Language *VolumeLanguage
|
||||
|
||||
// Specifies whether LDAP is enabled or not for a given NFS volume.
|
||||
LdapEnabled *bool
|
||||
|
||||
|
@ -1838,14 +1951,18 @@ type VolumeProperties struct {
|
|||
// (2) and sticky (1) attributes. Second digit selects permission for the owner of
|
||||
// the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth
|
||||
// for other users not in the group. 0755 - gives read/write/execute permissions to
|
||||
// owner and read/execute to group and other users.
|
||||
// owner and read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation,
|
||||
// As per the behavior, If Null value is passed then user-visible unixPermissions
|
||||
// value will became null, and user will not be able to get unixPermissions value. On safer side, actual unixPermissions value
|
||||
// on volume will remain as its last saved value only.
|
||||
UnixPermissions *string
|
||||
|
||||
// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for
|
||||
// e.g. data, log
|
||||
VolumeSpecName *string
|
||||
|
||||
// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection
|
||||
// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating
|
||||
// clone volume, set type to ShortTermClone
|
||||
VolumeType *string
|
||||
|
||||
// READ-ONLY; Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel
|
||||
|
@ -1875,6 +1992,9 @@ type VolumeProperties struct {
|
|||
// READ-ONLY; Unique FileSystem Identifier.
|
||||
FileSystemID *string
|
||||
|
||||
// READ-ONLY; Space shared by short term clone volume with parent volume in bytes.
|
||||
InheritedSizeInBytes *int64
|
||||
|
||||
// READ-ONLY; Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed
|
||||
// if volume quota is more than 4TiB.
|
||||
MaximumNumberOfFiles *int64
|
||||
|
|
|
@ -197,6 +197,8 @@ func (a AccountProperties) MarshalJSON() ([]byte, error) {
|
|||
populate(objectMap, "activeDirectories", a.ActiveDirectories)
|
||||
populate(objectMap, "disableShowmount", a.DisableShowmount)
|
||||
populate(objectMap, "encryption", a.Encryption)
|
||||
populate(objectMap, "isMultiAdEnabled", a.IsMultiAdEnabled)
|
||||
populate(objectMap, "nfsV4IDDomain", a.NfsV4IDDomain)
|
||||
populate(objectMap, "provisioningState", a.ProvisioningState)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
@ -219,6 +221,12 @@ func (a *AccountProperties) UnmarshalJSON(data []byte) error {
|
|||
case "encryption":
|
||||
err = unpopulate(val, "Encryption", &a.Encryption)
|
||||
delete(rawMsg, key)
|
||||
case "isMultiAdEnabled":
|
||||
err = unpopulate(val, "IsMultiAdEnabled", &a.IsMultiAdEnabled)
|
||||
delete(rawMsg, key)
|
||||
case "nfsV4IDDomain":
|
||||
err = unpopulate(val, "NfsV4IDDomain", &a.NfsV4IDDomain)
|
||||
delete(rawMsg, key)
|
||||
case "provisioningState":
|
||||
err = unpopulate(val, "ProvisioningState", &a.ProvisioningState)
|
||||
delete(rawMsg, key)
|
||||
|
@ -661,6 +669,7 @@ func (b BackupProperties) MarshalJSON() ([]byte, error) {
|
|||
populate(objectMap, "backupType", b.BackupType)
|
||||
populateDateTimeRFC3339(objectMap, "creationDate", b.CreationDate)
|
||||
populate(objectMap, "failureReason", b.FailureReason)
|
||||
populate(objectMap, "isLargeVolume", b.IsLargeVolume)
|
||||
populate(objectMap, "label", b.Label)
|
||||
populate(objectMap, "provisioningState", b.ProvisioningState)
|
||||
populate(objectMap, "size", b.Size)
|
||||
|
@ -694,6 +703,9 @@ func (b *BackupProperties) UnmarshalJSON(data []byte) error {
|
|||
case "failureReason":
|
||||
err = unpopulate(val, "FailureReason", &b.FailureReason)
|
||||
delete(rawMsg, key)
|
||||
case "isLargeVolume":
|
||||
err = unpopulate(val, "IsLargeVolume", &b.IsLargeVolume)
|
||||
delete(rawMsg, key)
|
||||
case "label":
|
||||
err = unpopulate(val, "Label", &b.Label)
|
||||
delete(rawMsg, key)
|
||||
|
@ -1199,6 +1211,45 @@ func (c *CapacityPoolPatch) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type ChangeKeyVault.
|
||||
func (c ChangeKeyVault) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "keyName", c.KeyName)
|
||||
populate(objectMap, "keyVaultPrivateEndpoints", c.KeyVaultPrivateEndpoints)
|
||||
populate(objectMap, "keyVaultResourceId", c.KeyVaultResourceID)
|
||||
populate(objectMap, "keyVaultUri", c.KeyVaultURI)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements the json.Unmarshaller interface for type ChangeKeyVault.
|
||||
func (c *ChangeKeyVault) 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 "keyName":
|
||||
err = unpopulate(val, "KeyName", &c.KeyName)
|
||||
delete(rawMsg, key)
|
||||
case "keyVaultPrivateEndpoints":
|
||||
err = unpopulate(val, "KeyVaultPrivateEndpoints", &c.KeyVaultPrivateEndpoints)
|
||||
delete(rawMsg, key)
|
||||
case "keyVaultResourceId":
|
||||
err = unpopulate(val, "KeyVaultResourceID", &c.KeyVaultResourceID)
|
||||
delete(rawMsg, key)
|
||||
case "keyVaultUri":
|
||||
err = unpopulate(val, "KeyVaultURI", &c.KeyVaultURI)
|
||||
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 CheckAvailabilityResponse.
|
||||
func (c CheckAvailabilityResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
|
@ -1300,6 +1351,45 @@ func (d *DailySchedule) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type DestinationReplication.
|
||||
func (d DestinationReplication) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "region", d.Region)
|
||||
populate(objectMap, "replicationType", d.ReplicationType)
|
||||
populate(objectMap, "resourceId", d.ResourceID)
|
||||
populate(objectMap, "zone", d.Zone)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements the json.Unmarshaller interface for type DestinationReplication.
|
||||
func (d *DestinationReplication) 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", d, err)
|
||||
}
|
||||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "region":
|
||||
err = unpopulate(val, "Region", &d.Region)
|
||||
delete(rawMsg, key)
|
||||
case "replicationType":
|
||||
err = unpopulate(val, "ReplicationType", &d.ReplicationType)
|
||||
delete(rawMsg, key)
|
||||
case "resourceId":
|
||||
err = unpopulate(val, "ResourceID", &d.ResourceID)
|
||||
delete(rawMsg, key)
|
||||
case "zone":
|
||||
err = unpopulate(val, "Zone", &d.Zone)
|
||||
delete(rawMsg, key)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", d, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type Dimension.
|
||||
func (d Dimension) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
|
@ -1334,6 +1424,7 @@ func (d *Dimension) UnmarshalJSON(data []byte) error {
|
|||
// MarshalJSON implements the json.Marshaller interface for type EncryptionIdentity.
|
||||
func (e EncryptionIdentity) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "federatedClientId", e.FederatedClientID)
|
||||
populate(objectMap, "principalId", e.PrincipalID)
|
||||
populate(objectMap, "userAssignedIdentity", e.UserAssignedIdentity)
|
||||
return json.Marshal(objectMap)
|
||||
|
@ -1348,6 +1439,9 @@ func (e *EncryptionIdentity) UnmarshalJSON(data []byte) error {
|
|||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "federatedClientId":
|
||||
err = unpopulate(val, "FederatedClientID", &e.FederatedClientID)
|
||||
delete(rawMsg, key)
|
||||
case "principalId":
|
||||
err = unpopulate(val, "PrincipalID", &e.PrincipalID)
|
||||
delete(rawMsg, key)
|
||||
|
@ -1362,6 +1456,37 @@ func (e *EncryptionIdentity) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type EncryptionTransitionRequest.
|
||||
func (e EncryptionTransitionRequest) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "privateEndpointId", e.PrivateEndpointID)
|
||||
populate(objectMap, "virtualNetworkId", e.VirtualNetworkID)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionTransitionRequest.
|
||||
func (e *EncryptionTransitionRequest) 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", e, err)
|
||||
}
|
||||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "privateEndpointId":
|
||||
err = unpopulate(val, "PrivateEndpointID", &e.PrivateEndpointID)
|
||||
delete(rawMsg, key)
|
||||
case "virtualNetworkId":
|
||||
err = unpopulate(val, "VirtualNetworkID", &e.VirtualNetworkID)
|
||||
delete(rawMsg, key)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", e, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type ExportPolicyRule.
|
||||
func (e ExportPolicyRule) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
|
@ -1569,6 +1694,37 @@ func (h *HourlySchedule) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type KeyVaultPrivateEndpoint.
|
||||
func (k KeyVaultPrivateEndpoint) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "privateEndpointId", k.PrivateEndpointID)
|
||||
populate(objectMap, "virtualNetworkId", k.VirtualNetworkID)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultPrivateEndpoint.
|
||||
func (k *KeyVaultPrivateEndpoint) 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", k, err)
|
||||
}
|
||||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "privateEndpointId":
|
||||
err = unpopulate(val, "PrivateEndpointID", &k.PrivateEndpointID)
|
||||
delete(rawMsg, key)
|
||||
case "virtualNetworkId":
|
||||
err = unpopulate(val, "VirtualNetworkID", &k.VirtualNetworkID)
|
||||
delete(rawMsg, key)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", k, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties.
|
||||
func (k KeyVaultProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
|
@ -1647,6 +1803,37 @@ func (l *LdapSearchScopeOpt) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type ListQuotaReportResponse.
|
||||
func (l ListQuotaReportResponse) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "nextLink", l.NextLink)
|
||||
populate(objectMap, "value", l.Value)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements the json.Unmarshaller interface for type ListQuotaReportResponse.
|
||||
func (l *ListQuotaReportResponse) 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", l, err)
|
||||
}
|
||||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "nextLink":
|
||||
err = unpopulate(val, "NextLink", &l.NextLink)
|
||||
delete(rawMsg, key)
|
||||
case "value":
|
||||
err = unpopulate(val, "Value", &l.Value)
|
||||
delete(rawMsg, key)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", l, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type ListReplications.
|
||||
func (l ListReplications) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
|
@ -2212,6 +2399,7 @@ func (p *PoolChangeRequest) UnmarshalJSON(data []byte) error {
|
|||
func (p PoolPatchProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "coolAccess", p.CoolAccess)
|
||||
populate(objectMap, "customThroughputMibps", p.CustomThroughputMibps)
|
||||
populate(objectMap, "qosType", p.QosType)
|
||||
populate(objectMap, "size", p.Size)
|
||||
return json.Marshal(objectMap)
|
||||
|
@ -2229,6 +2417,9 @@ func (p *PoolPatchProperties) UnmarshalJSON(data []byte) error {
|
|||
case "coolAccess":
|
||||
err = unpopulate(val, "CoolAccess", &p.CoolAccess)
|
||||
delete(rawMsg, key)
|
||||
case "customThroughputMibps":
|
||||
err = unpopulate(val, "CustomThroughputMibps", &p.CustomThroughputMibps)
|
||||
delete(rawMsg, key)
|
||||
case "qosType":
|
||||
err = unpopulate(val, "QosType", &p.QosType)
|
||||
delete(rawMsg, key)
|
||||
|
@ -2247,6 +2438,7 @@ func (p *PoolPatchProperties) UnmarshalJSON(data []byte) error {
|
|||
func (p PoolProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "coolAccess", p.CoolAccess)
|
||||
populate(objectMap, "customThroughputMibps", p.CustomThroughputMibps)
|
||||
populate(objectMap, "encryptionType", p.EncryptionType)
|
||||
populate(objectMap, "poolId", p.PoolID)
|
||||
populate(objectMap, "provisioningState", p.ProvisioningState)
|
||||
|
@ -2270,6 +2462,9 @@ func (p *PoolProperties) UnmarshalJSON(data []byte) error {
|
|||
case "coolAccess":
|
||||
err = unpopulate(val, "CoolAccess", &p.CoolAccess)
|
||||
delete(rawMsg, key)
|
||||
case "customThroughputMibps":
|
||||
err = unpopulate(val, "CustomThroughputMibps", &p.CustomThroughputMibps)
|
||||
delete(rawMsg, key)
|
||||
case "encryptionType":
|
||||
err = unpopulate(val, "EncryptionType", &p.EncryptionType)
|
||||
delete(rawMsg, key)
|
||||
|
@ -2368,6 +2563,53 @@ func (q *QuotaAvailabilityRequest) UnmarshalJSON(data []byte) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type QuotaReport.
|
||||
func (q QuotaReport) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "isDerivedQuota", q.IsDerivedQuota)
|
||||
populate(objectMap, "percentageUsed", q.PercentageUsed)
|
||||
populate(objectMap, "quotaLimitTotalInKiBs", q.QuotaLimitTotalInKiBs)
|
||||
populate(objectMap, "quotaLimitUsedInKiBs", q.QuotaLimitUsedInKiBs)
|
||||
populate(objectMap, "quotaTarget", q.QuotaTarget)
|
||||
populate(objectMap, "quotaType", q.QuotaType)
|
||||
return json.Marshal(objectMap)
|
||||
}
|
||||
|
||||
// UnmarshalJSON implements the json.Unmarshaller interface for type QuotaReport.
|
||||
func (q *QuotaReport) 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", q, err)
|
||||
}
|
||||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "isDerivedQuota":
|
||||
err = unpopulate(val, "IsDerivedQuota", &q.IsDerivedQuota)
|
||||
delete(rawMsg, key)
|
||||
case "percentageUsed":
|
||||
err = unpopulate(val, "PercentageUsed", &q.PercentageUsed)
|
||||
delete(rawMsg, key)
|
||||
case "quotaLimitTotalInKiBs":
|
||||
err = unpopulate(val, "QuotaLimitTotalInKiBs", &q.QuotaLimitTotalInKiBs)
|
||||
delete(rawMsg, key)
|
||||
case "quotaLimitUsedInKiBs":
|
||||
err = unpopulate(val, "QuotaLimitUsedInKiBs", &q.QuotaLimitUsedInKiBs)
|
||||
delete(rawMsg, key)
|
||||
case "quotaTarget":
|
||||
err = unpopulate(val, "QuotaTarget", &q.QuotaTarget)
|
||||
delete(rawMsg, key)
|
||||
case "quotaType":
|
||||
err = unpopulate(val, "QuotaType", &q.QuotaType)
|
||||
delete(rawMsg, key)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("unmarshalling type %T: %v", q, err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaller interface for type ReestablishReplicationRequest.
|
||||
func (r ReestablishReplicationRequest) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
|
@ -2639,6 +2881,7 @@ func (r *Replication) UnmarshalJSON(data []byte) error {
|
|||
// MarshalJSON implements the json.Marshaller interface for type ReplicationObject.
|
||||
func (r ReplicationObject) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "destinationReplications", r.DestinationReplications)
|
||||
populate(objectMap, "endpointType", r.EndpointType)
|
||||
populate(objectMap, "remotePath", r.RemotePath)
|
||||
populate(objectMap, "remoteVolumeRegion", r.RemoteVolumeRegion)
|
||||
|
@ -2657,6 +2900,9 @@ func (r *ReplicationObject) UnmarshalJSON(data []byte) error {
|
|||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "destinationReplications":
|
||||
err = unpopulate(val, "DestinationReplications", &r.DestinationReplications)
|
||||
delete(rawMsg, key)
|
||||
case "endpointType":
|
||||
err = unpopulate(val, "EndpointType", &r.EndpointType)
|
||||
delete(rawMsg, key)
|
||||
|
@ -4328,6 +4574,7 @@ func (v *VolumePatchPropertiesExportPolicy) UnmarshalJSON(data []byte) error {
|
|||
// MarshalJSON implements the json.Marshaller interface for type VolumeProperties.
|
||||
func (v VolumeProperties) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]any)
|
||||
populate(objectMap, "acceptGrowCapacityPoolForShortTermCloneSplit", v.AcceptGrowCapacityPoolForShortTermCloneSplit)
|
||||
populate(objectMap, "actualThroughputMibps", v.ActualThroughputMibps)
|
||||
populate(objectMap, "avsDataStore", v.AvsDataStore)
|
||||
populate(objectMap, "backupId", v.BackupID)
|
||||
|
@ -4350,11 +4597,13 @@ func (v VolumeProperties) MarshalJSON() ([]byte, error) {
|
|||
populate(objectMap, "exportPolicy", v.ExportPolicy)
|
||||
populate(objectMap, "fileAccessLogs", v.FileAccessLogs)
|
||||
populate(objectMap, "fileSystemId", v.FileSystemID)
|
||||
populate(objectMap, "inheritedSizeInBytes", v.InheritedSizeInBytes)
|
||||
populate(objectMap, "isDefaultQuotaEnabled", v.IsDefaultQuotaEnabled)
|
||||
populate(objectMap, "isLargeVolume", v.IsLargeVolume)
|
||||
populate(objectMap, "isRestoring", v.IsRestoring)
|
||||
populate(objectMap, "kerberosEnabled", v.KerberosEnabled)
|
||||
populate(objectMap, "keyVaultPrivateEndpointResourceId", v.KeyVaultPrivateEndpointResourceID)
|
||||
populate(objectMap, "language", v.Language)
|
||||
populate(objectMap, "ldapEnabled", v.LdapEnabled)
|
||||
populate(objectMap, "maximumNumberOfFiles", v.MaximumNumberOfFiles)
|
||||
populate(objectMap, "mountTargets", v.MountTargets)
|
||||
|
@ -4395,6 +4644,9 @@ func (v *VolumeProperties) UnmarshalJSON(data []byte) error {
|
|||
for key, val := range rawMsg {
|
||||
var err error
|
||||
switch key {
|
||||
case "acceptGrowCapacityPoolForShortTermCloneSplit":
|
||||
err = unpopulate(val, "AcceptGrowCapacityPoolForShortTermCloneSplit", &v.AcceptGrowCapacityPoolForShortTermCloneSplit)
|
||||
delete(rawMsg, key)
|
||||
case "actualThroughputMibps":
|
||||
err = unpopulate(val, "ActualThroughputMibps", &v.ActualThroughputMibps)
|
||||
delete(rawMsg, key)
|
||||
|
@ -4461,6 +4713,9 @@ func (v *VolumeProperties) UnmarshalJSON(data []byte) error {
|
|||
case "fileSystemId":
|
||||
err = unpopulate(val, "FileSystemID", &v.FileSystemID)
|
||||
delete(rawMsg, key)
|
||||
case "inheritedSizeInBytes":
|
||||
err = unpopulate(val, "InheritedSizeInBytes", &v.InheritedSizeInBytes)
|
||||
delete(rawMsg, key)
|
||||
case "isDefaultQuotaEnabled":
|
||||
err = unpopulate(val, "IsDefaultQuotaEnabled", &v.IsDefaultQuotaEnabled)
|
||||
delete(rawMsg, key)
|
||||
|
@ -4476,6 +4731,9 @@ func (v *VolumeProperties) UnmarshalJSON(data []byte) error {
|
|||
case "keyVaultPrivateEndpointResourceId":
|
||||
err = unpopulate(val, "KeyVaultPrivateEndpointResourceID", &v.KeyVaultPrivateEndpointResourceID)
|
||||
delete(rawMsg, key)
|
||||
case "language":
|
||||
err = unpopulate(val, "Language", &v.Language)
|
||||
delete(rawMsg, key)
|
||||
case "ldapEnabled":
|
||||
err = unpopulate(val, "LdapEnabled", &v.LdapEnabled)
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/OperationList.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/OperationList.json
|
||||
func ExampleOperationsClient_NewListPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -8,6 +8,15 @@
|
|||
|
||||
package armnetapp
|
||||
|
||||
// AccountsClientBeginChangeKeyVaultOptions contains the optional parameters for the AccountsClient.BeginChangeKeyVault method.
|
||||
type AccountsClientBeginChangeKeyVaultOptions struct {
|
||||
// The required parameters to perform encryption migration.
|
||||
Body *ChangeKeyVault
|
||||
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// AccountsClientBeginCreateOrUpdateOptions contains the optional parameters for the AccountsClient.BeginCreateOrUpdate method.
|
||||
type AccountsClientBeginCreateOrUpdateOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
|
@ -20,6 +29,13 @@ type AccountsClientBeginDeleteOptions struct {
|
|||
ResumeToken string
|
||||
}
|
||||
|
||||
// AccountsClientBeginGetChangeKeyVaultInformationOptions contains the optional parameters for the AccountsClient.BeginGetChangeKeyVaultInformation
|
||||
// method.
|
||||
type AccountsClientBeginGetChangeKeyVaultInformationOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// AccountsClientBeginRenewCredentialsOptions contains the optional parameters for the AccountsClient.BeginRenewCredentials
|
||||
// method.
|
||||
type AccountsClientBeginRenewCredentialsOptions struct {
|
||||
|
@ -27,6 +43,16 @@ type AccountsClientBeginRenewCredentialsOptions struct {
|
|||
ResumeToken string
|
||||
}
|
||||
|
||||
// AccountsClientBeginTransitionToCmkOptions contains the optional parameters for the AccountsClient.BeginTransitionToCmk
|
||||
// method.
|
||||
type AccountsClientBeginTransitionToCmkOptions struct {
|
||||
// The required parameters to perform encryption transition.
|
||||
Body *EncryptionTransitionRequest
|
||||
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// AccountsClientBeginUpdateOptions contains the optional parameters for the AccountsClient.BeginUpdate method.
|
||||
type AccountsClientBeginUpdateOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
|
@ -485,6 +511,12 @@ type VolumesClientBeginListGetGroupIDListForLdapUserOptions struct {
|
|||
ResumeToken string
|
||||
}
|
||||
|
||||
// VolumesClientBeginListQuotaReportOptions contains the optional parameters for the VolumesClient.BeginListQuotaReport method.
|
||||
type VolumesClientBeginListQuotaReportOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// VolumesClientBeginPeerExternalClusterOptions contains the optional parameters for the VolumesClient.BeginPeerExternalCluster
|
||||
// method.
|
||||
type VolumesClientBeginPeerExternalClusterOptions struct {
|
||||
|
@ -562,6 +594,13 @@ type VolumesClientBeginRevertRelocationOptions struct {
|
|||
ResumeToken string
|
||||
}
|
||||
|
||||
// VolumesClientBeginSplitCloneFromParentOptions contains the optional parameters for the VolumesClient.BeginSplitCloneFromParent
|
||||
// method.
|
||||
type VolumesClientBeginSplitCloneFromParentOptions struct {
|
||||
// Resumes the LRO from the provided token.
|
||||
ResumeToken string
|
||||
}
|
||||
|
||||
// VolumesClientBeginUpdateOptions contains the optional parameters for the VolumesClient.BeginUpdate method.
|
||||
type VolumesClientBeginUpdateOptions 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_List.json
|
||||
func ExamplePoolsClient_NewListPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -54,15 +54,31 @@ 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),
|
||||
// UtilizedThroughputMibps: to.Ptr[float32](100.47),
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// Name: to.Ptr("account1/customPool1"),
|
||||
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
|
||||
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/customPool1"),
|
||||
// Location: to.Ptr("eastus"),
|
||||
// Properties: &armnetapp.PoolProperties{
|
||||
// CustomThroughputMibps: to.Ptr[float32](128),
|
||||
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
|
||||
// ProvisioningState: to.Ptr("Succeeded"),
|
||||
// QosType: to.Ptr(armnetapp.QosTypeManual),
|
||||
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelFlexible),
|
||||
// Size: to.Ptr[int64](4398046511104),
|
||||
// TotalThroughputMibps: to.Ptr[float32](128),
|
||||
// UtilizedThroughputMibps: to.Ptr[float32](100.47),
|
||||
// },
|
||||
// }},
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
// 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() {
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get.json
|
||||
func ExamplePoolsClient_Get_poolsGet() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to obtain a credential: %v", err)
|
||||
|
@ -96,8 +112,44 @@ func ExamplePoolsClient_Get() {
|
|||
// }
|
||||
}
|
||||
|
||||
// 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() {
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get_CustomThroughput.json
|
||||
func ExamplePoolsClient_Get_poolsGetCustomThroughput() {
|
||||
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)
|
||||
}
|
||||
res, err := clientFactory.NewPoolsClient().Get(ctx, "myRG", "account1", "customPool1", nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to finish the request: %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.CapacityPool = armnetapp.CapacityPool{
|
||||
// Name: to.Ptr("account1/customPool1"),
|
||||
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
|
||||
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/customPool1"),
|
||||
// Location: to.Ptr("eastus"),
|
||||
// Properties: &armnetapp.PoolProperties{
|
||||
// CustomThroughputMibps: to.Ptr[float32](128),
|
||||
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
|
||||
// ProvisioningState: to.Ptr("Succeeded"),
|
||||
// QosType: to.Ptr(armnetapp.QosTypeManual),
|
||||
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelFlexible),
|
||||
// Size: to.Ptr[int64](4398046511104),
|
||||
// TotalThroughputMibps: to.Ptr[float32](128),
|
||||
// UtilizedThroughputMibps: to.Ptr[float32](100.47),
|
||||
// },
|
||||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate.json
|
||||
func ExamplePoolsClient_BeginCreateOrUpdate_poolsCreateOrUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to obtain a credential: %v", err)
|
||||
|
@ -141,8 +193,55 @@ func ExamplePoolsClient_BeginCreateOrUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// 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() {
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate_CustomThroughput.json
|
||||
func ExamplePoolsClient_BeginCreateOrUpdate_poolsCreateOrUpdateCustomThroughput() {
|
||||
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.NewPoolsClient().BeginCreateOrUpdate(ctx, "myRG", "account1", "customPool1", armnetapp.CapacityPool{
|
||||
Location: to.Ptr("eastus"),
|
||||
Properties: &armnetapp.PoolProperties{
|
||||
CustomThroughputMibps: to.Ptr[float32](128),
|
||||
QosType: to.Ptr(armnetapp.QosTypeManual),
|
||||
ServiceLevel: to.Ptr(armnetapp.ServiceLevelFlexible),
|
||||
Size: to.Ptr[int64](4398046511104),
|
||||
},
|
||||
}, 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.CapacityPool = armnetapp.CapacityPool{
|
||||
// Name: to.Ptr("account1/customPool1"),
|
||||
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
|
||||
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/customPool1"),
|
||||
// Location: to.Ptr("eastus"),
|
||||
// Properties: &armnetapp.PoolProperties{
|
||||
// CustomThroughputMibps: to.Ptr[float32](128),
|
||||
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
|
||||
// ProvisioningState: to.Ptr("Succeeded"),
|
||||
// QosType: to.Ptr(armnetapp.QosTypeManual),
|
||||
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelFlexible),
|
||||
// Size: to.Ptr[int64](4398046511104),
|
||||
// TotalThroughputMibps: to.Ptr[float32](128),
|
||||
// },
|
||||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update.json
|
||||
func ExamplePoolsClient_BeginUpdate_poolsUpdate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to obtain a credential: %v", err)
|
||||
|
@ -180,7 +279,47 @@ func ExamplePoolsClient_BeginUpdate() {
|
|||
// }
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update_CustomThroughput.json
|
||||
func ExamplePoolsClient_BeginUpdate_poolsUpdateCustomThroughput() {
|
||||
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.NewPoolsClient().BeginUpdate(ctx, "myRG", "account1", "customPool1", armnetapp.CapacityPoolPatch{}, 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.CapacityPool = armnetapp.CapacityPool{
|
||||
// Name: to.Ptr("account1/customPool1"),
|
||||
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
|
||||
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/customPool1"),
|
||||
// Location: to.Ptr("eastus"),
|
||||
// Properties: &armnetapp.PoolProperties{
|
||||
// CustomThroughputMibps: to.Ptr[float32](128),
|
||||
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
|
||||
// ProvisioningState: to.Ptr("Succeeded"),
|
||||
// QosType: to.Ptr(armnetapp.QosTypeManual),
|
||||
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelFlexible),
|
||||
// Size: to.Ptr[int64](4398046511104),
|
||||
// TotalThroughputMibps: to.Ptr[float32](128),
|
||||
// UtilizedThroughputMibps: to.Ptr[float32](100.47),
|
||||
// },
|
||||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckNameAvailability.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckFilePathAvailability.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckQuotaAvailability.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfo.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Query.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_Get.json
|
||||
func ExampleResourceRegionInfosClient_Get() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
|
||||
package armnetapp
|
||||
|
||||
// AccountsClientChangeKeyVaultResponse contains the response from method AccountsClient.BeginChangeKeyVault.
|
||||
type AccountsClientChangeKeyVaultResponse struct {
|
||||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// AccountsClientCreateOrUpdateResponse contains the response from method AccountsClient.BeginCreateOrUpdate.
|
||||
type AccountsClientCreateOrUpdateResponse struct {
|
||||
// NetApp account resource
|
||||
|
@ -19,6 +24,11 @@ type AccountsClientDeleteResponse struct {
|
|||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// AccountsClientGetChangeKeyVaultInformationResponse contains the response from method AccountsClient.BeginGetChangeKeyVaultInformation.
|
||||
type AccountsClientGetChangeKeyVaultInformationResponse struct {
|
||||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// AccountsClientGetResponse contains the response from method AccountsClient.Get.
|
||||
type AccountsClientGetResponse struct {
|
||||
// NetApp account resource
|
||||
|
@ -42,6 +52,11 @@ type AccountsClientRenewCredentialsResponse struct {
|
|||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// AccountsClientTransitionToCmkResponse contains the response from method AccountsClient.BeginTransitionToCmk.
|
||||
type AccountsClientTransitionToCmkResponse struct {
|
||||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// AccountsClientUpdateResponse contains the response from method AccountsClient.BeginUpdate.
|
||||
type AccountsClientUpdateResponse struct {
|
||||
// NetApp account resource
|
||||
|
@ -473,6 +488,12 @@ type VolumesClientListGetGroupIDListForLdapUserResponse struct {
|
|||
GetGroupIDListForLDAPUserResponse
|
||||
}
|
||||
|
||||
// VolumesClientListQuotaReportResponse contains the response from method VolumesClient.BeginListQuotaReport.
|
||||
type VolumesClientListQuotaReportResponse struct {
|
||||
// Quota Report for volume
|
||||
ListQuotaReportResponse
|
||||
}
|
||||
|
||||
// VolumesClientListReplicationsResponse contains the response from method VolumesClient.NewListReplicationsPager.
|
||||
type VolumesClientListReplicationsResponse struct {
|
||||
// List Replications
|
||||
|
@ -548,6 +569,11 @@ type VolumesClientRevertResponse struct {
|
|||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// VolumesClientSplitCloneFromParentResponse contains the response from method VolumesClient.BeginSplitCloneFromParent.
|
||||
type VolumesClientSplitCloneFromParentResponse struct {
|
||||
// placeholder for future response values
|
||||
}
|
||||
|
||||
// VolumesClientUpdateResponse contains the response from method VolumesClient.BeginUpdate.
|
||||
type VolumesClientUpdateResponse struct {
|
||||
// Volume resource
|
||||
|
|
|
@ -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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_ListVolumes.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_SingleFileRestore.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Metadata.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_Oracle.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_SapHana.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_Oracle.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_SapHana.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_Oracle.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_SapHana.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Create.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Delete.json
|
||||
func ExampleVolumeQuotaRulesClient_BeginDelete() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -48,7 +48,7 @@ func NewVolumesClient(subscriptionID string, credential azcore.TokenCredential,
|
|||
// 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
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -77,7 +77,7 @@ func (client *VolumesClient) BeginAuthorizeExternalReplication(ctx context.Conte
|
|||
// 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
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -127,7 +127,7 @@ func (client *VolumesClient) authorizeExternalReplicationCreateRequest(ctx conte
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -136,7 +136,7 @@ func (client *VolumesClient) authorizeExternalReplicationCreateRequest(ctx conte
|
|||
// BeginAuthorizeReplication - Authorize the replication connection on the source volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -165,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -215,7 +215,7 @@ func (client *VolumesClient) authorizeReplicationCreateRequest(ctx context.Conte
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -227,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -255,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -305,7 +305,7 @@ func (client *VolumesClient) breakFileLocksCreateRequest(ctx context.Context, re
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Body != nil {
|
||||
|
@ -320,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -348,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -398,7 +398,7 @@ func (client *VolumesClient) breakReplicationCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Body != nil {
|
||||
|
@ -413,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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 +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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -492,7 +492,7 @@ func (client *VolumesClient) createOrUpdateCreateRequest(ctx context.Context, re
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -504,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -531,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -581,7 +581,7 @@ func (client *VolumesClient) deleteCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
if options != nil && options.ForceDelete != nil {
|
||||
reqQP.Set("forceDelete", strconv.FormatBool(*options.ForceDelete))
|
||||
}
|
||||
|
@ -593,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -621,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -671,7 +671,7 @@ func (client *VolumesClient) deleteReplicationCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -681,7 +681,7 @@ func (client *VolumesClient) deleteReplicationCreateRequest(ctx context.Context,
|
|||
// 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
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -710,7 +710,7 @@ func (client *VolumesClient) BeginFinalizeExternalReplication(ctx context.Contex
|
|||
// 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
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -760,7 +760,7 @@ func (client *VolumesClient) finalizeExternalReplicationCreateRequest(ctx contex
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -769,7 +769,7 @@ func (client *VolumesClient) finalizeExternalReplicationCreateRequest(ctx contex
|
|||
// 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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -796,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -846,7 +846,7 @@ func (client *VolumesClient) finalizeRelocationCreateRequest(ctx context.Context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -855,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -911,7 +911,7 @@ func (client *VolumesClient) getCreateRequest(ctx context.Context, resourceGroup
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -928,7 +928,7 @@ func (client *VolumesClient) getHandleResponse(resp *http.Response) (VolumesClie
|
|||
|
||||
// NewListPager - List all volumes within the capacity pool
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -980,7 +980,7 @@ func (client *VolumesClient) listCreateRequest(ctx context.Context, resourceGrou
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -998,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1027,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -1077,7 +1077,7 @@ func (client *VolumesClient) listGetGroupIDListForLdapUserCreateRequest(ctx cont
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -1086,9 +1086,96 @@ func (client *VolumesClient) listGetGroupIDListForLdapUserCreateRequest(ctx cont
|
|||
return req, nil
|
||||
}
|
||||
|
||||
// BeginListQuotaReport - Returns report of quotas for the volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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 - VolumesClientBeginListQuotaReportOptions contains the optional parameters for the VolumesClient.BeginListQuotaReport
|
||||
// method.
|
||||
func (client *VolumesClient) BeginListQuotaReport(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginListQuotaReportOptions) (*runtime.Poller[VolumesClientListQuotaReportResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.listQuotaReport(ctx, resourceGroupName, accountName, poolName, volumeName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VolumesClientListQuotaReportResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VolumesClientListQuotaReportResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// ListQuotaReport - Returns report of quotas for the volume
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01-preview
|
||||
func (client *VolumesClient) listQuotaReport(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginListQuotaReportOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginListQuotaReport"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.listQuotaReportCreateRequest(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
|
||||
}
|
||||
|
||||
// listQuotaReportCreateRequest creates the ListQuotaReport request.
|
||||
func (client *VolumesClient) listQuotaReportCreateRequest(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginListQuotaReportOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listQuotaReport"
|
||||
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-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// NewListReplicationsPager - List all replications for a specified volume
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1147,7 +1234,7 @@ func (client *VolumesClient) listReplicationsCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1165,7 +1252,7 @@ func (client *VolumesClient) listReplicationsHandleResponse(resp *http.Response)
|
|||
// 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
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1194,7 +1281,7 @@ func (client *VolumesClient) BeginPeerExternalCluster(ctx context.Context, resou
|
|||
// 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
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -1244,7 +1331,7 @@ func (client *VolumesClient) peerExternalClusterCreateRequest(ctx context.Contex
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -1256,7 +1343,7 @@ func (client *VolumesClient) peerExternalClusterCreateRequest(ctx context.Contex
|
|||
// 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
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1284,7 +1371,7 @@ func (client *VolumesClient) BeginPerformReplicationTransfer(ctx context.Context
|
|||
// 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
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -1334,7 +1421,7 @@ func (client *VolumesClient) performReplicationTransferCreateRequest(ctx context
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1343,7 +1430,7 @@ func (client *VolumesClient) performReplicationTransferCreateRequest(ctx context
|
|||
// BeginPoolChange - Moves volume to another pool
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1371,7 +1458,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -1421,7 +1508,7 @@ func (client *VolumesClient) poolChangeCreateRequest(ctx context.Context, resour
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -1433,7 +1520,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1461,7 +1548,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -1511,7 +1598,7 @@ func (client *VolumesClient) populateAvailabilityZoneCreateRequest(ctx context.C
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1520,7 +1607,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1548,7 +1635,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -1598,7 +1685,7 @@ func (client *VolumesClient) reInitializeReplicationCreateRequest(ctx context.Co
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1608,7 +1695,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1638,7 +1725,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -1688,7 +1775,7 @@ func (client *VolumesClient) reestablishReplicationCreateRequest(ctx context.Con
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -1700,7 +1787,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1726,7 +1813,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -1776,7 +1863,7 @@ func (client *VolumesClient) relocateCreateRequest(ctx context.Context, resource
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if options != nil && options.Body != nil {
|
||||
|
@ -1791,7 +1878,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1848,7 +1935,7 @@ func (client *VolumesClient) replicationStatusCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1866,7 +1953,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1893,7 +1980,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -1943,7 +2030,7 @@ func (client *VolumesClient) resetCifsPasswordCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -1953,7 +2040,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -1982,7 +2069,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -2032,7 +2119,7 @@ func (client *VolumesClient) resyncReplicationCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -2041,7 +2128,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -2069,7 +2156,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -2119,7 +2206,7 @@ func (client *VolumesClient) revertCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
if err := runtime.MarshalAsJSON(req, body); err != nil {
|
||||
|
@ -2132,7 +2219,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -2160,7 +2247,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -2210,7 +2297,94 @@ func (client *VolumesClient) revertRelocationCreateRequest(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// BeginSplitCloneFromParent - Split operation to convert clone volume to an independent volume.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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 - VolumesClientBeginSplitCloneFromParentOptions contains the optional parameters for the VolumesClient.BeginSplitCloneFromParent
|
||||
// method.
|
||||
func (client *VolumesClient) BeginSplitCloneFromParent(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginSplitCloneFromParentOptions) (*runtime.Poller[VolumesClientSplitCloneFromParentResponse], error) {
|
||||
if options == nil || options.ResumeToken == "" {
|
||||
resp, err := client.splitCloneFromParent(ctx, resourceGroupName, accountName, poolName, volumeName, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[VolumesClientSplitCloneFromParentResponse]{
|
||||
FinalStateVia: runtime.FinalStateViaLocation,
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
return poller, err
|
||||
} else {
|
||||
return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[VolumesClientSplitCloneFromParentResponse]{
|
||||
Tracer: client.internal.Tracer(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// SplitCloneFromParent - Split operation to convert clone volume to an independent volume.
|
||||
// If the operation fails it returns an *azcore.ResponseError type.
|
||||
//
|
||||
// Generated from API version 2024-07-01-preview
|
||||
func (client *VolumesClient) splitCloneFromParent(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginSplitCloneFromParentOptions) (*http.Response, error) {
|
||||
var err error
|
||||
const operationName = "VolumesClient.BeginSplitCloneFromParent"
|
||||
ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName)
|
||||
ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil)
|
||||
defer func() { endSpan(err) }()
|
||||
req, err := client.splitCloneFromParentCreateRequest(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
|
||||
}
|
||||
|
||||
// splitCloneFromParentCreateRequest creates the SplitCloneFromParent request.
|
||||
func (client *VolumesClient) splitCloneFromParentCreateRequest(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginSplitCloneFromParentOptions) (*policy.Request, error) {
|
||||
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent"
|
||||
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-preview")
|
||||
req.Raw().URL.RawQuery = reqQP.Encode()
|
||||
req.Raw().Header["Accept"] = []string{"application/json"}
|
||||
return req, nil
|
||||
|
@ -2219,7 +2393,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
// - 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
|
||||
|
@ -2247,7 +2421,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-07-01
|
||||
// Generated from API version 2024-07-01-preview
|
||||
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"
|
||||
|
@ -2297,7 +2471,7 @@ func (client *VolumesClient) updateCreateRequest(ctx context.Context, resourceGr
|
|||
return nil, err
|
||||
}
|
||||
reqQP := req.Raw().URL.Query()
|
||||
reqQP.Set("api-version", "2024-07-01")
|
||||
reqQP.Set("api-version", "2024-07-01-preview")
|
||||
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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_List.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Get.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_CreateOrUpdate.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Update.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Delete.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PopulateAvailabilityZones.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Revert.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/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/366aaa13cdd218b9adac716680e49473673410c8/specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResetCifsPassword.json
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResetCifsPassword.json
|
||||
func ExampleVolumesClient_BeginResetCifsPassword() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -304,7 +304,28 @@ func ExampleVolumesClient_BeginResetCifsPassword() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_SplitClone.json
|
||||
func ExampleVolumesClient_BeginSplitCloneFromParent() {
|
||||
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().BeginSplitCloneFromParent(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/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakFileLocks.json
|
||||
func ExampleVolumesClient_BeginBreakFileLocks() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -329,7 +350,7 @@ func ExampleVolumesClient_BeginBreakFileLocks() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser.json
|
||||
func ExampleVolumesClient_BeginListGetGroupIDListForLdapUser() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -360,7 +381,50 @@ func ExampleVolumesClient_BeginListGetGroupIDListForLdapUser() {
|
|||
// }
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListQuotaReport.json
|
||||
func ExampleVolumesClient_BeginListQuotaReport() {
|
||||
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().BeginListQuotaReport(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.ListQuotaReportResponse = armnetapp.ListQuotaReportResponse{
|
||||
// Value: []*armnetapp.QuotaReport{
|
||||
// {
|
||||
// IsDerivedQuota: to.Ptr(false),
|
||||
// PercentageUsed: to.Ptr[float32](5),
|
||||
// QuotaLimitTotalInKiBs: to.Ptr[int64](204914688),
|
||||
// QuotaLimitUsedInKiBs: to.Ptr[int64](8192),
|
||||
// QuotaTarget: to.Ptr("1013"),
|
||||
// QuotaType: to.Ptr(armnetapp.TypeIndividualUserQuota),
|
||||
// },
|
||||
// {
|
||||
// IsDerivedQuota: to.Ptr(false),
|
||||
// PercentageUsed: to.Ptr[float32](5),
|
||||
// QuotaLimitTotalInKiBs: to.Ptr[int64](204914688),
|
||||
// QuotaLimitUsedInKiBs: to.Ptr[int64](8192),
|
||||
// QuotaTarget: to.Ptr("1012"),
|
||||
// QuotaType: to.Ptr(armnetapp.TypeIndividualGroupQuota),
|
||||
// }},
|
||||
// }
|
||||
}
|
||||
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakReplication.json
|
||||
func ExampleVolumesClient_BeginBreakReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -384,7 +448,7 @@ func ExampleVolumesClient_BeginBreakReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReestablishReplication.json
|
||||
func ExampleVolumesClient_BeginReestablishReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -407,7 +471,7 @@ func ExampleVolumesClient_BeginReestablishReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReplicationStatus.json
|
||||
func ExampleVolumesClient_ReplicationStatus() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -434,7 +498,7 @@ func ExampleVolumesClient_ReplicationStatus() {
|
|||
// }
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListReplications.json
|
||||
func ExampleVolumesClient_NewListReplicationsPager() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -467,7 +531,7 @@ func ExampleVolumesClient_NewListReplicationsPager() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResyncReplication.json
|
||||
func ExampleVolumesClient_BeginResyncReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -488,7 +552,7 @@ func ExampleVolumesClient_BeginResyncReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_DeleteReplication.json
|
||||
func ExampleVolumesClient_BeginDeleteReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -509,7 +573,7 @@ func ExampleVolumesClient_BeginDeleteReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeReplication.json
|
||||
func ExampleVolumesClient_BeginAuthorizeReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -532,7 +596,7 @@ func ExampleVolumesClient_BeginAuthorizeReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReInitializeReplication.json
|
||||
func ExampleVolumesClient_BeginReInitializeReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -553,7 +617,7 @@ func ExampleVolumesClient_BeginReInitializeReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PeerExternalCluster.json
|
||||
func ExampleVolumesClient_BeginPeerExternalCluster() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -588,7 +652,7 @@ func ExampleVolumesClient_BeginPeerExternalCluster() {
|
|||
// }
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeExternalReplication.json
|
||||
func ExampleVolumesClient_BeginAuthorizeExternalReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -615,7 +679,7 @@ func ExampleVolumesClient_BeginAuthorizeExternalReplication() {
|
|||
// }
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeExternalReplication.json
|
||||
func ExampleVolumesClient_BeginFinalizeExternalReplication() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -636,7 +700,7 @@ func ExampleVolumesClient_BeginFinalizeExternalReplication() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PerformReplicationTransfer.json
|
||||
func ExampleVolumesClient_BeginPerformReplicationTransfer() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -657,7 +721,7 @@ func ExampleVolumesClient_BeginPerformReplicationTransfer() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PoolChange.json
|
||||
func ExampleVolumesClient_BeginPoolChange() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -680,7 +744,7 @@ func ExampleVolumesClient_BeginPoolChange() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Relocate.json
|
||||
func ExampleVolumesClient_BeginRelocate() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -701,7 +765,7 @@ func ExampleVolumesClient_BeginRelocate() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeRelocation.json
|
||||
func ExampleVolumesClient_BeginFinalizeRelocation() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
@ -722,7 +786,7 @@ func ExampleVolumesClient_BeginFinalizeRelocation() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_RevertRelocation.json
|
||||
func ExampleVolumesClient_BeginRevertRelocation() {
|
||||
cred, err := azidentity.NewDefaultAzureCredential(nil)
|
||||
if err != nil {
|
||||
|
|
Загрузка…
Ссылка в новой задаче