Documentation
¶
Index ¶
- type Account
- type AccountBackupsClient
- func (client *AccountBackupsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[AccountBackupsClientDeleteResponse], error)
- func (client *AccountBackupsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (AccountBackupsClientGetResponse, error)
- func (client *AccountBackupsClient) NewListPager(resourceGroupName string, accountName string, ...) *runtime.Pager[AccountBackupsClientListResponse]
- type AccountBackupsClientBeginDeleteOptions
- type AccountBackupsClientDeleteResponse
- type AccountBackupsClientGetOptions
- type AccountBackupsClientGetResponse
- type AccountBackupsClientListOptions
- type AccountBackupsClientListResponse
- type AccountEncryption
- type AccountList
- type AccountPatch
- type AccountProperties
- type AccountsClient
- func (client *AccountsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[AccountsClientCreateOrUpdateResponse], error)
- func (client *AccountsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[AccountsClientDeleteResponse], error)
- func (client *AccountsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[AccountsClientUpdateResponse], error)
- func (client *AccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (AccountsClientGetResponse, error)
- func (client *AccountsClient) NewListBySubscriptionPager(options *AccountsClientListBySubscriptionOptions) *runtime.Pager[AccountsClientListBySubscriptionResponse]
- func (client *AccountsClient) NewListPager(resourceGroupName string, options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse]
- type AccountsClientBeginCreateOrUpdateOptions
- type AccountsClientBeginDeleteOptions
- type AccountsClientBeginUpdateOptions
- type AccountsClientCreateOrUpdateResponse
- type AccountsClientDeleteResponse
- type AccountsClientGetOptions
- type AccountsClientGetResponse
- type AccountsClientListBySubscriptionOptions
- type AccountsClientListBySubscriptionResponse
- type AccountsClientListOptions
- type AccountsClientListResponse
- type AccountsClientUpdateResponse
- type ActiveDirectory
- type ActiveDirectoryStatus
- type ApplicationType
- type AuthorizeRequest
- type AvsDataStore
- type Backup
- type BackupPatch
- type BackupPoliciesClient
- func (client *BackupPoliciesClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[BackupPoliciesClientCreateResponse], error)
- func (client *BackupPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[BackupPoliciesClientDeleteResponse], error)
- func (client *BackupPoliciesClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[BackupPoliciesClientUpdateResponse], error)
- func (client *BackupPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (BackupPoliciesClientGetResponse, error)
- func (client *BackupPoliciesClient) NewListPager(resourceGroupName string, accountName string, ...) *runtime.Pager[BackupPoliciesClientListResponse]
- type BackupPoliciesClientBeginCreateOptions
- type BackupPoliciesClientBeginDeleteOptions
- type BackupPoliciesClientBeginUpdateOptions
- type BackupPoliciesClientCreateResponse
- type BackupPoliciesClientDeleteResponse
- type BackupPoliciesClientGetOptions
- type BackupPoliciesClientGetResponse
- type BackupPoliciesClientListOptions
- type BackupPoliciesClientListResponse
- type BackupPoliciesClientUpdateResponse
- type BackupPoliciesList
- type BackupPolicy
- type BackupPolicyDetails
- type BackupPolicyPatch
- type BackupPolicyProperties
- type BackupProperties
- type BackupStatus
- type BackupType
- type BackupsClient
- func (client *BackupsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[BackupsClientCreateResponse], error)
- func (client *BackupsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[BackupsClientDeleteResponse], error)
- func (client *BackupsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[BackupsClientUpdateResponse], error)
- func (client *BackupsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (BackupsClientGetResponse, error)
- func (client *BackupsClient) GetStatus(ctx context.Context, resourceGroupName string, accountName string, ...) (BackupsClientGetStatusResponse, error)
- func (client *BackupsClient) GetVolumeRestoreStatus(ctx context.Context, resourceGroupName string, accountName string, ...) (BackupsClientGetVolumeRestoreStatusResponse, error)
- func (client *BackupsClient) NewListPager(resourceGroupName string, accountName string, poolName string, ...) *runtime.Pager[BackupsClientListResponse]
- type BackupsClientBeginCreateOptions
- type BackupsClientBeginDeleteOptions
- type BackupsClientBeginUpdateOptions
- type BackupsClientCreateResponse
- type BackupsClientDeleteResponse
- type BackupsClientGetOptions
- type BackupsClientGetResponse
- type BackupsClientGetStatusOptions
- type BackupsClientGetStatusResponse
- type BackupsClientGetVolumeRestoreStatusOptions
- type BackupsClientGetVolumeRestoreStatusResponse
- type BackupsClientListOptions
- type BackupsClientListResponse
- type BackupsClientUpdateResponse
- type BackupsList
- type BreakReplicationRequest
- type CapacityPool
- type CapacityPoolList
- type CapacityPoolPatch
- type CheckAvailabilityResponse
- type CheckNameResourceTypes
- type CheckQuotaNameResourceTypes
- type ChownMode
- type CloudError
- type CloudErrorBody
- type CreatedByType
- type DailySchedule
- type Dimension
- type EnableSubvolumes
- type EncryptionType
- type EndpointType
- type ExportPolicyRule
- type FilePathAvailabilityRequest
- type HourlySchedule
- type InAvailabilityReasonType
- type LdapSearchScopeOpt
- type LogSpecification
- type MetricAggregationType
- type MetricSpecification
- type MirrorState
- type MonthlySchedule
- type MountTarget
- type MountTargetProperties
- type NetworkFeatures
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationProperties
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type PlacementKeyValuePairs
- type PoolChangeRequest
- type PoolPatchProperties
- type PoolProperties
- type PoolsClient
- func (client *PoolsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[PoolsClientCreateOrUpdateResponse], error)
- func (client *PoolsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[PoolsClientDeleteResponse], error)
- func (client *PoolsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[PoolsClientUpdateResponse], error)
- func (client *PoolsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (PoolsClientGetResponse, error)
- func (client *PoolsClient) NewListPager(resourceGroupName string, accountName string, options *PoolsClientListOptions) *runtime.Pager[PoolsClientListResponse]
- type PoolsClientBeginCreateOrUpdateOptions
- type PoolsClientBeginDeleteOptions
- type PoolsClientBeginUpdateOptions
- type PoolsClientCreateOrUpdateResponse
- type PoolsClientDeleteResponse
- type PoolsClientGetOptions
- type PoolsClientGetResponse
- type PoolsClientListOptions
- type PoolsClientListResponse
- type PoolsClientUpdateResponse
- type ProxyResource
- type QosType
- type QuotaAvailabilityRequest
- type RelationshipStatus
- type ReplicationObject
- type ReplicationSchedule
- type ReplicationStatus
- type Resource
- type ResourceClient
- func (client *ResourceClient) CheckFilePathAvailability(ctx context.Context, location string, body FilePathAvailabilityRequest, ...) (ResourceClientCheckFilePathAvailabilityResponse, error)
- func (client *ResourceClient) CheckNameAvailability(ctx context.Context, location string, body ResourceNameAvailabilityRequest, ...) (ResourceClientCheckNameAvailabilityResponse, error)
- func (client *ResourceClient) CheckQuotaAvailability(ctx context.Context, location string, body QuotaAvailabilityRequest, ...) (ResourceClientCheckQuotaAvailabilityResponse, error)
- type ResourceClientCheckFilePathAvailabilityOptions
- type ResourceClientCheckFilePathAvailabilityResponse
- type ResourceClientCheckNameAvailabilityOptions
- type ResourceClientCheckNameAvailabilityResponse
- type ResourceClientCheckQuotaAvailabilityOptions
- type ResourceClientCheckQuotaAvailabilityResponse
- type ResourceIdentity
- type ResourceNameAvailabilityRequest
- type ResourceQuotaLimitsClient
- func (client *ResourceQuotaLimitsClient) Get(ctx context.Context, location string, quotaLimitName string, ...) (ResourceQuotaLimitsClientGetResponse, error)
- func (client *ResourceQuotaLimitsClient) NewListPager(location string, options *ResourceQuotaLimitsClientListOptions) *runtime.Pager[ResourceQuotaLimitsClientListResponse]
- type ResourceQuotaLimitsClientGetOptions
- type ResourceQuotaLimitsClientGetResponse
- type ResourceQuotaLimitsClientListOptions
- type ResourceQuotaLimitsClientListResponse
- type RestoreStatus
- type SecurityStyle
- type ServiceLevel
- type ServiceSpecification
- type Snapshot
- type SnapshotPoliciesClient
- func (client *SnapshotPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[SnapshotPoliciesClientDeleteResponse], error)
- func (client *SnapshotPoliciesClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[SnapshotPoliciesClientUpdateResponse], error)
- func (client *SnapshotPoliciesClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) (SnapshotPoliciesClientCreateResponse, error)
- func (client *SnapshotPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (SnapshotPoliciesClientGetResponse, error)
- func (client *SnapshotPoliciesClient) ListVolumes(ctx context.Context, resourceGroupName string, accountName string, ...) (SnapshotPoliciesClientListVolumesResponse, error)
- func (client *SnapshotPoliciesClient) NewListPager(resourceGroupName string, accountName string, ...) *runtime.Pager[SnapshotPoliciesClientListResponse]
- type SnapshotPoliciesClientBeginDeleteOptions
- type SnapshotPoliciesClientBeginUpdateOptions
- type SnapshotPoliciesClientCreateOptions
- type SnapshotPoliciesClientCreateResponse
- type SnapshotPoliciesClientDeleteResponse
- type SnapshotPoliciesClientGetOptions
- type SnapshotPoliciesClientGetResponse
- type SnapshotPoliciesClientListOptions
- type SnapshotPoliciesClientListResponse
- type SnapshotPoliciesClientListVolumesOptions
- type SnapshotPoliciesClientListVolumesResponse
- type SnapshotPoliciesClientUpdateResponse
- type SnapshotPoliciesList
- type SnapshotPolicy
- type SnapshotPolicyDetails
- type SnapshotPolicyPatch
- type SnapshotPolicyProperties
- type SnapshotPolicyVolumeList
- type SnapshotProperties
- type SnapshotRestoreFiles
- type SnapshotsClient
- func (client *SnapshotsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[SnapshotsClientCreateResponse], error)
- func (client *SnapshotsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[SnapshotsClientDeleteResponse], error)
- func (client *SnapshotsClient) BeginRestoreFiles(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[SnapshotsClientRestoreFilesResponse], error)
- func (client *SnapshotsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[SnapshotsClientUpdateResponse], error)
- func (client *SnapshotsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (SnapshotsClientGetResponse, error)
- func (client *SnapshotsClient) NewListPager(resourceGroupName string, accountName string, poolName string, ...) *runtime.Pager[SnapshotsClientListResponse]
- type SnapshotsClientBeginCreateOptions
- type SnapshotsClientBeginDeleteOptions
- type SnapshotsClientBeginRestoreFilesOptions
- type SnapshotsClientBeginUpdateOptions
- type SnapshotsClientCreateResponse
- type SnapshotsClientDeleteResponse
- type SnapshotsClientGetOptions
- type SnapshotsClientGetResponse
- type SnapshotsClientListOptions
- type SnapshotsClientListResponse
- type SnapshotsClientRestoreFilesResponse
- type SnapshotsClientUpdateResponse
- type SnapshotsList
- type SubscriptionQuotaItem
- type SubscriptionQuotaItemList
- type SubscriptionQuotaItemProperties
- type SubvolumeInfo
- type SubvolumeModel
- type SubvolumeModelProperties
- type SubvolumePatchParams
- type SubvolumePatchRequest
- type SubvolumeProperties
- type SubvolumesClient
- func (client *SubvolumesClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[SubvolumesClientCreateResponse], error)
- func (client *SubvolumesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[SubvolumesClientDeleteResponse], error)
- func (client *SubvolumesClient) BeginGetMetadata(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[SubvolumesClientGetMetadataResponse], error)
- func (client *SubvolumesClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[SubvolumesClientUpdateResponse], error)
- func (client *SubvolumesClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (SubvolumesClientGetResponse, error)
- func (client *SubvolumesClient) NewListByVolumePager(resourceGroupName string, accountName string, poolName string, ...) *runtime.Pager[SubvolumesClientListByVolumeResponse]
- type SubvolumesClientBeginCreateOptions
- type SubvolumesClientBeginDeleteOptions
- type SubvolumesClientBeginGetMetadataOptions
- type SubvolumesClientBeginUpdateOptions
- type SubvolumesClientCreateResponse
- type SubvolumesClientDeleteResponse
- type SubvolumesClientGetMetadataResponse
- type SubvolumesClientGetOptions
- type SubvolumesClientGetResponse
- type SubvolumesClientListByVolumeOptions
- type SubvolumesClientListByVolumeResponse
- type SubvolumesClientUpdateResponse
- type SubvolumesList
- type SystemData
- type Vault
- type VaultList
- type VaultProperties
- type VaultsClient
- type VaultsClientListOptions
- type VaultsClientListResponse
- type Volume
- type VolumeBackupProperties
- type VolumeBackups
- type VolumeGroup
- type VolumeGroupDetails
- type VolumeGroupList
- type VolumeGroupListProperties
- type VolumeGroupMetaData
- type VolumeGroupProperties
- type VolumeGroupVolumeProperties
- type VolumeGroupsClient
- func (client *VolumeGroupsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumeGroupsClientCreateResponse], error)
- func (client *VolumeGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumeGroupsClientDeleteResponse], error)
- func (client *VolumeGroupsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (VolumeGroupsClientGetResponse, error)
- func (client *VolumeGroupsClient) NewListByNetAppAccountPager(resourceGroupName string, accountName string, ...) *runtime.Pager[VolumeGroupsClientListByNetAppAccountResponse]
- type VolumeGroupsClientBeginCreateOptions
- type VolumeGroupsClientBeginDeleteOptions
- type VolumeGroupsClientCreateResponse
- type VolumeGroupsClientDeleteResponse
- type VolumeGroupsClientGetOptions
- type VolumeGroupsClientGetResponse
- type VolumeGroupsClientListByNetAppAccountOptions
- type VolumeGroupsClientListByNetAppAccountResponse
- type VolumeList
- type VolumePatch
- type VolumePatchProperties
- type VolumePatchPropertiesDataProtection
- type VolumePatchPropertiesExportPolicy
- type VolumeProperties
- type VolumePropertiesDataProtection
- type VolumePropertiesExportPolicy
- type VolumeRevert
- type VolumeSnapshotProperties
- type VolumeStorageToNetworkProximity
- type VolumesClient
- func (client *VolumesClient) BeginAuthorizeReplication(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientAuthorizeReplicationResponse], error)
- func (client *VolumesClient) BeginBreakReplication(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientBreakReplicationResponse], error)
- func (client *VolumesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientCreateOrUpdateResponse], error)
- func (client *VolumesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientDeleteResponse], error)
- func (client *VolumesClient) BeginDeleteReplication(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientDeleteReplicationResponse], error)
- func (client *VolumesClient) BeginPoolChange(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientPoolChangeResponse], error)
- func (client *VolumesClient) BeginReInitializeReplication(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientReInitializeReplicationResponse], error)
- func (client *VolumesClient) BeginResyncReplication(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientResyncReplicationResponse], error)
- func (client *VolumesClient) BeginRevert(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientRevertResponse], error)
- func (client *VolumesClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientUpdateResponse], error)
- func (client *VolumesClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (VolumesClientGetResponse, error)
- func (client *VolumesClient) NewListPager(resourceGroupName string, accountName string, poolName string, ...) *runtime.Pager[VolumesClientListResponse]
- func (client *VolumesClient) ReplicationStatus(ctx context.Context, resourceGroupName string, accountName string, ...) (VolumesClientReplicationStatusResponse, error)
- type VolumesClientAuthorizeReplicationResponse
- type VolumesClientBeginAuthorizeReplicationOptions
- type VolumesClientBeginBreakReplicationOptions
- type VolumesClientBeginCreateOrUpdateOptions
- type VolumesClientBeginDeleteOptions
- type VolumesClientBeginDeleteReplicationOptions
- type VolumesClientBeginPoolChangeOptions
- type VolumesClientBeginReInitializeReplicationOptions
- type VolumesClientBeginResyncReplicationOptions
- type VolumesClientBeginRevertOptions
- type VolumesClientBeginUpdateOptions
- type VolumesClientBreakReplicationResponse
- type VolumesClientCreateOrUpdateResponse
- type VolumesClientDeleteReplicationResponse
- type VolumesClientDeleteResponse
- type VolumesClientGetOptions
- type VolumesClientGetResponse
- type VolumesClientListOptions
- type VolumesClientListResponse
- type VolumesClientPoolChangeResponse
- type VolumesClientReInitializeReplicationResponse
- type VolumesClientReplicationStatusOptions
- type VolumesClientReplicationStatusResponse
- type VolumesClientResyncReplicationResponse
- type VolumesClientRevertResponse
- type VolumesClientUpdateResponse
- type WeeklySchedule
Examples ¶
- AccountBackupsClient.BeginDelete
- AccountBackupsClient.Get
- AccountBackupsClient.NewListPager
- AccountsClient.BeginCreateOrUpdate
- AccountsClient.BeginDelete
- AccountsClient.BeginUpdate
- AccountsClient.Get
- AccountsClient.NewListBySubscriptionPager
- AccountsClient.NewListPager
- BackupPoliciesClient.BeginCreate
- BackupPoliciesClient.BeginDelete
- BackupPoliciesClient.BeginUpdate
- BackupPoliciesClient.Get
- BackupPoliciesClient.NewListPager
- BackupsClient.BeginCreate
- BackupsClient.BeginDelete
- BackupsClient.BeginUpdate
- BackupsClient.Get
- BackupsClient.GetStatus
- BackupsClient.GetVolumeRestoreStatus
- BackupsClient.NewListPager
- OperationsClient.NewListPager
- PoolsClient.BeginCreateOrUpdate
- PoolsClient.BeginDelete
- PoolsClient.BeginUpdate
- PoolsClient.Get
- PoolsClient.NewListPager
- ResourceClient.CheckFilePathAvailability
- ResourceClient.CheckNameAvailability
- ResourceClient.CheckQuotaAvailability
- ResourceQuotaLimitsClient.Get
- ResourceQuotaLimitsClient.NewListPager
- SnapshotPoliciesClient.BeginDelete
- SnapshotPoliciesClient.BeginUpdate
- SnapshotPoliciesClient.Create
- SnapshotPoliciesClient.Get
- SnapshotPoliciesClient.ListVolumes
- SnapshotPoliciesClient.NewListPager
- SnapshotsClient.BeginCreate
- SnapshotsClient.BeginDelete
- SnapshotsClient.BeginRestoreFiles
- SnapshotsClient.BeginUpdate
- SnapshotsClient.Get
- SnapshotsClient.NewListPager
- SubvolumesClient.BeginCreate
- SubvolumesClient.BeginDelete
- SubvolumesClient.BeginGetMetadata
- SubvolumesClient.BeginUpdate
- SubvolumesClient.Get
- SubvolumesClient.NewListByVolumePager
- VaultsClient.NewListPager
- VolumeGroupsClient.BeginCreate
- VolumeGroupsClient.BeginDelete
- VolumeGroupsClient.Get
- VolumeGroupsClient.NewListByNetAppAccountPager
- VolumesClient.BeginAuthorizeReplication
- VolumesClient.BeginBreakReplication
- VolumesClient.BeginCreateOrUpdate
- VolumesClient.BeginDelete
- VolumesClient.BeginDeleteReplication
- VolumesClient.BeginPoolChange
- VolumesClient.BeginReInitializeReplication
- VolumesClient.BeginResyncReplication
- VolumesClient.BeginRevert
- VolumesClient.BeginUpdate
- VolumesClient.Get
- VolumesClient.NewListPager
- VolumesClient.ReplicationStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶ added in v0.2.0
type Account struct { // REQUIRED; Resource location Location *string `json:"location,omitempty"` // NetApp Account properties Properties *AccountProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The system meta data relating to this resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Account - NetApp account resource
func (Account) MarshalJSON ¶ added in v0.2.0
MarshalJSON implements the json.Marshaller interface for type Account.
type AccountBackupsClient ¶
type AccountBackupsClient struct {
// contains filtered or unexported fields
}
AccountBackupsClient contains the methods for the AccountBackups group. Don't use this type directly, use NewAccountBackupsClient() instead.
func NewAccountBackupsClient ¶
func NewAccountBackupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AccountBackupsClient, error)
NewAccountBackupsClient creates a new instance of AccountBackupsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AccountBackupsClient) BeginDelete ¶
func (client *AccountBackupsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, backupName string, options *AccountBackupsClientBeginDeleteOptions) (*runtime.Poller[AccountBackupsClientDeleteResponse], error)
BeginDelete - Delete the specified Backup for a Netapp Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account backupName - The name of the backup options - AccountBackupsClientBeginDeleteOptions contains the optional parameters for the AccountBackupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewAccountBackupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "resourceGroup", "accountName", "backupName", 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) } }
Output:
func (*AccountBackupsClient) Get ¶
func (client *AccountBackupsClient) Get(ctx context.Context, resourceGroupName string, accountName string, backupName string, options *AccountBackupsClientGetOptions) (AccountBackupsClientGetResponse, error)
Get - Gets the specified backup for a Netapp Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account backupName - The name of the backup options - AccountBackupsClientGetOptions contains the optional parameters for the AccountBackupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewAccountBackupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myRG", "account1", "backup1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*AccountBackupsClient) NewListPager ¶ added in v0.4.0
func (client *AccountBackupsClient) NewListPager(resourceGroupName string, accountName string, options *AccountBackupsClientListOptions) *runtime.Pager[AccountBackupsClientListResponse]
NewListPager - List all Backups for a Netapp Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account options - AccountBackupsClientListOptions contains the optional parameters for the AccountBackupsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Account_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewAccountBackupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myRG", "account1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AccountBackupsClientBeginDeleteOptions ¶ added in v0.2.0
type AccountBackupsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AccountBackupsClientBeginDeleteOptions contains the optional parameters for the AccountBackupsClient.BeginDelete method.
type AccountBackupsClientDeleteResponse ¶ added in v0.2.0
type AccountBackupsClientDeleteResponse struct { }
AccountBackupsClientDeleteResponse contains the response from method AccountBackupsClient.Delete.
type AccountBackupsClientGetOptions ¶ added in v0.2.0
type AccountBackupsClientGetOptions struct { }
AccountBackupsClientGetOptions contains the optional parameters for the AccountBackupsClient.Get method.
type AccountBackupsClientGetResponse ¶ added in v0.2.0
type AccountBackupsClientGetResponse struct {
Backup
}
AccountBackupsClientGetResponse contains the response from method AccountBackupsClient.Get.
type AccountBackupsClientListOptions ¶ added in v0.2.0
type AccountBackupsClientListOptions struct { }
AccountBackupsClientListOptions contains the optional parameters for the AccountBackupsClient.List method.
type AccountBackupsClientListResponse ¶ added in v0.2.0
type AccountBackupsClientListResponse struct {
BackupsList
}
AccountBackupsClientListResponse contains the response from method AccountBackupsClient.List.
type AccountEncryption ¶
type AccountEncryption struct { // Encryption Key Source. Possible values are: 'Microsoft.NetApp'. KeySource *string `json:"keySource,omitempty"` }
AccountEncryption - Encryption settings
type AccountList ¶ added in v0.2.0
type AccountList struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // Multiple NetApp accounts Value []*Account `json:"value,omitempty"` }
AccountList - List of NetApp account resources
type AccountPatch ¶ added in v0.2.0
type AccountPatch struct { // Resource location Location *string `json:"location,omitempty"` // NetApp Account properties Properties *AccountProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
AccountPatch - NetApp account patch resource
func (AccountPatch) MarshalJSON ¶ added in v0.2.0
func (a AccountPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AccountPatch.
type AccountProperties ¶
type AccountProperties struct { // Active Directories ActiveDirectories []*ActiveDirectory `json:"activeDirectories,omitempty"` // Encryption settings Encryption *AccountEncryption `json:"encryption,omitempty"` // READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
AccountProperties - NetApp account properties
func (AccountProperties) MarshalJSON ¶
func (a AccountProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AccountProperties.
type AccountsClient ¶
type AccountsClient struct {
// contains filtered or unexported fields
}
AccountsClient contains the methods for the Accounts group. Don't use this type directly, use NewAccountsClient() instead.
func NewAccountsClient ¶
func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AccountsClient, error)
NewAccountsClient creates a new instance of AccountsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*AccountsClient) BeginCreateOrUpdate ¶
func (client *AccountsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, body Account, options *AccountsClientBeginCreateOrUpdateOptions) (*runtime.Poller[AccountsClientCreateOrUpdateResponse], error)
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 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account body - NetApp Account object supplied in the body of the operation. options - AccountsClientBeginCreateOrUpdateOptions contains the optional parameters for the AccountsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewAccountsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "myRG", "account1", armnetapp.Account{ Location: to.Ptr("eastus"), Properties: &armnetapp.AccountProperties{ ActiveDirectories: []*armnetapp.ActiveDirectory{ { AesEncryption: to.Ptr(true), DNS: to.Ptr("10.10.10.3, 10.10.10.4"), Domain: to.Ptr("10.10.10.3"), LdapOverTLS: to.Ptr(false), LdapSigning: to.Ptr(false), OrganizationalUnit: to.Ptr("OU=Engineering"), Password: to.Ptr("ad_password"), Site: to.Ptr("SiteName"), SmbServerName: to.Ptr("SMBServer"), Username: to.Ptr("ad_user_name"), }}, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*AccountsClient) BeginDelete ¶
func (client *AccountsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginDeleteOptions) (*runtime.Poller[AccountsClientDeleteResponse], error)
BeginDelete - Delete the specified NetApp account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account options - AccountsClientBeginDeleteOptions contains the optional parameters for the AccountsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewAccountsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(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) } }
Output:
func (*AccountsClient) BeginUpdate ¶
func (client *AccountsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, body AccountPatch, options *AccountsClientBeginUpdateOptions) (*runtime.Poller[AccountsClientUpdateResponse], error)
BeginUpdate - Patch the specified NetApp account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account body - NetApp Account object supplied in the body of the operation. options - AccountsClientBeginUpdateOptions contains the optional parameters for the AccountsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewAccountsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "myRG", "account1", armnetapp.AccountPatch{ Tags: map[string]*string{ "Tag1": to.Ptr("Value1"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*AccountsClient) Get ¶
func (client *AccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientGetOptions) (AccountsClientGetResponse, error)
Get - Get the NetApp account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account options - AccountsClientGetOptions contains the optional parameters for the AccountsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewAccountsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myRG", "account1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*AccountsClient) NewListBySubscriptionPager ¶ added in v0.4.0
func (client *AccountsClient) NewListBySubscriptionPager(options *AccountsClientListBySubscriptionOptions) *runtime.Pager[AccountsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List and describe all NetApp accounts in the subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 options - AccountsClientListBySubscriptionOptions contains the optional parameters for the AccountsClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewAccountsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*AccountsClient) NewListPager ¶ added in v0.4.0
func (client *AccountsClient) NewListPager(resourceGroupName string, options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse]
NewListPager - List and describe all NetApp accounts in the resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. options - AccountsClientListOptions contains the optional parameters for the AccountsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Accounts_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewAccountsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myRG", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type AccountsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type AccountsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AccountsClientBeginCreateOrUpdateOptions contains the optional parameters for the AccountsClient.BeginCreateOrUpdate method.
type AccountsClientBeginDeleteOptions ¶ added in v0.2.0
type AccountsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AccountsClientBeginDeleteOptions contains the optional parameters for the AccountsClient.BeginDelete method.
type AccountsClientBeginUpdateOptions ¶ added in v0.2.0
type AccountsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
AccountsClientBeginUpdateOptions contains the optional parameters for the AccountsClient.BeginUpdate method.
type AccountsClientCreateOrUpdateResponse ¶ added in v0.2.0
type AccountsClientCreateOrUpdateResponse struct {
Account
}
AccountsClientCreateOrUpdateResponse contains the response from method AccountsClient.CreateOrUpdate.
type AccountsClientDeleteResponse ¶ added in v0.2.0
type AccountsClientDeleteResponse struct { }
AccountsClientDeleteResponse contains the response from method AccountsClient.Delete.
type AccountsClientGetOptions ¶ added in v0.2.0
type AccountsClientGetOptions struct { }
AccountsClientGetOptions contains the optional parameters for the AccountsClient.Get method.
type AccountsClientGetResponse ¶ added in v0.2.0
type AccountsClientGetResponse struct {
Account
}
AccountsClientGetResponse contains the response from method AccountsClient.Get.
type AccountsClientListBySubscriptionOptions ¶ added in v0.2.0
type AccountsClientListBySubscriptionOptions struct { }
AccountsClientListBySubscriptionOptions contains the optional parameters for the AccountsClient.ListBySubscription method.
type AccountsClientListBySubscriptionResponse ¶ added in v0.2.0
type AccountsClientListBySubscriptionResponse struct {
AccountList
}
AccountsClientListBySubscriptionResponse contains the response from method AccountsClient.ListBySubscription.
type AccountsClientListOptions ¶ added in v0.2.0
type AccountsClientListOptions struct { }
AccountsClientListOptions contains the optional parameters for the AccountsClient.List method.
type AccountsClientListResponse ¶ added in v0.2.0
type AccountsClientListResponse struct {
AccountList
}
AccountsClientListResponse contains the response from method AccountsClient.List.
type AccountsClientUpdateResponse ¶ added in v0.2.0
type AccountsClientUpdateResponse struct {
Account
}
AccountsClientUpdateResponse contains the response from method AccountsClient.Update.
type ActiveDirectory ¶
type ActiveDirectory struct { // Id of the Active Directory ActiveDirectoryID *string `json:"activeDirectoryId,omitempty"` // Name of the active directory machine. This optional parameter is used only while creating kerberos volume AdName *string `json:"adName,omitempty"` // Users to be added to the Built-in Administrators active directory group. A list of unique usernames without domain specifier Administrators []*string `json:"administrators,omitempty"` // If enabled, AES encryption will be enabled for SMB communication. AesEncryption *bool `json:"aesEncryption,omitempty"` // If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. AllowLocalNfsUsersWithLdap *bool `json:"allowLocalNfsUsersWithLdap,omitempty"` // Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without domain specifier BackupOperators []*string `json:"backupOperators,omitempty"` // Comma separated list of DNS server IP addresses (IPv4 only) for the Active Directory domain DNS *string `json:"dns,omitempty"` // Name of the Active Directory domain Domain *string `json:"domain,omitempty"` // If enabled, Traffic between the SMB server to Domain Controller (DC) will be encrypted. EncryptDCConnections *bool `json:"encryptDCConnections,omitempty"` // kdc server IP addresses for the active directory machine. This optional parameter is used only while creating kerberos // volume. KdcIP *string `json:"kdcIP,omitempty"` // Specifies whether or not the LDAP traffic needs to be secured via TLS. LdapOverTLS *bool `json:"ldapOverTLS,omitempty"` // LDAP Search scope options LdapSearchScope *LdapSearchScopeOpt `json:"ldapSearchScope,omitempty"` // Specifies whether or not the LDAP traffic needs to be signed. LdapSigning *bool `json:"ldapSigning,omitempty"` // The Organizational Unit (OU) within the Windows Active Directory OrganizationalUnit *string `json:"organizationalUnit,omitempty"` // Plain text password of Active Directory domain administrator, value is masked in the response Password *string `json:"password,omitempty"` // Domain Users in the Active directory to be given SeSecurityPrivilege privilege (Needed for SMB Continuously available shares // for SQL). A list of unique usernames without domain specifier SecurityOperators []*string `json:"securityOperators,omitempty"` // When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded Active Directory Certificate Service's // self-signed root CA certificate, this optional parameter is used only for // dual protocol with LDAP user-mapping volumes. ServerRootCACertificate *string `json:"serverRootCACertificate,omitempty"` // The Active Directory site the service will limit Domain Controller discovery to Site *string `json:"site,omitempty"` // NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes SmbServerName *string `json:"smbServerName,omitempty"` // Username of Active Directory domain administrator Username *string `json:"username,omitempty"` // READ-ONLY; Status of the Active Directory Status *ActiveDirectoryStatus `json:"status,omitempty" azure:"ro"` // READ-ONLY; Any details in regards to the Status of the Active Directory StatusDetails *string `json:"statusDetails,omitempty" azure:"ro"` }
ActiveDirectory - Active Directory
func (ActiveDirectory) MarshalJSON ¶
func (a ActiveDirectory) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ActiveDirectory.
type ActiveDirectoryStatus ¶
type ActiveDirectoryStatus string
ActiveDirectoryStatus - Status of the Active Directory
const ( // ActiveDirectoryStatusCreated - Active Directory created but not in use ActiveDirectoryStatusCreated ActiveDirectoryStatus = "Created" // ActiveDirectoryStatusDeleted - Active Directory Deleted ActiveDirectoryStatusDeleted ActiveDirectoryStatus = "Deleted" // ActiveDirectoryStatusError - Error with the Active Directory ActiveDirectoryStatusError ActiveDirectoryStatus = "Error" // ActiveDirectoryStatusInUse - Active Directory in use by SMB Volume ActiveDirectoryStatusInUse ActiveDirectoryStatus = "InUse" // ActiveDirectoryStatusUpdating - Active Directory Updating ActiveDirectoryStatusUpdating ActiveDirectoryStatus = "Updating" )
func PossibleActiveDirectoryStatusValues ¶
func PossibleActiveDirectoryStatusValues() []ActiveDirectoryStatus
PossibleActiveDirectoryStatusValues returns the possible values for the ActiveDirectoryStatus const type.
type ApplicationType ¶
type ApplicationType string
ApplicationType - Application Type
const (
ApplicationTypeSAPHANA ApplicationType = "SAP-HANA"
)
func PossibleApplicationTypeValues ¶
func PossibleApplicationTypeValues() []ApplicationType
PossibleApplicationTypeValues returns the possible values for the ApplicationType const type.
type AuthorizeRequest ¶
type AuthorizeRequest struct { // Resource id of the remote volume RemoteVolumeResourceID *string `json:"remoteVolumeResourceId,omitempty"` }
AuthorizeRequest - Authorize request
type AvsDataStore ¶
type AvsDataStore string
AvsDataStore - Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose
const ( // AvsDataStoreDisabled - avsDataStore is disabled AvsDataStoreDisabled AvsDataStore = "Disabled" // AvsDataStoreEnabled - avsDataStore is enabled AvsDataStoreEnabled AvsDataStore = "Enabled" )
func PossibleAvsDataStoreValues ¶
func PossibleAvsDataStoreValues() []AvsDataStore
PossibleAvsDataStoreValues returns the possible values for the AvsDataStore const type.
type Backup ¶
type Backup struct { // REQUIRED; Resource location Location *string `json:"location,omitempty"` // REQUIRED; Backup Properties Properties *BackupProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Backup of a Volume
type BackupPatch ¶
type BackupPatch struct { // Backup Properties Properties *BackupProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` }
BackupPatch - Backup patch
func (BackupPatch) MarshalJSON ¶
func (b BackupPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupPatch.
type BackupPoliciesClient ¶
type BackupPoliciesClient struct {
// contains filtered or unexported fields
}
BackupPoliciesClient contains the methods for the BackupPolicies group. Don't use this type directly, use NewBackupPoliciesClient() instead.
func NewBackupPoliciesClient ¶
func NewBackupPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupPoliciesClient, error)
NewBackupPoliciesClient creates a new instance of BackupPoliciesClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*BackupPoliciesClient) BeginCreate ¶
func (client *BackupPoliciesClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, backupPolicyName string, body BackupPolicy, options *BackupPoliciesClientBeginCreateOptions) (*runtime.Poller[BackupPoliciesClientCreateResponse], error)
BeginCreate - Create a backup policy for Netapp Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account backupPolicyName - Backup policy Name which uniquely identify backup policy. body - Backup policy object supplied in the body of the operation. options - BackupPoliciesClientBeginCreateOptions contains the optional parameters for the BackupPoliciesClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreate(ctx, "myRG", "account1", "backupPolicyName", armnetapp.BackupPolicy{ Location: to.Ptr("westus"), Properties: &armnetapp.BackupPolicyProperties{ DailyBackupsToKeep: to.Ptr[int32](10), Enabled: to.Ptr(true), MonthlyBackupsToKeep: to.Ptr[int32](10), WeeklyBackupsToKeep: to.Ptr[int32](10), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*BackupPoliciesClient) BeginDelete ¶
func (client *BackupPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, backupPolicyName string, options *BackupPoliciesClientBeginDeleteOptions) (*runtime.Poller[BackupPoliciesClientDeleteResponse], error)
BeginDelete - Delete backup policy If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account backupPolicyName - Backup policy Name which uniquely identify backup policy. options - BackupPoliciesClientBeginDeleteOptions contains the optional parameters for the BackupPoliciesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "resourceGroup", "accountName", "backupPolicyName", 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) } }
Output:
func (*BackupPoliciesClient) BeginUpdate ¶
func (client *BackupPoliciesClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, backupPolicyName string, body BackupPolicyPatch, options *BackupPoliciesClientBeginUpdateOptions) (*runtime.Poller[BackupPoliciesClientUpdateResponse], error)
BeginUpdate - Patch a backup policy for Netapp Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account backupPolicyName - Backup policy Name which uniquely identify backup policy. body - Backup policy object supplied in the body of the operation. options - BackupPoliciesClientBeginUpdateOptions contains the optional parameters for the BackupPoliciesClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "myRG", "account1", "backupPolicyName", armnetapp.BackupPolicyPatch{ Location: to.Ptr("westus"), Properties: &armnetapp.BackupPolicyProperties{ DailyBackupsToKeep: to.Ptr[int32](5), Enabled: to.Ptr(false), MonthlyBackupsToKeep: to.Ptr[int32](10), WeeklyBackupsToKeep: to.Ptr[int32](10), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*BackupPoliciesClient) Get ¶
func (client *BackupPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, backupPolicyName string, options *BackupPoliciesClientGetOptions) (BackupPoliciesClientGetResponse, error)
Get - Get a particular backup Policy If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account backupPolicyName - Backup policy Name which uniquely identify backup policy. options - BackupPoliciesClientGetOptions contains the optional parameters for the BackupPoliciesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myRG", "account1", "backupPolicyName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*BackupPoliciesClient) NewListPager ¶ added in v0.4.0
func (client *BackupPoliciesClient) NewListPager(resourceGroupName string, accountName string, options *BackupPoliciesClientListOptions) *runtime.Pager[BackupPoliciesClientListResponse]
NewListPager - List backup policies for Netapp Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account options - BackupPoliciesClientListOptions contains the optional parameters for the BackupPoliciesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/BackupPolicies_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myRG", "account1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type BackupPoliciesClientBeginCreateOptions ¶ added in v0.2.0
type BackupPoliciesClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BackupPoliciesClientBeginCreateOptions contains the optional parameters for the BackupPoliciesClient.BeginCreate method.
type BackupPoliciesClientBeginDeleteOptions ¶ added in v0.2.0
type BackupPoliciesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BackupPoliciesClientBeginDeleteOptions contains the optional parameters for the BackupPoliciesClient.BeginDelete method.
type BackupPoliciesClientBeginUpdateOptions ¶ added in v0.2.0
type BackupPoliciesClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BackupPoliciesClientBeginUpdateOptions contains the optional parameters for the BackupPoliciesClient.BeginUpdate method.
type BackupPoliciesClientCreateResponse ¶ added in v0.2.0
type BackupPoliciesClientCreateResponse struct {
BackupPolicy
}
BackupPoliciesClientCreateResponse contains the response from method BackupPoliciesClient.Create.
type BackupPoliciesClientDeleteResponse ¶ added in v0.2.0
type BackupPoliciesClientDeleteResponse struct { }
BackupPoliciesClientDeleteResponse contains the response from method BackupPoliciesClient.Delete.
type BackupPoliciesClientGetOptions ¶ added in v0.2.0
type BackupPoliciesClientGetOptions struct { }
BackupPoliciesClientGetOptions contains the optional parameters for the BackupPoliciesClient.Get method.
type BackupPoliciesClientGetResponse ¶ added in v0.2.0
type BackupPoliciesClientGetResponse struct {
BackupPolicy
}
BackupPoliciesClientGetResponse contains the response from method BackupPoliciesClient.Get.
type BackupPoliciesClientListOptions ¶ added in v0.2.0
type BackupPoliciesClientListOptions struct { }
BackupPoliciesClientListOptions contains the optional parameters for the BackupPoliciesClient.List method.
type BackupPoliciesClientListResponse ¶ added in v0.2.0
type BackupPoliciesClientListResponse struct {
BackupPoliciesList
}
BackupPoliciesClientListResponse contains the response from method BackupPoliciesClient.List.
type BackupPoliciesClientUpdateResponse ¶ added in v0.2.0
type BackupPoliciesClientUpdateResponse struct {
BackupPolicy
}
BackupPoliciesClientUpdateResponse contains the response from method BackupPoliciesClient.Update.
type BackupPoliciesList ¶
type BackupPoliciesList struct { // A list of backup policies Value []*BackupPolicy `json:"value,omitempty"` }
BackupPoliciesList - List of Backup Policies
type BackupPolicy ¶
type BackupPolicy struct { // REQUIRED; Resource location Location *string `json:"location,omitempty"` // REQUIRED; Backup policy Properties Properties *BackupPolicyProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The system meta data relating to this resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
BackupPolicy - Backup policy information
func (BackupPolicy) MarshalJSON ¶
func (b BackupPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupPolicy.
type BackupPolicyDetails ¶
type BackupPolicyDetails struct { // Resource location Location *string `json:"location,omitempty"` // Backup policy Properties Properties *BackupPolicyProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
BackupPolicyDetails - Backup policy properties
type BackupPolicyPatch ¶
type BackupPolicyPatch struct { // Resource location Location *string `json:"location,omitempty"` // Backup policy Properties Properties *BackupPolicyProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
BackupPolicyPatch - Backup policy Details for create and update
func (BackupPolicyPatch) MarshalJSON ¶
func (b BackupPolicyPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupPolicyPatch.
type BackupPolicyProperties ¶
type BackupPolicyProperties struct { // Daily backups count to keep DailyBackupsToKeep *int32 `json:"dailyBackupsToKeep,omitempty"` // The property to decide policy is enabled or not Enabled *bool `json:"enabled,omitempty"` // Monthly backups count to keep MonthlyBackupsToKeep *int32 `json:"monthlyBackupsToKeep,omitempty"` // Weekly backups count to keep WeeklyBackupsToKeep *int32 `json:"weeklyBackupsToKeep,omitempty"` // READ-ONLY; Backup Policy Resource ID BackupPolicyID *string `json:"backupPolicyId,omitempty" azure:"ro"` // READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; A list of volumes assigned to this policy VolumeBackups []*VolumeBackups `json:"volumeBackups,omitempty" azure:"ro"` // READ-ONLY; Volumes using current backup policy VolumesAssigned *int32 `json:"volumesAssigned,omitempty" azure:"ro"` }
BackupPolicyProperties - Backup policy properties
func (BackupPolicyProperties) MarshalJSON ¶
func (b BackupPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupPolicyProperties.
type BackupProperties ¶
type BackupProperties struct { // Label for backup Label *string `json:"label,omitempty"` // Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups UseExistingSnapshot *bool `json:"useExistingSnapshot,omitempty"` // READ-ONLY; UUID v4 used to identify the Backup BackupID *string `json:"backupId,omitempty" azure:"ro"` // READ-ONLY; Type of backup Manual or Scheduled BackupType *BackupType `json:"backupType,omitempty" azure:"ro"` // READ-ONLY; The creation date of the backup CreationDate *time.Time `json:"creationDate,omitempty" azure:"ro"` // READ-ONLY; Failure reason FailureReason *string `json:"failureReason,omitempty" azure:"ro"` // READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Size of backup Size *int64 `json:"size,omitempty" azure:"ro"` // READ-ONLY; Volume name VolumeName *string `json:"volumeName,omitempty" azure:"ro"` }
BackupProperties - Backup properties
func (BackupProperties) MarshalJSON ¶
func (b BackupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupProperties.
func (*BackupProperties) UnmarshalJSON ¶
func (b *BackupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupProperties.
type BackupStatus ¶
type BackupStatus struct { // READ-ONLY; Displays error message if the backup is in an error state ErrorMessage *string `json:"errorMessage,omitempty" azure:"ro"` // READ-ONLY; Backup health status Healthy *bool `json:"healthy,omitempty" azure:"ro"` // READ-ONLY; Displays the last transfer size LastTransferSize *int64 `json:"lastTransferSize,omitempty" azure:"ro"` // READ-ONLY; Displays the last transfer type LastTransferType *string `json:"lastTransferType,omitempty" azure:"ro"` // READ-ONLY; The status of the backup MirrorState *MirrorState `json:"mirrorState,omitempty" azure:"ro"` // READ-ONLY; Status of the backup mirror relationship RelationshipStatus *RelationshipStatus `json:"relationshipStatus,omitempty" azure:"ro"` // READ-ONLY; Displays the total bytes transferred TotalTransferBytes *int64 `json:"totalTransferBytes,omitempty" azure:"ro"` // READ-ONLY; Reason for the unhealthy backup relationship UnhealthyReason *string `json:"unhealthyReason,omitempty" azure:"ro"` }
BackupStatus - Backup status
type BackupType ¶
type BackupType string
BackupType - Type of backup Manual or Scheduled
const ( // BackupTypeManual - Manual backup BackupTypeManual BackupType = "Manual" // BackupTypeScheduled - Scheduled backup BackupTypeScheduled BackupType = "Scheduled" )
func PossibleBackupTypeValues ¶
func PossibleBackupTypeValues() []BackupType
PossibleBackupTypeValues returns the possible values for the BackupType const type.
type BackupsClient ¶
type BackupsClient struct {
// contains filtered or unexported fields
}
BackupsClient contains the methods for the Backups group. Don't use this type directly, use NewBackupsClient() instead.
func NewBackupsClient ¶
func NewBackupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupsClient, error)
NewBackupsClient creates a new instance of BackupsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*BackupsClient) BeginCreate ¶
func (client *BackupsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, backupName string, body Backup, options *BackupsClientBeginCreateOptions) (*runtime.Poller[BackupsClientCreateResponse], error)
BeginCreate - Create a backup for the volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume backupName - The name of the backup body - Backup object supplied in the body of the operation. options - BackupsClientBeginCreateOptions contains the optional parameters for the BackupsClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreate(ctx, "myRG", "account1", "pool1", "volume1", "backup1", armnetapp.Backup{ Location: to.Ptr("eastus"), Properties: &armnetapp.BackupProperties{ Label: to.Ptr("myLabel"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*BackupsClient) BeginDelete ¶
func (client *BackupsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, backupName string, options *BackupsClientBeginDeleteOptions) (*runtime.Poller[BackupsClientDeleteResponse], error)
BeginDelete - Delete a backup of the volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume backupName - The name of the backup options - BackupsClientBeginDeleteOptions contains the optional parameters for the BackupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "resourceGroup", "accountName", "poolName", "volumeName", "backupName", 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) } }
Output:
func (*BackupsClient) BeginUpdate ¶
func (client *BackupsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, backupName string, options *BackupsClientBeginUpdateOptions) (*runtime.Poller[BackupsClientUpdateResponse], error)
BeginUpdate - Patch a backup for the volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume backupName - The name of the backup options - BackupsClientBeginUpdateOptions contains the optional parameters for the BackupsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "myRG", "account1", "pool1", "volume1", "backup1", &armnetapp.BackupsClientBeginUpdateOptions{Body: &armnetapp.BackupPatch{}}) 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) } // TODO: use response item _ = res }
Output:
func (*BackupsClient) Get ¶
func (client *BackupsClient) Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, backupName string, options *BackupsClientGetOptions) (BackupsClientGetResponse, error)
Get - Gets the specified backup of the volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume backupName - The name of the backup options - BackupsClientGetOptions contains the optional parameters for the BackupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myRG", "account1", "pool1", "volume1", "backup1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*BackupsClient) GetStatus ¶
func (client *BackupsClient) GetStatus(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *BackupsClientGetStatusOptions) (BackupsClientGetStatusResponse, error)
GetStatus - Get the status of the backup for a volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - BackupsClientGetStatusOptions contains the optional parameters for the BackupsClient.GetStatus method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_BackupStatus.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetStatus(ctx, "myRG", "account1", "pool1", "volume1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*BackupsClient) GetVolumeRestoreStatus ¶
func (client *BackupsClient) GetVolumeRestoreStatus(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *BackupsClientGetVolumeRestoreStatusOptions) (BackupsClientGetVolumeRestoreStatusResponse, error)
GetVolumeRestoreStatus - Get the status of the restore for a volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - BackupsClientGetVolumeRestoreStatusOptions contains the optional parameters for the BackupsClient.GetVolumeRestoreStatus method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_RestoreStatus.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.GetVolumeRestoreStatus(ctx, "myRG", "account1", "pool1", "volume1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*BackupsClient) NewListPager ¶ added in v0.4.0
func (client *BackupsClient) NewListPager(resourceGroupName string, accountName string, poolName string, volumeName string, options *BackupsClientListOptions) *runtime.Pager[BackupsClientListResponse]
NewListPager - List all backups for a volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - BackupsClientListOptions contains the optional parameters for the BackupsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Backups_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewBackupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myRG", "account1", "pool1", "volume1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type BackupsClientBeginCreateOptions ¶ added in v0.2.0
type BackupsClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BackupsClientBeginCreateOptions contains the optional parameters for the BackupsClient.BeginCreate method.
type BackupsClientBeginDeleteOptions ¶ added in v0.2.0
type BackupsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
BackupsClientBeginDeleteOptions contains the optional parameters for the BackupsClient.BeginDelete method.
type BackupsClientBeginUpdateOptions ¶ added in v0.2.0
type BackupsClientBeginUpdateOptions struct { // Backup object supplied in the body of the operation. Body *BackupPatch // Resumes the LRO from the provided token. ResumeToken string }
BackupsClientBeginUpdateOptions contains the optional parameters for the BackupsClient.BeginUpdate method.
type BackupsClientCreateResponse ¶ added in v0.2.0
type BackupsClientCreateResponse struct {
Backup
}
BackupsClientCreateResponse contains the response from method BackupsClient.Create.
type BackupsClientDeleteResponse ¶ added in v0.2.0
type BackupsClientDeleteResponse struct { }
BackupsClientDeleteResponse contains the response from method BackupsClient.Delete.
type BackupsClientGetOptions ¶ added in v0.2.0
type BackupsClientGetOptions struct { }
BackupsClientGetOptions contains the optional parameters for the BackupsClient.Get method.
type BackupsClientGetResponse ¶ added in v0.2.0
type BackupsClientGetResponse struct {
Backup
}
BackupsClientGetResponse contains the response from method BackupsClient.Get.
type BackupsClientGetStatusOptions ¶ added in v0.2.0
type BackupsClientGetStatusOptions struct { }
BackupsClientGetStatusOptions contains the optional parameters for the BackupsClient.GetStatus method.
type BackupsClientGetStatusResponse ¶ added in v0.2.0
type BackupsClientGetStatusResponse struct {
BackupStatus
}
BackupsClientGetStatusResponse contains the response from method BackupsClient.GetStatus.
type BackupsClientGetVolumeRestoreStatusOptions ¶ added in v0.2.0
type BackupsClientGetVolumeRestoreStatusOptions struct { }
BackupsClientGetVolumeRestoreStatusOptions contains the optional parameters for the BackupsClient.GetVolumeRestoreStatus method.
type BackupsClientGetVolumeRestoreStatusResponse ¶ added in v0.2.0
type BackupsClientGetVolumeRestoreStatusResponse struct {
RestoreStatus
}
BackupsClientGetVolumeRestoreStatusResponse contains the response from method BackupsClient.GetVolumeRestoreStatus.
type BackupsClientListOptions ¶ added in v0.2.0
type BackupsClientListOptions struct { }
BackupsClientListOptions contains the optional parameters for the BackupsClient.List method.
type BackupsClientListResponse ¶ added in v0.2.0
type BackupsClientListResponse struct {
BackupsList
}
BackupsClientListResponse contains the response from method BackupsClient.List.
type BackupsClientUpdateResponse ¶ added in v0.2.0
type BackupsClientUpdateResponse struct {
Backup
}
BackupsClientUpdateResponse contains the response from method BackupsClient.Update.
type BackupsList ¶
type BackupsList struct { // A list of Backups Value []*Backup `json:"value,omitempty"` }
BackupsList - List of Backups
type BreakReplicationRequest ¶
type BreakReplicationRequest struct { // If replication is in status transferring and you want to force break the replication, set to true ForceBreakReplication *bool `json:"forceBreakReplication,omitempty"` }
BreakReplicationRequest - Break replication request
type CapacityPool ¶
type CapacityPool struct { // REQUIRED; Resource location Location *string `json:"location,omitempty"` // REQUIRED; Capacity pool properties Properties *PoolProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The system meta data relating to this resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
CapacityPool - Capacity pool resource
func (CapacityPool) MarshalJSON ¶
func (c CapacityPool) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapacityPool.
type CapacityPoolList ¶
type CapacityPoolList struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of Capacity pools Value []*CapacityPool `json:"value,omitempty"` }
CapacityPoolList - List of capacity pool resources
type CapacityPoolPatch ¶
type CapacityPoolPatch struct { // Resource location Location *string `json:"location,omitempty"` // Capacity pool properties Properties *PoolPatchProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
CapacityPoolPatch - Capacity pool patch resource
func (CapacityPoolPatch) MarshalJSON ¶
func (c CapacityPoolPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapacityPoolPatch.
type CheckAvailabilityResponse ¶
type CheckAvailabilityResponse struct { // true indicates name is valid and available. false indicates the name is invalid, unavailable, or both. IsAvailable *bool `json:"isAvailable,omitempty"` // If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements // so that the user can select a valid name. If reason == AlreadyExists, // explain that resource name is already in use, and direct them to select a different name. Message *string `json:"message,omitempty"` // Invalid indicates the name provided does not match Azure App Service naming requirements. AlreadyExists indicates that // the name is already in use and is therefore unavailable. Reason *InAvailabilityReasonType `json:"reason,omitempty"` }
CheckAvailabilityResponse - Information regarding availability of a resource.
type CheckNameResourceTypes ¶
type CheckNameResourceTypes string
CheckNameResourceTypes - Resource type used for verification.
const ( CheckNameResourceTypesMicrosoftNetAppNetAppAccounts CheckNameResourceTypes = "Microsoft.NetApp/netAppAccounts" CheckNameResourceTypesMicrosoftNetAppNetAppAccountsCapacityPools CheckNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools" CheckNameResourceTypesMicrosoftNetAppNetAppAccountsCapacityPoolsVolumes CheckNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes" CheckNameResourceTypesMicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots CheckNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots" )
func PossibleCheckNameResourceTypesValues ¶
func PossibleCheckNameResourceTypesValues() []CheckNameResourceTypes
PossibleCheckNameResourceTypesValues returns the possible values for the CheckNameResourceTypes const type.
type CheckQuotaNameResourceTypes ¶
type CheckQuotaNameResourceTypes string
CheckQuotaNameResourceTypes - Resource type used for verification.
const ( CheckQuotaNameResourceTypesMicrosoftNetAppNetAppAccounts CheckQuotaNameResourceTypes = "Microsoft.NetApp/netAppAccounts" CheckQuotaNameResourceTypesMicrosoftNetAppNetAppAccountsCapacityPools CheckQuotaNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools" CheckQuotaNameResourceTypesMicrosoftNetAppNetAppAccountsCapacityPoolsVolumes CheckQuotaNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes" CheckQuotaNameResourceTypesMicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots CheckQuotaNameResourceTypes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots" )
func PossibleCheckQuotaNameResourceTypesValues ¶
func PossibleCheckQuotaNameResourceTypesValues() []CheckQuotaNameResourceTypes
PossibleCheckQuotaNameResourceTypesValues returns the possible values for the CheckQuotaNameResourceTypes const type.
type ChownMode ¶
type ChownMode string
ChownMode - This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own.
func PossibleChownModeValues ¶
func PossibleChownModeValues() []ChownMode
PossibleChownModeValues returns the possible values for the ChownMode const type.
type CloudError ¶
type CloudError struct { // Cloud error body. Error *CloudErrorBody `json:"error,omitempty"` }
CloudError - An error response from the service.
type CloudErrorBody ¶
type CloudErrorBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` }
CloudErrorBody - An error response from the service.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type DailySchedule ¶
type DailySchedule struct { // Indicates which hour in UTC timezone a snapshot should be taken Hour *int32 `json:"hour,omitempty"` // Indicates which minute snapshot should be taken Minute *int32 `json:"minute,omitempty"` // Daily snapshot count to keep SnapshotsToKeep *int32 `json:"snapshotsToKeep,omitempty"` // Resource size in bytes, current storage usage for the volume in bytes UsedBytes *int64 `json:"usedBytes,omitempty"` }
DailySchedule - Daily Schedule properties
type Dimension ¶
type Dimension struct { // Display name of dimension. DisplayName *string `json:"displayName,omitempty"` // Display name of dimension. Name *string `json:"name,omitempty"` }
Dimension of blobs, possibly be blob type or access tier.
type EnableSubvolumes ¶ added in v0.3.0
type EnableSubvolumes string
EnableSubvolumes - Flag indicating whether subvolume operations are enabled on the volume
const ( // EnableSubvolumesDisabled - subvolumes are not enabled EnableSubvolumesDisabled EnableSubvolumes = "Disabled" // EnableSubvolumesEnabled - subvolumes are enabled EnableSubvolumesEnabled EnableSubvolumes = "Enabled" )
func PossibleEnableSubvolumesValues ¶ added in v0.3.0
func PossibleEnableSubvolumesValues() []EnableSubvolumes
PossibleEnableSubvolumesValues returns the possible values for the EnableSubvolumes const type.
type EncryptionType ¶
type EncryptionType string
EncryptionType - 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.
const ( // EncryptionTypeDouble - EncryptionType Double, volumes will use double encryption at rest EncryptionTypeDouble EncryptionType = "Double" // EncryptionTypeSingle - EncryptionType Single, volumes will use single encryption at rest EncryptionTypeSingle EncryptionType = "Single" )
func PossibleEncryptionTypeValues ¶
func PossibleEncryptionTypeValues() []EncryptionType
PossibleEncryptionTypeValues returns the possible values for the EncryptionType const type.
type EndpointType ¶
type EndpointType string
EndpointType - Indicates whether the local volume is the source or destination for the Volume Replication
const ( EndpointTypeDst EndpointType = "dst" EndpointTypeSrc EndpointType = "src" )
func PossibleEndpointTypeValues ¶
func PossibleEndpointTypeValues() []EndpointType
PossibleEndpointTypeValues returns the possible values for the EndpointType const type.
type ExportPolicyRule ¶
type ExportPolicyRule struct { // Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names AllowedClients *string `json:"allowedClients,omitempty"` // This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the // ownership of the file. unrestricted - Non-root users can change ownership of // files that they own. ChownMode *ChownMode `json:"chownMode,omitempty"` // Allows CIFS protocol Cifs *bool `json:"cifs,omitempty"` // Has root access to volume HasRootAccess *bool `json:"hasRootAccess,omitempty"` // Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later Kerberos5IReadOnly *bool `json:"kerberos5iReadOnly,omitempty"` // Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later Kerberos5IReadWrite *bool `json:"kerberos5iReadWrite,omitempty"` // Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later Kerberos5PReadOnly *bool `json:"kerberos5pReadOnly,omitempty"` // Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later Kerberos5PReadWrite *bool `json:"kerberos5pReadWrite,omitempty"` // Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later Kerberos5ReadOnly *bool `json:"kerberos5ReadOnly,omitempty"` // Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later Kerberos5ReadWrite *bool `json:"kerberos5ReadWrite,omitempty"` // Allows NFSv3 protocol. Enable only for NFSv3 type volumes Nfsv3 *bool `json:"nfsv3,omitempty"` // Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes Nfsv41 *bool `json:"nfsv41,omitempty"` // Order index RuleIndex *int32 `json:"ruleIndex,omitempty"` // Read only access UnixReadOnly *bool `json:"unixReadOnly,omitempty"` // Read and write access UnixReadWrite *bool `json:"unixReadWrite,omitempty"` }
ExportPolicyRule - Volume Export Policy Rule
type FilePathAvailabilityRequest ¶
type FilePathAvailabilityRequest struct { // REQUIRED; File path to verify. Name *string `json:"name,omitempty"` // REQUIRED; The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes SubnetID *string `json:"subnetId,omitempty"` }
FilePathAvailabilityRequest - File path availability request content - availability is based on the name and the subnetId.
type HourlySchedule ¶
type HourlySchedule struct { // Indicates which minute snapshot should be taken Minute *int32 `json:"minute,omitempty"` // Hourly snapshot count to keep SnapshotsToKeep *int32 `json:"snapshotsToKeep,omitempty"` // Resource size in bytes, current storage usage for the volume in bytes UsedBytes *int64 `json:"usedBytes,omitempty"` }
HourlySchedule - Hourly Schedule properties
type InAvailabilityReasonType ¶
type InAvailabilityReasonType string
InAvailabilityReasonType - Invalid indicates the name provided does not match Azure App Service naming requirements. AlreadyExists indicates that the name is already in use and is therefore unavailable.
const ( InAvailabilityReasonTypeAlreadyExists InAvailabilityReasonType = "AlreadyExists" InAvailabilityReasonTypeInvalid InAvailabilityReasonType = "Invalid" )
func PossibleInAvailabilityReasonTypeValues ¶
func PossibleInAvailabilityReasonTypeValues() []InAvailabilityReasonType
PossibleInAvailabilityReasonTypeValues returns the possible values for the InAvailabilityReasonType const type.
type LdapSearchScopeOpt ¶ added in v0.3.0
type LdapSearchScopeOpt struct { // This specifies the group DN, which overrides the base DN for group lookups. GroupDN *string `json:"groupDN,omitempty"` // This specifies the custom LDAP search filter to be used when looking up group membership from LDAP server. GroupMembershipFilter *string `json:"groupMembershipFilter,omitempty"` // This specifies the user DN, which overrides the base DN for user lookups. UserDN *string `json:"userDN,omitempty"` }
LdapSearchScopeOpt - LDAP search scope
type LogSpecification ¶
type LogSpecification struct { // Display name of log specification. DisplayName *string `json:"displayName,omitempty"` // Name of log specification. Name *string `json:"name,omitempty"` }
LogSpecification - Log Definition of a single resource metric.
type MetricAggregationType ¶
type MetricAggregationType string
const (
MetricAggregationTypeAverage MetricAggregationType = "Average"
)
func PossibleMetricAggregationTypeValues ¶
func PossibleMetricAggregationTypeValues() []MetricAggregationType
PossibleMetricAggregationTypeValues returns the possible values for the MetricAggregationType const type.
type MetricSpecification ¶
type MetricSpecification struct { // Aggregation type could be Average. AggregationType *string `json:"aggregationType,omitempty"` // The category this metric specification belong to, could be Capacity. Category *string `json:"category,omitempty"` // Dimensions of blobs, including blob type and access tier. Dimensions []*Dimension `json:"dimensions,omitempty"` // Display description of metric specification. DisplayDescription *string `json:"displayDescription,omitempty"` // Display name of metric specification. DisplayName *string `json:"displayName,omitempty"` // Whether or not the service is using regional MDM accounts. EnableRegionalMdmAccount *bool `json:"enableRegionalMdmAccount,omitempty"` // The property to decide fill gap with zero or not. FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` // The internal metric name. InternalMetricName *string `json:"internalMetricName,omitempty"` // Whether the metric is internal. IsInternal *bool `json:"isInternal,omitempty"` // Name of metric specification. Name *string `json:"name,omitempty"` // Account Resource Id. ResourceIDDimensionNameOverride *string `json:"resourceIdDimensionNameOverride,omitempty"` // The source MDM account. SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` // The source MDM namespace. SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` // Support metric aggregation type. SupportedAggregationTypes []*MetricAggregationType `json:"supportedAggregationTypes,omitempty"` // The supported time grain types for the metrics. SupportedTimeGrainTypes []*string `json:"supportedTimeGrainTypes,omitempty"` // Unit could be Bytes or Count. Unit *string `json:"unit,omitempty"` }
MetricSpecification - Metric specification of operation.
type MirrorState ¶
type MirrorState string
MirrorState - The status of the replication
const ( MirrorStateBroken MirrorState = "Broken" MirrorStateMirrored MirrorState = "Mirrored" MirrorStateUninitialized MirrorState = "Uninitialized" )
func PossibleMirrorStateValues ¶
func PossibleMirrorStateValues() []MirrorState
PossibleMirrorStateValues returns the possible values for the MirrorState const type.
type MonthlySchedule ¶
type MonthlySchedule struct { // Indicates which days of the month snapshot should be taken. A comma delimited string. DaysOfMonth *string `json:"daysOfMonth,omitempty"` // Indicates which hour in UTC timezone a snapshot should be taken Hour *int32 `json:"hour,omitempty"` // Indicates which minute snapshot should be taken Minute *int32 `json:"minute,omitempty"` // Monthly snapshot count to keep SnapshotsToKeep *int32 `json:"snapshotsToKeep,omitempty"` // Resource size in bytes, current storage usage for the volume in bytes UsedBytes *int64 `json:"usedBytes,omitempty"` }
MonthlySchedule - Monthly Schedule properties
type MountTarget ¶
type MountTarget struct { // REQUIRED; Resource location Location *string `json:"location,omitempty"` // REQUIRED; Mount Target Properties Properties *MountTargetProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
MountTarget - Mount Target
type MountTargetProperties ¶
type MountTargetProperties struct { // REQUIRED; UUID v4 used to identify the MountTarget FileSystemID *string `json:"fileSystemId,omitempty"` // The SMB server's Fully Qualified Domain Name, FQDN SmbServerFqdn *string `json:"smbServerFqdn,omitempty"` // READ-ONLY; The mount target's IPv4 address IPAddress *string `json:"ipAddress,omitempty" azure:"ro"` // READ-ONLY; UUID v4 used to identify the MountTarget MountTargetID *string `json:"mountTargetId,omitempty" azure:"ro"` }
MountTargetProperties - Mount target properties
type NetworkFeatures ¶
type NetworkFeatures string
NetworkFeatures - Basic network, or Standard features available to the volume.
const ( // NetworkFeaturesBasic - Basic network feature. NetworkFeaturesBasic NetworkFeatures = "Basic" // NetworkFeaturesStandard - Standard network feature. NetworkFeaturesStandard NetworkFeatures = "Standard" )
func PossibleNetworkFeaturesValues ¶
func PossibleNetworkFeaturesValues() []NetworkFeatures
PossibleNetworkFeaturesValues returns the possible values for the NetworkFeatures const type.
type Operation ¶
type Operation struct { // Display metadata associated with the operation. Display *OperationDisplay `json:"display,omitempty"` // Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // The origin of operations. Origin *string `json:"origin,omitempty"` // Properties of operation, include metric specifications. Properties *OperationProperties `json:"properties,omitempty"` }
Operation - Microsoft.NetApp REST API operation definition.
type OperationDisplay ¶
type OperationDisplay struct { // Operation description. Description *string `json:"description,omitempty"` // Type of operation: get, read, delete, etc. Operation *string `json:"operation,omitempty"` // Service provider: Microsoft NetApp. Provider *string `json:"provider,omitempty"` // Resource on which the operation is performed etc. Resource *string `json:"resource,omitempty"` }
OperationDisplay - Display metadata associated with the operation.
type OperationListResult ¶
type OperationListResult struct { // List of Storage operations supported by the Storage resource provider. Value []*Operation `json:"value,omitempty"` }
OperationListResult - Result of the request to list Cloud Volume operations. It contains a list of operations and a URL link to get the next set of results.
type OperationProperties ¶
type OperationProperties struct { // One property of operation, include metric specifications. ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` }
OperationProperties - Properties of operation, include metric specifications.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶ added in v0.4.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available Microsoft.NetApp Rest API operations If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/OperationList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type PlacementKeyValuePairs ¶
type PlacementKeyValuePairs struct { // REQUIRED; Key for an application specific parameter for the placement of volumes in the volume group Key *string `json:"key,omitempty"` // REQUIRED; Value for an application specific parameter for the placement of volumes in the volume group Value *string `json:"value,omitempty"` }
PlacementKeyValuePairs - Application specific parameters for the placement of volumes in the volume group
type PoolChangeRequest ¶
type PoolChangeRequest struct { // REQUIRED; Resource id of the pool to move volume to NewPoolResourceID *string `json:"newPoolResourceId,omitempty"` }
PoolChangeRequest - Pool change request
type PoolPatchProperties ¶
type PoolPatchProperties struct { // The qos type of the pool QosType *QosType `json:"qosType,omitempty"` // Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of 4398046511104). Size *int64 `json:"size,omitempty"` }
PoolPatchProperties - Patchable pool properties
type PoolProperties ¶
type PoolProperties struct { // REQUIRED; The service level of the file system ServiceLevel *ServiceLevel `json:"serviceLevel,omitempty"` // REQUIRED; Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of 4398046511104). Size *int64 `json:"size,omitempty"` // If enabled (true) the pool can contain cool Access enabled volumes. CoolAccess *bool `json:"coolAccess,omitempty"` // 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 `json:"encryptionType,omitempty"` // The qos type of the pool QosType *QosType `json:"qosType,omitempty"` // READ-ONLY; UUID v4 used to identify the Pool PoolID *string `json:"poolId,omitempty" azure:"ro"` // READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Total throughput of pool in Mibps TotalThroughputMibps *float32 `json:"totalThroughputMibps,omitempty" azure:"ro"` // READ-ONLY; Utilized throughput of pool in Mibps UtilizedThroughputMibps *float32 `json:"utilizedThroughputMibps,omitempty" azure:"ro"` }
PoolProperties - Pool properties
type PoolsClient ¶
type PoolsClient struct {
// contains filtered or unexported fields
}
PoolsClient contains the methods for the Pools group. Don't use this type directly, use NewPoolsClient() instead.
func NewPoolsClient ¶
func NewPoolsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PoolsClient, error)
NewPoolsClient creates a new instance of PoolsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PoolsClient) BeginCreateOrUpdate ¶
func (client *PoolsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, body CapacityPool, options *PoolsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PoolsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or Update a capacity pool If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool body - Capacity pool object supplied in the body of the operation. options - PoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the PoolsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewPoolsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "myRG", "account1", "pool1", armnetapp.CapacityPool{ Location: to.Ptr("eastus"), Properties: &armnetapp.PoolProperties{ QosType: to.Ptr(armnetapp.QosTypeAuto), ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium), 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) } // TODO: use response item _ = res }
Output:
func (*PoolsClient) BeginDelete ¶
func (client *PoolsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, poolName string, options *PoolsClientBeginDeleteOptions) (*runtime.Poller[PoolsClientDeleteResponse], error)
BeginDelete - Delete the specified capacity pool If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool options - PoolsClientBeginDeleteOptions contains the optional parameters for the PoolsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewPoolsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "myRG", "account1", "pool1", 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) } }
Output:
func (*PoolsClient) BeginUpdate ¶
func (client *PoolsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, body CapacityPoolPatch, options *PoolsClientBeginUpdateOptions) (*runtime.Poller[PoolsClientUpdateResponse], error)
BeginUpdate - Patch the specified capacity pool If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool body - Capacity pool object supplied in the body of the operation. options - PoolsClientBeginUpdateOptions contains the optional parameters for the PoolsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewPoolsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "myRG", "account1", "pool1", 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) } // TODO: use response item _ = res }
Output:
func (*PoolsClient) Get ¶
func (client *PoolsClient) Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, options *PoolsClientGetOptions) (PoolsClientGetResponse, error)
Get - Get details of the specified capacity pool If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool options - PoolsClientGetOptions contains the optional parameters for the PoolsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewPoolsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myRG", "account1", "pool1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PoolsClient) NewListPager ¶ added in v0.4.0
func (client *PoolsClient) NewListPager(resourceGroupName string, accountName string, options *PoolsClientListOptions) *runtime.Pager[PoolsClientListResponse]
NewListPager - List all capacity pools in the NetApp Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account options - PoolsClientListOptions contains the optional parameters for the PoolsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Pools_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewPoolsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myRG", "account1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type PoolsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type PoolsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the PoolsClient.BeginCreateOrUpdate method.
type PoolsClientBeginDeleteOptions ¶ added in v0.2.0
type PoolsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PoolsClientBeginDeleteOptions contains the optional parameters for the PoolsClient.BeginDelete method.
type PoolsClientBeginUpdateOptions ¶ added in v0.2.0
type PoolsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PoolsClientBeginUpdateOptions contains the optional parameters for the PoolsClient.BeginUpdate method.
type PoolsClientCreateOrUpdateResponse ¶ added in v0.2.0
type PoolsClientCreateOrUpdateResponse struct {
CapacityPool
}
PoolsClientCreateOrUpdateResponse contains the response from method PoolsClient.CreateOrUpdate.
type PoolsClientDeleteResponse ¶ added in v0.2.0
type PoolsClientDeleteResponse struct { }
PoolsClientDeleteResponse contains the response from method PoolsClient.Delete.
type PoolsClientGetOptions ¶ added in v0.2.0
type PoolsClientGetOptions struct { }
PoolsClientGetOptions contains the optional parameters for the PoolsClient.Get method.
type PoolsClientGetResponse ¶ added in v0.2.0
type PoolsClientGetResponse struct {
CapacityPool
}
PoolsClientGetResponse contains the response from method PoolsClient.Get.
type PoolsClientListOptions ¶ added in v0.2.0
type PoolsClientListOptions struct { }
PoolsClientListOptions contains the optional parameters for the PoolsClient.List method.
type PoolsClientListResponse ¶ added in v0.2.0
type PoolsClientListResponse struct {
CapacityPoolList
}
PoolsClientListResponse contains the response from method PoolsClient.List.
type PoolsClientUpdateResponse ¶ added in v0.2.0
type PoolsClientUpdateResponse struct {
CapacityPool
}
PoolsClientUpdateResponse contains the response from method PoolsClient.Update.
type ProxyResource ¶
type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
type QosType ¶
type QosType string
QosType - The qos type of the pool
func PossibleQosTypeValues ¶
func PossibleQosTypeValues() []QosType
PossibleQosTypeValues returns the possible values for the QosType const type.
type QuotaAvailabilityRequest ¶
type QuotaAvailabilityRequest struct { // REQUIRED; Name of the resource to verify. Name *string `json:"name,omitempty"` // REQUIRED; Resource group name. ResourceGroup *string `json:"resourceGroup,omitempty"` // REQUIRED; Resource type used for verification. Type *CheckQuotaNameResourceTypes `json:"type,omitempty"` }
QuotaAvailabilityRequest - Quota availability request content.
type RelationshipStatus ¶
type RelationshipStatus string
RelationshipStatus - Status of the mirror relationship
const ( RelationshipStatusIdle RelationshipStatus = "Idle" RelationshipStatusTransferring RelationshipStatus = "Transferring" )
func PossibleRelationshipStatusValues ¶
func PossibleRelationshipStatusValues() []RelationshipStatus
PossibleRelationshipStatusValues returns the possible values for the RelationshipStatus const type.
type ReplicationObject ¶
type ReplicationObject struct { // REQUIRED; The resource ID of the remote volume. RemoteVolumeResourceID *string `json:"remoteVolumeResourceId,omitempty"` // Indicates whether the local volume is the source or destination for the Volume Replication EndpointType *EndpointType `json:"endpointType,omitempty"` // The remote region for the other end of the Volume Replication. RemoteVolumeRegion *string `json:"remoteVolumeRegion,omitempty"` // Id ReplicationID *string `json:"replicationId,omitempty"` // Schedule ReplicationSchedule *ReplicationSchedule `json:"replicationSchedule,omitempty"` }
ReplicationObject - Replication properties
type ReplicationSchedule ¶
type ReplicationSchedule string
ReplicationSchedule - Schedule
const ( ReplicationSchedule10Minutely ReplicationSchedule = "_10minutely" ReplicationScheduleDaily ReplicationSchedule = "daily" ReplicationScheduleHourly ReplicationSchedule = "hourly" )
func PossibleReplicationScheduleValues ¶
func PossibleReplicationScheduleValues() []ReplicationSchedule
PossibleReplicationScheduleValues returns the possible values for the ReplicationSchedule const type.
type ReplicationStatus ¶
type ReplicationStatus struct { // Displays error message if the replication is in an error state ErrorMessage *string `json:"errorMessage,omitempty"` // Replication health check Healthy *bool `json:"healthy,omitempty"` // The status of the replication MirrorState *MirrorState `json:"mirrorState,omitempty"` // Status of the mirror relationship RelationshipStatus *RelationshipStatus `json:"relationshipStatus,omitempty"` // The progress of the replication TotalProgress *string `json:"totalProgress,omitempty"` }
ReplicationStatus - Replication status
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type ResourceClient ¶ added in v0.2.0
type ResourceClient struct {
// contains filtered or unexported fields
}
ResourceClient contains the methods for the NetAppResource group. Don't use this type directly, use NewResourceClient() instead.
func NewResourceClient ¶ added in v0.2.0
func NewResourceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceClient, error)
NewResourceClient creates a new instance of ResourceClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ResourceClient) CheckFilePathAvailability ¶ added in v0.2.0
func (client *ResourceClient) CheckFilePathAvailability(ctx context.Context, location string, body FilePathAvailabilityRequest, options *ResourceClientCheckFilePathAvailabilityOptions) (ResourceClientCheckFilePathAvailabilityResponse, error)
CheckFilePathAvailability - Check if a file path is available. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 location - The location body - File path availability request. options - ResourceClientCheckFilePathAvailabilityOptions contains the optional parameters for the ResourceClient.CheckFilePathAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckFilePathAvailability.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewResourceClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CheckFilePathAvailability(ctx, "eastus", armnetapp.FilePathAvailabilityRequest{ Name: to.Ptr("my-exact-filepth"), SubnetID: to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ResourceClient) CheckNameAvailability ¶ added in v0.2.0
func (client *ResourceClient) CheckNameAvailability(ctx context.Context, location string, body ResourceNameAvailabilityRequest, options *ResourceClientCheckNameAvailabilityOptions) (ResourceClientCheckNameAvailabilityResponse, error)
CheckNameAvailability - Check if a resource name is available. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 location - The location body - Name availability request. options - ResourceClientCheckNameAvailabilityOptions contains the optional parameters for the ResourceClient.CheckNameAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckNameAvailability.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewResourceClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CheckNameAvailability(ctx, "eastus", armnetapp.ResourceNameAvailabilityRequest{ Name: to.Ptr("accName"), Type: to.Ptr(armnetapp.CheckNameResourceTypes("netAppAccount")), ResourceGroup: to.Ptr("myRG"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ResourceClient) CheckQuotaAvailability ¶ added in v0.2.0
func (client *ResourceClient) CheckQuotaAvailability(ctx context.Context, location string, body QuotaAvailabilityRequest, options *ResourceClientCheckQuotaAvailabilityOptions) (ResourceClientCheckQuotaAvailabilityResponse, error)
CheckQuotaAvailability - Check if a quota is available. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 location - The location body - Quota availability request. options - ResourceClientCheckQuotaAvailabilityOptions contains the optional parameters for the ResourceClient.CheckQuotaAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/CheckQuotaAvailability.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewResourceClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CheckQuotaAvailability(ctx, "eastus", armnetapp.QuotaAvailabilityRequest{ Name: to.Ptr("resource1"), Type: to.Ptr(armnetapp.CheckQuotaNameResourceTypesMicrosoftNetAppNetAppAccounts), ResourceGroup: to.Ptr("myRG"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type ResourceClientCheckFilePathAvailabilityOptions ¶ added in v0.2.0
type ResourceClientCheckFilePathAvailabilityOptions struct { }
ResourceClientCheckFilePathAvailabilityOptions contains the optional parameters for the ResourceClient.CheckFilePathAvailability method.
type ResourceClientCheckFilePathAvailabilityResponse ¶ added in v0.2.0
type ResourceClientCheckFilePathAvailabilityResponse struct {
CheckAvailabilityResponse
}
ResourceClientCheckFilePathAvailabilityResponse contains the response from method ResourceClient.CheckFilePathAvailability.
type ResourceClientCheckNameAvailabilityOptions ¶ added in v0.2.0
type ResourceClientCheckNameAvailabilityOptions struct { }
ResourceClientCheckNameAvailabilityOptions contains the optional parameters for the ResourceClient.CheckNameAvailability method.
type ResourceClientCheckNameAvailabilityResponse ¶ added in v0.2.0
type ResourceClientCheckNameAvailabilityResponse struct {
CheckAvailabilityResponse
}
ResourceClientCheckNameAvailabilityResponse contains the response from method ResourceClient.CheckNameAvailability.
type ResourceClientCheckQuotaAvailabilityOptions ¶ added in v0.2.0
type ResourceClientCheckQuotaAvailabilityOptions struct { }
ResourceClientCheckQuotaAvailabilityOptions contains the optional parameters for the ResourceClient.CheckQuotaAvailability method.
type ResourceClientCheckQuotaAvailabilityResponse ¶ added in v0.2.0
type ResourceClientCheckQuotaAvailabilityResponse struct {
CheckAvailabilityResponse
}
ResourceClientCheckQuotaAvailabilityResponse contains the response from method ResourceClient.CheckQuotaAvailability.
type ResourceIdentity ¶
type ResourceIdentity struct { // Type of Identity. Supported values are: 'None', 'SystemAssigned' Type *string `json:"type,omitempty"` // READ-ONLY; Object id of the identity resource PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant id of the resource TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
ResourceIdentity - Identity for the resource.
type ResourceNameAvailabilityRequest ¶
type ResourceNameAvailabilityRequest struct { // REQUIRED; Resource name to verify. Name *string `json:"name,omitempty"` // REQUIRED; Resource group name. ResourceGroup *string `json:"resourceGroup,omitempty"` // REQUIRED; Resource type used for verification. Type *CheckNameResourceTypes `json:"type,omitempty"` }
ResourceNameAvailabilityRequest - Resource name availability request content.
type ResourceQuotaLimitsClient ¶ added in v0.2.0
type ResourceQuotaLimitsClient struct {
// contains filtered or unexported fields
}
ResourceQuotaLimitsClient contains the methods for the NetAppResourceQuotaLimits group. Don't use this type directly, use NewResourceQuotaLimitsClient() instead.
func NewResourceQuotaLimitsClient ¶ added in v0.2.0
func NewResourceQuotaLimitsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceQuotaLimitsClient, error)
NewResourceQuotaLimitsClient creates a new instance of ResourceQuotaLimitsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ResourceQuotaLimitsClient) Get ¶ added in v0.2.0
func (client *ResourceQuotaLimitsClient) Get(ctx context.Context, location string, quotaLimitName string, options *ResourceQuotaLimitsClientGetOptions) (ResourceQuotaLimitsClientGetResponse, error)
Get - Get the default and current subscription quota limit If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 location - The location quotaLimitName - The name of the Quota Limit options - ResourceQuotaLimitsClientGetOptions contains the optional parameters for the ResourceQuotaLimitsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/QuotaLimits_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewResourceQuotaLimitsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "eastus", "totalCoolAccessVolumesPerSubscription", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*ResourceQuotaLimitsClient) NewListPager ¶ added in v0.4.0
func (client *ResourceQuotaLimitsClient) NewListPager(location string, options *ResourceQuotaLimitsClientListOptions) *runtime.Pager[ResourceQuotaLimitsClientListResponse]
NewListPager - Get the default and current limits for quotas If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 location - The location options - ResourceQuotaLimitsClientListOptions contains the optional parameters for the ResourceQuotaLimitsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/QuotaLimits_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewResourceQuotaLimitsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("eastus", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ResourceQuotaLimitsClientGetOptions ¶ added in v0.2.0
type ResourceQuotaLimitsClientGetOptions struct { }
ResourceQuotaLimitsClientGetOptions contains the optional parameters for the ResourceQuotaLimitsClient.Get method.
type ResourceQuotaLimitsClientGetResponse ¶ added in v0.2.0
type ResourceQuotaLimitsClientGetResponse struct {
SubscriptionQuotaItem
}
ResourceQuotaLimitsClientGetResponse contains the response from method ResourceQuotaLimitsClient.Get.
type ResourceQuotaLimitsClientListOptions ¶ added in v0.2.0
type ResourceQuotaLimitsClientListOptions struct { }
ResourceQuotaLimitsClientListOptions contains the optional parameters for the ResourceQuotaLimitsClient.List method.
type ResourceQuotaLimitsClientListResponse ¶ added in v0.2.0
type ResourceQuotaLimitsClientListResponse struct {
SubscriptionQuotaItemList
}
ResourceQuotaLimitsClientListResponse contains the response from method ResourceQuotaLimitsClient.List.
type RestoreStatus ¶
type RestoreStatus struct { // READ-ONLY; Displays error message if the restore is in an error state ErrorMessage *string `json:"errorMessage,omitempty" azure:"ro"` // READ-ONLY; Restore health status Healthy *bool `json:"healthy,omitempty" azure:"ro"` // READ-ONLY; The status of the restore MirrorState *MirrorState `json:"mirrorState,omitempty" azure:"ro"` // READ-ONLY; Status of the restore SnapMirror relationship RelationshipStatus *RelationshipStatus `json:"relationshipStatus,omitempty" azure:"ro"` // READ-ONLY; Displays the total bytes transferred TotalTransferBytes *int64 `json:"totalTransferBytes,omitempty" azure:"ro"` // READ-ONLY; Reason for the unhealthy restore relationship UnhealthyReason *string `json:"unhealthyReason,omitempty" azure:"ro"` }
RestoreStatus - Restore status
type SecurityStyle ¶
type SecurityStyle string
SecurityStyle - The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol
const ( SecurityStyleNtfs SecurityStyle = "ntfs" SecurityStyleUnix SecurityStyle = "unix" )
func PossibleSecurityStyleValues ¶
func PossibleSecurityStyleValues() []SecurityStyle
PossibleSecurityStyleValues returns the possible values for the SecurityStyle const type.
type ServiceLevel ¶
type ServiceLevel string
ServiceLevel - The service level of the file system
const ( // ServiceLevelPremium - Premium service level ServiceLevelPremium ServiceLevel = "Premium" // ServiceLevelStandard - Standard service level ServiceLevelStandard ServiceLevel = "Standard" // ServiceLevelStandardZRS - Zone redundant storage service level ServiceLevelStandardZRS ServiceLevel = "StandardZRS" // ServiceLevelUltra - Ultra service level ServiceLevelUltra ServiceLevel = "Ultra" )
func PossibleServiceLevelValues ¶
func PossibleServiceLevelValues() []ServiceLevel
PossibleServiceLevelValues returns the possible values for the ServiceLevel const type.
type ServiceSpecification ¶
type ServiceSpecification struct { // Log specification of operation. LogSpecifications []*LogSpecification `json:"logSpecifications,omitempty"` // Metric specifications of operation. MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` }
ServiceSpecification - One property of operation, include metric specifications.
type Snapshot ¶
type Snapshot struct { // REQUIRED; Resource location Location *string `json:"location,omitempty"` // Snapshot Properties Properties *SnapshotProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Snapshot of a Volume
type SnapshotPoliciesClient ¶
type SnapshotPoliciesClient struct {
// contains filtered or unexported fields
}
SnapshotPoliciesClient contains the methods for the SnapshotPolicies group. Don't use this type directly, use NewSnapshotPoliciesClient() instead.
func NewSnapshotPoliciesClient ¶
func NewSnapshotPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SnapshotPoliciesClient, error)
NewSnapshotPoliciesClient creates a new instance of SnapshotPoliciesClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SnapshotPoliciesClient) BeginDelete ¶
func (client *SnapshotPoliciesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, snapshotPolicyName string, options *SnapshotPoliciesClientBeginDeleteOptions) (*runtime.Poller[SnapshotPoliciesClientDeleteResponse], error)
BeginDelete - Delete snapshot policy If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account snapshotPolicyName - The name of the snapshot policy options - SnapshotPoliciesClientBeginDeleteOptions contains the optional parameters for the SnapshotPoliciesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "resourceGroup", "accountName", "snapshotPolicyName", 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) } }
Output:
func (*SnapshotPoliciesClient) BeginUpdate ¶
func (client *SnapshotPoliciesClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, snapshotPolicyName string, body SnapshotPolicyPatch, options *SnapshotPoliciesClientBeginUpdateOptions) (*runtime.Poller[SnapshotPoliciesClientUpdateResponse], error)
BeginUpdate - Patch a snapshot policy If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account snapshotPolicyName - The name of the snapshot policy body - Snapshot policy object supplied in the body of the operation. options - SnapshotPoliciesClientBeginUpdateOptions contains the optional parameters for the SnapshotPoliciesClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "myRG", "account1", "snapshotPolicyName", armnetapp.SnapshotPolicyPatch{ Location: to.Ptr("eastus"), Properties: &armnetapp.SnapshotPolicyProperties{ DailySchedule: &armnetapp.DailySchedule{ Hour: to.Ptr[int32](14), Minute: to.Ptr[int32](30), SnapshotsToKeep: to.Ptr[int32](4), }, Enabled: to.Ptr(true), HourlySchedule: &armnetapp.HourlySchedule{ Minute: to.Ptr[int32](50), SnapshotsToKeep: to.Ptr[int32](2), }, MonthlySchedule: &armnetapp.MonthlySchedule{ DaysOfMonth: to.Ptr("10,11,12"), Hour: to.Ptr[int32](14), Minute: to.Ptr[int32](15), SnapshotsToKeep: to.Ptr[int32](5), }, WeeklySchedule: &armnetapp.WeeklySchedule{ Day: to.Ptr("Wednesday"), Hour: to.Ptr[int32](14), Minute: to.Ptr[int32](45), SnapshotsToKeep: to.Ptr[int32](3), }, }, }, 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) } // TODO: use response item _ = res }
Output:
func (*SnapshotPoliciesClient) Create ¶
func (client *SnapshotPoliciesClient) Create(ctx context.Context, resourceGroupName string, accountName string, snapshotPolicyName string, body SnapshotPolicy, options *SnapshotPoliciesClientCreateOptions) (SnapshotPoliciesClientCreateResponse, error)
Create - Create a snapshot policy If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account snapshotPolicyName - The name of the snapshot policy body - Snapshot policy object supplied in the body of the operation. options - SnapshotPoliciesClientCreateOptions contains the optional parameters for the SnapshotPoliciesClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Create(ctx, "myRG", "account1", "snapshotPolicyName", armnetapp.SnapshotPolicy{ Location: to.Ptr("eastus"), Properties: &armnetapp.SnapshotPolicyProperties{ DailySchedule: &armnetapp.DailySchedule{ Hour: to.Ptr[int32](14), Minute: to.Ptr[int32](30), SnapshotsToKeep: to.Ptr[int32](4), }, Enabled: to.Ptr(true), HourlySchedule: &armnetapp.HourlySchedule{ Minute: to.Ptr[int32](50), SnapshotsToKeep: to.Ptr[int32](2), }, MonthlySchedule: &armnetapp.MonthlySchedule{ DaysOfMonth: to.Ptr("10,11,12"), Hour: to.Ptr[int32](14), Minute: to.Ptr[int32](15), SnapshotsToKeep: to.Ptr[int32](5), }, WeeklySchedule: &armnetapp.WeeklySchedule{ Day: to.Ptr("Wednesday"), Hour: to.Ptr[int32](14), Minute: to.Ptr[int32](45), SnapshotsToKeep: to.Ptr[int32](3), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SnapshotPoliciesClient) Get ¶
func (client *SnapshotPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, snapshotPolicyName string, options *SnapshotPoliciesClientGetOptions) (SnapshotPoliciesClientGetResponse, error)
Get - Get a snapshot Policy If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account snapshotPolicyName - The name of the snapshot policy options - SnapshotPoliciesClientGetOptions contains the optional parameters for the SnapshotPoliciesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myRG", "account1", "snapshotPolicyName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SnapshotPoliciesClient) ListVolumes ¶
func (client *SnapshotPoliciesClient) ListVolumes(ctx context.Context, resourceGroupName string, accountName string, snapshotPolicyName string, options *SnapshotPoliciesClientListVolumesOptions) (SnapshotPoliciesClientListVolumesResponse, error)
ListVolumes - Get volumes associated with snapshot policy If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account snapshotPolicyName - The name of the snapshot policy options - SnapshotPoliciesClientListVolumesOptions contains the optional parameters for the SnapshotPoliciesClient.ListVolumes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_ListVolumes.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListVolumes(ctx, "myRG", "account1", "snapshotPolicyName", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SnapshotPoliciesClient) NewListPager ¶ added in v0.4.0
func (client *SnapshotPoliciesClient) NewListPager(resourceGroupName string, accountName string, options *SnapshotPoliciesClientListOptions) *runtime.Pager[SnapshotPoliciesClientListResponse]
NewListPager - List snapshot policy If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account options - SnapshotPoliciesClientListOptions contains the optional parameters for the SnapshotPoliciesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/SnapshotPolicies_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotPoliciesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myRG", "account1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SnapshotPoliciesClientBeginDeleteOptions ¶ added in v0.2.0
type SnapshotPoliciesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SnapshotPoliciesClientBeginDeleteOptions contains the optional parameters for the SnapshotPoliciesClient.BeginDelete method.
type SnapshotPoliciesClientBeginUpdateOptions ¶ added in v0.2.0
type SnapshotPoliciesClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SnapshotPoliciesClientBeginUpdateOptions contains the optional parameters for the SnapshotPoliciesClient.BeginUpdate method.
type SnapshotPoliciesClientCreateOptions ¶ added in v0.2.0
type SnapshotPoliciesClientCreateOptions struct { }
SnapshotPoliciesClientCreateOptions contains the optional parameters for the SnapshotPoliciesClient.Create method.
type SnapshotPoliciesClientCreateResponse ¶ added in v0.2.0
type SnapshotPoliciesClientCreateResponse struct {
SnapshotPolicy
}
SnapshotPoliciesClientCreateResponse contains the response from method SnapshotPoliciesClient.Create.
type SnapshotPoliciesClientDeleteResponse ¶ added in v0.2.0
type SnapshotPoliciesClientDeleteResponse struct { }
SnapshotPoliciesClientDeleteResponse contains the response from method SnapshotPoliciesClient.Delete.
type SnapshotPoliciesClientGetOptions ¶ added in v0.2.0
type SnapshotPoliciesClientGetOptions struct { }
SnapshotPoliciesClientGetOptions contains the optional parameters for the SnapshotPoliciesClient.Get method.
type SnapshotPoliciesClientGetResponse ¶ added in v0.2.0
type SnapshotPoliciesClientGetResponse struct {
SnapshotPolicy
}
SnapshotPoliciesClientGetResponse contains the response from method SnapshotPoliciesClient.Get.
type SnapshotPoliciesClientListOptions ¶ added in v0.2.0
type SnapshotPoliciesClientListOptions struct { }
SnapshotPoliciesClientListOptions contains the optional parameters for the SnapshotPoliciesClient.List method.
type SnapshotPoliciesClientListResponse ¶ added in v0.2.0
type SnapshotPoliciesClientListResponse struct {
SnapshotPoliciesList
}
SnapshotPoliciesClientListResponse contains the response from method SnapshotPoliciesClient.List.
type SnapshotPoliciesClientListVolumesOptions ¶ added in v0.2.0
type SnapshotPoliciesClientListVolumesOptions struct { }
SnapshotPoliciesClientListVolumesOptions contains the optional parameters for the SnapshotPoliciesClient.ListVolumes method.
type SnapshotPoliciesClientListVolumesResponse ¶ added in v0.2.0
type SnapshotPoliciesClientListVolumesResponse struct {
SnapshotPolicyVolumeList
}
SnapshotPoliciesClientListVolumesResponse contains the response from method SnapshotPoliciesClient.ListVolumes.
type SnapshotPoliciesClientUpdateResponse ¶ added in v0.2.0
type SnapshotPoliciesClientUpdateResponse struct {
SnapshotPolicy
}
SnapshotPoliciesClientUpdateResponse contains the response from method SnapshotPoliciesClient.Update.
type SnapshotPoliciesList ¶
type SnapshotPoliciesList struct { // A list of snapshot policies Value []*SnapshotPolicy `json:"value,omitempty"` }
SnapshotPoliciesList - List of Snapshot Policies
type SnapshotPolicy ¶
type SnapshotPolicy struct { // REQUIRED; Resource location Location *string `json:"location,omitempty"` // REQUIRED; Snapshot policy Properties Properties *SnapshotPolicyProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The system meta data relating to this resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
SnapshotPolicy - Snapshot policy information
func (SnapshotPolicy) MarshalJSON ¶
func (s SnapshotPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SnapshotPolicy.
type SnapshotPolicyDetails ¶
type SnapshotPolicyDetails struct { // Resource location Location *string `json:"location,omitempty"` // Snapshot policy Properties Properties *SnapshotPolicyProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
SnapshotPolicyDetails - Snapshot policy properties
type SnapshotPolicyPatch ¶
type SnapshotPolicyPatch struct { // Resource location Location *string `json:"location,omitempty"` // Snapshot Policy properties Properties *SnapshotPolicyProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
SnapshotPolicyPatch - Snapshot policy Details for create and update
func (SnapshotPolicyPatch) MarshalJSON ¶
func (s SnapshotPolicyPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SnapshotPolicyPatch.
type SnapshotPolicyProperties ¶
type SnapshotPolicyProperties struct { // Schedule for daily snapshots DailySchedule *DailySchedule `json:"dailySchedule,omitempty"` // The property to decide policy is enabled or not Enabled *bool `json:"enabled,omitempty"` // Schedule for hourly snapshots HourlySchedule *HourlySchedule `json:"hourlySchedule,omitempty"` // Schedule for monthly snapshots MonthlySchedule *MonthlySchedule `json:"monthlySchedule,omitempty"` // Schedule for weekly snapshots WeeklySchedule *WeeklySchedule `json:"weeklySchedule,omitempty"` // READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
SnapshotPolicyProperties - Snapshot policy properties
type SnapshotPolicyVolumeList ¶
type SnapshotPolicyVolumeList struct { // List of volumes Value []*Volume `json:"value,omitempty"` }
SnapshotPolicyVolumeList - Volumes associated with snapshot policy
type SnapshotProperties ¶
type SnapshotProperties struct { // READ-ONLY; The creation date of the snapshot Created *time.Time `json:"created,omitempty" azure:"ro"` // READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; UUID v4 used to identify the Snapshot SnapshotID *string `json:"snapshotId,omitempty" azure:"ro"` }
SnapshotProperties - Snapshot properties
func (SnapshotProperties) MarshalJSON ¶
func (s SnapshotProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SnapshotProperties.
func (*SnapshotProperties) UnmarshalJSON ¶
func (s *SnapshotProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotProperties.
type SnapshotRestoreFiles ¶ added in v0.3.0
type SnapshotRestoreFiles struct { // REQUIRED; List of files to be restored FilePaths []*string `json:"filePaths,omitempty"` // Destination folder where the files will be restored DestinationPath *string `json:"destinationPath,omitempty"` }
SnapshotRestoreFiles - Restore payload for Single File Snapshot Restore
func (SnapshotRestoreFiles) MarshalJSON ¶ added in v0.3.0
func (s SnapshotRestoreFiles) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SnapshotRestoreFiles.
type SnapshotsClient ¶
type SnapshotsClient struct {
// contains filtered or unexported fields
}
SnapshotsClient contains the methods for the Snapshots group. Don't use this type directly, use NewSnapshotsClient() instead.
func NewSnapshotsClient ¶
func NewSnapshotsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SnapshotsClient, error)
NewSnapshotsClient creates a new instance of SnapshotsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SnapshotsClient) BeginCreate ¶
func (client *SnapshotsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string, body Snapshot, options *SnapshotsClientBeginCreateOptions) (*runtime.Poller[SnapshotsClientCreateResponse], error)
BeginCreate - Create the specified snapshot within the given volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume snapshotName - The name of the snapshot body - Snapshot object supplied in the body of the operation. options - SnapshotsClientBeginCreateOptions contains the optional parameters for the SnapshotsClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreate(ctx, "myRG", "account1", "pool1", "volume1", "snapshot1", armnetapp.Snapshot{ Location: to.Ptr("eastus"), }, 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) } }
Output:
func (*SnapshotsClient) BeginDelete ¶
func (client *SnapshotsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string, options *SnapshotsClientBeginDeleteOptions) (*runtime.Poller[SnapshotsClientDeleteResponse], error)
BeginDelete - Delete snapshot If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume snapshotName - The name of the snapshot options - SnapshotsClientBeginDeleteOptions contains the optional parameters for the SnapshotsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "myRG", "account1", "pool1", "volume1", "snapshot1", 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) } }
Output:
func (*SnapshotsClient) BeginRestoreFiles ¶ added in v0.3.0
func (client *SnapshotsClient) BeginRestoreFiles(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string, body SnapshotRestoreFiles, options *SnapshotsClientBeginRestoreFilesOptions) (*runtime.Poller[SnapshotsClientRestoreFilesResponse], error)
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 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume snapshotName - The name of the snapshot body - Restore payload supplied in the body of the operation. options - SnapshotsClientBeginRestoreFilesOptions contains the optional parameters for the SnapshotsClient.BeginRestoreFiles method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_SingleFileRestore.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginRestoreFiles(ctx, "myRG", "account1", "pool1", "volume1", "snapshot1", armnetapp.SnapshotRestoreFiles{ FilePaths: []*string{ to.Ptr("/dir1/customer1.db"), to.Ptr("/dir1/customer2.db")}, }, 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) } }
Output:
func (*SnapshotsClient) BeginUpdate ¶
func (client *SnapshotsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string, body interface{}, options *SnapshotsClientBeginUpdateOptions) (*runtime.Poller[SnapshotsClientUpdateResponse], error)
BeginUpdate - Patch a snapshot If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume snapshotName - The name of the snapshot body - Snapshot object supplied in the body of the operation. options - SnapshotsClientBeginUpdateOptions contains the optional parameters for the SnapshotsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "myRG", "account1", "pool1", "volume1", "snapshot1", map[string]interface{}{}, 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) } // TODO: use response item _ = res }
Output:
func (*SnapshotsClient) Get ¶
func (client *SnapshotsClient) Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string, options *SnapshotsClientGetOptions) (SnapshotsClientGetResponse, error)
Get - Get details of the specified snapshot If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume snapshotName - The name of the snapshot options - SnapshotsClientGetOptions contains the optional parameters for the SnapshotsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myRG", "account1", "pool1", "volume1", "snapshot1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SnapshotsClient) NewListPager ¶ added in v0.4.0
func (client *SnapshotsClient) NewListPager(resourceGroupName string, accountName string, poolName string, volumeName string, options *SnapshotsClientListOptions) *runtime.Pager[SnapshotsClientListResponse]
NewListPager - List all snapshots associated with the volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - SnapshotsClientListOptions contains the optional parameters for the SnapshotsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Snapshots_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSnapshotsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myRG", "account1", "pool1", "volume1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SnapshotsClientBeginCreateOptions ¶ added in v0.2.0
type SnapshotsClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SnapshotsClientBeginCreateOptions contains the optional parameters for the SnapshotsClient.BeginCreate method.
type SnapshotsClientBeginDeleteOptions ¶ added in v0.2.0
type SnapshotsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SnapshotsClientBeginDeleteOptions contains the optional parameters for the SnapshotsClient.BeginDelete method.
type SnapshotsClientBeginRestoreFilesOptions ¶ added in v0.3.0
type SnapshotsClientBeginRestoreFilesOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SnapshotsClientBeginRestoreFilesOptions contains the optional parameters for the SnapshotsClient.BeginRestoreFiles method.
type SnapshotsClientBeginUpdateOptions ¶ added in v0.2.0
type SnapshotsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SnapshotsClientBeginUpdateOptions contains the optional parameters for the SnapshotsClient.BeginUpdate method.
type SnapshotsClientCreateResponse ¶ added in v0.2.0
type SnapshotsClientCreateResponse struct {
Snapshot
}
SnapshotsClientCreateResponse contains the response from method SnapshotsClient.Create.
type SnapshotsClientDeleteResponse ¶ added in v0.2.0
type SnapshotsClientDeleteResponse struct { }
SnapshotsClientDeleteResponse contains the response from method SnapshotsClient.Delete.
type SnapshotsClientGetOptions ¶ added in v0.2.0
type SnapshotsClientGetOptions struct { }
SnapshotsClientGetOptions contains the optional parameters for the SnapshotsClient.Get method.
type SnapshotsClientGetResponse ¶ added in v0.2.0
type SnapshotsClientGetResponse struct {
Snapshot
}
SnapshotsClientGetResponse contains the response from method SnapshotsClient.Get.
type SnapshotsClientListOptions ¶ added in v0.2.0
type SnapshotsClientListOptions struct { }
SnapshotsClientListOptions contains the optional parameters for the SnapshotsClient.List method.
type SnapshotsClientListResponse ¶ added in v0.2.0
type SnapshotsClientListResponse struct {
SnapshotsList
}
SnapshotsClientListResponse contains the response from method SnapshotsClient.List.
type SnapshotsClientRestoreFilesResponse ¶ added in v0.3.0
type SnapshotsClientRestoreFilesResponse struct { }
SnapshotsClientRestoreFilesResponse contains the response from method SnapshotsClient.RestoreFiles.
type SnapshotsClientUpdateResponse ¶ added in v0.2.0
type SnapshotsClientUpdateResponse struct {
Snapshot
}
SnapshotsClientUpdateResponse contains the response from method SnapshotsClient.Update.
type SnapshotsList ¶
type SnapshotsList struct { // A list of Snapshots Value []*Snapshot `json:"value,omitempty"` }
SnapshotsList - List of Snapshots
type SubscriptionQuotaItem ¶
type SubscriptionQuotaItem struct { // SubscriptionQuotaItem properties Properties *SubscriptionQuotaItemProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The system meta data relating to this resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
SubscriptionQuotaItem - Information regarding Subscription Quota Item.
type SubscriptionQuotaItemList ¶
type SubscriptionQuotaItemList struct { // A list of SubscriptionQuotaItems Value []*SubscriptionQuotaItem `json:"value,omitempty"` }
SubscriptionQuotaItemList - List of Subscription Quota Items
type SubscriptionQuotaItemProperties ¶
type SubscriptionQuotaItemProperties struct { // READ-ONLY; The current quota value. Current *int32 `json:"current,omitempty" azure:"ro"` // READ-ONLY; The default quota value. Default *int32 `json:"default,omitempty" azure:"ro"` }
SubscriptionQuotaItemProperties - SubscriptionQuotaItem Properties
type SubvolumeInfo ¶ added in v0.3.0
type SubvolumeInfo struct { // Subvolume Properties Properties *SubvolumeProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The system meta data relating to this resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
SubvolumeInfo - Subvolume Information properties
type SubvolumeModel ¶ added in v0.3.0
type SubvolumeModel struct { // It represents the minimal properties of the subvolume. Properties *SubvolumeModelProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
SubvolumeModel - Result of the post subvolume and action is to get metadata of the subvolume.
type SubvolumeModelProperties ¶ added in v0.3.0
type SubvolumeModelProperties struct { // Most recent access time and date AccessedTimeStamp *time.Time `json:"accessedTimeStamp,omitempty"` // Bytes used BytesUsed *int64 `json:"bytesUsed,omitempty"` // Most recent change time and date ChangedTimeStamp *time.Time `json:"changedTimeStamp,omitempty"` // Creation time and date CreationTimeStamp *time.Time `json:"creationTimeStamp,omitempty"` // Most recent modification time and date ModifiedTimeStamp *time.Time `json:"modifiedTimeStamp,omitempty"` // Path to the parent subvolume ParentPath *string `json:"parentPath,omitempty"` // Path to the subvolume Path *string `json:"path,omitempty"` // Permissions of the subvolume Permissions *string `json:"permissions,omitempty"` // Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty"` // Size of subvolume Size *int64 `json:"size,omitempty"` }
SubvolumeModelProperties - Properties which represents actual subvolume model which is stored as a file in the system.
func (*SubvolumeModelProperties) UnmarshalJSON ¶ added in v0.3.0
func (s *SubvolumeModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubvolumeModelProperties.
type SubvolumePatchParams ¶ added in v0.3.0
type SubvolumePatchParams struct { // path to the subvolume Path *string `json:"path,omitempty"` // Truncate subvolume to the provided size in bytes Size *int64 `json:"size,omitempty"` }
SubvolumePatchParams - Parameters with which a subvolume can be updated
type SubvolumePatchRequest ¶ added in v0.3.0
type SubvolumePatchRequest struct { // Subvolume Properties Properties *SubvolumePatchParams `json:"properties,omitempty"` }
SubvolumePatchRequest - Subvolume Patch Request properties
func (SubvolumePatchRequest) MarshalJSON ¶ added in v0.3.0
func (s SubvolumePatchRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubvolumePatchRequest.
type SubvolumeProperties ¶ added in v0.3.0
type SubvolumeProperties struct { // parent path to the subvolume ParentPath *string `json:"parentPath,omitempty"` // Path to the subvolume Path *string `json:"path,omitempty"` // Truncate subvolume to the provided size in bytes Size *int64 `json:"size,omitempty"` // READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
SubvolumeProperties - This represents path associated with the subvolume
type SubvolumesClient ¶ added in v0.3.0
type SubvolumesClient struct {
// contains filtered or unexported fields
}
SubvolumesClient contains the methods for the Subvolumes group. Don't use this type directly, use NewSubvolumesClient() instead.
func NewSubvolumesClient ¶ added in v0.3.0
func NewSubvolumesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SubvolumesClient, error)
NewSubvolumesClient creates a new instance of SubvolumesClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*SubvolumesClient) BeginCreate ¶ added in v0.3.0
func (client *SubvolumesClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, subvolumeName string, body SubvolumeInfo, options *SubvolumesClientBeginCreateOptions) (*runtime.Poller[SubvolumesClientCreateResponse], error)
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 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume subvolumeName - The name of the subvolume. body - Subvolume object supplied in the body of the operation. options - SubvolumesClientBeginCreateOptions contains the optional parameters for the SubvolumesClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSubvolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreate(ctx, "myRG", "account1", "pool1", "volume1", "subvolume1", armnetapp.SubvolumeInfo{ Properties: &armnetapp.SubvolumeProperties{ Path: to.Ptr("/subvolumePath"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*SubvolumesClient) BeginDelete ¶ added in v0.3.0
func (client *SubvolumesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, subvolumeName string, options *SubvolumesClientBeginDeleteOptions) (*runtime.Poller[SubvolumesClientDeleteResponse], error)
BeginDelete - Delete subvolume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume subvolumeName - The name of the subvolume. options - SubvolumesClientBeginDeleteOptions contains the optional parameters for the SubvolumesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSubvolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "myRG", "account1", "pool1", "volume1", "subvolume1", 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) } }
Output:
func (*SubvolumesClient) BeginGetMetadata ¶ added in v0.3.0
func (client *SubvolumesClient) BeginGetMetadata(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, subvolumeName string, options *SubvolumesClientBeginGetMetadataOptions) (*runtime.Poller[SubvolumesClientGetMetadataResponse], error)
BeginGetMetadata - Get details of the specified subvolume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume subvolumeName - The name of the subvolume. options - SubvolumesClientBeginGetMetadataOptions contains the optional parameters for the SubvolumesClient.BeginGetMetadata method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Metadata.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSubvolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginGetMetadata(ctx, "myRG", "account1", "pool1", "volume1", "subvolume1", 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) } // TODO: use response item _ = res }
Output:
func (*SubvolumesClient) BeginUpdate ¶ added in v0.3.0
func (client *SubvolumesClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, subvolumeName string, body SubvolumePatchRequest, options *SubvolumesClientBeginUpdateOptions) (*runtime.Poller[SubvolumesClientUpdateResponse], error)
BeginUpdate - Patch a subvolume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume subvolumeName - The name of the subvolume. body - Subvolume object supplied in the body of the operation. options - SubvolumesClientBeginUpdateOptions contains the optional parameters for the SubvolumesClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSubvolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "myRG", "account1", "pool1", "volume1", "subvolume1", armnetapp.SubvolumePatchRequest{ Properties: &armnetapp.SubvolumePatchParams{ Path: to.Ptr("/subvolumePath"), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*SubvolumesClient) Get ¶ added in v0.3.0
func (client *SubvolumesClient) Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, subvolumeName string, options *SubvolumesClientGetOptions) (SubvolumesClientGetResponse, error)
Get - Returns the path associated with the subvolumeName provided If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume subvolumeName - The name of the subvolume. options - SubvolumesClientGetOptions contains the optional parameters for the SubvolumesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSubvolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myRG", "account1", "pool1", "volume1", "subvolume1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*SubvolumesClient) NewListByVolumePager ¶ added in v0.4.0
func (client *SubvolumesClient) NewListByVolumePager(resourceGroupName string, accountName string, poolName string, volumeName string, options *SubvolumesClientListByVolumeOptions) *runtime.Pager[SubvolumesClientListByVolumeResponse]
NewListByVolumePager - Returns a list of the subvolumes in the volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - SubvolumesClientListByVolumeOptions contains the optional parameters for the SubvolumesClient.ListByVolume method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Subvolumes_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewSubvolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByVolumePager("myRG", "account1", "pool1", "volume1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type SubvolumesClientBeginCreateOptions ¶ added in v0.3.0
type SubvolumesClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SubvolumesClientBeginCreateOptions contains the optional parameters for the SubvolumesClient.BeginCreate method.
type SubvolumesClientBeginDeleteOptions ¶ added in v0.3.0
type SubvolumesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SubvolumesClientBeginDeleteOptions contains the optional parameters for the SubvolumesClient.BeginDelete method.
type SubvolumesClientBeginGetMetadataOptions ¶ added in v0.3.0
type SubvolumesClientBeginGetMetadataOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SubvolumesClientBeginGetMetadataOptions contains the optional parameters for the SubvolumesClient.BeginGetMetadata method.
type SubvolumesClientBeginUpdateOptions ¶ added in v0.3.0
type SubvolumesClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
SubvolumesClientBeginUpdateOptions contains the optional parameters for the SubvolumesClient.BeginUpdate method.
type SubvolumesClientCreateResponse ¶ added in v0.3.0
type SubvolumesClientCreateResponse struct {
SubvolumeInfo
}
SubvolumesClientCreateResponse contains the response from method SubvolumesClient.Create.
type SubvolumesClientDeleteResponse ¶ added in v0.3.0
type SubvolumesClientDeleteResponse struct { }
SubvolumesClientDeleteResponse contains the response from method SubvolumesClient.Delete.
type SubvolumesClientGetMetadataResponse ¶ added in v0.3.0
type SubvolumesClientGetMetadataResponse struct {
SubvolumeModel
}
SubvolumesClientGetMetadataResponse contains the response from method SubvolumesClient.GetMetadata.
type SubvolumesClientGetOptions ¶ added in v0.3.0
type SubvolumesClientGetOptions struct { }
SubvolumesClientGetOptions contains the optional parameters for the SubvolumesClient.Get method.
type SubvolumesClientGetResponse ¶ added in v0.3.0
type SubvolumesClientGetResponse struct {
SubvolumeInfo
}
SubvolumesClientGetResponse contains the response from method SubvolumesClient.Get.
type SubvolumesClientListByVolumeOptions ¶ added in v0.3.0
type SubvolumesClientListByVolumeOptions struct { }
SubvolumesClientListByVolumeOptions contains the optional parameters for the SubvolumesClient.ListByVolume method.
type SubvolumesClientListByVolumeResponse ¶ added in v0.3.0
type SubvolumesClientListByVolumeResponse struct {
SubvolumesList
}
SubvolumesClientListByVolumeResponse contains the response from method SubvolumesClient.ListByVolume.
type SubvolumesClientUpdateResponse ¶ added in v0.3.0
type SubvolumesClientUpdateResponse struct {
SubvolumeInfo
}
SubvolumesClientUpdateResponse contains the response from method SubvolumesClient.Update.
type SubvolumesList ¶ added in v0.3.0
type SubvolumesList struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // A list of Subvolumes Value []*SubvolumeInfo `json:"value,omitempty"` }
SubvolumesList - List of Subvolumes
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type Vault ¶
type Vault struct { // REQUIRED; Resource location Location *string `json:"location,omitempty"` // REQUIRED; Vault Properties Properties *VaultProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Vault information
type VaultList ¶
type VaultList struct { // A list of vaults Value []*Vault `json:"value,omitempty"` }
VaultList - List of Vaults
type VaultProperties ¶
type VaultProperties struct { // Vault Name VaultName *string `json:"vaultName,omitempty"` }
VaultProperties - Vault properties
type VaultsClient ¶
type VaultsClient struct {
// contains filtered or unexported fields
}
VaultsClient contains the methods for the Vaults group. Don't use this type directly, use NewVaultsClient() instead.
func NewVaultsClient ¶
func NewVaultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VaultsClient, error)
NewVaultsClient creates a new instance of VaultsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VaultsClient) NewListPager ¶ added in v0.4.0
func (client *VaultsClient) NewListPager(resourceGroupName string, accountName string, options *VaultsClientListOptions) *runtime.Pager[VaultsClientListResponse]
NewListPager - List vaults for a Netapp Account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account options - VaultsClientListOptions contains the optional parameters for the VaultsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Vaults_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVaultsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myRG", "account1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VaultsClientListOptions ¶ added in v0.2.0
type VaultsClientListOptions struct { }
VaultsClientListOptions contains the optional parameters for the VaultsClient.List method.
type VaultsClientListResponse ¶ added in v0.2.0
type VaultsClientListResponse struct {
VaultList
}
VaultsClientListResponse contains the response from method VaultsClient.List.
type Volume ¶
type Volume struct { // REQUIRED; Resource location Location *string `json:"location,omitempty"` // REQUIRED; Volume properties Properties *VolumeProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty" azure:"ro"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The system meta data relating to this resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
Volume resource
func (Volume) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Volume.
type VolumeBackupProperties ¶
type VolumeBackupProperties struct { // Backup Enabled BackupEnabled *bool `json:"backupEnabled,omitempty"` // Backup Policy Resource ID BackupPolicyID *string `json:"backupPolicyId,omitempty"` // Policy Enforced PolicyEnforced *bool `json:"policyEnforced,omitempty"` // Vault Resource ID VaultID *string `json:"vaultId,omitempty"` }
VolumeBackupProperties - Volume Backup Properties
type VolumeBackups ¶
type VolumeBackups struct { // Total count of backups for volume BackupsCount *int32 `json:"backupsCount,omitempty"` // Policy enabled PolicyEnabled *bool `json:"policyEnabled,omitempty"` // Volume name VolumeName *string `json:"volumeName,omitempty"` }
VolumeBackups - Volume details using the backup policy
type VolumeGroup ¶
type VolumeGroup struct { // Resource location Location *string `json:"location,omitempty"` // Volume group properties Properties *VolumeGroupListProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
VolumeGroup - Volume group resource
type VolumeGroupDetails ¶
type VolumeGroupDetails struct { // Resource location Location *string `json:"location,omitempty"` // Volume group properties Properties *VolumeGroupProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
VolumeGroupDetails - Volume group resource for create
func (VolumeGroupDetails) MarshalJSON ¶
func (v VolumeGroupDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroupDetails.
type VolumeGroupList ¶
type VolumeGroupList struct { // List of volume Groups Value []*VolumeGroup `json:"value,omitempty"` }
VolumeGroupList - List of volume group resources
type VolumeGroupListProperties ¶
type VolumeGroupListProperties struct { // Volume group details GroupMetaData *VolumeGroupMetaData `json:"groupMetaData,omitempty"` // READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
VolumeGroupListProperties - Volume group properties
type VolumeGroupMetaData ¶
type VolumeGroupMetaData struct { // Application specific identifier ApplicationIdentifier *string `json:"applicationIdentifier,omitempty"` // Application Type ApplicationType *ApplicationType `json:"applicationType,omitempty"` // Application specific identifier of deployment rules for the volume group DeploymentSpecID *string `json:"deploymentSpecId,omitempty"` // Application specific placement rules for the volume group GlobalPlacementRules []*PlacementKeyValuePairs `json:"globalPlacementRules,omitempty"` // Group Description GroupDescription *string `json:"groupDescription,omitempty"` // READ-ONLY; Number of volumes in volume group VolumesCount *int64 `json:"volumesCount,omitempty" azure:"ro"` }
VolumeGroupMetaData - Volume group properties
func (VolumeGroupMetaData) MarshalJSON ¶
func (v VolumeGroupMetaData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroupMetaData.
type VolumeGroupProperties ¶
type VolumeGroupProperties struct { // Volume group details GroupMetaData *VolumeGroupMetaData `json:"groupMetaData,omitempty"` // List of volumes from group Volumes []*VolumeGroupVolumeProperties `json:"volumes,omitempty"` // READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
VolumeGroupProperties - Volume group properties
func (VolumeGroupProperties) MarshalJSON ¶
func (v VolumeGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroupProperties.
type VolumeGroupVolumeProperties ¶
type VolumeGroupVolumeProperties struct { // REQUIRED; Volume properties Properties *VolumeProperties `json:"properties,omitempty"` // Resource name Name *string `json:"name,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
VolumeGroupVolumeProperties - Volume resource
func (VolumeGroupVolumeProperties) MarshalJSON ¶
func (v VolumeGroupVolumeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroupVolumeProperties.
type VolumeGroupsClient ¶
type VolumeGroupsClient struct {
// contains filtered or unexported fields
}
VolumeGroupsClient contains the methods for the VolumeGroups group. Don't use this type directly, use NewVolumeGroupsClient() instead.
func NewVolumeGroupsClient ¶
func NewVolumeGroupsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VolumeGroupsClient, error)
NewVolumeGroupsClient creates a new instance of VolumeGroupsClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VolumeGroupsClient) BeginCreate ¶
func (client *VolumeGroupsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, volumeGroupName string, body VolumeGroupDetails, options *VolumeGroupsClientBeginCreateOptions) (*runtime.Poller[VolumeGroupsClientCreateResponse], error)
BeginCreate - Create a volume group along with specified volumes If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account volumeGroupName - The name of the volumeGroup body - Volume Group object supplied in the body of the operation. options - VolumeGroupsClientBeginCreateOptions contains the optional parameters for the VolumeGroupsClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumeGroupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreate(ctx, "myRG", "account1", "group1", armnetapp.VolumeGroupDetails{ Location: to.Ptr("westus"), Properties: &armnetapp.VolumeGroupProperties{ GroupMetaData: &armnetapp.VolumeGroupMetaData{ ApplicationIdentifier: to.Ptr("DEV"), ApplicationType: to.Ptr(armnetapp.ApplicationTypeSAPHANA), DeploymentSpecID: to.Ptr("fb04dbeb-005d-2703-197e-6208dfadb5d9"), GroupDescription: to.Ptr("Volume group"), }, Volumes: []*armnetapp.VolumeGroupVolumeProperties{ { Name: to.Ptr("testVol1"), Properties: &armnetapp.VolumeProperties{ CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), CreationToken: to.Ptr("testVol1"), ProximityPlacementGroup: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium), SubnetID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), ThroughputMibps: to.Ptr[float32](10), UsageThreshold: to.Ptr[int64](107374182400), VolumeSpecName: to.Ptr("data"), }, }, { Name: to.Ptr("testVol2"), Properties: &armnetapp.VolumeProperties{ CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), CreationToken: to.Ptr("testVol2"), ProximityPlacementGroup: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium), SubnetID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), ThroughputMibps: to.Ptr[float32](10), UsageThreshold: to.Ptr[int64](107374182400), VolumeSpecName: to.Ptr("log"), }, }, { Name: to.Ptr("testVol3"), Properties: &armnetapp.VolumeProperties{ CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), CreationToken: to.Ptr("testVol3"), ProximityPlacementGroup: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg"), ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium), SubnetID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), ThroughputMibps: to.Ptr[float32](10), UsageThreshold: to.Ptr[int64](107374182400), VolumeSpecName: to.Ptr("shared"), }, }}, }, }, 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) } }
Output:
func (*VolumeGroupsClient) BeginDelete ¶
func (client *VolumeGroupsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, volumeGroupName string, options *VolumeGroupsClientBeginDeleteOptions) (*runtime.Poller[VolumeGroupsClientDeleteResponse], error)
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 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account volumeGroupName - The name of the volumeGroup options - VolumeGroupsClientBeginDeleteOptions contains the optional parameters for the VolumeGroupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumeGroupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "myRG", "account1", "group1", 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) } }
Output:
func (*VolumeGroupsClient) Get ¶
func (client *VolumeGroupsClient) Get(ctx context.Context, resourceGroupName string, accountName string, volumeGroupName string, options *VolumeGroupsClientGetOptions) (VolumeGroupsClientGetResponse, error)
Get - Get details of the specified volume group If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account volumeGroupName - The name of the volumeGroup options - VolumeGroupsClientGetOptions contains the optional parameters for the VolumeGroupsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumeGroupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myRG", "account1", "group1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VolumeGroupsClient) NewListByNetAppAccountPager ¶ added in v0.4.0
func (client *VolumeGroupsClient) NewListByNetAppAccountPager(resourceGroupName string, accountName string, options *VolumeGroupsClientListByNetAppAccountOptions) *runtime.Pager[VolumeGroupsClientListByNetAppAccountResponse]
NewListByNetAppAccountPager - List all volume groups for given account If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account options - VolumeGroupsClientListByNetAppAccountOptions contains the optional parameters for the VolumeGroupsClient.ListByNetAppAccount method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/VolumeGroups_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumeGroupsClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByNetAppAccountPager("myRG", "account1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VolumeGroupsClientBeginCreateOptions ¶ added in v0.2.0
type VolumeGroupsClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VolumeGroupsClientBeginCreateOptions contains the optional parameters for the VolumeGroupsClient.BeginCreate method.
type VolumeGroupsClientBeginDeleteOptions ¶ added in v0.2.0
type VolumeGroupsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VolumeGroupsClientBeginDeleteOptions contains the optional parameters for the VolumeGroupsClient.BeginDelete method.
type VolumeGroupsClientCreateResponse ¶ added in v0.2.0
type VolumeGroupsClientCreateResponse struct {
VolumeGroupDetails
}
VolumeGroupsClientCreateResponse contains the response from method VolumeGroupsClient.Create.
type VolumeGroupsClientDeleteResponse ¶ added in v0.2.0
type VolumeGroupsClientDeleteResponse struct { }
VolumeGroupsClientDeleteResponse contains the response from method VolumeGroupsClient.Delete.
type VolumeGroupsClientGetOptions ¶ added in v0.2.0
type VolumeGroupsClientGetOptions struct { }
VolumeGroupsClientGetOptions contains the optional parameters for the VolumeGroupsClient.Get method.
type VolumeGroupsClientGetResponse ¶ added in v0.2.0
type VolumeGroupsClientGetResponse struct {
VolumeGroupDetails
}
VolumeGroupsClientGetResponse contains the response from method VolumeGroupsClient.Get.
type VolumeGroupsClientListByNetAppAccountOptions ¶ added in v0.2.0
type VolumeGroupsClientListByNetAppAccountOptions struct { }
VolumeGroupsClientListByNetAppAccountOptions contains the optional parameters for the VolumeGroupsClient.ListByNetAppAccount method.
type VolumeGroupsClientListByNetAppAccountResponse ¶ added in v0.2.0
type VolumeGroupsClientListByNetAppAccountResponse struct {
VolumeGroupList
}
VolumeGroupsClientListByNetAppAccountResponse contains the response from method VolumeGroupsClient.ListByNetAppAccount.
type VolumeList ¶
type VolumeList struct { // URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // List of volumes Value []*Volume `json:"value,omitempty"` }
VolumeList - List of volume resources
type VolumePatch ¶
type VolumePatch struct { // Resource location Location *string `json:"location,omitempty"` // Patchable volume properties Properties *VolumePatchProperties `json:"properties,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
VolumePatch - Volume patch resource
func (VolumePatch) MarshalJSON ¶
func (v VolumePatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumePatch.
type VolumePatchProperties ¶
type VolumePatchProperties struct { // DataProtection type volumes include an object containing details of the replication DataProtection *VolumePatchPropertiesDataProtection `json:"dataProtection,omitempty"` // Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. DefaultGroupQuotaInKiBs *int64 `json:"defaultGroupQuotaInKiBs,omitempty"` // Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . DefaultUserQuotaInKiBs *int64 `json:"defaultUserQuotaInKiBs,omitempty"` // Set of export policy rules ExportPolicy *VolumePatchPropertiesExportPolicy `json:"exportPolicy,omitempty"` // Specifies if default quota is enabled for the volume. IsDefaultQuotaEnabled *bool `json:"isDefaultQuotaEnabled,omitempty"` // The service level of the file system ServiceLevel *ServiceLevel `json:"serviceLevel,omitempty"` // Maximum throughput in Mibps that can be achieved by this volume and this will be accepted as input only for manual qosType // volume ThroughputMibps *float32 `json:"throughputMibps,omitempty"` // UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID // (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. UnixPermissions *string `json:"unixPermissions,omitempty"` // Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is // 100 GiB. Upper limit is 100TiB. Specified in bytes. UsageThreshold *int64 `json:"usageThreshold,omitempty"` }
VolumePatchProperties - Patchable volume properties
type VolumePatchPropertiesDataProtection ¶
type VolumePatchPropertiesDataProtection struct { // Backup Properties Backup *VolumeBackupProperties `json:"backup,omitempty"` // Snapshot properties. Snapshot *VolumeSnapshotProperties `json:"snapshot,omitempty"` }
VolumePatchPropertiesDataProtection - DataProtection type volumes include an object containing details of the replication
type VolumePatchPropertiesExportPolicy ¶
type VolumePatchPropertiesExportPolicy struct { // Export policy rule Rules []*ExportPolicyRule `json:"rules,omitempty"` }
VolumePatchPropertiesExportPolicy - Set of export policy rules
func (VolumePatchPropertiesExportPolicy) MarshalJSON ¶
func (v VolumePatchPropertiesExportPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumePatchPropertiesExportPolicy.
type VolumeProperties ¶
type VolumeProperties struct { // REQUIRED; A unique file path for the volume. Used when creating mount targets CreationToken *string `json:"creationToken,omitempty"` // REQUIRED; The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes SubnetID *string `json:"subnetId,omitempty"` // REQUIRED; Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum // size is 100 GiB. Upper limit is 100TiB. Specified in bytes. UsageThreshold *int64 `json:"usageThreshold,omitempty"` // Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose AvsDataStore *AvsDataStore `json:"avsDataStore,omitempty"` // UUID v4 or resource identifier used to identify the Backup. BackupID *string `json:"backupId,omitempty"` // Pool Resource Id used in case of creating a volume through volume group CapacityPoolResourceID *string `json:"capacityPoolResourceId,omitempty"` // Specifies whether Cool Access(tiering) is enabled for the volume. CoolAccess *bool `json:"coolAccess,omitempty"` // Specifies the number of days after which data that is not accessed by clients will be tiered. CoolnessPeriod *int32 `json:"coolnessPeriod,omitempty"` // DataProtection type volumes include an object containing details of the replication DataProtection *VolumePropertiesDataProtection `json:"dataProtection,omitempty"` // Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. DefaultGroupQuotaInKiBs *int64 `json:"defaultGroupQuotaInKiBs,omitempty"` // Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . DefaultUserQuotaInKiBs *int64 `json:"defaultUserQuotaInKiBs,omitempty"` // Flag indicating whether subvolume operations are enabled on the volume EnableSubvolumes *EnableSubvolumes `json:"enableSubvolumes,omitempty"` // Encryption Key Source. Possible values are: 'Microsoft.NetApp' EncryptionKeySource *string `json:"encryptionKeySource,omitempty"` // Set of export policy rules ExportPolicy *VolumePropertiesExportPolicy `json:"exportPolicy,omitempty"` // Specifies if default quota is enabled for the volume. IsDefaultQuotaEnabled *bool `json:"isDefaultQuotaEnabled,omitempty"` // Restoring IsRestoring *bool `json:"isRestoring,omitempty"` // Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later KerberosEnabled *bool `json:"kerberosEnabled,omitempty"` // Specifies whether LDAP is enabled or not for a given NFS volume. LdapEnabled *bool `json:"ldapEnabled,omitempty"` // Basic network, or Standard features available to the volume. NetworkFeatures *NetworkFeatures `json:"networkFeatures,omitempty"` // Application specific placement rules for the particular volume PlacementRules []*PlacementKeyValuePairs `json:"placementRules,omitempty"` // Set of protocol types, default NFSv3, CIFS for SMB protocol ProtocolTypes []*string `json:"protocolTypes,omitempty"` // Proximity placement group associated with the volume ProximityPlacementGroup *string `json:"proximityPlacementGroup,omitempty"` // The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol SecurityStyle *SecurityStyle `json:"securityStyle,omitempty"` // The service level of the file system ServiceLevel *ServiceLevel `json:"serviceLevel,omitempty"` // Enables continuously available share property for smb volume. Only applicable for SMB volume SmbContinuouslyAvailable *bool `json:"smbContinuouslyAvailable,omitempty"` // Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version // 2020-08-01 or later SmbEncryption *bool `json:"smbEncryption,omitempty"` // If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's // snapshots (default to true). SnapshotDirectoryVisible *bool `json:"snapshotDirectoryVisible,omitempty"` // UUID v4 or resource identifier used to identify the Snapshot. SnapshotID *string `json:"snapshotId,omitempty"` // Maximum throughput in Mibps that can be achieved by this volume and this will be accepted as input only for manual qosType // volume ThroughputMibps *float32 `json:"throughputMibps,omitempty"` // UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID // (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. UnixPermissions *string `json:"unixPermissions,omitempty"` // 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 `json:"volumeSpecName,omitempty"` // What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection VolumeType *string `json:"volumeType,omitempty"` // READ-ONLY; Unique Baremetal Tenant Identifier. BaremetalTenantID *string `json:"baremetalTenantId,omitempty" azure:"ro"` // READ-ONLY; When a volume is being restored from another volume's snapshot, will show the percentage completion of this // cloning process. When this value is empty/null there is no cloning process currently // happening on this volume. This value will update every 5 minutes during cloning. CloneProgress *int32 `json:"cloneProgress,omitempty" azure:"ro"` // READ-ONLY; Unique FileSystem Identifier. FileSystemID *string `json:"fileSystemId,omitempty" azure:"ro"` // 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 `json:"maximumNumberOfFiles,omitempty" azure:"ro"` // READ-ONLY; List of mount targets MountTargets []*MountTargetProperties `json:"mountTargets,omitempty" azure:"ro"` // READ-ONLY; Network Sibling Set ID for the the group of volumes sharing networking resources. NetworkSiblingSetID *string `json:"networkSiblingSetId,omitempty" azure:"ro"` // READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Provides storage to network proximity information for the volume. StorageToNetworkProximity *VolumeStorageToNetworkProximity `json:"storageToNetworkProximity,omitempty" azure:"ro"` // READ-ONLY; T2 network information T2Network *string `json:"t2Network,omitempty" azure:"ro"` // READ-ONLY; Volume Group Name VolumeGroupName *string `json:"volumeGroupName,omitempty" azure:"ro"` }
VolumeProperties - Volume properties
func (VolumeProperties) MarshalJSON ¶
func (v VolumeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeProperties.
type VolumePropertiesDataProtection ¶
type VolumePropertiesDataProtection struct { // Backup Properties Backup *VolumeBackupProperties `json:"backup,omitempty"` // Replication properties Replication *ReplicationObject `json:"replication,omitempty"` // Snapshot properties. Snapshot *VolumeSnapshotProperties `json:"snapshot,omitempty"` }
VolumePropertiesDataProtection - DataProtection type volumes include an object containing details of the replication
type VolumePropertiesExportPolicy ¶
type VolumePropertiesExportPolicy struct { // Export policy rule Rules []*ExportPolicyRule `json:"rules,omitempty"` }
VolumePropertiesExportPolicy - Set of export policy rules
func (VolumePropertiesExportPolicy) MarshalJSON ¶
func (v VolumePropertiesExportPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumePropertiesExportPolicy.
type VolumeRevert ¶
type VolumeRevert struct { // Resource id of the snapshot SnapshotID *string `json:"snapshotId,omitempty"` }
VolumeRevert - revert a volume to the snapshot
type VolumeSnapshotProperties ¶
type VolumeSnapshotProperties struct { // Snapshot Policy ResourceId SnapshotPolicyID *string `json:"snapshotPolicyId,omitempty"` }
VolumeSnapshotProperties - Volume Snapshot Properties
type VolumeStorageToNetworkProximity ¶
type VolumeStorageToNetworkProximity string
VolumeStorageToNetworkProximity - Provides storage to network proximity information for the volume.
const ( // VolumeStorageToNetworkProximityDefault - Basic storage to network connectivity. VolumeStorageToNetworkProximityDefault VolumeStorageToNetworkProximity = "Default" // VolumeStorageToNetworkProximityT1 - Standard T1 storage to network connectivity. VolumeStorageToNetworkProximityT1 VolumeStorageToNetworkProximity = "T1" // VolumeStorageToNetworkProximityT2 - Standard T2 storage to network connectivity. VolumeStorageToNetworkProximityT2 VolumeStorageToNetworkProximity = "T2" )
func PossibleVolumeStorageToNetworkProximityValues ¶
func PossibleVolumeStorageToNetworkProximityValues() []VolumeStorageToNetworkProximity
PossibleVolumeStorageToNetworkProximityValues returns the possible values for the VolumeStorageToNetworkProximity const type.
type VolumesClient ¶
type VolumesClient struct {
// contains filtered or unexported fields
}
VolumesClient contains the methods for the Volumes group. Don't use this type directly, use NewVolumesClient() instead.
func NewVolumesClient ¶
func NewVolumesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VolumesClient, error)
NewVolumesClient creates a new instance of VolumesClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VolumesClient) BeginAuthorizeReplication ¶
func (client *VolumesClient) BeginAuthorizeReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body AuthorizeRequest, options *VolumesClientBeginAuthorizeReplicationOptions) (*runtime.Poller[VolumesClientAuthorizeReplicationResponse], error)
BeginAuthorizeReplication - Authorize the replication connection on the source volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume body - Authorize request object supplied in the body of the operation. options - VolumesClientBeginAuthorizeReplicationOptions contains the optional parameters for the VolumesClient.BeginAuthorizeReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_AuthorizeReplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginAuthorizeReplication(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.AuthorizeRequest{ RemoteVolumeResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1"), }, 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) } }
Output:
func (*VolumesClient) BeginBreakReplication ¶
func (client *VolumesClient) BeginBreakReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginBreakReplicationOptions) (*runtime.Poller[VolumesClientBreakReplicationResponse], error)
BeginBreakReplication - Break the replication connection on the destination volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - VolumesClientBeginBreakReplicationOptions contains the optional parameters for the VolumesClient.BeginBreakReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_BreakReplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginBreakReplication(ctx, "myRG", "account1", "pool1", "volume1", &armnetapp.VolumesClientBeginBreakReplicationOptions{Body: &armnetapp.BreakReplicationRequest{ ForceBreakReplication: to.Ptr(false), }, }) 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) } }
Output:
func (*VolumesClient) BeginCreateOrUpdate ¶
func (client *VolumesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body Volume, options *VolumesClientBeginCreateOrUpdateOptions) (*runtime.Poller[VolumesClientCreateOrUpdateResponse], error)
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 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume body - Volume object supplied in the body of the operation. options - VolumesClientBeginCreateOrUpdateOptions contains the optional parameters for the VolumesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_CreateOrUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.Volume{ Location: to.Ptr("eastus"), Properties: &armnetapp.VolumeProperties{ CreationToken: to.Ptr("my-unique-file-path"), EncryptionKeySource: to.Ptr("Microsoft.KeyVault"), ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium), SubnetID: to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"), ThroughputMibps: to.Ptr[float32](128), UsageThreshold: to.Ptr[int64](107374182400), }, }, 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) } // TODO: use response item _ = res }
Output:
func (*VolumesClient) BeginDelete ¶
func (client *VolumesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginDeleteOptions) (*runtime.Poller[VolumesClientDeleteResponse], error)
BeginDelete - Delete the specified volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - VolumesClientBeginDeleteOptions contains the optional parameters for the VolumesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "myRG", "account1", "pool1", "volume1", &armnetapp.VolumesClientBeginDeleteOptions{ForceDelete: 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) } }
Output:
func (*VolumesClient) BeginDeleteReplication ¶
func (client *VolumesClient) BeginDeleteReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginDeleteReplicationOptions) (*runtime.Poller[VolumesClientDeleteReplicationResponse], error)
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 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - VolumesClientBeginDeleteReplicationOptions contains the optional parameters for the VolumesClient.BeginDeleteReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_DeleteReplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDeleteReplication(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) } }
Output:
func (*VolumesClient) BeginPoolChange ¶
func (client *VolumesClient) BeginPoolChange(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body PoolChangeRequest, options *VolumesClientBeginPoolChangeOptions) (*runtime.Poller[VolumesClientPoolChangeResponse], error)
BeginPoolChange - Moves volume to another pool If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume body - Move volume to the pool supplied in the body of the operation. options - VolumesClientBeginPoolChangeOptions contains the optional parameters for the VolumesClient.BeginPoolChange method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_PoolChange.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginPoolChange(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.PoolChangeRequest{ NewPoolResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"), }, 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) } }
Output:
func (*VolumesClient) BeginReInitializeReplication ¶
func (client *VolumesClient) BeginReInitializeReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginReInitializeReplicationOptions) (*runtime.Poller[VolumesClientReInitializeReplicationResponse], error)
BeginReInitializeReplication - Re-Initializes the replication connection on the destination volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - VolumesClientBeginReInitializeReplicationOptions contains the optional parameters for the VolumesClient.BeginReInitializeReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ReInitializeReplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginReInitializeReplication(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) } }
Output:
func (*VolumesClient) BeginResyncReplication ¶
func (client *VolumesClient) BeginResyncReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginResyncReplicationOptions) (*runtime.Poller[VolumesClientResyncReplicationResponse], error)
BeginResyncReplication - Resync the connection on the destination volume. If the operation is ran on the source volume 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 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - VolumesClientBeginResyncReplicationOptions contains the optional parameters for the VolumesClient.BeginResyncReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ResyncReplication.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginResyncReplication(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) } }
Output:
func (*VolumesClient) BeginRevert ¶
func (client *VolumesClient) BeginRevert(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body VolumeRevert, options *VolumesClientBeginRevertOptions) (*runtime.Poller[VolumesClientRevertResponse], error)
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 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume body - Object for snapshot to revert supplied in the body of the operation. options - VolumesClientBeginRevertOptions contains the optional parameters for the VolumesClient.BeginRevert method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Revert.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginRevert(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.VolumeRevert{ SnapshotID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"), }, 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) } }
Output:
func (*VolumesClient) BeginUpdate ¶
func (client *VolumesClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body VolumePatch, options *VolumesClientBeginUpdateOptions) (*runtime.Poller[VolumesClientUpdateResponse], error)
BeginUpdate - Patch the specified volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume body - Volume object supplied in the body of the operation. options - VolumesClientBeginUpdateOptions contains the optional parameters for the VolumesClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.VolumePatch{}, 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) } // TODO: use response item _ = res }
Output:
func (*VolumesClient) Get ¶
func (client *VolumesClient) Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientGetOptions) (VolumesClientGetResponse, error)
Get - Get the details of the specified volume If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - VolumesClientGetOptions contains the optional parameters for the VolumesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "myRG", "account1", "pool1", "volume1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*VolumesClient) NewListPager ¶ added in v0.4.0
func (client *VolumesClient) NewListPager(resourceGroupName string, accountName string, poolName string, options *VolumesClientListOptions) *runtime.Pager[VolumesClientListResponse]
NewListPager - List all volumes within the capacity pool If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool options - VolumesClientListOptions contains the optional parameters for the VolumesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("myRG", "account1", "pool1", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VolumesClient) ReplicationStatus ¶
func (client *VolumesClient) ReplicationStatus(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientReplicationStatusOptions) (VolumesClientReplicationStatusResponse, error)
ReplicationStatus - Get the status of the replication If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2021-10-01 resourceGroupName - The name of the resource group. accountName - The name of the NetApp account poolName - The name of the capacity pool volumeName - The name of the volume options - VolumesClientReplicationStatusOptions contains the optional parameters for the VolumesClient.ReplicationStatus method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/netapp/resource-manager/Microsoft.NetApp/stable/2021-10-01/examples/Volumes_ReplicationStatus.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armnetapp.NewVolumesClient("D633CC2E-722B-4AE1-B636-BBD9E4C60ED9", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ReplicationStatus(ctx, "myRG", "account1", "pool1", "volume1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type VolumesClientAuthorizeReplicationResponse ¶ added in v0.2.0
type VolumesClientAuthorizeReplicationResponse struct { }
VolumesClientAuthorizeReplicationResponse contains the response from method VolumesClient.AuthorizeReplication.
type VolumesClientBeginAuthorizeReplicationOptions ¶ added in v0.2.0
type VolumesClientBeginAuthorizeReplicationOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VolumesClientBeginAuthorizeReplicationOptions contains the optional parameters for the VolumesClient.BeginAuthorizeReplication method.
type VolumesClientBeginBreakReplicationOptions ¶ added in v0.2.0
type VolumesClientBeginBreakReplicationOptions struct { // Optional body to force break the replication. Body *BreakReplicationRequest // Resumes the LRO from the provided token. ResumeToken string }
VolumesClientBeginBreakReplicationOptions contains the optional parameters for the VolumesClient.BeginBreakReplication method.
type VolumesClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type VolumesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VolumesClientBeginCreateOrUpdateOptions contains the optional parameters for the VolumesClient.BeginCreateOrUpdate method.
type VolumesClientBeginDeleteOptions ¶ added in v0.2.0
type VolumesClientBeginDeleteOptions struct { // An option to force delete the volume. Will cleanup resources connected to the particular volume ForceDelete *bool // Resumes the LRO from the provided token. ResumeToken string }
VolumesClientBeginDeleteOptions contains the optional parameters for the VolumesClient.BeginDelete method.
type VolumesClientBeginDeleteReplicationOptions ¶ added in v0.2.0
type VolumesClientBeginDeleteReplicationOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VolumesClientBeginDeleteReplicationOptions contains the optional parameters for the VolumesClient.BeginDeleteReplication method.
type VolumesClientBeginPoolChangeOptions ¶ added in v0.2.0
type VolumesClientBeginPoolChangeOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VolumesClientBeginPoolChangeOptions contains the optional parameters for the VolumesClient.BeginPoolChange method.
type VolumesClientBeginReInitializeReplicationOptions ¶ added in v0.2.0
type VolumesClientBeginReInitializeReplicationOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VolumesClientBeginReInitializeReplicationOptions contains the optional parameters for the VolumesClient.BeginReInitializeReplication method.
type VolumesClientBeginResyncReplicationOptions ¶ added in v0.2.0
type VolumesClientBeginResyncReplicationOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VolumesClientBeginResyncReplicationOptions contains the optional parameters for the VolumesClient.BeginResyncReplication method.
type VolumesClientBeginRevertOptions ¶ added in v0.2.0
type VolumesClientBeginRevertOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VolumesClientBeginRevertOptions contains the optional parameters for the VolumesClient.BeginRevert method.
type VolumesClientBeginUpdateOptions ¶ added in v0.2.0
type VolumesClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VolumesClientBeginUpdateOptions contains the optional parameters for the VolumesClient.BeginUpdate method.
type VolumesClientBreakReplicationResponse ¶ added in v0.2.0
type VolumesClientBreakReplicationResponse struct { }
VolumesClientBreakReplicationResponse contains the response from method VolumesClient.BreakReplication.
type VolumesClientCreateOrUpdateResponse ¶ added in v0.2.0
type VolumesClientCreateOrUpdateResponse struct {
Volume
}
VolumesClientCreateOrUpdateResponse contains the response from method VolumesClient.CreateOrUpdate.
type VolumesClientDeleteReplicationResponse ¶ added in v0.2.0
type VolumesClientDeleteReplicationResponse struct { }
VolumesClientDeleteReplicationResponse contains the response from method VolumesClient.DeleteReplication.
type VolumesClientDeleteResponse ¶ added in v0.2.0
type VolumesClientDeleteResponse struct { }
VolumesClientDeleteResponse contains the response from method VolumesClient.Delete.
type VolumesClientGetOptions ¶ added in v0.2.0
type VolumesClientGetOptions struct { }
VolumesClientGetOptions contains the optional parameters for the VolumesClient.Get method.
type VolumesClientGetResponse ¶ added in v0.2.0
type VolumesClientGetResponse struct {
Volume
}
VolumesClientGetResponse contains the response from method VolumesClient.Get.
type VolumesClientListOptions ¶ added in v0.2.0
type VolumesClientListOptions struct { }
VolumesClientListOptions contains the optional parameters for the VolumesClient.List method.
type VolumesClientListResponse ¶ added in v0.2.0
type VolumesClientListResponse struct {
VolumeList
}
VolumesClientListResponse contains the response from method VolumesClient.List.
type VolumesClientPoolChangeResponse ¶ added in v0.2.0
type VolumesClientPoolChangeResponse struct { }
VolumesClientPoolChangeResponse contains the response from method VolumesClient.PoolChange.
type VolumesClientReInitializeReplicationResponse ¶ added in v0.2.0
type VolumesClientReInitializeReplicationResponse struct { }
VolumesClientReInitializeReplicationResponse contains the response from method VolumesClient.ReInitializeReplication.
type VolumesClientReplicationStatusOptions ¶ added in v0.2.0
type VolumesClientReplicationStatusOptions struct { }
VolumesClientReplicationStatusOptions contains the optional parameters for the VolumesClient.ReplicationStatus method.
type VolumesClientReplicationStatusResponse ¶ added in v0.2.0
type VolumesClientReplicationStatusResponse struct {
ReplicationStatus
}
VolumesClientReplicationStatusResponse contains the response from method VolumesClient.ReplicationStatus.
type VolumesClientResyncReplicationResponse ¶ added in v0.2.0
type VolumesClientResyncReplicationResponse struct { }
VolumesClientResyncReplicationResponse contains the response from method VolumesClient.ResyncReplication.
type VolumesClientRevertResponse ¶ added in v0.2.0
type VolumesClientRevertResponse struct { }
VolumesClientRevertResponse contains the response from method VolumesClient.Revert.
type VolumesClientUpdateResponse ¶ added in v0.2.0
type VolumesClientUpdateResponse struct {
Volume
}
VolumesClientUpdateResponse contains the response from method VolumesClient.Update.
type WeeklySchedule ¶
type WeeklySchedule struct { // Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english Day *string `json:"day,omitempty"` // Indicates which hour in UTC timezone a snapshot should be taken Hour *int32 `json:"hour,omitempty"` // Indicates which minute snapshot should be taken Minute *int32 `json:"minute,omitempty"` // Weekly snapshot count to keep SnapshotsToKeep *int32 `json:"snapshotsToKeep,omitempty"` // Resource size in bytes, current storage usage for the volume in bytes UsedBytes *int64 `json:"usedBytes,omitempty"` }
WeeklySchedule - Weekly Schedule properties, make a snapshot every week at a specific day or days
Source Files
¶
- build.go
- zz_generated_accountbackups_client.go
- zz_generated_accounts_client.go
- zz_generated_backuppolicies_client.go
- zz_generated_backups_client.go
- zz_generated_constants.go
- zz_generated_models.go
- zz_generated_models_serde.go
- zz_generated_operations_client.go
- zz_generated_pools_client.go
- zz_generated_resource_client.go
- zz_generated_resourcequotalimits_client.go
- zz_generated_response_types.go
- zz_generated_snapshotpolicies_client.go
- zz_generated_snapshots_client.go
- zz_generated_subvolumes_client.go
- zz_generated_time_rfc3339.go
- zz_generated_vaults_client.go
- zz_generated_volumegroups_client.go
- zz_generated_volumes_client.go