Documentation
¶
Index ¶
- type AcceptGrowCapacityPoolForShortTermCloneSplit
- type Account
- type AccountEncryption
- type AccountList
- type AccountPatch
- type AccountProperties
- type AccountsClient
- func (client *AccountsClient) BeginChangeKeyVault(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[AccountsClientChangeKeyVaultResponse], error)
- 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) BeginGetChangeKeyVaultInformation(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[AccountsClientGetChangeKeyVaultInformationResponse], error)
- func (client *AccountsClient) BeginRenewCredentials(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[AccountsClientRenewCredentialsResponse], error)
- func (client *AccountsClient) BeginTransitionToCmk(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[AccountsClientTransitionToCmkResponse], 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 AccountsClientBeginChangeKeyVaultOptions
- type AccountsClientBeginCreateOrUpdateOptions
- type AccountsClientBeginDeleteOptions
- type AccountsClientBeginGetChangeKeyVaultInformationOptions
- type AccountsClientBeginRenewCredentialsOptions
- type AccountsClientBeginTransitionToCmkOptions
- type AccountsClientBeginUpdateOptions
- type AccountsClientChangeKeyVaultResponse
- type AccountsClientCreateOrUpdateResponse
- type AccountsClientDeleteResponse
- type AccountsClientGetChangeKeyVaultInformationResponse
- type AccountsClientGetOptions
- type AccountsClientGetResponse
- type AccountsClientListBySubscriptionOptions
- type AccountsClientListBySubscriptionResponse
- type AccountsClientListOptions
- type AccountsClientListResponse
- type AccountsClientRenewCredentialsResponse
- type AccountsClientTransitionToCmkResponse
- type AccountsClientUpdateResponse
- type ActiveDirectory
- type ActiveDirectoryStatus
- type ApplicationType
- type AuthorizeRequest
- type AvsDataStore
- type Backup
- type BackupPatch
- type BackupPatchProperties
- 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 BackupPolicyPatch
- type BackupPolicyProperties
- type BackupProperties
- type BackupRestoreFiles
- type BackupStatus
- type BackupType
- type BackupVault
- type BackupVaultPatch
- type BackupVaultProperties
- type BackupVaultsClient
- func (client *BackupVaultsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[BackupVaultsClientCreateOrUpdateResponse], error)
- func (client *BackupVaultsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[BackupVaultsClientDeleteResponse], error)
- func (client *BackupVaultsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[BackupVaultsClientUpdateResponse], error)
- func (client *BackupVaultsClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (BackupVaultsClientGetResponse, error)
- func (client *BackupVaultsClient) NewListByNetAppAccountPager(resourceGroupName string, accountName string, ...) *runtime.Pager[BackupVaultsClientListByNetAppAccountResponse]
- type BackupVaultsClientBeginCreateOrUpdateOptions
- type BackupVaultsClientBeginDeleteOptions
- type BackupVaultsClientBeginUpdateOptions
- type BackupVaultsClientCreateOrUpdateResponse
- type BackupVaultsClientDeleteResponse
- type BackupVaultsClientGetOptions
- type BackupVaultsClientGetResponse
- type BackupVaultsClientListByNetAppAccountOptions
- type BackupVaultsClientListByNetAppAccountResponse
- type BackupVaultsClientUpdateResponse
- type BackupVaultsList
- 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) GetLatestStatus(ctx context.Context, resourceGroupName string, accountName string, ...) (BackupsClientGetLatestStatusResponse, error)
- func (client *BackupsClient) GetVolumeLatestRestoreStatus(ctx context.Context, resourceGroupName string, accountName string, ...) (BackupsClientGetVolumeLatestRestoreStatusResponse, error)
- func (client *BackupsClient) NewListByVaultPager(resourceGroupName string, accountName string, backupVaultName string, ...) *runtime.Pager[BackupsClientListByVaultResponse]
- type BackupsClientBeginCreateOptions
- type BackupsClientBeginDeleteOptions
- type BackupsClientBeginUpdateOptions
- type BackupsClientCreateResponse
- type BackupsClientDeleteResponse
- type BackupsClientGetLatestStatusOptions
- type BackupsClientGetLatestStatusResponse
- type BackupsClientGetOptions
- type BackupsClientGetResponse
- type BackupsClientGetVolumeLatestRestoreStatusOptions
- type BackupsClientGetVolumeLatestRestoreStatusResponse
- type BackupsClientListByVaultOptions
- type BackupsClientListByVaultResponse
- type BackupsClientUpdateResponse
- type BackupsList
- type BackupsMigrationRequest
- type BackupsUnderAccountClient
- type BackupsUnderAccountClientBeginMigrateBackupsOptions
- type BackupsUnderAccountClientMigrateBackupsResponse
- type BackupsUnderBackupVaultClient
- type BackupsUnderBackupVaultClientBeginRestoreFilesOptions
- type BackupsUnderBackupVaultClientRestoreFilesResponse
- type BackupsUnderVolumeClient
- type BackupsUnderVolumeClientBeginMigrateBackupsOptions
- type BackupsUnderVolumeClientMigrateBackupsResponse
- type BreakFileLocksRequest
- type BreakReplicationRequest
- type CapacityPool
- type CapacityPoolList
- type CapacityPoolPatch
- type ChangeKeyVault
- type CheckAvailabilityResponse
- type CheckNameResourceTypes
- type CheckQuotaNameResourceTypes
- type ChownMode
- type ClientFactory
- func (c *ClientFactory) NewAccountsClient() *AccountsClient
- func (c *ClientFactory) NewBackupPoliciesClient() *BackupPoliciesClient
- func (c *ClientFactory) NewBackupVaultsClient() *BackupVaultsClient
- func (c *ClientFactory) NewBackupsClient() *BackupsClient
- func (c *ClientFactory) NewBackupsUnderAccountClient() *BackupsUnderAccountClient
- func (c *ClientFactory) NewBackupsUnderBackupVaultClient() *BackupsUnderBackupVaultClient
- func (c *ClientFactory) NewBackupsUnderVolumeClient() *BackupsUnderVolumeClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewPoolsClient() *PoolsClient
- func (c *ClientFactory) NewResourceClient() *ResourceClient
- func (c *ClientFactory) NewResourceQuotaLimitsClient() *ResourceQuotaLimitsClient
- func (c *ClientFactory) NewResourceRegionInfosClient() *ResourceRegionInfosClient
- func (c *ClientFactory) NewSnapshotPoliciesClient() *SnapshotPoliciesClient
- func (c *ClientFactory) NewSnapshotsClient() *SnapshotsClient
- func (c *ClientFactory) NewSubvolumesClient() *SubvolumesClient
- func (c *ClientFactory) NewVolumeGroupsClient() *VolumeGroupsClient
- func (c *ClientFactory) NewVolumeQuotaRulesClient() *VolumeQuotaRulesClient
- func (c *ClientFactory) NewVolumesClient() *VolumesClient
- type ClusterPeerCommandResponse
- type CoolAccessRetrievalPolicy
- type CreatedByType
- type DailySchedule
- type DestinationReplication
- type Dimension
- type EnableSubvolumes
- type EncryptionIdentity
- type EncryptionKeySource
- type EncryptionTransitionRequest
- type EncryptionType
- type EndpointType
- type ExportPolicyRule
- type FileAccessLogs
- type FilePathAvailabilityRequest
- type GetGroupIDListForLDAPUserRequest
- type GetGroupIDListForLDAPUserResponse
- type HourlySchedule
- type InAvailabilityReasonType
- type KeySource
- type KeyVaultPrivateEndpoint
- type KeyVaultProperties
- type KeyVaultStatus
- type LdapSearchScopeOpt
- type ListQuotaReportResponse
- type ListReplications
- type LogSpecification
- type ManagedServiceIdentity
- type ManagedServiceIdentityType
- type MetricAggregationType
- type MetricSpecification
- type MirrorState
- type MonthlySchedule
- type MountTargetProperties
- type NetworkFeatures
- type NetworkSiblingSet
- type NetworkSiblingSetProvisioningState
- type NicInfo
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationProperties
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type PeerClusterForVolumeMigrationRequest
- 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 ProvisioningState
- type QosType
- type QueryNetworkSiblingSetRequest
- type QuotaAvailabilityRequest
- type QuotaReport
- type ReestablishReplicationRequest
- type RegionInfo
- type RegionInfoAvailabilityZoneMappingsItem
- type RegionInfoResource
- type RegionInfosList
- type RegionStorageToNetworkProximity
- type RelationshipStatus
- type RelocateVolumeRequest
- type RemotePath
- type Replication
- type ReplicationObject
- type ReplicationSchedule
- type ReplicationStatus
- type ReplicationType
- type ResourceClient
- func (client *ResourceClient) BeginUpdateNetworkSiblingSet(ctx context.Context, location string, body UpdateNetworkSiblingSetRequest, ...) (*runtime.Poller[ResourceClientUpdateNetworkSiblingSetResponse], error)
- 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)
- func (client *ResourceClient) QueryNetworkSiblingSet(ctx context.Context, location string, body QueryNetworkSiblingSetRequest, ...) (ResourceClientQueryNetworkSiblingSetResponse, error)
- func (client *ResourceClient) QueryRegionInfo(ctx context.Context, location string, ...) (ResourceClientQueryRegionInfoResponse, error)
- type ResourceClientBeginUpdateNetworkSiblingSetOptions
- type ResourceClientCheckFilePathAvailabilityOptions
- type ResourceClientCheckFilePathAvailabilityResponse
- type ResourceClientCheckNameAvailabilityOptions
- type ResourceClientCheckNameAvailabilityResponse
- type ResourceClientCheckQuotaAvailabilityOptions
- type ResourceClientCheckQuotaAvailabilityResponse
- type ResourceClientQueryNetworkSiblingSetOptions
- type ResourceClientQueryNetworkSiblingSetResponse
- type ResourceClientQueryRegionInfoOptions
- type ResourceClientQueryRegionInfoResponse
- type ResourceClientUpdateNetworkSiblingSetResponse
- 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 ResourceRegionInfosClient
- func (client *ResourceRegionInfosClient) Get(ctx context.Context, location string, ...) (ResourceRegionInfosClientGetResponse, error)
- func (client *ResourceRegionInfosClient) NewListPager(location string, options *ResourceRegionInfosClientListOptions) *runtime.Pager[ResourceRegionInfosClientListResponse]
- type ResourceRegionInfosClientGetOptions
- type ResourceRegionInfosClientGetResponse
- type ResourceRegionInfosClientListOptions
- type ResourceRegionInfosClientListResponse
- type RestoreStatus
- type SecurityStyle
- type ServiceLevel
- type ServiceSpecification
- type SmbAccessBasedEnumeration
- type SmbNonBrowsable
- 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 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 SvmPeerCommandResponse
- type SystemData
- type Type
- type UpdateNetworkSiblingSetRequest
- type UserAssignedIdentity
- 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 VolumeLanguage
- type VolumeList
- type VolumePatch
- type VolumePatchProperties
- type VolumePatchPropertiesDataProtection
- type VolumePatchPropertiesExportPolicy
- type VolumeProperties
- type VolumePropertiesDataProtection
- type VolumePropertiesExportPolicy
- type VolumeQuotaRule
- type VolumeQuotaRulePatch
- type VolumeQuotaRulesClient
- func (client *VolumeQuotaRulesClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumeQuotaRulesClientCreateResponse], error)
- func (client *VolumeQuotaRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumeQuotaRulesClientDeleteResponse], error)
- func (client *VolumeQuotaRulesClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumeQuotaRulesClientUpdateResponse], error)
- func (client *VolumeQuotaRulesClient) Get(ctx context.Context, resourceGroupName string, accountName string, ...) (VolumeQuotaRulesClientGetResponse, error)
- func (client *VolumeQuotaRulesClient) NewListByVolumePager(resourceGroupName string, accountName string, poolName string, ...) *runtime.Pager[VolumeQuotaRulesClientListByVolumeResponse]
- type VolumeQuotaRulesClientBeginCreateOptions
- type VolumeQuotaRulesClientBeginDeleteOptions
- type VolumeQuotaRulesClientBeginUpdateOptions
- type VolumeQuotaRulesClientCreateResponse
- type VolumeQuotaRulesClientDeleteResponse
- type VolumeQuotaRulesClientGetOptions
- type VolumeQuotaRulesClientGetResponse
- type VolumeQuotaRulesClientListByVolumeOptions
- type VolumeQuotaRulesClientListByVolumeResponse
- type VolumeQuotaRulesClientUpdateResponse
- type VolumeQuotaRulesList
- type VolumeQuotaRulesProperties
- type VolumeRelocationProperties
- type VolumeRevert
- type VolumeSnapshotProperties
- type VolumeStorageToNetworkProximity
- type VolumesClient
- func (client *VolumesClient) BeginAuthorizeExternalReplication(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientAuthorizeExternalReplicationResponse], error)
- func (client *VolumesClient) BeginAuthorizeReplication(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientAuthorizeReplicationResponse], error)
- func (client *VolumesClient) BeginBreakFileLocks(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientBreakFileLocksResponse], 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) BeginFinalizeExternalReplication(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientFinalizeExternalReplicationResponse], error)
- func (client *VolumesClient) BeginFinalizeRelocation(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientFinalizeRelocationResponse], error)
- func (client *VolumesClient) BeginListGetGroupIDListForLdapUser(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientListGetGroupIDListForLdapUserResponse], error)
- func (client *VolumesClient) BeginListQuotaReport(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientListQuotaReportResponse], error)
- func (client *VolumesClient) BeginPeerExternalCluster(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientPeerExternalClusterResponse], error)
- func (client *VolumesClient) BeginPerformReplicationTransfer(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientPerformReplicationTransferResponse], error)
- func (client *VolumesClient) BeginPoolChange(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientPoolChangeResponse], error)
- func (client *VolumesClient) BeginPopulateAvailabilityZone(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientPopulateAvailabilityZoneResponse], error)
- func (client *VolumesClient) BeginReInitializeReplication(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientReInitializeReplicationResponse], error)
- func (client *VolumesClient) BeginReestablishReplication(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientReestablishReplicationResponse], error)
- func (client *VolumesClient) BeginRelocate(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientRelocateResponse], error)
- func (client *VolumesClient) BeginResetCifsPassword(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientResetCifsPasswordResponse], 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) BeginRevertRelocation(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientRevertRelocationResponse], error)
- func (client *VolumesClient) BeginSplitCloneFromParent(ctx context.Context, resourceGroupName string, accountName string, ...) (*runtime.Poller[VolumesClientSplitCloneFromParentResponse], 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) NewListReplicationsPager(resourceGroupName string, accountName string, poolName string, ...) *runtime.Pager[VolumesClientListReplicationsResponse]
- func (client *VolumesClient) ReplicationStatus(ctx context.Context, resourceGroupName string, accountName string, ...) (VolumesClientReplicationStatusResponse, error)
- type VolumesClientAuthorizeExternalReplicationResponse
- type VolumesClientAuthorizeReplicationResponse
- type VolumesClientBeginAuthorizeExternalReplicationOptions
- type VolumesClientBeginAuthorizeReplicationOptions
- type VolumesClientBeginBreakFileLocksOptions
- type VolumesClientBeginBreakReplicationOptions
- type VolumesClientBeginCreateOrUpdateOptions
- type VolumesClientBeginDeleteOptions
- type VolumesClientBeginDeleteReplicationOptions
- type VolumesClientBeginFinalizeExternalReplicationOptions
- type VolumesClientBeginFinalizeRelocationOptions
- type VolumesClientBeginListGetGroupIDListForLdapUserOptions
- type VolumesClientBeginListQuotaReportOptions
- type VolumesClientBeginPeerExternalClusterOptions
- type VolumesClientBeginPerformReplicationTransferOptions
- type VolumesClientBeginPoolChangeOptions
- type VolumesClientBeginPopulateAvailabilityZoneOptions
- type VolumesClientBeginReInitializeReplicationOptions
- type VolumesClientBeginReestablishReplicationOptions
- type VolumesClientBeginRelocateOptions
- type VolumesClientBeginResetCifsPasswordOptions
- type VolumesClientBeginResyncReplicationOptions
- type VolumesClientBeginRevertOptions
- type VolumesClientBeginRevertRelocationOptions
- type VolumesClientBeginSplitCloneFromParentOptions
- type VolumesClientBeginUpdateOptions
- type VolumesClientBreakFileLocksResponse
- type VolumesClientBreakReplicationResponse
- type VolumesClientCreateOrUpdateResponse
- type VolumesClientDeleteReplicationResponse
- type VolumesClientDeleteResponse
- type VolumesClientFinalizeExternalReplicationResponse
- type VolumesClientFinalizeRelocationResponse
- type VolumesClientGetOptions
- type VolumesClientGetResponse
- type VolumesClientListGetGroupIDListForLdapUserResponse
- type VolumesClientListOptions
- type VolumesClientListQuotaReportResponse
- type VolumesClientListReplicationsOptions
- type VolumesClientListReplicationsResponse
- type VolumesClientListResponse
- type VolumesClientPeerExternalClusterResponse
- type VolumesClientPerformReplicationTransferResponse
- type VolumesClientPoolChangeResponse
- type VolumesClientPopulateAvailabilityZoneResponse
- type VolumesClientReInitializeReplicationResponse
- type VolumesClientReestablishReplicationResponse
- type VolumesClientRelocateResponse
- type VolumesClientReplicationStatusOptions
- type VolumesClientReplicationStatusResponse
- type VolumesClientResetCifsPasswordResponse
- type VolumesClientResyncReplicationResponse
- type VolumesClientRevertRelocationResponse
- type VolumesClientRevertResponse
- type VolumesClientSplitCloneFromParentResponse
- type VolumesClientUpdateResponse
- type WeeklySchedule
Examples ¶
- AccountsClient.BeginChangeKeyVault
- AccountsClient.BeginCreateOrUpdate (AccountsCreateOrUpdate)
- AccountsClient.BeginCreateOrUpdate (AccountsCreateOrUpdateWithActiveDirectory)
- AccountsClient.BeginDelete
- AccountsClient.BeginGetChangeKeyVaultInformation
- AccountsClient.BeginRenewCredentials
- AccountsClient.BeginTransitionToCmk
- AccountsClient.BeginUpdate
- AccountsClient.Get
- AccountsClient.NewListBySubscriptionPager
- BackupPoliciesClient.BeginCreate
- BackupPoliciesClient.BeginDelete
- BackupPoliciesClient.BeginUpdate
- BackupPoliciesClient.Get
- BackupPoliciesClient.NewListPager
- BackupVaultsClient.BeginCreateOrUpdate
- BackupVaultsClient.BeginDelete
- BackupVaultsClient.BeginUpdate
- BackupVaultsClient.Get
- BackupVaultsClient.NewListByNetAppAccountPager
- BackupsClient.BeginCreate
- BackupsClient.BeginDelete
- BackupsClient.BeginUpdate
- BackupsClient.Get
- BackupsClient.GetLatestStatus
- BackupsClient.GetVolumeLatestRestoreStatus
- BackupsClient.NewListByVaultPager
- BackupsUnderAccountClient.BeginMigrateBackups
- BackupsUnderBackupVaultClient.BeginRestoreFiles
- BackupsUnderVolumeClient.BeginMigrateBackups
- OperationsClient.NewListPager
- PoolsClient.BeginCreateOrUpdate (PoolsCreateOrUpdate)
- PoolsClient.BeginCreateOrUpdate (PoolsCreateOrUpdateCustomThroughput)
- PoolsClient.BeginDelete
- PoolsClient.BeginUpdate (PoolsUpdate)
- PoolsClient.BeginUpdate (PoolsUpdateCustomThroughput)
- PoolsClient.Get (PoolsGet)
- PoolsClient.Get (PoolsGetCustomThroughput)
- PoolsClient.NewListPager
- ResourceClient.BeginUpdateNetworkSiblingSet
- ResourceClient.CheckFilePathAvailability
- ResourceClient.CheckNameAvailability
- ResourceClient.CheckQuotaAvailability
- ResourceClient.QueryNetworkSiblingSet
- ResourceClient.QueryRegionInfo
- ResourceQuotaLimitsClient.Get
- ResourceQuotaLimitsClient.NewListPager
- ResourceRegionInfosClient.Get
- ResourceRegionInfosClient.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
- VolumeGroupsClient.BeginCreate (VolumeGroupsCreateOracle)
- VolumeGroupsClient.BeginCreate (VolumeGroupsCreateSapHana)
- VolumeGroupsClient.BeginDelete
- VolumeGroupsClient.Get (VolumeGroupsGetOracle)
- VolumeGroupsClient.Get (VolumeGroupsGetSapHana)
- VolumeGroupsClient.NewListByNetAppAccountPager (VolumeGroupsListOracle)
- VolumeGroupsClient.NewListByNetAppAccountPager (VolumeGroupsListSapHana)
- VolumeQuotaRulesClient.BeginCreate
- VolumeQuotaRulesClient.BeginDelete
- VolumeQuotaRulesClient.BeginUpdate
- VolumeQuotaRulesClient.Get
- VolumeQuotaRulesClient.NewListByVolumePager
- VolumesClient.BeginAuthorizeExternalReplication
- VolumesClient.BeginAuthorizeReplication
- VolumesClient.BeginBreakFileLocks
- VolumesClient.BeginBreakReplication
- VolumesClient.BeginCreateOrUpdate
- VolumesClient.BeginDelete
- VolumesClient.BeginDeleteReplication
- VolumesClient.BeginFinalizeExternalReplication
- VolumesClient.BeginFinalizeRelocation
- VolumesClient.BeginListGetGroupIDListForLdapUser
- VolumesClient.BeginListQuotaReport
- VolumesClient.BeginPeerExternalCluster
- VolumesClient.BeginPerformReplicationTransfer
- VolumesClient.BeginPoolChange
- VolumesClient.BeginPopulateAvailabilityZone
- VolumesClient.BeginReInitializeReplication
- VolumesClient.BeginReestablishReplication
- VolumesClient.BeginRelocate
- VolumesClient.BeginResetCifsPassword
- VolumesClient.BeginResyncReplication
- VolumesClient.BeginRevert
- VolumesClient.BeginRevertRelocation
- VolumesClient.BeginSplitCloneFromParent
- VolumesClient.BeginUpdate
- VolumesClient.Get
- VolumesClient.NewListPager
- VolumesClient.NewListReplicationsPager
- VolumesClient.ReplicationStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptGrowCapacityPoolForShortTermCloneSplit ¶
type AcceptGrowCapacityPoolForShortTermCloneSplit string
AcceptGrowCapacityPoolForShortTermCloneSplit - While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted.
const ( // AcceptGrowCapacityPoolForShortTermCloneSplitAccepted - Auto grow capacity pool for short term clone split is accepted. AcceptGrowCapacityPoolForShortTermCloneSplitAccepted AcceptGrowCapacityPoolForShortTermCloneSplit = "Accepted" // AcceptGrowCapacityPoolForShortTermCloneSplitDeclined - Auto grow capacity pool for short term clone split is declined. // Short term clone volume creation will not be allowed, to create short term clone volume accept auto grow capacity pool. AcceptGrowCapacityPoolForShortTermCloneSplitDeclined AcceptGrowCapacityPoolForShortTermCloneSplit = "Declined" )
func PossibleAcceptGrowCapacityPoolForShortTermCloneSplitValues ¶
func PossibleAcceptGrowCapacityPoolForShortTermCloneSplitValues() []AcceptGrowCapacityPoolForShortTermCloneSplit
PossibleAcceptGrowCapacityPoolForShortTermCloneSplitValues returns the possible values for the AcceptGrowCapacityPoolForShortTermCloneSplit const type.
type Account ¶
type Account struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The identity used for the resource.
Identity *ManagedServiceIdentity
// NetApp Account properties
Properties *AccountProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; A unique read-only string that changes whenever the resource is updated.
Etag *string
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
Account - NetApp account resource
func (Account) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Account.
func (*Account) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Account.
type AccountEncryption ¶
type AccountEncryption struct {
// Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'.
Identity *EncryptionIdentity
// The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault
KeySource *KeySource
// Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'.
KeyVaultProperties *KeyVaultProperties
}
AccountEncryption - Encryption settings
func (AccountEncryption) MarshalJSON ¶
func (a AccountEncryption) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AccountEncryption.
func (*AccountEncryption) UnmarshalJSON ¶
func (a *AccountEncryption) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AccountEncryption.
type AccountList ¶
type AccountList struct {
// URL to get the next set of results.
NextLink *string
// Multiple NetApp accounts
Value []*Account
}
AccountList - List of NetApp account resources
func (AccountList) MarshalJSON ¶
func (a AccountList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AccountList.
func (*AccountList) UnmarshalJSON ¶
func (a *AccountList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AccountList.
type AccountPatch ¶
type AccountPatch struct {
// The identity used for the resource.
Identity *ManagedServiceIdentity
// Resource location
Location *string
// NetApp Account properties
Properties *AccountProperties
// Resource tags
Tags map[string]*string
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource name
Name *string
// READ-ONLY; Resource type
Type *string
}
AccountPatch - NetApp account patch resource
func (AccountPatch) MarshalJSON ¶
func (a AccountPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AccountPatch.
func (*AccountPatch) UnmarshalJSON ¶
func (a *AccountPatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AccountPatch.
type AccountProperties ¶
type AccountProperties struct {
// Active Directories
ActiveDirectories []*ActiveDirectory
// Encryption settings
Encryption *AccountEncryption
// Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and
// only affect non ldap NFSv4 volumes.
NfsV4IDDomain *string
// READ-ONLY; Shows the status of disableShowmount for all volumes under the subscription, null equals false
DisableShowmount *bool
// READ-ONLY; This will have true value only if account is Multiple AD enabled.
IsMultiAdEnabled *bool
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
}
AccountProperties - NetApp account properties
func (AccountProperties) MarshalJSON ¶
func (a AccountProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AccountProperties.
func (*AccountProperties) UnmarshalJSON ¶
func (a *AccountProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller 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 - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*AccountsClient) BeginChangeKeyVault ¶
func (client *AccountsClient) BeginChangeKeyVault(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginChangeKeyVaultOptions) (*runtime.Poller[AccountsClientChangeKeyVaultResponse], error)
BeginChangeKeyVault - Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - AccountsClientBeginChangeKeyVaultOptions contains the optional parameters for the AccountsClient.BeginChangeKeyVault method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_ChangeKeyVault.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAccountsClient().BeginChangeKeyVault(ctx, "myRG", "account1", &armnetapp.AccountsClientBeginChangeKeyVaultOptions{Body: &armnetapp.ChangeKeyVault{
KeyName: to.Ptr("rsakey"),
KeyVaultPrivateEndpoints: []*armnetapp.KeyVaultPrivateEndpoint{
{
PrivateEndpointID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"),
VirtualNetworkID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1"),
}},
KeyVaultResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.KeyVault/managedHSMs/my-hsm"),
KeyVaultURI: to.Ptr("https://my-key-vault.managedhsm.azure.net"),
},
})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- body - NetApp Account object supplied in the body of the operation.
- options - AccountsClientBeginCreateOrUpdateOptions contains the optional parameters for the AccountsClient.BeginCreateOrUpdate method.
Example (AccountsCreateOrUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAccountsClient().BeginCreateOrUpdate(ctx, "myRG", "account1", armnetapp.Account{
Location: to.Ptr("eastus"),
Properties: &armnetapp.AccountProperties{},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Account = armnetapp.Account{
// Name: to.Ptr("account1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.AccountProperties{
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }
Example (AccountsCreateOrUpdateWithActiveDirectory) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdateAD.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAccountsClient().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"),
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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Account = armnetapp.Account{
// Name: to.Ptr("account1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.AccountProperties{
// ActiveDirectories: []*armnetapp.ActiveDirectory{
// {
// ActiveDirectoryID: to.Ptr("503d38f9-f17c-f92d-ef26-b0d46374534b"),
// AesEncryption: to.Ptr(true),
// DNS: to.Ptr("10.10.10.3"),
// Domain: to.Ptr("10.10.10.3"),
// LdapOverTLS: to.Ptr(false),
// LdapSigning: to.Ptr(false),
// OrganizationalUnit: to.Ptr("OU=Engineering"),
// Site: to.Ptr("SiteName"),
// SmbServerName: to.Ptr("SMBServer"),
// Username: to.Ptr("ad_user_name"),
// }},
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - AccountsClientBeginDeleteOptions contains the optional parameters for the AccountsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAccountsClient().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)
}
func (*AccountsClient) BeginGetChangeKeyVaultInformation ¶
func (client *AccountsClient) BeginGetChangeKeyVaultInformation(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginGetChangeKeyVaultInformationOptions) (*runtime.Poller[AccountsClientGetChangeKeyVaultInformationResponse], error)
BeginGetChangeKeyVaultInformation - Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - AccountsClientBeginGetChangeKeyVaultInformationOptions contains the optional parameters for the AccountsClient.BeginGetChangeKeyVaultInformation method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_GetChangeKeyVaultInformation.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAccountsClient().BeginGetChangeKeyVaultInformation(ctx, "myRG", "account1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
func (*AccountsClient) BeginRenewCredentials ¶
func (client *AccountsClient) BeginRenewCredentials(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginRenewCredentialsOptions) (*runtime.Poller[AccountsClientRenewCredentialsResponse], error)
BeginRenewCredentials - Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - AccountsClientBeginRenewCredentialsOptions contains the optional parameters for the AccountsClient.BeginRenewCredentials method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_RenewCredentials.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAccountsClient().BeginRenewCredentials(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)
}
func (*AccountsClient) BeginTransitionToCmk ¶
func (client *AccountsClient) BeginTransitionToCmk(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginTransitionToCmkOptions) (*runtime.Poller[AccountsClientTransitionToCmkResponse], error)
BeginTransitionToCmk - Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - AccountsClientBeginTransitionToCmkOptions contains the optional parameters for the AccountsClient.BeginTransitionToCmk method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_TransitionEncryptionKey.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAccountsClient().BeginTransitionToCmk(ctx, "myRG", "account1", &armnetapp.AccountsClientBeginTransitionToCmkOptions{Body: &armnetapp.EncryptionTransitionRequest{
PrivateEndpointID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1"),
VirtualNetworkID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1"),
},
})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- body - NetApp Account object supplied in the body of the operation.
- options - AccountsClientBeginUpdateOptions contains the optional parameters for the AccountsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAccountsClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Account = armnetapp.Account{
// Name: to.Ptr("account1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.AccountProperties{
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - AccountsClientGetOptions contains the optional parameters for the AccountsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewAccountsClient().Get(ctx, "myRG", "account1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Account = armnetapp.Account{
// Name: to.Ptr("account1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.AccountProperties{
// ActiveDirectories: []*armnetapp.ActiveDirectory{
// {
// ActiveDirectoryID: to.Ptr("02da3711-6c58-2d64-098a-e3af7afaf936"),
// AesEncryption: to.Ptr(true),
// DNS: to.Ptr("10.10.10.3"),
// Domain: to.Ptr("10.10.10.3"),
// LdapSigning: to.Ptr(true),
// OrganizationalUnit: to.Ptr("OU=Engineering"),
// Site: to.Ptr("SiteName"),
// SmbServerName: to.Ptr("SMBServer"),
// Status: to.Ptr(armnetapp.ActiveDirectoryStatusInUse),
// StatusDetails: to.Ptr("Status Details"),
// Username: to.Ptr("ad_user_name"),
// }},
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }
func (*AccountsClient) NewListBySubscriptionPager ¶
func (client *AccountsClient) NewListBySubscriptionPager(options *AccountsClientListBySubscriptionOptions) *runtime.Pager[AccountsClientListBySubscriptionResponse]
NewListBySubscriptionPager - List and describe all NetApp accounts in the subscription.
Generated from API version 2024-07-01-preview
- options - AccountsClientListBySubscriptionOptions contains the optional parameters for the AccountsClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewAccountsClient().NewListBySubscriptionPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.AccountList = armnetapp.AccountList{
// Value: []*armnetapp.Account{
// {
// Name: to.Ptr("account1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.AccountProperties{
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }},
// }
}
func (*AccountsClient) NewListPager ¶
func (client *AccountsClient) NewListPager(resourceGroupName string, options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse]
NewListPager - List and describe all NetApp accounts in the resource group.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - AccountsClientListOptions contains the optional parameters for the AccountsClient.NewListPager method.
type AccountsClientBeginChangeKeyVaultOptions ¶
type AccountsClientBeginChangeKeyVaultOptions struct {
// The required parameters to perform encryption migration.
Body *ChangeKeyVault
// Resumes the LRO from the provided token.
ResumeToken string
}
AccountsClientBeginChangeKeyVaultOptions contains the optional parameters for the AccountsClient.BeginChangeKeyVault method.
type AccountsClientBeginCreateOrUpdateOptions ¶
type AccountsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
AccountsClientBeginCreateOrUpdateOptions contains the optional parameters for the AccountsClient.BeginCreateOrUpdate method.
type AccountsClientBeginDeleteOptions ¶
type AccountsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
AccountsClientBeginDeleteOptions contains the optional parameters for the AccountsClient.BeginDelete method.
type AccountsClientBeginGetChangeKeyVaultInformationOptions ¶
type AccountsClientBeginGetChangeKeyVaultInformationOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
AccountsClientBeginGetChangeKeyVaultInformationOptions contains the optional parameters for the AccountsClient.BeginGetChangeKeyVaultInformation method.
type AccountsClientBeginRenewCredentialsOptions ¶
type AccountsClientBeginRenewCredentialsOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
AccountsClientBeginRenewCredentialsOptions contains the optional parameters for the AccountsClient.BeginRenewCredentials method.
type AccountsClientBeginTransitionToCmkOptions ¶
type AccountsClientBeginTransitionToCmkOptions struct {
// The required parameters to perform encryption transition.
Body *EncryptionTransitionRequest
// Resumes the LRO from the provided token.
ResumeToken string
}
AccountsClientBeginTransitionToCmkOptions contains the optional parameters for the AccountsClient.BeginTransitionToCmk method.
type AccountsClientBeginUpdateOptions ¶
type AccountsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
AccountsClientBeginUpdateOptions contains the optional parameters for the AccountsClient.BeginUpdate method.
type AccountsClientChangeKeyVaultResponse ¶
type AccountsClientChangeKeyVaultResponse struct {
}
AccountsClientChangeKeyVaultResponse contains the response from method AccountsClient.BeginChangeKeyVault.
type AccountsClientCreateOrUpdateResponse ¶
type AccountsClientCreateOrUpdateResponse struct {
// NetApp account resource
Account
}
AccountsClientCreateOrUpdateResponse contains the response from method AccountsClient.BeginCreateOrUpdate.
type AccountsClientDeleteResponse ¶
type AccountsClientDeleteResponse struct {
}
AccountsClientDeleteResponse contains the response from method AccountsClient.BeginDelete.
type AccountsClientGetChangeKeyVaultInformationResponse ¶
type AccountsClientGetChangeKeyVaultInformationResponse struct {
}
AccountsClientGetChangeKeyVaultInformationResponse contains the response from method AccountsClient.BeginGetChangeKeyVaultInformation.
type AccountsClientGetOptions ¶
type AccountsClientGetOptions struct {
}
AccountsClientGetOptions contains the optional parameters for the AccountsClient.Get method.
type AccountsClientGetResponse ¶
type AccountsClientGetResponse struct {
// NetApp account resource
Account
}
AccountsClientGetResponse contains the response from method AccountsClient.Get.
type AccountsClientListBySubscriptionOptions ¶
type AccountsClientListBySubscriptionOptions struct {
}
AccountsClientListBySubscriptionOptions contains the optional parameters for the AccountsClient.NewListBySubscriptionPager method.
type AccountsClientListBySubscriptionResponse ¶
type AccountsClientListBySubscriptionResponse struct {
// List of NetApp account resources
AccountList
}
AccountsClientListBySubscriptionResponse contains the response from method AccountsClient.NewListBySubscriptionPager.
type AccountsClientListOptions ¶
type AccountsClientListOptions struct {
}
AccountsClientListOptions contains the optional parameters for the AccountsClient.NewListPager method.
type AccountsClientListResponse ¶
type AccountsClientListResponse struct {
// List of NetApp account resources
AccountList
}
AccountsClientListResponse contains the response from method AccountsClient.NewListPager.
type AccountsClientRenewCredentialsResponse ¶
type AccountsClientRenewCredentialsResponse struct {
}
AccountsClientRenewCredentialsResponse contains the response from method AccountsClient.BeginRenewCredentials.
type AccountsClientTransitionToCmkResponse ¶
type AccountsClientTransitionToCmkResponse struct {
}
AccountsClientTransitionToCmkResponse contains the response from method AccountsClient.BeginTransitionToCmk.
type AccountsClientUpdateResponse ¶
type AccountsClientUpdateResponse struct {
// NetApp account resource
Account
}
AccountsClientUpdateResponse contains the response from method AccountsClient.BeginUpdate.
type ActiveDirectory ¶
type ActiveDirectory struct {
// Id of the Active Directory
ActiveDirectoryID *string
// Name of the active directory machine. This optional parameter is used only while creating kerberos volume
AdName *string
// Users to be added to the Built-in Administrators active directory group. A list of unique usernames without domain specifier
Administrators []*string
// If enabled, AES encryption will be enabled for SMB communication.
AesEncryption *bool
// If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes.
AllowLocalNfsUsersWithLdap *bool
// Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without domain specifier
BackupOperators []*string
// Comma separated list of DNS server IP addresses (IPv4 only) for the Active Directory domain
DNS *string
// Name of the Active Directory domain
Domain *string
// If enabled, Traffic between the SMB server to Domain Controller (DC) will be encrypted.
EncryptDCConnections *bool
// kdc server IP address for the active directory machine. This optional parameter is used only while creating kerberos volume.
KdcIP *string
// Specifies whether or not the LDAP traffic needs to be secured via TLS.
LdapOverTLS *bool
// LDAP Search scope options
LdapSearchScope *LdapSearchScopeOpt
// Specifies whether or not the LDAP traffic needs to be signed.
LdapSigning *bool
// The Organizational Unit (OU) within the Windows Active Directory
OrganizationalUnit *string
// Plain text password of Active Directory domain administrator, value is masked in the response
Password *string
// Comma separated list of IPv4 addresses of preferred servers for LDAP client. At most two comma separated IPv4 addresses
// can be passed.
PreferredServersForLdapClient *string
// 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
// 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
// The Active Directory site the service will limit Domain Controller discovery to
Site *string
// 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
// A domain user account with permission to create machine accounts
Username *string
// READ-ONLY; Status of the Active Directory
Status *ActiveDirectoryStatus
// READ-ONLY; Any details in regards to the Status of the Active Directory
StatusDetails *string
}
ActiveDirectory - Active Directory
func (ActiveDirectory) MarshalJSON ¶
func (a ActiveDirectory) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ActiveDirectory.
func (*ActiveDirectory) UnmarshalJSON ¶
func (a *ActiveDirectory) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller 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 ( ApplicationTypeORACLE ApplicationType = "ORACLE" 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
}
AuthorizeRequest - Authorize request
func (AuthorizeRequest) MarshalJSON ¶
func (a AuthorizeRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AuthorizeRequest.
func (*AuthorizeRequest) UnmarshalJSON ¶
func (a *AuthorizeRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AuthorizeRequest.
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; Backup Properties
Properties *BackupProperties
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
Backup under a Backup Vault
func (Backup) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Backup.
func (*Backup) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Backup.
type BackupPatch ¶
type BackupPatch struct {
// Backup Patch Properties
Properties *BackupPatchProperties
}
BackupPatch - Backup patch
func (BackupPatch) MarshalJSON ¶
func (b BackupPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupPatch.
func (*BackupPatch) UnmarshalJSON ¶
func (b *BackupPatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupPatch.
type BackupPatchProperties ¶
type BackupPatchProperties struct {
// Label for backup
Label *string
}
BackupPatchProperties - Backup patch properties
func (BackupPatchProperties) MarshalJSON ¶
func (b BackupPatchProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupPatchProperties.
func (*BackupPatchProperties) UnmarshalJSON ¶
func (b *BackupPatchProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupPatchProperties.
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 - The ID of the target subscription. The value must be an UUID.
- 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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupPolicyName - Backup policy Name which uniquely identify backup policy.
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Create.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupPoliciesClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.BackupPolicy = armnetapp.BackupPolicy{
// Name: to.Ptr("account1/backupPolicyName"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupPolicies"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backupPolicyName"),
// Location: to.Ptr("westus"),
// Properties: &armnetapp.BackupPolicyProperties{
// DailyBackupsToKeep: to.Ptr[int32](10),
// Enabled: to.Ptr(true),
// MonthlyBackupsToKeep: to.Ptr[int32](10),
// ProvisioningState: to.Ptr("Succeeded"),
// WeeklyBackupsToKeep: to.Ptr[int32](10),
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupPolicyName - Backup policy Name which uniquely identify backup policy.
- options - BackupPoliciesClientBeginDeleteOptions contains the optional parameters for the BackupPoliciesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupPoliciesClient().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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupPolicyName - Backup policy Name which uniquely identify backup policy.
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupPoliciesClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.BackupPolicy = armnetapp.BackupPolicy{
// Name: to.Ptr("account1/backupPolicyName"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupPolicies"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolocies/backupPolicyName"),
// Location: to.Ptr("westus"),
// Properties: &armnetapp.BackupPolicyProperties{
// DailyBackupsToKeep: to.Ptr[int32](5),
// Enabled: to.Ptr(false),
// MonthlyBackupsToKeep: to.Ptr[int32](10),
// ProvisioningState: to.Ptr("Succeeded"),
// VolumeBackups: []*armnetapp.VolumeBackups{
// {
// BackupsCount: to.Ptr[int32](5),
// PolicyEnabled: to.Ptr(true),
// VolumeName: to.Ptr("volume 1"),
// }},
// VolumesAssigned: to.Ptr[int32](1),
// WeeklyBackupsToKeep: to.Ptr[int32](10),
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupPolicyName - Backup policy Name which uniquely identify backup policy.
- options - BackupPoliciesClientGetOptions contains the optional parameters for the BackupPoliciesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewBackupPoliciesClient().Get(ctx, "myRG", "account1", "backupPolicyName", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.BackupPolicy = armnetapp.BackupPolicy{
// Name: to.Ptr("account1/backupPolicyName"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupPolicies"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolocies/backupPolicyName"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.BackupPolicyProperties{
// DailyBackupsToKeep: to.Ptr[int32](10),
// Enabled: to.Ptr(true),
// MonthlyBackupsToKeep: to.Ptr[int32](10),
// VolumeBackups: []*armnetapp.VolumeBackups{
// {
// BackupsCount: to.Ptr[int32](5),
// PolicyEnabled: to.Ptr(true),
// VolumeName: to.Ptr("volume 1"),
// }},
// VolumesAssigned: to.Ptr[int32](0),
// WeeklyBackupsToKeep: to.Ptr[int32](10),
// },
// }
func (*BackupPoliciesClient) NewListPager ¶
func (client *BackupPoliciesClient) NewListPager(resourceGroupName string, accountName string, options *BackupPoliciesClientListOptions) *runtime.Pager[BackupPoliciesClientListResponse]
NewListPager - List backup policies for Netapp Account
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - BackupPoliciesClientListOptions contains the optional parameters for the BackupPoliciesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewBackupPoliciesClient().NewListPager("myRG", "account1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.BackupPoliciesList = armnetapp.BackupPoliciesList{
// Value: []*armnetapp.BackupPolicy{
// {
// Name: to.Ptr("account1/backupPolicy1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupPolicies"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolocies/backupPolicy1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.BackupPolicyProperties{
// DailyBackupsToKeep: to.Ptr[int32](10),
// Enabled: to.Ptr(true),
// MonthlyBackupsToKeep: to.Ptr[int32](10),
// VolumesAssigned: to.Ptr[int32](0),
// WeeklyBackupsToKeep: to.Ptr[int32](10),
// },
// }},
// }
}
type BackupPoliciesClientBeginCreateOptions ¶
type BackupPoliciesClientBeginCreateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupPoliciesClientBeginCreateOptions contains the optional parameters for the BackupPoliciesClient.BeginCreate method.
type BackupPoliciesClientBeginDeleteOptions ¶
type BackupPoliciesClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupPoliciesClientBeginDeleteOptions contains the optional parameters for the BackupPoliciesClient.BeginDelete method.
type BackupPoliciesClientBeginUpdateOptions ¶
type BackupPoliciesClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupPoliciesClientBeginUpdateOptions contains the optional parameters for the BackupPoliciesClient.BeginUpdate method.
type BackupPoliciesClientCreateResponse ¶
type BackupPoliciesClientCreateResponse struct {
// Backup policy information
BackupPolicy
}
BackupPoliciesClientCreateResponse contains the response from method BackupPoliciesClient.BeginCreate.
type BackupPoliciesClientDeleteResponse ¶
type BackupPoliciesClientDeleteResponse struct {
}
BackupPoliciesClientDeleteResponse contains the response from method BackupPoliciesClient.BeginDelete.
type BackupPoliciesClientGetOptions ¶
type BackupPoliciesClientGetOptions struct {
}
BackupPoliciesClientGetOptions contains the optional parameters for the BackupPoliciesClient.Get method.
type BackupPoliciesClientGetResponse ¶
type BackupPoliciesClientGetResponse struct {
// Backup policy information
BackupPolicy
}
BackupPoliciesClientGetResponse contains the response from method BackupPoliciesClient.Get.
type BackupPoliciesClientListOptions ¶
type BackupPoliciesClientListOptions struct {
}
BackupPoliciesClientListOptions contains the optional parameters for the BackupPoliciesClient.NewListPager method.
type BackupPoliciesClientListResponse ¶
type BackupPoliciesClientListResponse struct {
// List of Backup Policies
BackupPoliciesList
}
BackupPoliciesClientListResponse contains the response from method BackupPoliciesClient.NewListPager.
type BackupPoliciesClientUpdateResponse ¶
type BackupPoliciesClientUpdateResponse struct {
// Backup policy information
BackupPolicy
}
BackupPoliciesClientUpdateResponse contains the response from method BackupPoliciesClient.BeginUpdate.
type BackupPoliciesList ¶
type BackupPoliciesList struct {
// A list of backup policies
Value []*BackupPolicy
}
BackupPoliciesList - List of Backup Policies
func (BackupPoliciesList) MarshalJSON ¶
func (b BackupPoliciesList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupPoliciesList.
func (*BackupPoliciesList) UnmarshalJSON ¶
func (b *BackupPoliciesList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupPoliciesList.
type BackupPolicy ¶
type BackupPolicy struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// REQUIRED; Backup policy Properties
Properties *BackupPolicyProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; A unique read-only string that changes whenever the resource is updated.
Etag *string
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
BackupPolicy - Backup policy information
func (BackupPolicy) MarshalJSON ¶
func (b BackupPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupPolicy.
func (*BackupPolicy) UnmarshalJSON ¶
func (b *BackupPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupPolicy.
type BackupPolicyPatch ¶
type BackupPolicyPatch struct {
// Resource location
Location *string
// Backup policy Properties
Properties *BackupPolicyProperties
// Resource tags
Tags map[string]*string
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource name
Name *string
// READ-ONLY; Resource type
Type *string
}
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.
func (*BackupPolicyPatch) UnmarshalJSON ¶
func (b *BackupPolicyPatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupPolicyPatch.
type BackupPolicyProperties ¶
type BackupPolicyProperties struct {
// Daily backups count to keep
DailyBackupsToKeep *int32
// The property to decide policy is enabled or not
Enabled *bool
// Monthly backups count to keep
MonthlyBackupsToKeep *int32
// Weekly backups count to keep
WeeklyBackupsToKeep *int32
// READ-ONLY; Backup Policy Resource ID
BackupPolicyID *string
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
// READ-ONLY; A list of volumes assigned to this policy
VolumeBackups []*VolumeBackups
// READ-ONLY; Volumes using current backup policy
VolumesAssigned *int32
}
BackupPolicyProperties - Backup policy properties
func (BackupPolicyProperties) MarshalJSON ¶
func (b BackupPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupPolicyProperties.
func (*BackupPolicyProperties) UnmarshalJSON ¶
func (b *BackupPolicyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupPolicyProperties.
type BackupProperties ¶
type BackupProperties struct {
// REQUIRED; ResourceId used to identify the Volume
VolumeResourceID *string
// Label for backup
Label *string
// The name of the snapshot
SnapshotName *string
// Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups
UseExistingSnapshot *bool
// READ-ONLY; UUID v4 used to identify the Backup
BackupID *string
// READ-ONLY; ResourceId used to identify the backup policy
BackupPolicyResourceID *string
// READ-ONLY; Type of backup Manual or Scheduled
BackupType *BackupType
// READ-ONLY; The creation date of the backup
CreationDate *time.Time
// READ-ONLY; Failure reason
FailureReason *string
// READ-ONLY; Specifies if the backup is for a large volume.
IsLargeVolume *bool
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
// READ-ONLY; Size of backup in bytes
Size *int64
}
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 BackupRestoreFiles ¶
type BackupRestoreFiles struct {
// REQUIRED; Resource Id of the destination volume on which the files need to be restored
DestinationVolumeID *string
// REQUIRED; List of files to be restored
FileList []*string
// Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted
// from request then restore is done at the root folder of the destination volume by
// default
RestoreFilePath *string
}
BackupRestoreFiles - Restore payload for Single File Backup Restore
func (BackupRestoreFiles) MarshalJSON ¶
func (b BackupRestoreFiles) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupRestoreFiles.
func (*BackupRestoreFiles) UnmarshalJSON ¶
func (b *BackupRestoreFiles) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupRestoreFiles.
type BackupStatus ¶
type BackupStatus struct {
// READ-ONLY; Displays error message if the backup is in an error state
ErrorMessage *string
// READ-ONLY; Backup health status
Healthy *bool
// READ-ONLY; Displays the last transfer size
LastTransferSize *int64
// READ-ONLY; Displays the last transfer type
LastTransferType *string
// READ-ONLY; The status of the backup
MirrorState *MirrorState
// READ-ONLY; Status of the backup mirror relationship
RelationshipStatus *RelationshipStatus
// READ-ONLY; Displays the total bytes transferred
TotalTransferBytes *int64
// READ-ONLY; Displays the total number of bytes transferred for the ongoing operation
TransferProgressBytes *int64
// READ-ONLY; Reason for the unhealthy backup relationship
UnhealthyReason *string
}
BackupStatus - Backup status
func (BackupStatus) MarshalJSON ¶
func (b BackupStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupStatus.
func (*BackupStatus) UnmarshalJSON ¶
func (b *BackupStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupStatus.
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 BackupVault ¶
type BackupVault struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Backup Vault Properties
Properties *BackupVaultProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
BackupVault - Backup Vault information
func (BackupVault) MarshalJSON ¶
func (b BackupVault) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupVault.
func (*BackupVault) UnmarshalJSON ¶
func (b *BackupVault) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupVault.
type BackupVaultPatch ¶
BackupVaultPatch - Backup Vault information
func (BackupVaultPatch) MarshalJSON ¶
func (b BackupVaultPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupVaultPatch.
func (*BackupVaultPatch) UnmarshalJSON ¶
func (b *BackupVaultPatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupVaultPatch.
type BackupVaultProperties ¶
type BackupVaultProperties struct {
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
}
BackupVaultProperties - Backup Vault properties
func (BackupVaultProperties) MarshalJSON ¶
func (b BackupVaultProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupVaultProperties.
func (*BackupVaultProperties) UnmarshalJSON ¶
func (b *BackupVaultProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupVaultProperties.
type BackupVaultsClient ¶
type BackupVaultsClient struct {
// contains filtered or unexported fields
}
BackupVaultsClient contains the methods for the BackupVaults group. Don't use this type directly, use NewBackupVaultsClient() instead.
func NewBackupVaultsClient ¶
func NewBackupVaultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupVaultsClient, error)
NewBackupVaultsClient creates a new instance of BackupVaultsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BackupVaultsClient) BeginCreateOrUpdate ¶
func (client *BackupVaultsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, body BackupVault, options *BackupVaultsClientBeginCreateOrUpdateOptions) (*runtime.Poller[BackupVaultsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the specified Backup Vault in the NetApp account If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupVaultName - The name of the Backup Vault
- body - BackupVault object supplied in the body of the operation.
- options - BackupVaultsClientBeginCreateOrUpdateOptions contains the optional parameters for the BackupVaultsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Create.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupVaultsClient().BeginCreateOrUpdate(ctx, "myRG", "account1", "backupVault1", armnetapp.BackupVault{
Location: to.Ptr("eastus"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.BackupVault = armnetapp.BackupVault{
// Name: to.Ptr("account1/backupVault1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupVaults"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.BackupVaultProperties{
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }
func (*BackupVaultsClient) BeginDelete ¶
func (client *BackupVaultsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, options *BackupVaultsClientBeginDeleteOptions) (*runtime.Poller[BackupVaultsClientDeleteResponse], error)
BeginDelete - Delete the specified Backup Vault If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupVaultName - The name of the Backup Vault
- options - BackupVaultsClientBeginDeleteOptions contains the optional parameters for the BackupVaultsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupVaultsClient().BeginDelete(ctx, "resourceGroup", "account1", "backupVault1", 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)
}
func (*BackupVaultsClient) BeginUpdate ¶
func (client *BackupVaultsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, body BackupVaultPatch, options *BackupVaultsClientBeginUpdateOptions) (*runtime.Poller[BackupVaultsClientUpdateResponse], error)
BeginUpdate - Patch the specified NetApp Backup Vault If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupVaultName - The name of the Backup Vault
- body - Backup Vault object supplied in the body of the operation.
- options - BackupVaultsClientBeginUpdateOptions contains the optional parameters for the BackupVaultsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupVaultsClient().BeginUpdate(ctx, "myRG", "account1", "backupVault1", armnetapp.BackupVaultPatch{
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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.BackupVault = armnetapp.BackupVault{
// Name: to.Ptr("account1/backupVault1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupVaults"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
// Location: to.Ptr("eastus"),
// Tags: map[string]*string{
// "Tag1": to.Ptr("Value1"),
// },
// Properties: &armnetapp.BackupVaultProperties{
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }
func (*BackupVaultsClient) Get ¶
func (client *BackupVaultsClient) Get(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, options *BackupVaultsClientGetOptions) (BackupVaultsClientGetResponse, error)
Get - Get the Backup Vault If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupVaultName - The name of the Backup Vault
- options - BackupVaultsClientGetOptions contains the optional parameters for the BackupVaultsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewBackupVaultsClient().Get(ctx, "myRG", "account1", "backupVault1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.BackupVault = armnetapp.BackupVault{
// Name: to.Ptr("account1/backupVault1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupVaults"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
// Location: to.Ptr("eastus"),
// Tags: map[string]*string{
// "Tag1": to.Ptr("Value1"),
// },
// Properties: &armnetapp.BackupVaultProperties{
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }
func (*BackupVaultsClient) NewListByNetAppAccountPager ¶
func (client *BackupVaultsClient) NewListByNetAppAccountPager(resourceGroupName string, accountName string, options *BackupVaultsClientListByNetAppAccountOptions) *runtime.Pager[BackupVaultsClientListByNetAppAccountResponse]
NewListByNetAppAccountPager - List and describe all Backup Vaults in the NetApp account.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - BackupVaultsClientListByNetAppAccountOptions contains the optional parameters for the BackupVaultsClient.NewListByNetAppAccountPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewBackupVaultsClient().NewListByNetAppAccountPager("myRG", "account1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.BackupVaultsList = armnetapp.BackupVaultsList{
// Value: []*armnetapp.BackupVault{
// {
// Name: to.Ptr("account1/backupVault1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupVaults"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
// Location: to.Ptr("eastus"),
// Tags: map[string]*string{
// "Tag1": to.Ptr("Value1"),
// },
// Properties: &armnetapp.BackupVaultProperties{
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }},
// }
}
type BackupVaultsClientBeginCreateOrUpdateOptions ¶
type BackupVaultsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupVaultsClientBeginCreateOrUpdateOptions contains the optional parameters for the BackupVaultsClient.BeginCreateOrUpdate method.
type BackupVaultsClientBeginDeleteOptions ¶
type BackupVaultsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupVaultsClientBeginDeleteOptions contains the optional parameters for the BackupVaultsClient.BeginDelete method.
type BackupVaultsClientBeginUpdateOptions ¶
type BackupVaultsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupVaultsClientBeginUpdateOptions contains the optional parameters for the BackupVaultsClient.BeginUpdate method.
type BackupVaultsClientCreateOrUpdateResponse ¶
type BackupVaultsClientCreateOrUpdateResponse struct {
// Backup Vault information
BackupVault
}
BackupVaultsClientCreateOrUpdateResponse contains the response from method BackupVaultsClient.BeginCreateOrUpdate.
type BackupVaultsClientDeleteResponse ¶
type BackupVaultsClientDeleteResponse struct {
}
BackupVaultsClientDeleteResponse contains the response from method BackupVaultsClient.BeginDelete.
type BackupVaultsClientGetOptions ¶
type BackupVaultsClientGetOptions struct {
}
BackupVaultsClientGetOptions contains the optional parameters for the BackupVaultsClient.Get method.
type BackupVaultsClientGetResponse ¶
type BackupVaultsClientGetResponse struct {
// Backup Vault information
BackupVault
}
BackupVaultsClientGetResponse contains the response from method BackupVaultsClient.Get.
type BackupVaultsClientListByNetAppAccountOptions ¶
type BackupVaultsClientListByNetAppAccountOptions struct {
}
BackupVaultsClientListByNetAppAccountOptions contains the optional parameters for the BackupVaultsClient.NewListByNetAppAccountPager method.
type BackupVaultsClientListByNetAppAccountResponse ¶
type BackupVaultsClientListByNetAppAccountResponse struct {
// List of Backup Vaults
BackupVaultsList
}
BackupVaultsClientListByNetAppAccountResponse contains the response from method BackupVaultsClient.NewListByNetAppAccountPager.
type BackupVaultsClientUpdateResponse ¶
type BackupVaultsClientUpdateResponse struct {
// Backup Vault information
BackupVault
}
BackupVaultsClientUpdateResponse contains the response from method BackupVaultsClient.BeginUpdate.
type BackupVaultsList ¶
type BackupVaultsList struct {
// URL to get the next set of results.
NextLink *string
// A list of Backup Vaults
Value []*BackupVault
}
BackupVaultsList - List of Backup Vaults
func (BackupVaultsList) MarshalJSON ¶
func (b BackupVaultsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupVaultsList.
func (*BackupVaultsList) UnmarshalJSON ¶
func (b *BackupVaultsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupVaultsList.
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 - The ID of the target subscription. The value must be an UUID.
- 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, backupVaultName string, backupName string, body Backup, options *BackupsClientBeginCreateOptions) (*runtime.Poller[BackupsClientCreateResponse], error)
BeginCreate - Create a backup under the Backup Vault If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupVaultName - The name of the Backup Vault
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Create.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupsClient().BeginCreate(ctx, "myRG", "account1", "backupVault1", "backup1", armnetapp.Backup{
Properties: &armnetapp.BackupProperties{
Label: to.Ptr("myLabel"),
VolumeResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Backup = armnetapp.Backup{
// Name: to.Ptr("account1/backupVault1/backup1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupVaults/backups"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1/backups/backup1"),
// Properties: &armnetapp.BackupProperties{
// BackupType: to.Ptr(armnetapp.BackupTypeManual),
// CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// Label: to.Ptr("myLabel"),
// ProvisioningState: to.Ptr("Succeeded"),
// Size: to.Ptr[int64](10011),
// SnapshotName: to.Ptr("backup1"),
// VolumeResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1"),
// },
// }
func (*BackupsClient) BeginDelete ¶
func (client *BackupsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, backupName string, options *BackupsClientBeginDeleteOptions) (*runtime.Poller[BackupsClientDeleteResponse], error)
BeginDelete - Delete a Backup under the Backup Vault If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupVaultName - The name of the Backup Vault
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupsClient().BeginDelete(ctx, "resourceGroup", "account1", "backupVault1", "backup1", 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)
}
func (*BackupsClient) BeginUpdate ¶
func (client *BackupsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, backupName string, body BackupPatch, options *BackupsClientBeginUpdateOptions) (*runtime.Poller[BackupsClientUpdateResponse], error)
BeginUpdate - Patch a Backup under the Backup Vault If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupVaultName - The name of the Backup Vault
- backupName - The name of the backup
- body - Backup object supplied in the body of the operation.
- options - BackupsClientBeginUpdateOptions contains the optional parameters for the BackupsClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupsClient().BeginUpdate(ctx, "myRG", "account1", "backupVault1", "backup1", armnetapp.BackupPatch{}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Backup = armnetapp.Backup{
// Name: to.Ptr("account1/backupVault1/backup1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupVaults/backups"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1/backups/backup1"),
// Properties: &armnetapp.BackupProperties{
// BackupType: to.Ptr(armnetapp.BackupTypeManual),
// CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// Label: to.Ptr("myLabel"),
// ProvisioningState: to.Ptr("Succeeded"),
// Size: to.Ptr[int64](10011),
// SnapshotName: to.Ptr("backup1"),
// VolumeResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1"),
// },
// }
func (*BackupsClient) Get ¶
func (client *BackupsClient) Get(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, backupName string, options *BackupsClientGetOptions) (BackupsClientGetResponse, error)
Get - Get the specified Backup under Backup Vault. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupVaultName - The name of the Backup Vault
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewBackupsClient().Get(ctx, "myRG", "account1", "backupVault1", "backup1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Backup = armnetapp.Backup{
// Name: to.Ptr("account1/backupVault1/backup1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupVaults/backups"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1/backups/backup1"),
// Properties: &armnetapp.BackupProperties{
// BackupPolicyResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/policy1"),
// BackupType: to.Ptr(armnetapp.BackupTypeManual),
// CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// Label: to.Ptr("myLabel"),
// ProvisioningState: to.Ptr("Succeeded"),
// Size: to.Ptr[int64](10011),
// SnapshotName: to.Ptr("backup1"),
// VolumeResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1"),
// },
// }
func (*BackupsClient) GetLatestStatus ¶
func (client *BackupsClient) GetLatestStatus(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *BackupsClientGetLatestStatusOptions) (BackupsClientGetLatestStatusResponse, error)
GetLatestStatus - Get the latest status of the backup for a volume If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - BackupsClientGetLatestStatusOptions contains the optional parameters for the BackupsClient.GetLatestStatus method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestBackupStatus.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewBackupsClient().GetLatestStatus(ctx, "myRG", "account1", "pool1", "volume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.BackupStatus = armnetapp.BackupStatus{
// ErrorMessage: to.Ptr(""),
// Healthy: to.Ptr(true),
// LastTransferSize: to.Ptr[int64](100000),
// LastTransferType: to.Ptr(""),
// MirrorState: to.Ptr(armnetapp.MirrorStateMirrored),
// RelationshipStatus: to.Ptr(armnetapp.RelationshipStatusIdle),
// TotalTransferBytes: to.Ptr[int64](100000),
// UnhealthyReason: to.Ptr(""),
// }
func (*BackupsClient) GetVolumeLatestRestoreStatus ¶
func (client *BackupsClient) GetVolumeLatestRestoreStatus(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *BackupsClientGetVolumeLatestRestoreStatusOptions) (BackupsClientGetVolumeLatestRestoreStatusResponse, error)
GetVolumeLatestRestoreStatus - Get the latest status of the restore for a volume If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - BackupsClientGetVolumeLatestRestoreStatusOptions contains the optional parameters for the BackupsClient.GetVolumeLatestRestoreStatus method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestRestoreStatus.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewBackupsClient().GetVolumeLatestRestoreStatus(ctx, "myRG", "account1", "pool1", "volume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.RestoreStatus = armnetapp.RestoreStatus{
// ErrorMessage: to.Ptr(""),
// Healthy: to.Ptr(true),
// MirrorState: to.Ptr(armnetapp.MirrorStateUninitialized),
// RelationshipStatus: to.Ptr(armnetapp.RelationshipStatusIdle),
// TotalTransferBytes: to.Ptr[int64](100000),
// UnhealthyReason: to.Ptr(""),
// }
func (*BackupsClient) NewListByVaultPager ¶
func (client *BackupsClient) NewListByVaultPager(resourceGroupName string, accountName string, backupVaultName string, options *BackupsClientListByVaultOptions) *runtime.Pager[BackupsClientListByVaultResponse]
NewListByVaultPager - List all backups Under a Backup Vault
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupVaultName - The name of the Backup Vault
- options - BackupsClientListByVaultOptions contains the optional parameters for the BackupsClient.NewListByVaultPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewBackupsClient().NewListByVaultPager("myRG", "account1", "backupVault1", &armnetapp.BackupsClientListByVaultOptions{Filter: nil})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.BackupsList = armnetapp.BackupsList{
// Value: []*armnetapp.Backup{
// {
// Name: to.Ptr("account1/backupVault1/backup1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/backupVaults/backups"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1/backups/backup1"),
// Properties: &armnetapp.BackupProperties{
// BackupPolicyResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/policy1"),
// BackupType: to.Ptr(armnetapp.BackupTypeManual),
// CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// Label: to.Ptr("myLabel"),
// ProvisioningState: to.Ptr("Succeeded"),
// Size: to.Ptr[int64](10011),
// SnapshotName: to.Ptr("backup1"),
// VolumeResourceID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1"),
// },
// }},
// }
}
type BackupsClientBeginCreateOptions ¶
type BackupsClientBeginCreateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupsClientBeginCreateOptions contains the optional parameters for the BackupsClient.BeginCreate method.
type BackupsClientBeginDeleteOptions ¶
type BackupsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupsClientBeginDeleteOptions contains the optional parameters for the BackupsClient.BeginDelete method.
type BackupsClientBeginUpdateOptions ¶
type BackupsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupsClientBeginUpdateOptions contains the optional parameters for the BackupsClient.BeginUpdate method.
type BackupsClientCreateResponse ¶
type BackupsClientCreateResponse struct {
// Backup under a Backup Vault
Backup
}
BackupsClientCreateResponse contains the response from method BackupsClient.BeginCreate.
type BackupsClientDeleteResponse ¶
type BackupsClientDeleteResponse struct {
}
BackupsClientDeleteResponse contains the response from method BackupsClient.BeginDelete.
type BackupsClientGetLatestStatusOptions ¶
type BackupsClientGetLatestStatusOptions struct {
}
BackupsClientGetLatestStatusOptions contains the optional parameters for the BackupsClient.GetLatestStatus method.
type BackupsClientGetLatestStatusResponse ¶
type BackupsClientGetLatestStatusResponse struct {
// Backup status
BackupStatus
}
BackupsClientGetLatestStatusResponse contains the response from method BackupsClient.GetLatestStatus.
type BackupsClientGetOptions ¶
type BackupsClientGetOptions struct {
}
BackupsClientGetOptions contains the optional parameters for the BackupsClient.Get method.
type BackupsClientGetResponse ¶
type BackupsClientGetResponse struct {
// Backup under a Backup Vault
Backup
}
BackupsClientGetResponse contains the response from method BackupsClient.Get.
type BackupsClientGetVolumeLatestRestoreStatusOptions ¶
type BackupsClientGetVolumeLatestRestoreStatusOptions struct {
}
BackupsClientGetVolumeLatestRestoreStatusOptions contains the optional parameters for the BackupsClient.GetVolumeLatestRestoreStatus method.
type BackupsClientGetVolumeLatestRestoreStatusResponse ¶
type BackupsClientGetVolumeLatestRestoreStatusResponse struct {
// Restore status
RestoreStatus
}
BackupsClientGetVolumeLatestRestoreStatusResponse contains the response from method BackupsClient.GetVolumeLatestRestoreStatus.
type BackupsClientListByVaultOptions ¶
type BackupsClientListByVaultOptions struct {
// An option to specify the VolumeResourceId. If present, then only returns the backups under the specified volume
Filter *string
}
BackupsClientListByVaultOptions contains the optional parameters for the BackupsClient.NewListByVaultPager method.
type BackupsClientListByVaultResponse ¶
type BackupsClientListByVaultResponse struct {
// List of Backups
BackupsList
}
BackupsClientListByVaultResponse contains the response from method BackupsClient.NewListByVaultPager.
type BackupsClientUpdateResponse ¶
type BackupsClientUpdateResponse struct {
// Backup under a Backup Vault
Backup
}
BackupsClientUpdateResponse contains the response from method BackupsClient.BeginUpdate.
type BackupsList ¶
type BackupsList struct {
// URL to get the next set of results.
NextLink *string
// A list of Backups
Value []*Backup
}
BackupsList - List of Backups
func (BackupsList) MarshalJSON ¶
func (b BackupsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupsList.
func (*BackupsList) UnmarshalJSON ¶
func (b *BackupsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupsList.
type BackupsMigrationRequest ¶
type BackupsMigrationRequest struct {
// REQUIRED; The ResourceId of the Backup Vault
BackupVaultID *string
}
BackupsMigrationRequest - Migrate Backups Request
func (BackupsMigrationRequest) MarshalJSON ¶
func (b BackupsMigrationRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BackupsMigrationRequest.
func (*BackupsMigrationRequest) UnmarshalJSON ¶
func (b *BackupsMigrationRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BackupsMigrationRequest.
type BackupsUnderAccountClient ¶
type BackupsUnderAccountClient struct {
// contains filtered or unexported fields
}
BackupsUnderAccountClient contains the methods for the BackupsUnderAccount group. Don't use this type directly, use NewBackupsUnderAccountClient() instead.
func NewBackupsUnderAccountClient ¶
func NewBackupsUnderAccountClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupsUnderAccountClient, error)
NewBackupsUnderAccountClient creates a new instance of BackupsUnderAccountClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BackupsUnderAccountClient) BeginMigrateBackups ¶
func (client *BackupsUnderAccountClient) BeginMigrateBackups(ctx context.Context, resourceGroupName string, accountName string, body BackupsMigrationRequest, options *BackupsUnderAccountClientBeginMigrateBackupsOptions) (*runtime.Poller[BackupsUnderAccountClientMigrateBackupsResponse], error)
BeginMigrateBackups - Migrate the backups under a NetApp account to backup vault If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- body - Migrate backups under an account payload supplied in the body of the operation.
- options - BackupsUnderAccountClientBeginMigrateBackupsOptions contains the optional parameters for the BackupsUnderAccountClient.BeginMigrateBackups method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderAccount_Migrate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupsUnderAccountClient().BeginMigrateBackups(ctx, "myRG", "account1", armnetapp.BackupsMigrationRequest{
BackupVaultID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
}, 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)
}
type BackupsUnderAccountClientBeginMigrateBackupsOptions ¶
type BackupsUnderAccountClientBeginMigrateBackupsOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupsUnderAccountClientBeginMigrateBackupsOptions contains the optional parameters for the BackupsUnderAccountClient.BeginMigrateBackups method.
type BackupsUnderAccountClientMigrateBackupsResponse ¶
type BackupsUnderAccountClientMigrateBackupsResponse struct {
}
BackupsUnderAccountClientMigrateBackupsResponse contains the response from method BackupsUnderAccountClient.BeginMigrateBackups.
type BackupsUnderBackupVaultClient ¶
type BackupsUnderBackupVaultClient struct {
// contains filtered or unexported fields
}
BackupsUnderBackupVaultClient contains the methods for the BackupsUnderBackupVault group. Don't use this type directly, use NewBackupsUnderBackupVaultClient() instead.
func NewBackupsUnderBackupVaultClient ¶
func NewBackupsUnderBackupVaultClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupsUnderBackupVaultClient, error)
NewBackupsUnderBackupVaultClient creates a new instance of BackupsUnderBackupVaultClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BackupsUnderBackupVaultClient) BeginRestoreFiles ¶
func (client *BackupsUnderBackupVaultClient) BeginRestoreFiles(ctx context.Context, resourceGroupName string, accountName string, backupVaultName string, backupName string, body BackupRestoreFiles, options *BackupsUnderBackupVaultClientBeginRestoreFilesOptions) (*runtime.Poller[BackupsUnderBackupVaultClientRestoreFilesResponse], error)
BeginRestoreFiles - Restore the specified files from the specified backup to the active filesystem If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- backupVaultName - The name of the Backup Vault
- backupName - The name of the backup
- body - Restore payload supplied in the body of the operation.
- options - BackupsUnderBackupVaultClientBeginRestoreFilesOptions contains the optional parameters for the BackupsUnderBackupVaultClient.BeginRestoreFiles method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupsUnderBackupVaultClient().BeginRestoreFiles(ctx, "myRG", "account1", "backupVault1", "backup1", armnetapp.BackupRestoreFiles{
DestinationVolumeID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"),
FileList: []*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)
}
type BackupsUnderBackupVaultClientBeginRestoreFilesOptions ¶
type BackupsUnderBackupVaultClientBeginRestoreFilesOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupsUnderBackupVaultClientBeginRestoreFilesOptions contains the optional parameters for the BackupsUnderBackupVaultClient.BeginRestoreFiles method.
type BackupsUnderBackupVaultClientRestoreFilesResponse ¶
type BackupsUnderBackupVaultClientRestoreFilesResponse struct {
}
BackupsUnderBackupVaultClientRestoreFilesResponse contains the response from method BackupsUnderBackupVaultClient.BeginRestoreFiles.
type BackupsUnderVolumeClient ¶
type BackupsUnderVolumeClient struct {
// contains filtered or unexported fields
}
BackupsUnderVolumeClient contains the methods for the BackupsUnderVolume group. Don't use this type directly, use NewBackupsUnderVolumeClient() instead.
func NewBackupsUnderVolumeClient ¶
func NewBackupsUnderVolumeClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupsUnderVolumeClient, error)
NewBackupsUnderVolumeClient creates a new instance of BackupsUnderVolumeClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*BackupsUnderVolumeClient) BeginMigrateBackups ¶
func (client *BackupsUnderVolumeClient) BeginMigrateBackups(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body BackupsMigrationRequest, options *BackupsUnderVolumeClientBeginMigrateBackupsOptions) (*runtime.Poller[BackupsUnderVolumeClientMigrateBackupsResponse], error)
BeginMigrateBackups - Migrate the backups under volume to backup vault If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- body - Migrate backups under volume payload supplied in the body of the operation.
- options - BackupsUnderVolumeClientBeginMigrateBackupsOptions contains the optional parameters for the BackupsUnderVolumeClient.BeginMigrateBackups method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderVolume_Migrate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewBackupsUnderVolumeClient().BeginMigrateBackups(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.BackupsMigrationRequest{
BackupVaultID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1"),
}, 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)
}
type BackupsUnderVolumeClientBeginMigrateBackupsOptions ¶
type BackupsUnderVolumeClientBeginMigrateBackupsOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
BackupsUnderVolumeClientBeginMigrateBackupsOptions contains the optional parameters for the BackupsUnderVolumeClient.BeginMigrateBackups method.
type BackupsUnderVolumeClientMigrateBackupsResponse ¶
type BackupsUnderVolumeClientMigrateBackupsResponse struct {
}
BackupsUnderVolumeClientMigrateBackupsResponse contains the response from method BackupsUnderVolumeClient.BeginMigrateBackups.
type BreakFileLocksRequest ¶
type BreakFileLocksRequest struct {
// To clear file locks on a volume for a particular client
ClientIP *string
// Break File locks could be a disruptive operation for application as locks on the volume will be broken, if want to process,
// set to true.
ConfirmRunningDisruptiveOperation *bool
}
BreakFileLocksRequest - Break file locks request
func (BreakFileLocksRequest) MarshalJSON ¶
func (b BreakFileLocksRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BreakFileLocksRequest.
func (*BreakFileLocksRequest) UnmarshalJSON ¶
func (b *BreakFileLocksRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BreakFileLocksRequest.
type BreakReplicationRequest ¶
type BreakReplicationRequest struct {
// If replication is in status transferring and you want to force break the replication, set to true
ForceBreakReplication *bool
}
BreakReplicationRequest - Break replication request
func (BreakReplicationRequest) MarshalJSON ¶
func (b BreakReplicationRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BreakReplicationRequest.
func (*BreakReplicationRequest) UnmarshalJSON ¶
func (b *BreakReplicationRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BreakReplicationRequest.
type CapacityPool ¶
type CapacityPool struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// REQUIRED; Capacity pool properties
Properties *PoolProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; A unique read-only string that changes whenever the resource is updated.
Etag *string
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
CapacityPool - Capacity pool resource
func (CapacityPool) MarshalJSON ¶
func (c CapacityPool) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapacityPool.
func (*CapacityPool) UnmarshalJSON ¶
func (c *CapacityPool) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CapacityPool.
type CapacityPoolList ¶
type CapacityPoolList struct {
// URL to get the next set of results.
NextLink *string
// List of Capacity pools
Value []*CapacityPool
}
CapacityPoolList - List of capacity pool resources
func (CapacityPoolList) MarshalJSON ¶
func (c CapacityPoolList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapacityPoolList.
func (*CapacityPoolList) UnmarshalJSON ¶
func (c *CapacityPoolList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CapacityPoolList.
type CapacityPoolPatch ¶
type CapacityPoolPatch struct {
// Resource location
Location *string
// Capacity pool properties
Properties *PoolPatchProperties
// Resource tags
Tags map[string]*string
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource name
Name *string
// READ-ONLY; Resource type
Type *string
}
CapacityPoolPatch - Capacity pool patch resource
func (CapacityPoolPatch) MarshalJSON ¶
func (c CapacityPoolPatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CapacityPoolPatch.
func (*CapacityPoolPatch) UnmarshalJSON ¶
func (c *CapacityPoolPatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CapacityPoolPatch.
type ChangeKeyVault ¶
type ChangeKeyVault struct {
// REQUIRED; The name of the key that should be used for encryption.
KeyName *string
// REQUIRED; Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed
// keys needs its own key vault private endpoint.
KeyVaultPrivateEndpoints []*KeyVaultPrivateEndpoint
// REQUIRED; The URI of the key vault/managed HSM that should be used for encryption.
KeyVaultURI *string
// Azure resource ID of the key vault/managed HSM that should be used for encryption.
KeyVaultResourceID *string
}
ChangeKeyVault - Change key vault request
func (ChangeKeyVault) MarshalJSON ¶
func (c ChangeKeyVault) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ChangeKeyVault.
func (*ChangeKeyVault) UnmarshalJSON ¶
func (c *ChangeKeyVault) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ChangeKeyVault.
type CheckAvailabilityResponse ¶
type CheckAvailabilityResponse struct {
// true indicates name is valid and available. false indicates the name is invalid, unavailable, or both.
IsAvailable *bool
// 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
// 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
}
CheckAvailabilityResponse - Information regarding availability of a resource.
func (CheckAvailabilityResponse) MarshalJSON ¶
func (c CheckAvailabilityResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckAvailabilityResponse.
func (*CheckAvailabilityResponse) UnmarshalJSON ¶
func (c *CheckAvailabilityResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckAvailabilityResponse.
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 ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewAccountsClient ¶
func (c *ClientFactory) NewAccountsClient() *AccountsClient
NewAccountsClient creates a new instance of AccountsClient.
func (*ClientFactory) NewBackupPoliciesClient ¶
func (c *ClientFactory) NewBackupPoliciesClient() *BackupPoliciesClient
NewBackupPoliciesClient creates a new instance of BackupPoliciesClient.
func (*ClientFactory) NewBackupVaultsClient ¶
func (c *ClientFactory) NewBackupVaultsClient() *BackupVaultsClient
NewBackupVaultsClient creates a new instance of BackupVaultsClient.
func (*ClientFactory) NewBackupsClient ¶
func (c *ClientFactory) NewBackupsClient() *BackupsClient
NewBackupsClient creates a new instance of BackupsClient.
func (*ClientFactory) NewBackupsUnderAccountClient ¶
func (c *ClientFactory) NewBackupsUnderAccountClient() *BackupsUnderAccountClient
NewBackupsUnderAccountClient creates a new instance of BackupsUnderAccountClient.
func (*ClientFactory) NewBackupsUnderBackupVaultClient ¶
func (c *ClientFactory) NewBackupsUnderBackupVaultClient() *BackupsUnderBackupVaultClient
NewBackupsUnderBackupVaultClient creates a new instance of BackupsUnderBackupVaultClient.
func (*ClientFactory) NewBackupsUnderVolumeClient ¶
func (c *ClientFactory) NewBackupsUnderVolumeClient() *BackupsUnderVolumeClient
NewBackupsUnderVolumeClient creates a new instance of BackupsUnderVolumeClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewPoolsClient ¶
func (c *ClientFactory) NewPoolsClient() *PoolsClient
NewPoolsClient creates a new instance of PoolsClient.
func (*ClientFactory) NewResourceClient ¶
func (c *ClientFactory) NewResourceClient() *ResourceClient
NewResourceClient creates a new instance of ResourceClient.
func (*ClientFactory) NewResourceQuotaLimitsClient ¶
func (c *ClientFactory) NewResourceQuotaLimitsClient() *ResourceQuotaLimitsClient
NewResourceQuotaLimitsClient creates a new instance of ResourceQuotaLimitsClient.
func (*ClientFactory) NewResourceRegionInfosClient ¶
func (c *ClientFactory) NewResourceRegionInfosClient() *ResourceRegionInfosClient
NewResourceRegionInfosClient creates a new instance of ResourceRegionInfosClient.
func (*ClientFactory) NewSnapshotPoliciesClient ¶
func (c *ClientFactory) NewSnapshotPoliciesClient() *SnapshotPoliciesClient
NewSnapshotPoliciesClient creates a new instance of SnapshotPoliciesClient.
func (*ClientFactory) NewSnapshotsClient ¶
func (c *ClientFactory) NewSnapshotsClient() *SnapshotsClient
NewSnapshotsClient creates a new instance of SnapshotsClient.
func (*ClientFactory) NewSubvolumesClient ¶
func (c *ClientFactory) NewSubvolumesClient() *SubvolumesClient
NewSubvolumesClient creates a new instance of SubvolumesClient.
func (*ClientFactory) NewVolumeGroupsClient ¶
func (c *ClientFactory) NewVolumeGroupsClient() *VolumeGroupsClient
NewVolumeGroupsClient creates a new instance of VolumeGroupsClient.
func (*ClientFactory) NewVolumeQuotaRulesClient ¶
func (c *ClientFactory) NewVolumeQuotaRulesClient() *VolumeQuotaRulesClient
NewVolumeQuotaRulesClient creates a new instance of VolumeQuotaRulesClient.
func (*ClientFactory) NewVolumesClient ¶
func (c *ClientFactory) NewVolumesClient() *VolumesClient
NewVolumesClient creates a new instance of VolumesClient.
type ClusterPeerCommandResponse ¶
type ClusterPeerCommandResponse struct {
// A command that needs to be run on the external ONTAP to accept cluster peering. Will only be present if clusterPeeringStatus
// is pending
PeerAcceptCommand *string
}
ClusterPeerCommandResponse - Information about cluster peering process
func (ClusterPeerCommandResponse) MarshalJSON ¶
func (c ClusterPeerCommandResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClusterPeerCommandResponse.
func (*ClusterPeerCommandResponse) UnmarshalJSON ¶
func (c *ClusterPeerCommandResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ClusterPeerCommandResponse.
type CoolAccessRetrievalPolicy ¶
type CoolAccessRetrievalPolicy string
CoolAccessRetrievalPolicy - coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage.
const ( CoolAccessRetrievalPolicyDefault CoolAccessRetrievalPolicy = "Default" CoolAccessRetrievalPolicyNever CoolAccessRetrievalPolicy = "Never" CoolAccessRetrievalPolicyOnRead CoolAccessRetrievalPolicy = "OnRead" )
func PossibleCoolAccessRetrievalPolicyValues ¶
func PossibleCoolAccessRetrievalPolicyValues() []CoolAccessRetrievalPolicy
PossibleCoolAccessRetrievalPolicyValues returns the possible values for the CoolAccessRetrievalPolicy const type.
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
// Indicates which minute snapshot should be taken
Minute *int32
// Daily snapshot count to keep
SnapshotsToKeep *int32
// Resource size in bytes, current storage usage for the volume in bytes
UsedBytes *int64
}
DailySchedule - Daily Schedule properties
func (DailySchedule) MarshalJSON ¶
func (d DailySchedule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DailySchedule.
func (*DailySchedule) UnmarshalJSON ¶
func (d *DailySchedule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DailySchedule.
type DestinationReplication ¶
type DestinationReplication struct {
// The remote region for the destination volume.
Region *string
// Indicates whether the replication is cross zone or cross region.
ReplicationType *ReplicationType
// The resource ID of the remote volume
ResourceID *string
// The remote zone for the destination volume.
Zone *string
}
DestinationReplication - Destination replication properties
func (DestinationReplication) MarshalJSON ¶
func (d DestinationReplication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DestinationReplication.
func (*DestinationReplication) UnmarshalJSON ¶
func (d *DestinationReplication) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DestinationReplication.
type Dimension ¶
type Dimension struct {
// Display name of dimension.
DisplayName *string
// Display name of dimension.
Name *string
}
Dimension of blobs, possibly be blob type or access tier.
func (Dimension) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Dimension.
func (*Dimension) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Dimension.
type EnableSubvolumes ¶
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 ¶
func PossibleEnableSubvolumesValues() []EnableSubvolumes
PossibleEnableSubvolumesValues returns the possible values for the EnableSubvolumes const type.
type EncryptionIdentity ¶
type EncryptionIdentity struct {
// ClientId of the multi-tenant AAD Application. Used to access cross-tenant KeyVaults.
FederatedClientID *string
// The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type
// has 'UserAssigned'. It should match key of identity.userAssignedIdentities.
UserAssignedIdentity *string
// READ-ONLY; The principal ID (object ID) of the identity used to authenticate with key vault. Read-only.
PrincipalID *string
}
EncryptionIdentity - Identity used to authenticate with key vault.
func (EncryptionIdentity) MarshalJSON ¶
func (e EncryptionIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionIdentity.
func (*EncryptionIdentity) UnmarshalJSON ¶
func (e *EncryptionIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionIdentity.
type EncryptionKeySource ¶
type EncryptionKeySource string
EncryptionKeySource - Source of key used to encrypt data in volume. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'
const ( // EncryptionKeySourceMicrosoftKeyVault - Customer-managed key encryption EncryptionKeySourceMicrosoftKeyVault EncryptionKeySource = "Microsoft.KeyVault" // EncryptionKeySourceMicrosoftNetApp - Microsoft-managed key encryption EncryptionKeySourceMicrosoftNetApp EncryptionKeySource = "Microsoft.NetApp" )
func PossibleEncryptionKeySourceValues ¶
func PossibleEncryptionKeySourceValues() []EncryptionKeySource
PossibleEncryptionKeySourceValues returns the possible values for the EncryptionKeySource const type.
type EncryptionTransitionRequest ¶
type EncryptionTransitionRequest struct {
// REQUIRED; Identifier of the private endpoint to reach the Azure Key Vault
PrivateEndpointID *string
// REQUIRED; Identifier for the virtual network
VirtualNetworkID *string
}
EncryptionTransitionRequest - Encryption transition request
func (EncryptionTransitionRequest) MarshalJSON ¶
func (e EncryptionTransitionRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EncryptionTransitionRequest.
func (*EncryptionTransitionRequest) UnmarshalJSON ¶
func (e *EncryptionTransitionRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionTransitionRequest.
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
// 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
// Allows CIFS protocol
Cifs *bool
// Has root access to volume
HasRootAccess *bool
// Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later
Kerberos5IReadOnly *bool
// Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later
Kerberos5IReadWrite *bool
// Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later
Kerberos5PReadOnly *bool
// Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later
Kerberos5PReadWrite *bool
// Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later
Kerberos5ReadOnly *bool
// Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later
Kerberos5ReadWrite *bool
// Allows NFSv3 protocol. Enable only for NFSv3 type volumes
Nfsv3 *bool
// Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes
Nfsv41 *bool
// Order index
RuleIndex *int32
// Read only access
UnixReadOnly *bool
// Read and write access
UnixReadWrite *bool
}
ExportPolicyRule - Volume Export Policy Rule
func (ExportPolicyRule) MarshalJSON ¶
func (e ExportPolicyRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ExportPolicyRule.
func (*ExportPolicyRule) UnmarshalJSON ¶
func (e *ExportPolicyRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ExportPolicyRule.
type FileAccessLogs ¶
type FileAccessLogs string
FileAccessLogs - Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present on the volume.
const ( // FileAccessLogsDisabled - fileAccessLogs are not enabled FileAccessLogsDisabled FileAccessLogs = "Disabled" // FileAccessLogsEnabled - fileAccessLogs are enabled FileAccessLogsEnabled FileAccessLogs = "Enabled" )
func PossibleFileAccessLogsValues ¶
func PossibleFileAccessLogsValues() []FileAccessLogs
PossibleFileAccessLogsValues returns the possible values for the FileAccessLogs const type.
type FilePathAvailabilityRequest ¶
type FilePathAvailabilityRequest struct {
// REQUIRED; File path to verify.
Name *string
// REQUIRED; The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes
SubnetID *string
// The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region.
// The lookup will retrieve the physical zone where volume is placed.
AvailabilityZone *string
}
FilePathAvailabilityRequest - File path availability request content - availability is based on the name and the subnetId.
func (FilePathAvailabilityRequest) MarshalJSON ¶
func (f FilePathAvailabilityRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FilePathAvailabilityRequest.
func (*FilePathAvailabilityRequest) UnmarshalJSON ¶
func (f *FilePathAvailabilityRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FilePathAvailabilityRequest.
type GetGroupIDListForLDAPUserRequest ¶
type GetGroupIDListForLDAPUserRequest struct {
// REQUIRED; username is required to fetch the group to which user is part of
Username *string
}
GetGroupIDListForLDAPUserRequest - Get group Id list for LDAP User request
func (GetGroupIDListForLDAPUserRequest) MarshalJSON ¶
func (g GetGroupIDListForLDAPUserRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GetGroupIDListForLDAPUserRequest.
func (*GetGroupIDListForLDAPUserRequest) UnmarshalJSON ¶
func (g *GetGroupIDListForLDAPUserRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GetGroupIDListForLDAPUserRequest.
type GetGroupIDListForLDAPUserResponse ¶
type GetGroupIDListForLDAPUserResponse struct {
// Group Id list
GroupIDsForLdapUser []*string
}
GetGroupIDListForLDAPUserResponse - Group Id list for Ldap user
func (GetGroupIDListForLDAPUserResponse) MarshalJSON ¶
func (g GetGroupIDListForLDAPUserResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GetGroupIDListForLDAPUserResponse.
func (*GetGroupIDListForLDAPUserResponse) UnmarshalJSON ¶
func (g *GetGroupIDListForLDAPUserResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GetGroupIDListForLDAPUserResponse.
type HourlySchedule ¶
type HourlySchedule struct {
// Indicates which minute snapshot should be taken
Minute *int32
// Hourly snapshot count to keep
SnapshotsToKeep *int32
// Resource size in bytes, current storage usage for the volume in bytes
UsedBytes *int64
}
HourlySchedule - Hourly Schedule properties
func (HourlySchedule) MarshalJSON ¶
func (h HourlySchedule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HourlySchedule.
func (*HourlySchedule) UnmarshalJSON ¶
func (h *HourlySchedule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HourlySchedule.
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 KeySource ¶
type KeySource string
KeySource - The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault
func PossibleKeySourceValues ¶
func PossibleKeySourceValues() []KeySource
PossibleKeySourceValues returns the possible values for the KeySource const type.
type KeyVaultPrivateEndpoint ¶
type KeyVaultPrivateEndpoint struct {
// Identifier of the private endpoint to reach the Azure Key Vault
PrivateEndpointID *string
// Identifier for the virtual network id
VirtualNetworkID *string
}
KeyVaultPrivateEndpoint - Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint.
func (KeyVaultPrivateEndpoint) MarshalJSON ¶
func (k KeyVaultPrivateEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type KeyVaultPrivateEndpoint.
func (*KeyVaultPrivateEndpoint) UnmarshalJSON ¶
func (k *KeyVaultPrivateEndpoint) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultPrivateEndpoint.
type KeyVaultProperties ¶
type KeyVaultProperties struct {
// REQUIRED; The name of KeyVault key.
KeyName *string
// REQUIRED; The Uri of KeyVault.
KeyVaultURI *string
// The resource ID of KeyVault.
KeyVaultResourceID *string
// READ-ONLY; UUID v4 used to identify the Azure Key Vault configuration
KeyVaultID *string
// READ-ONLY; Status of the KeyVault connection.
Status *KeyVaultStatus
}
KeyVaultProperties - Properties of key vault.
func (KeyVaultProperties) MarshalJSON ¶
func (k KeyVaultProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties.
func (*KeyVaultProperties) UnmarshalJSON ¶
func (k *KeyVaultProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultProperties.
type KeyVaultStatus ¶
type KeyVaultStatus string
KeyVaultStatus - Status of the KeyVault connection.
const ( // KeyVaultStatusCreated - KeyVault connection created but not in use KeyVaultStatusCreated KeyVaultStatus = "Created" // KeyVaultStatusDeleted - KeyVault connection Deleted KeyVaultStatusDeleted KeyVaultStatus = "Deleted" // KeyVaultStatusError - Error with the KeyVault connection KeyVaultStatusError KeyVaultStatus = "Error" // KeyVaultStatusInUse - KeyVault connection in use by SMB Volume KeyVaultStatusInUse KeyVaultStatus = "InUse" // KeyVaultStatusUpdating - KeyVault connection Updating KeyVaultStatusUpdating KeyVaultStatus = "Updating" )
func PossibleKeyVaultStatusValues ¶
func PossibleKeyVaultStatusValues() []KeyVaultStatus
PossibleKeyVaultStatusValues returns the possible values for the KeyVaultStatus const type.
type LdapSearchScopeOpt ¶
type LdapSearchScopeOpt struct {
// This specifies the group DN, which overrides the base DN for group lookups.
GroupDN *string
// This specifies the custom LDAP search filter to be used when looking up group membership from LDAP server.
GroupMembershipFilter *string
// This specifies the user DN, which overrides the base DN for user lookups.
UserDN *string
}
LdapSearchScopeOpt - LDAP search scope
func (LdapSearchScopeOpt) MarshalJSON ¶
func (l LdapSearchScopeOpt) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LdapSearchScopeOpt.
func (*LdapSearchScopeOpt) UnmarshalJSON ¶
func (l *LdapSearchScopeOpt) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LdapSearchScopeOpt.
type ListQuotaReportResponse ¶
type ListQuotaReportResponse struct {
// URL to get the next set of results.
NextLink *string
// List of volume quota report records
Value []*QuotaReport
}
ListQuotaReportResponse - Quota Report for volume
func (ListQuotaReportResponse) MarshalJSON ¶
func (l ListQuotaReportResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListQuotaReportResponse.
func (*ListQuotaReportResponse) UnmarshalJSON ¶
func (l *ListQuotaReportResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ListQuotaReportResponse.
type ListReplications ¶
type ListReplications struct {
// A list of replications
Value []*Replication
}
ListReplications - List Replications
func (ListReplications) MarshalJSON ¶
func (l ListReplications) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ListReplications.
func (*ListReplications) UnmarshalJSON ¶
func (l *ListReplications) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ListReplications.
type LogSpecification ¶
type LogSpecification struct {
// Display name of log specification.
DisplayName *string
// Name of log specification.
Name *string
}
LogSpecification - Log Definition of a single resource metric.
func (LogSpecification) MarshalJSON ¶
func (l LogSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LogSpecification.
func (*LogSpecification) UnmarshalJSON ¶
func (l *LogSpecification) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LogSpecification.
type ManagedServiceIdentity ¶
type ManagedServiceIdentity struct {
// REQUIRED; Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
Type *ManagedServiceIdentityType
// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM
// resource ids in the form:
// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
// The dictionary values can be empty objects ({}) in
// requests.
UserAssignedIdentities map[string]*UserAssignedIdentity
// READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned
// identity.
PrincipalID *string
// READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
TenantID *string
}
ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities)
func (ManagedServiceIdentity) MarshalJSON ¶
func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity.
func (*ManagedServiceIdentity) UnmarshalJSON ¶
func (m *ManagedServiceIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedServiceIdentity.
type ManagedServiceIdentityType ¶
type ManagedServiceIdentityType string
ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
const ( ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" )
func PossibleManagedServiceIdentityTypeValues ¶
func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType
PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
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
// The category this metric specification belong to, could be Capacity.
Category *string
// Dimensions of blobs, including blob type and access tier.
Dimensions []*Dimension
// Display description of metric specification.
DisplayDescription *string
// Display name of metric specification.
DisplayName *string
// Whether or not the service is using regional MDM accounts.
EnableRegionalMdmAccount *bool
// The property to decide fill gap with zero or not.
FillGapWithZero *bool
// The internal metric name.
InternalMetricName *string
// Whether the metric is internal.
IsInternal *bool
// Name of metric specification.
Name *string
// Account Resource Id.
ResourceIDDimensionNameOverride *string
// The source MDM account.
SourceMdmAccount *string
// The source MDM namespace.
SourceMdmNamespace *string
// Support metric aggregation type.
SupportedAggregationTypes []*MetricAggregationType
// The supported time grain types for the metrics.
SupportedTimeGrainTypes []*string
// Unit could be Bytes or Count.
Unit *string
}
MetricSpecification - Metric specification of operation.
func (MetricSpecification) MarshalJSON ¶
func (m MetricSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MetricSpecification.
func (*MetricSpecification) UnmarshalJSON ¶
func (m *MetricSpecification) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MetricSpecification.
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
// Indicates which hour in UTC timezone a snapshot should be taken
Hour *int32
// Indicates which minute snapshot should be taken
Minute *int32
// Monthly snapshot count to keep
SnapshotsToKeep *int32
// Resource size in bytes, current storage usage for the volume in bytes
UsedBytes *int64
}
MonthlySchedule - Monthly Schedule properties
func (MonthlySchedule) MarshalJSON ¶
func (m MonthlySchedule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MonthlySchedule.
func (*MonthlySchedule) UnmarshalJSON ¶
func (m *MonthlySchedule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MonthlySchedule.
type MountTargetProperties ¶
type MountTargetProperties struct {
// REQUIRED; UUID v4 used to identify the MountTarget
FileSystemID *string
// The SMB server's Fully Qualified Domain Name, FQDN
SmbServerFqdn *string
// READ-ONLY; The mount target's IPv4 address
IPAddress *string
// READ-ONLY; UUID v4 used to identify the MountTarget
MountTargetID *string
}
MountTargetProperties - Mount target properties
func (MountTargetProperties) MarshalJSON ¶
func (m MountTargetProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MountTargetProperties.
func (*MountTargetProperties) UnmarshalJSON ¶
func (m *MountTargetProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MountTargetProperties.
type NetworkFeatures ¶
type NetworkFeatures string
NetworkFeatures - Network features available to the volume, or current state of update.
const ( // NetworkFeaturesBasic - Basic network features. NetworkFeaturesBasic NetworkFeatures = "Basic" // NetworkFeaturesBasicStandard - Updating from Basic to Standard network features. NetworkFeaturesBasicStandard NetworkFeatures = "Basic_Standard" // NetworkFeaturesStandard - Standard network features. NetworkFeaturesStandard NetworkFeatures = "Standard" // NetworkFeaturesStandardBasic - Updating from Standard to Basic network features. NetworkFeaturesStandardBasic NetworkFeatures = "Standard_Basic" )
func PossibleNetworkFeaturesValues ¶
func PossibleNetworkFeaturesValues() []NetworkFeatures
PossibleNetworkFeaturesValues returns the possible values for the NetworkFeatures const type.
type NetworkSiblingSet ¶
type NetworkSiblingSet struct {
// Network features available to the volume, or current state of update.
NetworkFeatures *NetworkFeatures
// Network Sibling Set ID for a group of volumes sharing networking resources in a subnet.
NetworkSiblingSetID *string
// Network sibling set state Id identifying the current state of the sibling set.
NetworkSiblingSetStateID *string
// List of NIC information
NicInfoList []*NicInfo
// The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example
// /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}
SubnetID *string
// READ-ONLY; Gets the status of the NetworkSiblingSet at the time the operation was called.
ProvisioningState *NetworkSiblingSetProvisioningState
}
NetworkSiblingSet - Describes the contents of a network sibling set.
func (NetworkSiblingSet) MarshalJSON ¶
func (n NetworkSiblingSet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSiblingSet.
func (*NetworkSiblingSet) UnmarshalJSON ¶
func (n *NetworkSiblingSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSiblingSet.
type NetworkSiblingSetProvisioningState ¶
type NetworkSiblingSetProvisioningState string
NetworkSiblingSetProvisioningState - Gets the status of the NetworkSiblingSet at the time the operation was called.
const ( NetworkSiblingSetProvisioningStateCanceled NetworkSiblingSetProvisioningState = "Canceled" NetworkSiblingSetProvisioningStateFailed NetworkSiblingSetProvisioningState = "Failed" NetworkSiblingSetProvisioningStateSucceeded NetworkSiblingSetProvisioningState = "Succeeded" NetworkSiblingSetProvisioningStateUpdating NetworkSiblingSetProvisioningState = "Updating" )
func PossibleNetworkSiblingSetProvisioningStateValues ¶
func PossibleNetworkSiblingSetProvisioningStateValues() []NetworkSiblingSetProvisioningState
PossibleNetworkSiblingSetProvisioningStateValues returns the possible values for the NetworkSiblingSetProvisioningState const type.
type NicInfo ¶
type NicInfo struct {
// Volume resource Ids
VolumeResourceIDs []*string
// READ-ONLY; ipAddress
IPAddress *string
}
NicInfo - NIC information and list of volumes for which the NIC has the primary mount ip address.
func (NicInfo) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type NicInfo.
func (*NicInfo) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type NicInfo.
type Operation ¶
type Operation struct {
// Display metadata associated with the operation.
Display *OperationDisplay
// Operation name: {provider}/{resource}/{operation}
Name *string
// The origin of operations.
Origin *string
// Properties of operation, include metric specifications.
Properties *OperationProperties
}
Operation - Microsoft.NetApp REST API operation definition.
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct {
// Operation description.
Description *string
// Type of operation: get, read, delete, etc.
Operation *string
// Service provider: Microsoft NetApp.
Provider *string
// Resource on which the operation is performed etc.
Resource *string
}
OperationDisplay - Display metadata associated with the operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct {
// List of Storage operations supported by the Storage resource provider.
Value []*Operation
}
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.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationProperties ¶
type OperationProperties struct {
// One property of operation, include metric specifications.
ServiceSpecification *ServiceSpecification
}
OperationProperties - Properties of operation, include metric specifications.
func (OperationProperties) MarshalJSON ¶
func (o OperationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationProperties.
func (*OperationProperties) UnmarshalJSON ¶
func (o *OperationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationProperties.
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 ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available Microsoft.NetApp Rest API operations
Generated from API version 2024-07-01-preview
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/OperationList.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.OperationListResult = armnetapp.OperationListResult{
// Value: []*armnetapp.Operation{
// {
// Name: to.Ptr("Microsoft.NetApp/register/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Subscription Registration Action"),
// Operation: to.Ptr("Subscription Registration Action"),
// Provider: to.Ptr("Microsoft.NetApp"),
// Resource: to.Ptr("Subscription"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a volume resource."),
// Operation: to.Ptr("Read volume resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Writes a volume resource."),
// Operation: to.Ptr("Write volume resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/delete"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Deletes a volume resource."),
// Operation: to.Ptr("Delete volume resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/Revert/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Revert volume to specific snapshot"),
// Operation: to.Ptr("Revert volume resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/BreakReplication/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Break volume replication relations"),
// Operation: to.Ptr("Break volume replication resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/ReplicationStatus/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads the statuses of the Volume Replication."),
// Operation: to.Ptr("Read Volume Replication Status."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/ListReplications/action"),
// Display: &armnetapp.OperationDisplay{
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/ReInitializeReplication/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Attempts to re-initialize an uninitialized replication"),
// Operation: to.Ptr("Re-Initialize replication"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/providers/Microsoft.Insights/metricDefinitions/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Gets the available metrics for Volume resource."),
// Operation: to.Ptr("Read volume metric definitions."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("system"),
// Properties: &armnetapp.OperationProperties{
// ServiceSpecification: &armnetapp.ServiceSpecification{
// MetricSpecifications: []*armnetapp.MetricSpecification{
// {
// Name: to.Ptr("AverageReadLatency"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Average read latency in milliseconds per operation"),
// DisplayName: to.Ptr("Average read latency"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("AverageReadLatency"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("MilliSeconds"),
// },
// {
// Name: to.Ptr("AverageWriteLatency"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Average write latency in milliseconds per operation"),
// DisplayName: to.Ptr("Average write latency"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("AverageWriteLatency"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("MilliSeconds"),
// },
// {
// Name: to.Ptr("VolumeLogicalSize"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Logical size of the volume (used bytes)"),
// DisplayName: to.Ptr("Volume Consumed Size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumeLogicalSize"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("VolumeSnapshotSize"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Size of all snapshots in volume"),
// DisplayName: to.Ptr("Volume snapshot size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumeSnapshotSize"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("ReadIops"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Read In/out operations per second"),
// DisplayName: to.Ptr("Read iops"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("ReadIops"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("CountPerSecond"),
// },
// {
// Name: to.Ptr("WriteIops"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Write In/out operations per second"),
// DisplayName: to.Ptr("Write iops"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("WriteIops"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("CountPerSecond"),
// },
// {
// Name: to.Ptr("VolumeAllocatedSize"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("The provisioned size of a volume"),
// DisplayName: to.Ptr("Volume allocated size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumeAllocatedSize"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("VolumeCoolTierSize"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Volume Footprint for Cool Tier"),
// DisplayName: to.Ptr("Volume cool tier size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumeCoolTierSize"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("VolumeCoolTierDataReadSize"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Data read in using GET per volume"),
// DisplayName: to.Ptr("Volume cool tier data read size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumeCoolTierDataReadSize"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("VolumeCoolTierDataWriteSize"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Data tiered out using PUT per volume"),
// DisplayName: to.Ptr("Volume cool tier data write size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumeCoolTierDataWriteSize"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("XregionReplicationLastTransferDuration"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("The amount of time in seconds it took for the last transfer to complete."),
// DisplayName: to.Ptr("Volume replication last transfer duration"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("XregionReplicationLastTransferDuration"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Seconds"),
// },
// {
// Name: to.Ptr("XregionReplicationLastTransferSize"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("The total number of bytes transferred as part of the last transfer."),
// DisplayName: to.Ptr("Volume replication last transfer size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("XregionReplicationLastTransferSize"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("XregionReplicationHealthy"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Condition of the relationship, 1 or 0."),
// DisplayName: to.Ptr("Is volume replication status healthy"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("XregionReplicationHealthy"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Count"),
// },
// {
// Name: to.Ptr("XregionReplicationLagTime"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("The amount of time in seconds by which the data on the mirror lags behind the source."),
// DisplayName: to.Ptr("Volume replication lag time"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("XregionReplicationLagTime"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Seconds"),
// },
// {
// Name: to.Ptr("XregionReplicationTotalTransferBytes"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Cumulative bytes transferred for the relationship."),
// DisplayName: to.Ptr("Volume replication total transfer"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("XregionReplicationTotalTransferBytes"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("XregionReplicationRelationshipProgress"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Total amount of data transferred for the current transfer operation."),
// DisplayName: to.Ptr("Volume replication progress"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("XregionReplicationRelationshipProgress"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("XregionReplicationRelationshipTransferring"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Whether the status of the Volume Replication is 'transferring'."),
// DisplayName: to.Ptr("Is volume replication transferring"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("XregionReplicationRelationshipTransferring"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Count"),
// },
// {
// Name: to.Ptr("CbsVolumeLogicalBackupBytes"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Total bytes backed up for this Volume."),
// DisplayName: to.Ptr("Volume Backup Bytes"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("CbsVolumeLogicalBackupBytes"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("CbsVolumeProtected"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Is backup enabled for the volume? 1 if yes, 0 if no."),
// DisplayName: to.Ptr("Is Volume Backup Enabled"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("CbsVolumeProtected"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Count"),
// },
// {
// Name: to.Ptr("CbsVolumeBackupActive"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Is the backup policy suspended for the volume? 0 if yes, 1 if no."),
// DisplayName: to.Ptr("Is Volume Backup suspended"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("CbsVolumeBackupActive"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Count"),
// },
// {
// Name: to.Ptr("CbsVolumeOperationTransferredBytes"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Total bytes transferred for last backup or restore operation."),
// DisplayName: to.Ptr("Volume Backup Last Transferred Bytes"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("CbsVolumeOperationTransferredBytes"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("CbsVolumeOperationComplete"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Did the last volume backup or restore operation complete successfully? 1 if yes, 0 if no."),
// DisplayName: to.Ptr("Is Volume Backup Operation Complete"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("CbsVolumeOperationComplete"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Count"),
// },
// {
// Name: to.Ptr("VolumeConsumedSizePercentage"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("The percentage of the volume consumed including snapshots."),
// DisplayName: to.Ptr("Percentage Volume Consumed Size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumeConsumedSizePercentage"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Percent"),
// },
// {
// Name: to.Ptr("OtherThroughput"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Other throughput (that is not read or write) in bytes per second"),
// DisplayName: to.Ptr("Other throughput"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("OtherThroughput"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("BytesPerSecond"),
// },
// {
// Name: to.Ptr("ReadThroughput"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Read throughput in bytes per second"),
// DisplayName: to.Ptr("Read throughput"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("ReadThroughput"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("BytesPerSecond"),
// },
// {
// Name: to.Ptr("TotalThroughput"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Sum of all throughput in bytes per second"),
// DisplayName: to.Ptr("Total throughput"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("TotalThroughput"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("BytesPerSecond"),
// },
// {
// Name: to.Ptr("WriteThroughput"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Write throughput in bytes per second"),
// DisplayName: to.Ptr("Write throughput"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("WriteThroughput"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("BytesPerSecond"),
// }},
// },
// },
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/providers/Microsoft.Insights/diagnosticSettings/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Gets the diagnostic setting for the resource."),
// Operation: to.Ptr("Read diagnostic setting."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/providers/Microsoft.Insights/diagnosticSettings/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Creates or updates the diagnostic setting for the resource."),
// Operation: to.Ptr("Write diagnostic setting."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/AuthorizeReplication/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Authorize the source volume replication"),
// Operation: to.Ptr("Authorize Replication"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/ResyncReplication/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Resync the replication on the destination volume"),
// Operation: to.Ptr("Resync Replication"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/DeleteReplication/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Delete the replication on the destination volume"),
// Operation: to.Ptr("Delete Replication"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/ReplicationStatus/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads the statuses of the Volume Replication."),
// Operation: to.Ptr("Read Volume Replication Status."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/MountTargets/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a mount target resource."),
// Operation: to.Ptr("Read mount target resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/BackupStatus/read"),
// Display: &armnetapp.OperationDisplay{
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/RestoreStatus/read"),
// Display: &armnetapp.OperationDisplay{
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/PoolChange/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Moves volume to another pool."),
// Operation: to.Ptr("Change pool for volume"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/RelocateVolume/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Relocate volume to a new stamp."),
// Operation: to.Ptr("Relocate volume to a new stamp."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/FinalizeRelocation/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Finalize relocation by cleaning up the old volume."),
// Operation: to.Ptr("Finalize relocation of volume."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/RevertRelocation/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Revert the relocation and revert back to the old volume."),
// Operation: to.Ptr("Revert the relocation of volume."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads an account resource."),
// Operation: to.Ptr("Read account resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Accounts resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Writes an account resource."),
// Operation: to.Ptr("Write account resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Accounts resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/delete"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Deletes a account resource."),
// Operation: to.Ptr("Delete account resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Accounts resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/RenewCredentials/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Renews MSI credentials of account, if account has MSI credentials that are due for renewal."),
// Operation: to.Ptr("Renew MSI credentials, if possible."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Accounts resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a pool resource."),
// Operation: to.Ptr("Read pool resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Pools resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Writes a pool resource."),
// Operation: to.Ptr("Write pool resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Pools resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/delete"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Deletes a pool resource."),
// Operation: to.Ptr("Delete pool resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Pools resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/providers/Microsoft.Insights/metricDefinitions/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Gets the available metrics for Volume resource."),
// Operation: to.Ptr("Read volume metric definitions."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Pools resource type"),
// },
// Origin: to.Ptr("system"),
// Properties: &armnetapp.OperationProperties{
// ServiceSpecification: &armnetapp.ServiceSpecification{
// MetricSpecifications: []*armnetapp.MetricSpecification{
// {
// Name: to.Ptr("VolumePoolAllocatedUsed"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Allocated used size of the pool"),
// DisplayName: to.Ptr("Pool Allocated To Volume Size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumePoolAllocatedUsed"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("VolumePoolTotalLogicalSize"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Sum of the logical size of all the volumes belonging to the pool"),
// DisplayName: to.Ptr("Pool Consumed Size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumePoolTotalLogicalSize"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage),
// to.Ptr(armnetapp.MetricAggregationType("Total"))},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("VolumePoolAllocatedSize"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Provisioned size of this pool"),
// DisplayName: to.Ptr("Pool Allocated Size"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumePoolAllocatedSize"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage),
// to.Ptr(armnetapp.MetricAggregationType("Total"))},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("VolumePoolTotalSnapshotSize"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Sum of snapshot size of all volumes in this pool"),
// DisplayName: to.Ptr("Total Snapshot size for the pool"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumePoolTotalSnapshotSize"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("Bytes"),
// },
// {
// Name: to.Ptr("VolumePoolProvisionedThroughput"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Provisioned throughput of this pool"),
// DisplayName: to.Ptr("Provisioned throughput for the pool"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumePoolProvisionedThroughput"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("BytesPerSecond"),
// },
// {
// Name: to.Ptr("VolumePoolAllocatedToVolumeThroughput"),
// AggregationType: to.Ptr("Average"),
// Dimensions: []*armnetapp.Dimension{
// },
// DisplayDescription: to.Ptr("Sum of the throughput of all the volumes belonging to the pool"),
// DisplayName: to.Ptr("Pool allocated throughput"),
// EnableRegionalMdmAccount: to.Ptr(true),
// FillGapWithZero: to.Ptr(false),
// InternalMetricName: to.Ptr("VolumePoolAllocatedToVolumeThroughput"),
// IsInternal: to.Ptr(false),
// SourceMdmAccount: to.Ptr("MicrosoftNetAppShoebox2"),
// SourceMdmNamespace: to.Ptr("NetAppUsageAndMetrics"),
// SupportedAggregationTypes: []*armnetapp.MetricAggregationType{
// to.Ptr(armnetapp.MetricAggregationTypeAverage)},
// SupportedTimeGrainTypes: []*string{
// to.Ptr("PT5M"),
// to.Ptr("PT15M"),
// to.Ptr("PT30M"),
// to.Ptr("PT1H"),
// to.Ptr("PT6H"),
// to.Ptr("PT12H"),
// to.Ptr("P1D")},
// Unit: to.Ptr("BytesPerSecond"),
// }},
// },
// },
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/providers/Microsoft.Insights/logDefinitions/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Gets the log definitions for the resource."),
// Operation: to.Ptr("Read log definitions."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Pools resource type"),
// },
// Origin: to.Ptr("system"),
// Properties: &armnetapp.OperationProperties{
// ServiceSpecification: &armnetapp.ServiceSpecification{
// LogSpecifications: []*armnetapp.LogSpecification{
// {
// Name: to.Ptr("Autoscale"),
// DisplayName: to.Ptr("Capacity Pool Autoscaled"),
// }},
// },
// },
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/providers/Microsoft.Insights/diagnosticSettings/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Gets the diagnostic setting for the resource."),
// Operation: to.Ptr("Read diagnostic setting."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Pools resource type"),
// },
// Origin: to.Ptr("system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/providers/Microsoft.Insights/diagnosticSettings/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Creates or updates the diagnostic setting for the resource."),
// Operation: to.Ptr("Write diagnostic setting."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Pools resource type"),
// },
// Origin: to.Ptr("system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a snapshot resource."),
// Operation: to.Ptr("Read snapshot resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Snapshots resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Writes a snapshot resource."),
// Operation: to.Ptr("Write snapshot resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Snapshots resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots/delete"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Deletes a snapshot resource."),
// Operation: to.Ptr("Delete snapshot resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Snapshots resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots/RestoreFiles/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Restores files from a snapshot resource"),
// Operation: to.Ptr("Single File Snapshot Restore"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Snapshots resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/subvolumes/read"),
// Display: &armnetapp.OperationDisplay{
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Subvolume resource type."),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/subvolumes/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Write a subvolume resource."),
// Operation: to.Ptr("Write subvolume Resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Subvolume resource type."),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/subvolumes/delete"),
// Display: &armnetapp.OperationDisplay{
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Subvolume resource type."),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/subvolumes/GetMetadata/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Read subvolume metadata resource."),
// Operation: to.Ptr("Subvolume Metadata resource."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Subvolume resource type."),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/snapshotPolicies/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a snapshot policy resource."),
// Operation: to.Ptr("Read snapshot policy resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Snapshot Policies resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/snapshotPolicies/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Writes a snapshot policy resource."),
// Operation: to.Ptr("Write snapshot policy resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Snapshot Policies resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/snapshotPolicies/delete"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Deletes a snapshot policy resource."),
// Operation: to.Ptr("Delete snapshot policy resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Snapshot Policies resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/snapshotPolicies/Volumes/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("List volumes connected to snapshot policy"),
// Operation: to.Ptr("List connected volumes"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Snapshot Policies resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/snapshotPolicies/ListVolumes/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("List volumes connected to snapshot policy"),
// Operation: to.Ptr("List connected volumes"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Snapshot Policies resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/backups/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a backup resource."),
// Operation: to.Ptr("Read backup resource."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Backup resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/backups/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Writes a backup resource."),
// Operation: to.Ptr("Write backup resource."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Backup resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/backups/delete"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Deletes a backup resource."),
// Operation: to.Ptr("Delete backup resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Backup resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/backupPolicies/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a backup policy resource."),
// Operation: to.Ptr("Read backup policy resource."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Backup Policy resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/backupPolicies/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Writes a backup policy resource."),
// Operation: to.Ptr("Write backup policy resource."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Backup Policy resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/backupPolicies/delete"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Deletes a backup policy resource."),
// Operation: to.Ptr("Delete backup policy resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Backup Policy resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/vaults/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a vault resource."),
// Operation: to.Ptr("Read vault resource."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Vault resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/accountBackups/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads an account backup resource."),
// Operation: to.Ptr("Read an account backup resource."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Account backup resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/accountBackups/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Writes an account backup resource."),
// Operation: to.Ptr("Write an account backup resource."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Account backup resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/accountBackups/delete"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Deletes an account backup resource."),
// Operation: to.Ptr("Delete an account backup resource."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Account backup resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/volumeGroups/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a volume group resource."),
// Operation: to.Ptr("Read volume group resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volume Group resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/volumeGroups/write"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Writes a volume group resource."),
// Operation: to.Ptr("Write volume group resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volume Group resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/netAppAccounts/volumeGroups/delete"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Deletes a volume group resource."),
// Operation: to.Ptr("Delete volume group resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volume Group resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/locations/quotaLimits/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a Quotalimit resource type."),
// Operation: to.Ptr("Read QuotaLimit resource type"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("QuotaLimit resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/Operations/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads an operation resources."),
// Operation: to.Ptr("Read operation resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Operations resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/locations/operationresults/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads an operation result resource."),
// Operation: to.Ptr("Read operation result resource"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Operation results resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/locations/read"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Reads a location wide operation."),
// Operation: to.Ptr("Read location wide operation"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Location wide operation"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/locations/checknameavailability/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Check if resource name is available"),
// Operation: to.Ptr("Check if resource name is available"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("NetApp resources"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/locations/checkfilepathavailability/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Check if file path is available"),
// Operation: to.Ptr("Check if file path is available"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Volumes resource type"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/unregister/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Unregisters Subscription with Microsoft.NetApp resource provider"),
// Operation: to.Ptr("Unregister Subscription for Azure NetApp Files"),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("Subscription"),
// },
// Origin: to.Ptr("user,system"),
// },
// {
// Name: to.Ptr("Microsoft.NetApp/locations/checkinventory/action"),
// Display: &armnetapp.OperationDisplay{
// Description: to.Ptr("Checks ReservedCapacity inventory."),
// Operation: to.Ptr("Checks ReservedCapacity inventory."),
// Provider: to.Ptr("Microsoft.NetApp Resource Provider"),
// Resource: to.Ptr("ReservedCapacity reservation resource."),
// },
// Origin: to.Ptr("user,system"),
// }},
// }
}
type OperationsClientListOptions ¶
type OperationsClientListOptions struct {
}
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
// 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.
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type PeerClusterForVolumeMigrationRequest ¶
type PeerClusterForVolumeMigrationRequest struct {
// REQUIRED; A list of IC-LIF IPs that can be used to connect to the On-prem cluster
PeerIPAddresses []*string
}
PeerClusterForVolumeMigrationRequest - Source Cluster properties for a cluster peer request
func (PeerClusterForVolumeMigrationRequest) MarshalJSON ¶
func (p PeerClusterForVolumeMigrationRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PeerClusterForVolumeMigrationRequest.
func (*PeerClusterForVolumeMigrationRequest) UnmarshalJSON ¶
func (p *PeerClusterForVolumeMigrationRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PeerClusterForVolumeMigrationRequest.
type PlacementKeyValuePairs ¶
type PlacementKeyValuePairs struct {
// REQUIRED; Key for an application specific parameter for the placement of volumes in the volume group
Key *string
// REQUIRED; Value for an application specific parameter for the placement of volumes in the volume group
Value *string
}
PlacementKeyValuePairs - Application specific parameters for the placement of volumes in the volume group
func (PlacementKeyValuePairs) MarshalJSON ¶
func (p PlacementKeyValuePairs) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PlacementKeyValuePairs.
func (*PlacementKeyValuePairs) UnmarshalJSON ¶
func (p *PlacementKeyValuePairs) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PlacementKeyValuePairs.
type PoolChangeRequest ¶
type PoolChangeRequest struct {
// REQUIRED; Resource id of the pool to move volume to
NewPoolResourceID *string
}
PoolChangeRequest - Pool change request
func (PoolChangeRequest) MarshalJSON ¶
func (p PoolChangeRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PoolChangeRequest.
func (*PoolChangeRequest) UnmarshalJSON ¶
func (p *PoolChangeRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PoolChangeRequest.
type PoolPatchProperties ¶
type PoolPatchProperties struct {
// If enabled (true) the pool can contain cool Access enabled volumes.
CoolAccess *bool
// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType
// pool with Flexible service level
CustomThroughputMibps *float32
// The qos type of the pool
QosType *QosType
// Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776).
Size *int64
}
PoolPatchProperties - Patchable pool properties
func (PoolPatchProperties) MarshalJSON ¶
func (p PoolPatchProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PoolPatchProperties.
func (*PoolPatchProperties) UnmarshalJSON ¶
func (p *PoolPatchProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PoolPatchProperties.
type PoolProperties ¶
type PoolProperties struct {
// REQUIRED; The service level of the file system
ServiceLevel *ServiceLevel
// REQUIRED; Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776).
Size *int64
// If enabled (true) the pool can contain cool Access enabled volumes.
CoolAccess *bool
// Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType
// pool with Flexible service level
CustomThroughputMibps *float32
// Encryption type of the capacity pool, set encryption type for data at rest for this pool and all volumes in it. This value
// can only be set when creating new pool.
EncryptionType *EncryptionType
// The qos type of the pool
QosType *QosType
// READ-ONLY; UUID v4 used to identify the Pool
PoolID *string
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
// READ-ONLY; Total throughput of pool in MiB/s
TotalThroughputMibps *float32
// READ-ONLY; Utilized throughput of pool in MiB/s
UtilizedThroughputMibps *float32
}
PoolProperties - Pool properties
func (PoolProperties) MarshalJSON ¶
func (p PoolProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PoolProperties.
func (*PoolProperties) UnmarshalJSON ¶
func (p *PoolProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PoolProperties.
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 - The ID of the target subscription. The value must be an UUID.
- 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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- body - Capacity pool object supplied in the body of the operation.
- options - PoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the PoolsClient.BeginCreateOrUpdate method.
Example (PoolsCreateOrUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPoolsClient().BeginCreateOrUpdate(ctx, "myRG", "account1", "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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CapacityPool = armnetapp.CapacityPool{
// Name: to.Ptr("account1/pool1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.PoolProperties{
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// ProvisioningState: to.Ptr("Succeeded"),
// QosType: to.Ptr(armnetapp.QosTypeAuto),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium),
// Size: to.Ptr[int64](4398046511104),
// TotalThroughputMibps: to.Ptr[float32](281.474),
// },
// }
Example (PoolsCreateOrUpdateCustomThroughput) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate_CustomThroughput.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPoolsClient().BeginCreateOrUpdate(ctx, "myRG", "account1", "customPool1", armnetapp.CapacityPool{
Location: to.Ptr("eastus"),
Properties: &armnetapp.PoolProperties{
CustomThroughputMibps: to.Ptr[float32](128),
QosType: to.Ptr(armnetapp.QosTypeManual),
ServiceLevel: to.Ptr(armnetapp.ServiceLevelFlexible),
Size: to.Ptr[int64](4398046511104),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CapacityPool = armnetapp.CapacityPool{
// Name: to.Ptr("account1/customPool1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/customPool1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.PoolProperties{
// CustomThroughputMibps: to.Ptr[float32](128),
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// ProvisioningState: to.Ptr("Succeeded"),
// QosType: to.Ptr(armnetapp.QosTypeManual),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelFlexible),
// Size: to.Ptr[int64](4398046511104),
// TotalThroughputMibps: to.Ptr[float32](128),
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- options - PoolsClientBeginDeleteOptions contains the optional parameters for the PoolsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPoolsClient().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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- body - Capacity pool object supplied in the body of the operation.
- options - PoolsClientBeginUpdateOptions contains the optional parameters for the PoolsClient.BeginUpdate method.
Example (PoolsUpdate) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPoolsClient().BeginUpdate(ctx, "myRG", "account1", "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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CapacityPool = armnetapp.CapacityPool{
// Name: to.Ptr("account1/pool1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.PoolProperties{
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// ProvisioningState: to.Ptr("Succeeded"),
// QosType: to.Ptr(armnetapp.QosTypeManual),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium),
// Size: to.Ptr[int64](4398046511104),
// TotalThroughputMibps: to.Ptr[float32](281.474),
// UtilizedThroughputMibps: to.Ptr[float32](100.47),
// },
// }
Example (PoolsUpdateCustomThroughput) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update_CustomThroughput.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPoolsClient().BeginUpdate(ctx, "myRG", "account1", "customPool1", armnetapp.CapacityPoolPatch{}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CapacityPool = armnetapp.CapacityPool{
// Name: to.Ptr("account1/customPool1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/customPool1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.PoolProperties{
// CustomThroughputMibps: to.Ptr[float32](128),
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// ProvisioningState: to.Ptr("Succeeded"),
// QosType: to.Ptr(armnetapp.QosTypeManual),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelFlexible),
// Size: to.Ptr[int64](4398046511104),
// TotalThroughputMibps: to.Ptr[float32](128),
// UtilizedThroughputMibps: to.Ptr[float32](100.47),
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- options - PoolsClientGetOptions contains the optional parameters for the PoolsClient.Get method.
Example (PoolsGet) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPoolsClient().Get(ctx, "myRG", "account1", "pool1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CapacityPool = armnetapp.CapacityPool{
// Name: to.Ptr("account1/pool1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.PoolProperties{
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// ProvisioningState: to.Ptr("Succeeded"),
// QosType: to.Ptr(armnetapp.QosTypeManual),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium),
// Size: to.Ptr[int64](4398046511104),
// TotalThroughputMibps: to.Ptr[float32](281.474),
// UtilizedThroughputMibps: to.Ptr[float32](100.47),
// },
// }
Example (PoolsGetCustomThroughput) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get_CustomThroughput.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPoolsClient().Get(ctx, "myRG", "account1", "customPool1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CapacityPool = armnetapp.CapacityPool{
// Name: to.Ptr("account1/customPool1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/customPool1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.PoolProperties{
// CustomThroughputMibps: to.Ptr[float32](128),
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// ProvisioningState: to.Ptr("Succeeded"),
// QosType: to.Ptr(armnetapp.QosTypeManual),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelFlexible),
// Size: to.Ptr[int64](4398046511104),
// TotalThroughputMibps: to.Ptr[float32](128),
// UtilizedThroughputMibps: to.Ptr[float32](100.47),
// },
// }
func (*PoolsClient) NewListPager ¶
func (client *PoolsClient) NewListPager(resourceGroupName string, accountName string, options *PoolsClientListOptions) *runtime.Pager[PoolsClientListResponse]
NewListPager - List all capacity pools in the NetApp Account
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - PoolsClientListOptions contains the optional parameters for the PoolsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPoolsClient().NewListPager("myRG", "account1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.CapacityPoolList = armnetapp.CapacityPoolList{
// Value: []*armnetapp.CapacityPool{
// {
// Name: to.Ptr("account1/pool1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.PoolProperties{
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// ProvisioningState: to.Ptr("Succeeded"),
// QosType: to.Ptr(armnetapp.QosTypeAuto),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium),
// Size: to.Ptr[int64](4398046511104),
// TotalThroughputMibps: to.Ptr[float32](281.474),
// UtilizedThroughputMibps: to.Ptr[float32](100.47),
// },
// },
// {
// Name: to.Ptr("account1/customPool1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/customPool1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.PoolProperties{
// CustomThroughputMibps: to.Ptr[float32](128),
// PoolID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// ProvisioningState: to.Ptr("Succeeded"),
// QosType: to.Ptr(armnetapp.QosTypeManual),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelFlexible),
// Size: to.Ptr[int64](4398046511104),
// TotalThroughputMibps: to.Ptr[float32](128),
// UtilizedThroughputMibps: to.Ptr[float32](100.47),
// },
// }},
// }
}
type PoolsClientBeginCreateOrUpdateOptions ¶
type PoolsClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the PoolsClient.BeginCreateOrUpdate method.
type PoolsClientBeginDeleteOptions ¶
type PoolsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PoolsClientBeginDeleteOptions contains the optional parameters for the PoolsClient.BeginDelete method.
type PoolsClientBeginUpdateOptions ¶
type PoolsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
PoolsClientBeginUpdateOptions contains the optional parameters for the PoolsClient.BeginUpdate method.
type PoolsClientCreateOrUpdateResponse ¶
type PoolsClientCreateOrUpdateResponse struct {
// Capacity pool resource
CapacityPool
}
PoolsClientCreateOrUpdateResponse contains the response from method PoolsClient.BeginCreateOrUpdate.
type PoolsClientDeleteResponse ¶
type PoolsClientDeleteResponse struct {
}
PoolsClientDeleteResponse contains the response from method PoolsClient.BeginDelete.
type PoolsClientGetOptions ¶
type PoolsClientGetOptions struct {
}
PoolsClientGetOptions contains the optional parameters for the PoolsClient.Get method.
type PoolsClientGetResponse ¶
type PoolsClientGetResponse struct {
// Capacity pool resource
CapacityPool
}
PoolsClientGetResponse contains the response from method PoolsClient.Get.
type PoolsClientListOptions ¶
type PoolsClientListOptions struct {
}
PoolsClientListOptions contains the optional parameters for the PoolsClient.NewListPager method.
type PoolsClientListResponse ¶
type PoolsClientListResponse struct {
// List of capacity pool resources
CapacityPoolList
}
PoolsClientListResponse contains the response from method PoolsClient.NewListPager.
type PoolsClientUpdateResponse ¶
type PoolsClientUpdateResponse struct {
// Capacity pool resource
CapacityPool
}
PoolsClientUpdateResponse contains the response from method PoolsClient.BeginUpdate.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Gets the status of the VolumeQuotaRule at the time the operation was called.
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateMoving ProvisioningState = "Moving" ProvisioningStatePatching ProvisioningState = "Patching" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
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 QueryNetworkSiblingSetRequest ¶
type QueryNetworkSiblingSetRequest struct {
// REQUIRED; Network Sibling Set ID for a group of volumes sharing networking resources in a subnet.
NetworkSiblingSetID *string
// REQUIRED; The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example
// /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}
SubnetID *string
}
QueryNetworkSiblingSetRequest - Network sibling set query.
func (QueryNetworkSiblingSetRequest) MarshalJSON ¶
func (q QueryNetworkSiblingSetRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QueryNetworkSiblingSetRequest.
func (*QueryNetworkSiblingSetRequest) UnmarshalJSON ¶
func (q *QueryNetworkSiblingSetRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type QueryNetworkSiblingSetRequest.
type QuotaAvailabilityRequest ¶
type QuotaAvailabilityRequest struct {
// REQUIRED; Name of the resource to verify.
Name *string
// REQUIRED; Resource group name.
ResourceGroup *string
// REQUIRED; Resource type used for verification.
Type *CheckQuotaNameResourceTypes
}
QuotaAvailabilityRequest - Quota availability request content.
func (QuotaAvailabilityRequest) MarshalJSON ¶
func (q QuotaAvailabilityRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QuotaAvailabilityRequest.
func (*QuotaAvailabilityRequest) UnmarshalJSON ¶
func (q *QuotaAvailabilityRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type QuotaAvailabilityRequest.
type QuotaReport ¶
type QuotaReport struct {
// Flag to indicate whether the quota is derived from default quota.
IsDerivedQuota *bool
// Percentage of used size compared to total size.
PercentageUsed *float32
// Specifies the total size limit in kibibytes for the user/group quota.
QuotaLimitTotalInKiBs *int64
// Specifies the current usage in kibibytes for the user/group quota.
QuotaLimitUsedInKiBs *int64
// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command
// for the user or group and SID can be found by running
QuotaTarget *string
// Type of quota
QuotaType *Type
}
QuotaReport - Quota report record properties
func (QuotaReport) MarshalJSON ¶
func (q QuotaReport) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QuotaReport.
func (*QuotaReport) UnmarshalJSON ¶
func (q *QuotaReport) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type QuotaReport.
type ReestablishReplicationRequest ¶
type ReestablishReplicationRequest struct {
// Resource id of the source volume for the replication
SourceVolumeID *string
}
ReestablishReplicationRequest - Re-establish request object supplied in the body of the operation.
func (ReestablishReplicationRequest) MarshalJSON ¶
func (r ReestablishReplicationRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReestablishReplicationRequest.
func (*ReestablishReplicationRequest) UnmarshalJSON ¶
func (r *ReestablishReplicationRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReestablishReplicationRequest.
type RegionInfo ¶
type RegionInfo struct {
// Provides logical availability zone mappings for the subscription for a region.
AvailabilityZoneMappings []*RegionInfoAvailabilityZoneMappingsItem
// Provides storage to network proximity information in the region.
StorageToNetworkProximity *RegionStorageToNetworkProximity
}
RegionInfo - Provides region specific information.
func (RegionInfo) MarshalJSON ¶
func (r RegionInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegionInfo.
func (*RegionInfo) UnmarshalJSON ¶
func (r *RegionInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegionInfo.
type RegionInfoAvailabilityZoneMappingsItem ¶
type RegionInfoAvailabilityZoneMappingsItem struct {
// Logical availability zone.
AvailabilityZone *string
// Available availability zone
IsAvailable *bool
}
func (RegionInfoAvailabilityZoneMappingsItem) MarshalJSON ¶
func (r RegionInfoAvailabilityZoneMappingsItem) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegionInfoAvailabilityZoneMappingsItem.
func (*RegionInfoAvailabilityZoneMappingsItem) UnmarshalJSON ¶
func (r *RegionInfoAvailabilityZoneMappingsItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegionInfoAvailabilityZoneMappingsItem.
type RegionInfoResource ¶
type RegionInfoResource struct {
// regionInfo properties
Properties *RegionInfo
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
RegionInfoResource - Information regarding regionInfo Item.
func (RegionInfoResource) MarshalJSON ¶
func (r RegionInfoResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegionInfoResource.
func (*RegionInfoResource) UnmarshalJSON ¶
func (r *RegionInfoResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegionInfoResource.
type RegionInfosList ¶
type RegionInfosList struct {
// URL to get the next set of results.
NextLink *string
// A list of regionInfo resources
Value []*RegionInfoResource
}
RegionInfosList - List of regionInfo resources
func (RegionInfosList) MarshalJSON ¶
func (r RegionInfosList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RegionInfosList.
func (*RegionInfosList) UnmarshalJSON ¶
func (r *RegionInfosList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RegionInfosList.
type RegionStorageToNetworkProximity ¶
type RegionStorageToNetworkProximity string
RegionStorageToNetworkProximity - Provides storage to network proximity information in the region.
const ( // RegionStorageToNetworkProximityAcrossT2 - Standard AcrossT2 network connectivity. RegionStorageToNetworkProximityAcrossT2 RegionStorageToNetworkProximity = "AcrossT2" // RegionStorageToNetworkProximityDefault - Basic network connectivity. RegionStorageToNetworkProximityDefault RegionStorageToNetworkProximity = "Default" // RegionStorageToNetworkProximityT1 - Standard T1 network connectivity. RegionStorageToNetworkProximityT1 RegionStorageToNetworkProximity = "T1" // RegionStorageToNetworkProximityT1AndAcrossT2 - Standard T1 and AcrossT2 network connectivity. RegionStorageToNetworkProximityT1AndAcrossT2 RegionStorageToNetworkProximity = "T1AndAcrossT2" // RegionStorageToNetworkProximityT1AndT2 - Standard T1 and T2 network connectivity. RegionStorageToNetworkProximityT1AndT2 RegionStorageToNetworkProximity = "T1AndT2" // RegionStorageToNetworkProximityT1AndT2AndAcrossT2 - Standard T1, T2 and AcrossT2 network connectivity. RegionStorageToNetworkProximityT1AndT2AndAcrossT2 RegionStorageToNetworkProximity = "T1AndT2AndAcrossT2" // RegionStorageToNetworkProximityT2 - Standard T2 network connectivity. RegionStorageToNetworkProximityT2 RegionStorageToNetworkProximity = "T2" // RegionStorageToNetworkProximityT2AndAcrossT2 - Standard T2 and AcrossT2 network connectivity. RegionStorageToNetworkProximityT2AndAcrossT2 RegionStorageToNetworkProximity = "T2AndAcrossT2" )
func PossibleRegionStorageToNetworkProximityValues ¶
func PossibleRegionStorageToNetworkProximityValues() []RegionStorageToNetworkProximity
PossibleRegionStorageToNetworkProximityValues returns the possible values for the RegionStorageToNetworkProximity const type.
type RelationshipStatus ¶
type RelationshipStatus string
RelationshipStatus - Status of the mirror relationship
const ( RelationshipStatusFailed RelationshipStatus = "Failed" RelationshipStatusIdle RelationshipStatus = "Idle" RelationshipStatusTransferring RelationshipStatus = "Transferring" RelationshipStatusUnknown RelationshipStatus = "Unknown" )
func PossibleRelationshipStatusValues ¶
func PossibleRelationshipStatusValues() []RelationshipStatus
PossibleRelationshipStatusValues returns the possible values for the RelationshipStatus const type.
type RelocateVolumeRequest ¶
type RelocateVolumeRequest struct {
// New creation token for the volume that controls the mount point name
CreationToken *string
}
RelocateVolumeRequest - Relocate volume request
func (RelocateVolumeRequest) MarshalJSON ¶
func (r RelocateVolumeRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RelocateVolumeRequest.
func (*RelocateVolumeRequest) UnmarshalJSON ¶
func (r *RelocateVolumeRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RelocateVolumeRequest.
type RemotePath ¶
type RemotePath struct {
// REQUIRED; The Path to a ONTAP Host
ExternalHostName *string
// REQUIRED; The name of a server on the ONTAP Host
ServerName *string
// REQUIRED; The name of a volume on the server
VolumeName *string
}
RemotePath - The full path to a volume that is to be migrated into ANF. Required for Migration volumes
func (RemotePath) MarshalJSON ¶
func (r RemotePath) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RemotePath.
func (*RemotePath) UnmarshalJSON ¶
func (r *RemotePath) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RemotePath.
type Replication ¶
type Replication struct {
// REQUIRED; The resource ID of the remote volume.
RemoteVolumeResourceID *string
// Indicates whether the local volume is the source or destination for the Volume Replication
EndpointType *EndpointType
// The remote region for the other end of the Volume Replication.
RemoteVolumeRegion *string
// Schedule
ReplicationSchedule *ReplicationSchedule
// READ-ONLY; UUID v4 used to identify the replication.
ReplicationID *string
}
Replication properties
func (Replication) MarshalJSON ¶
func (r Replication) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Replication.
func (*Replication) UnmarshalJSON ¶
func (r *Replication) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Replication.
type ReplicationObject ¶
type ReplicationObject struct {
// Indicates whether the local volume is the source or destination for the Volume Replication
EndpointType *EndpointType
// The full path to a volume that is to be migrated into ANF. Required for Migration volumes
RemotePath *RemotePath
// The remote region for the other end of the Volume Replication.
RemoteVolumeRegion *string
// The resource ID of the remote volume. Required for cross region and cross zone replication
RemoteVolumeResourceID *string
// Schedule
ReplicationSchedule *ReplicationSchedule
// READ-ONLY; A list of destination replications
DestinationReplications []*DestinationReplication
// READ-ONLY; Id
ReplicationID *string
}
ReplicationObject - Replication properties
func (ReplicationObject) MarshalJSON ¶
func (r ReplicationObject) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicationObject.
func (*ReplicationObject) UnmarshalJSON ¶
func (r *ReplicationObject) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationObject.
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
// Replication health check
Healthy *bool
// The status of the replication
MirrorState *MirrorState
// Status of the mirror relationship
RelationshipStatus *RelationshipStatus
// The progress of the replication
TotalProgress *string
}
ReplicationStatus - Replication status
func (ReplicationStatus) MarshalJSON ¶
func (r ReplicationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicationStatus.
func (*ReplicationStatus) UnmarshalJSON ¶
func (r *ReplicationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationStatus.
type ReplicationType ¶
type ReplicationType string
ReplicationType - Indicates whether the replication is cross zone or cross region.
const ( // ReplicationTypeCrossRegionReplication - Cross region replication ReplicationTypeCrossRegionReplication ReplicationType = "CrossRegionReplication" // ReplicationTypeCrossZoneReplication - Cross zone replication ReplicationTypeCrossZoneReplication ReplicationType = "CrossZoneReplication" )
func PossibleReplicationTypeValues ¶
func PossibleReplicationTypeValues() []ReplicationType
PossibleReplicationTypeValues returns the possible values for the ReplicationType const type.
type ResourceClient ¶
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 ¶
func NewResourceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceClient, error)
NewResourceClient creates a new instance of ResourceClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ResourceClient) BeginUpdateNetworkSiblingSet ¶
func (client *ResourceClient) BeginUpdateNetworkSiblingSet(ctx context.Context, location string, body UpdateNetworkSiblingSetRequest, options *ResourceClientBeginUpdateNetworkSiblingSetOptions) (*runtime.Poller[ResourceClientUpdateNetworkSiblingSetResponse], error)
BeginUpdateNetworkSiblingSet - Update the network features of the specified network sibling set. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- location - The name of the Azure region.
- body - Update for the specified network sibling set.
- options - ResourceClientBeginUpdateNetworkSiblingSetOptions contains the optional parameters for the ResourceClient.BeginUpdateNetworkSiblingSet method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewResourceClient().BeginUpdateNetworkSiblingSet(ctx, "eastus", armnetapp.UpdateNetworkSiblingSetRequest{
NetworkFeatures: to.Ptr(armnetapp.NetworkFeaturesStandard),
NetworkSiblingSetID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca3333"),
NetworkSiblingSetStateID: to.Ptr("12345_44420.8001578125"),
SubnetID: to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.NetworkSiblingSet = armnetapp.NetworkSiblingSet{
// NetworkFeatures: to.Ptr(armnetapp.NetworkFeaturesStandard),
// NetworkSiblingSetID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca3333"),
// NetworkSiblingSetStateID: to.Ptr("12345_44420.8001578125"),
// NicInfoList: []*armnetapp.NicInfo{
// {
// IPAddress: to.Ptr("1.2.3.4"),
// VolumeResourceIDs: []*string{
// to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume10"),
// to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume11")},
// },
// {
// IPAddress: to.Ptr("1.2.3.5"),
// VolumeResourceIDs: []*string{
// to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account2/capacityPools/pool2/volumes/volume20"),
// to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account2/capacityPools/pool2/volumes/volume21")},
// },
// {
// IPAddress: to.Ptr("1.2.3.9"),
// VolumeResourceIDs: []*string{
// },
// }},
// ProvisioningState: to.Ptr(armnetapp.NetworkSiblingSetProvisioningStateSucceeded),
// SubnetID: to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"),
// }
func (*ResourceClient) CheckFilePathAvailability ¶
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 2024-07-01-preview
- location - The name of the Azure region.
- body - File path availability request.
- options - ResourceClientCheckFilePathAvailabilityOptions contains the optional parameters for the ResourceClient.CheckFilePathAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckFilePathAvailability.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewResourceClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CheckAvailabilityResponse = armnetapp.CheckAvailabilityResponse{
// IsAvailable: to.Ptr(true),
// }
func (*ResourceClient) CheckNameAvailability ¶
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 2024-07-01-preview
- location - The name of the Azure region.
- body - Name availability request.
- options - ResourceClientCheckNameAvailabilityOptions contains the optional parameters for the ResourceClient.CheckNameAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckNameAvailability.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewResourceClient().CheckNameAvailability(ctx, "eastus", armnetapp.ResourceNameAvailabilityRequest{
Name: to.Ptr("accName"),
Type: to.Ptr(armnetapp.CheckNameResourceTypesMicrosoftNetAppNetAppAccounts),
ResourceGroup: to.Ptr("myRG"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CheckAvailabilityResponse = armnetapp.CheckAvailabilityResponse{
// IsAvailable: to.Ptr(true),
// }
func (*ResourceClient) CheckQuotaAvailability ¶
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 2024-07-01-preview
- location - The name of the Azure region.
- body - Quota availability request.
- options - ResourceClientCheckQuotaAvailabilityOptions contains the optional parameters for the ResourceClient.CheckQuotaAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckQuotaAvailability.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewResourceClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.CheckAvailabilityResponse = armnetapp.CheckAvailabilityResponse{
// IsAvailable: to.Ptr(true),
// }
func (*ResourceClient) QueryNetworkSiblingSet ¶
func (client *ResourceClient) QueryNetworkSiblingSet(ctx context.Context, location string, body QueryNetworkSiblingSetRequest, options *ResourceClientQueryNetworkSiblingSetOptions) (ResourceClientQueryNetworkSiblingSetResponse, error)
QueryNetworkSiblingSet - Get details of the specified network sibling set. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- location - The name of the Azure region.
- body - Network sibling set to query.
- options - ResourceClientQueryNetworkSiblingSetOptions contains the optional parameters for the ResourceClient.QueryNetworkSiblingSet method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Query.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewResourceClient().QueryNetworkSiblingSet(ctx, "eastus", armnetapp.QueryNetworkSiblingSetRequest{
NetworkSiblingSetID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca3333"),
SubnetID: to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.NetworkSiblingSet = armnetapp.NetworkSiblingSet{
// NetworkFeatures: to.Ptr(armnetapp.NetworkFeaturesStandard),
// NetworkSiblingSetID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca3333"),
// NetworkSiblingSetStateID: to.Ptr("12345_44420.8001578125"),
// NicInfoList: []*armnetapp.NicInfo{
// {
// IPAddress: to.Ptr("1.2.3.4"),
// VolumeResourceIDs: []*string{
// to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume10"),
// to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume11")},
// },
// {
// IPAddress: to.Ptr("1.2.3.5"),
// VolumeResourceIDs: []*string{
// to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account2/capacityPools/pool2/volumes/volume20"),
// to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account2/capacityPools/pool2/volumes/volume21")},
// },
// {
// IPAddress: to.Ptr("1.2.3.9"),
// VolumeResourceIDs: []*string{
// },
// }},
// ProvisioningState: to.Ptr(armnetapp.NetworkSiblingSetProvisioningStateSucceeded),
// SubnetID: to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"),
// }
func (*ResourceClient) QueryRegionInfo ¶
func (client *ResourceClient) QueryRegionInfo(ctx context.Context, location string, options *ResourceClientQueryRegionInfoOptions) (ResourceClientQueryRegionInfoResponse, error)
QueryRegionInfo - Provides storage to network proximity and logical zone mapping information. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- location - The name of the Azure region.
- options - ResourceClientQueryRegionInfoOptions contains the optional parameters for the ResourceClient.QueryRegionInfo method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfo.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewResourceClient().QueryRegionInfo(ctx, "eastus", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.RegionInfo = armnetapp.RegionInfo{
// AvailabilityZoneMappings: []*armnetapp.RegionInfoAvailabilityZoneMappingsItem{
// {
// AvailabilityZone: to.Ptr("1"),
// IsAvailable: to.Ptr(true),
// }},
// StorageToNetworkProximity: to.Ptr(armnetapp.RegionStorageToNetworkProximityT2),
// }
type ResourceClientBeginUpdateNetworkSiblingSetOptions ¶
type ResourceClientBeginUpdateNetworkSiblingSetOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
ResourceClientBeginUpdateNetworkSiblingSetOptions contains the optional parameters for the ResourceClient.BeginUpdateNetworkSiblingSet method.
type ResourceClientCheckFilePathAvailabilityOptions ¶
type ResourceClientCheckFilePathAvailabilityOptions struct {
}
ResourceClientCheckFilePathAvailabilityOptions contains the optional parameters for the ResourceClient.CheckFilePathAvailability method.
type ResourceClientCheckFilePathAvailabilityResponse ¶
type ResourceClientCheckFilePathAvailabilityResponse struct {
// Information regarding availability of a resource.
CheckAvailabilityResponse
}
ResourceClientCheckFilePathAvailabilityResponse contains the response from method ResourceClient.CheckFilePathAvailability.
type ResourceClientCheckNameAvailabilityOptions ¶
type ResourceClientCheckNameAvailabilityOptions struct {
}
ResourceClientCheckNameAvailabilityOptions contains the optional parameters for the ResourceClient.CheckNameAvailability method.
type ResourceClientCheckNameAvailabilityResponse ¶
type ResourceClientCheckNameAvailabilityResponse struct {
// Information regarding availability of a resource.
CheckAvailabilityResponse
}
ResourceClientCheckNameAvailabilityResponse contains the response from method ResourceClient.CheckNameAvailability.
type ResourceClientCheckQuotaAvailabilityOptions ¶
type ResourceClientCheckQuotaAvailabilityOptions struct {
}
ResourceClientCheckQuotaAvailabilityOptions contains the optional parameters for the ResourceClient.CheckQuotaAvailability method.
type ResourceClientCheckQuotaAvailabilityResponse ¶
type ResourceClientCheckQuotaAvailabilityResponse struct {
// Information regarding availability of a resource.
CheckAvailabilityResponse
}
ResourceClientCheckQuotaAvailabilityResponse contains the response from method ResourceClient.CheckQuotaAvailability.
type ResourceClientQueryNetworkSiblingSetOptions ¶
type ResourceClientQueryNetworkSiblingSetOptions struct {
}
ResourceClientQueryNetworkSiblingSetOptions contains the optional parameters for the ResourceClient.QueryNetworkSiblingSet method.
type ResourceClientQueryNetworkSiblingSetResponse ¶
type ResourceClientQueryNetworkSiblingSetResponse struct {
// Describes the contents of a network sibling set.
NetworkSiblingSet
}
ResourceClientQueryNetworkSiblingSetResponse contains the response from method ResourceClient.QueryNetworkSiblingSet.
type ResourceClientQueryRegionInfoOptions ¶
type ResourceClientQueryRegionInfoOptions struct {
}
ResourceClientQueryRegionInfoOptions contains the optional parameters for the ResourceClient.QueryRegionInfo method.
type ResourceClientQueryRegionInfoResponse ¶
type ResourceClientQueryRegionInfoResponse struct {
// Provides region specific information.
RegionInfo
}
ResourceClientQueryRegionInfoResponse contains the response from method ResourceClient.QueryRegionInfo.
type ResourceClientUpdateNetworkSiblingSetResponse ¶
type ResourceClientUpdateNetworkSiblingSetResponse struct {
// Describes the contents of a network sibling set.
NetworkSiblingSet
}
ResourceClientUpdateNetworkSiblingSetResponse contains the response from method ResourceClient.BeginUpdateNetworkSiblingSet.
type ResourceNameAvailabilityRequest ¶
type ResourceNameAvailabilityRequest struct {
// REQUIRED; Resource name to verify.
Name *string
// REQUIRED; Resource group name.
ResourceGroup *string
// REQUIRED; Resource type used for verification.
Type *CheckNameResourceTypes
}
ResourceNameAvailabilityRequest - Resource name availability request content.
func (ResourceNameAvailabilityRequest) MarshalJSON ¶
func (r ResourceNameAvailabilityRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceNameAvailabilityRequest.
func (*ResourceNameAvailabilityRequest) UnmarshalJSON ¶
func (r *ResourceNameAvailabilityRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceNameAvailabilityRequest.
type ResourceQuotaLimitsClient ¶
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 ¶
func NewResourceQuotaLimitsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceQuotaLimitsClient, error)
NewResourceQuotaLimitsClient creates a new instance of ResourceQuotaLimitsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ResourceQuotaLimitsClient) Get ¶
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 2024-07-01-preview
- location - The name of the Azure region.
- quotaLimitName - The name of the Quota Limit
- options - ResourceQuotaLimitsClientGetOptions contains the optional parameters for the ResourceQuotaLimitsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewResourceQuotaLimitsClient().Get(ctx, "eastus", "totalCoolAccessVolumesPerSubscription", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SubscriptionQuotaItem = armnetapp.SubscriptionQuotaItem{
// Name: to.Ptr("eastus/totalCoolAccessVolumesPerSubscription"),
// Type: to.Ptr("Microsoft.NetApp/locations/quotaLimits"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/quotaLimits/totalCoolAccessVolumesPerSubscription"),
// Properties: &armnetapp.SubscriptionQuotaItemProperties{
// Default: to.Ptr[int32](10),
// Current: to.Ptr[int32](10),
// },
// }
func (*ResourceQuotaLimitsClient) NewListPager ¶
func (client *ResourceQuotaLimitsClient) NewListPager(location string, options *ResourceQuotaLimitsClientListOptions) *runtime.Pager[ResourceQuotaLimitsClientListResponse]
NewListPager - Get the default and current limits for quotas
Generated from API version 2024-07-01-preview
- location - The name of the Azure region.
- options - ResourceQuotaLimitsClientListOptions contains the optional parameters for the ResourceQuotaLimitsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewResourceQuotaLimitsClient().NewListPager("eastus", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.SubscriptionQuotaItemList = armnetapp.SubscriptionQuotaItemList{
// Value: []*armnetapp.SubscriptionQuotaItem{
// {
// Name: to.Ptr("eastus/accountsPerSubscription"),
// Type: to.Ptr("Microsoft.NetApp/locations/quotaLimits"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/quotaLimits/accountsPerSubscription"),
// Properties: &armnetapp.SubscriptionQuotaItemProperties{
// Default: to.Ptr[int32](10),
// Current: to.Ptr[int32](10),
// },
// },
// {
// Name: to.Ptr("eastus/poolsPerAccount"),
// Type: to.Ptr("Microsoft.NetApp/locations/quotaLimits"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/quotaLimits/poolsPerAccount"),
// Properties: &armnetapp.SubscriptionQuotaItemProperties{
// Default: to.Ptr[int32](25),
// Current: to.Ptr[int32](25),
// },
// },
// {
// Name: to.Ptr("eastus/volumesPerPool"),
// Type: to.Ptr("Microsoft.NetApp/locations/quotaLimits"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/quotaLimits/volumesPerPool"),
// Properties: &armnetapp.SubscriptionQuotaItemProperties{
// Default: to.Ptr[int32](500),
// Current: to.Ptr[int32](500),
// },
// },
// {
// Name: to.Ptr("eastus/snapshotsPerVolume"),
// Type: to.Ptr("Microsoft.NetApp/locations/quotaLimits"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/quotaLimits/snapshotsPerVolume"),
// Properties: &armnetapp.SubscriptionQuotaItemProperties{
// Default: to.Ptr[int32](255),
// Current: to.Ptr[int32](255),
// },
// },
// {
// Name: to.Ptr("eastus/totalTiBsPerSubscription"),
// Type: to.Ptr("Microsoft.NetApp/locations/quotaLimits"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/quotaLimits/totalTiBsPerSubscription"),
// Properties: &armnetapp.SubscriptionQuotaItemProperties{
// Default: to.Ptr[int32](25),
// Current: to.Ptr[int32](1000),
// },
// },
// {
// Name: to.Ptr("eastus/totalDPVolumesPerSubscription"),
// Type: to.Ptr("Microsoft.NetApp/locations/quotaLimits"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/quotaLimits/totalDPVolumesPerSubscription"),
// Properties: &armnetapp.SubscriptionQuotaItemProperties{
// Default: to.Ptr[int32](10),
// Current: to.Ptr[int32](10),
// },
// },
// {
// Name: to.Ptr("eastus/totalVolumesPerSubscription"),
// Type: to.Ptr("Microsoft.NetApp/locations/quotaLimits"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/quotaLimits/totalVolumesPerSubscription"),
// Properties: &armnetapp.SubscriptionQuotaItemProperties{
// Default: to.Ptr[int32](500),
// Current: to.Ptr[int32](500),
// },
// },
// {
// Name: to.Ptr("eastus/totalCoolAccessVolumesPerSubscription"),
// Type: to.Ptr("Microsoft.NetApp/locations/quotaLimits"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/quotaLimits/totalCoolAccessVolumesPerSubscription"),
// Properties: &armnetapp.SubscriptionQuotaItemProperties{
// Default: to.Ptr[int32](10),
// Current: to.Ptr[int32](10),
// },
// }},
// }
}
type ResourceQuotaLimitsClientGetOptions ¶
type ResourceQuotaLimitsClientGetOptions struct {
}
ResourceQuotaLimitsClientGetOptions contains the optional parameters for the ResourceQuotaLimitsClient.Get method.
type ResourceQuotaLimitsClientGetResponse ¶
type ResourceQuotaLimitsClientGetResponse struct {
// Information regarding Subscription Quota Item.
SubscriptionQuotaItem
}
ResourceQuotaLimitsClientGetResponse contains the response from method ResourceQuotaLimitsClient.Get.
type ResourceQuotaLimitsClientListOptions ¶
type ResourceQuotaLimitsClientListOptions struct {
}
ResourceQuotaLimitsClientListOptions contains the optional parameters for the ResourceQuotaLimitsClient.NewListPager method.
type ResourceQuotaLimitsClientListResponse ¶
type ResourceQuotaLimitsClientListResponse struct {
// List of Subscription Quota Items
SubscriptionQuotaItemList
}
ResourceQuotaLimitsClientListResponse contains the response from method ResourceQuotaLimitsClient.NewListPager.
type ResourceRegionInfosClient ¶
type ResourceRegionInfosClient struct {
// contains filtered or unexported fields
}
ResourceRegionInfosClient contains the methods for the NetAppResourceRegionInfos group. Don't use this type directly, use NewResourceRegionInfosClient() instead.
func NewResourceRegionInfosClient ¶
func NewResourceRegionInfosClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceRegionInfosClient, error)
NewResourceRegionInfosClient creates a new instance of ResourceRegionInfosClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ResourceRegionInfosClient) Get ¶
func (client *ResourceRegionInfosClient) Get(ctx context.Context, location string, options *ResourceRegionInfosClientGetOptions) (ResourceRegionInfosClientGetResponse, error)
Get - Provides storage to network proximity and logical zone mapping information. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- location - The name of the Azure region.
- options - ResourceRegionInfosClientGetOptions contains the optional parameters for the ResourceRegionInfosClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewResourceRegionInfosClient().Get(ctx, "eastus", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.RegionInfoResource = armnetapp.RegionInfoResource{
// Name: to.Ptr("eastus/default"),
// Type: to.Ptr("Microsoft.NetApp/locations/regionInfos"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/regionInfos/default"),
// Properties: &armnetapp.RegionInfo{
// AvailabilityZoneMappings: []*armnetapp.RegionInfoAvailabilityZoneMappingsItem{
// {
// AvailabilityZone: to.Ptr("1"),
// IsAvailable: to.Ptr(true),
// },
// {
// AvailabilityZone: to.Ptr("2"),
// IsAvailable: to.Ptr(true),
// },
// {
// AvailabilityZone: to.Ptr("3"),
// IsAvailable: to.Ptr(true),
// }},
// StorageToNetworkProximity: to.Ptr(armnetapp.RegionStorageToNetworkProximityT2),
// },
// }
func (*ResourceRegionInfosClient) NewListPager ¶
func (client *ResourceRegionInfosClient) NewListPager(location string, options *ResourceRegionInfosClientListOptions) *runtime.Pager[ResourceRegionInfosClientListResponse]
NewListPager - Provides region specific information.
Generated from API version 2024-07-01-preview
- location - The name of the Azure region.
- options - ResourceRegionInfosClientListOptions contains the optional parameters for the ResourceRegionInfosClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewResourceRegionInfosClient().NewListPager("eastus", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.RegionInfosList = armnetapp.RegionInfosList{
// Value: []*armnetapp.RegionInfoResource{
// {
// Name: to.Ptr("eastus/default"),
// Type: to.Ptr("Microsoft.NetApp/locations/regionInfos"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/regionInfos/default"),
// Properties: &armnetapp.RegionInfo{
// AvailabilityZoneMappings: []*armnetapp.RegionInfoAvailabilityZoneMappingsItem{
// {
// AvailabilityZone: to.Ptr("1"),
// IsAvailable: to.Ptr(true),
// },
// {
// AvailabilityZone: to.Ptr("2"),
// IsAvailable: to.Ptr(true),
// },
// {
// AvailabilityZone: to.Ptr("3"),
// IsAvailable: to.Ptr(true),
// }},
// StorageToNetworkProximity: to.Ptr(armnetapp.RegionStorageToNetworkProximityT2),
// },
// }},
// }
}
type ResourceRegionInfosClientGetOptions ¶
type ResourceRegionInfosClientGetOptions struct {
}
ResourceRegionInfosClientGetOptions contains the optional parameters for the ResourceRegionInfosClient.Get method.
type ResourceRegionInfosClientGetResponse ¶
type ResourceRegionInfosClientGetResponse struct {
// Information regarding regionInfo Item.
RegionInfoResource
}
ResourceRegionInfosClientGetResponse contains the response from method ResourceRegionInfosClient.Get.
type ResourceRegionInfosClientListOptions ¶
type ResourceRegionInfosClientListOptions struct {
}
ResourceRegionInfosClientListOptions contains the optional parameters for the ResourceRegionInfosClient.NewListPager method.
type ResourceRegionInfosClientListResponse ¶
type ResourceRegionInfosClientListResponse struct {
// List of regionInfo resources
RegionInfosList
}
ResourceRegionInfosClientListResponse contains the response from method ResourceRegionInfosClient.NewListPager.
type RestoreStatus ¶
type RestoreStatus struct {
// READ-ONLY; Displays error message if the restore is in an error state
ErrorMessage *string
// READ-ONLY; Restore health status
Healthy *bool
// READ-ONLY; The status of the restore
MirrorState *MirrorState
// READ-ONLY; Status of the restore SnapMirror relationship
RelationshipStatus *RelationshipStatus
// READ-ONLY; Displays the total bytes transferred
TotalTransferBytes *int64
// READ-ONLY; Reason for the unhealthy restore relationship
UnhealthyReason *string
}
RestoreStatus - Restore status
func (RestoreStatus) MarshalJSON ¶
func (r RestoreStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RestoreStatus.
func (*RestoreStatus) UnmarshalJSON ¶
func (r *RestoreStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RestoreStatus.
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 ( // ServiceLevelFlexible - Flexible service level ServiceLevelFlexible ServiceLevel = "Flexible" // 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
// Metric specifications of operation.
MetricSpecifications []*MetricSpecification
}
ServiceSpecification - One property of operation, include metric specifications.
func (ServiceSpecification) MarshalJSON ¶
func (s ServiceSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceSpecification.
func (*ServiceSpecification) UnmarshalJSON ¶
func (s *ServiceSpecification) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSpecification.
type SmbAccessBasedEnumeration ¶
type SmbAccessBasedEnumeration string
SmbAccessBasedEnumeration - Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume
const ( // SmbAccessBasedEnumerationDisabled - smbAccessBasedEnumeration share setting is disabled SmbAccessBasedEnumerationDisabled SmbAccessBasedEnumeration = "Disabled" // SmbAccessBasedEnumerationEnabled - smbAccessBasedEnumeration share setting is enabled SmbAccessBasedEnumerationEnabled SmbAccessBasedEnumeration = "Enabled" )
func PossibleSmbAccessBasedEnumerationValues ¶
func PossibleSmbAccessBasedEnumerationValues() []SmbAccessBasedEnumeration
PossibleSmbAccessBasedEnumerationValues returns the possible values for the SmbAccessBasedEnumeration const type.
type SmbNonBrowsable ¶
type SmbNonBrowsable string
SmbNonBrowsable - Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume
const ( // SmbNonBrowsableDisabled - smbNonBrowsable share setting is disabled SmbNonBrowsableDisabled SmbNonBrowsable = "Disabled" // SmbNonBrowsableEnabled - smbNonBrowsable share setting is enabled SmbNonBrowsableEnabled SmbNonBrowsable = "Enabled" )
func PossibleSmbNonBrowsableValues ¶
func PossibleSmbNonBrowsableValues() []SmbNonBrowsable
PossibleSmbNonBrowsableValues returns the possible values for the SmbNonBrowsable const type.
type Snapshot ¶
type Snapshot struct {
// REQUIRED; Resource location
Location *string
// Snapshot Properties
Properties *SnapshotProperties
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
Snapshot of a Volume
func (Snapshot) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Snapshot.
func (*Snapshot) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Snapshot.
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 - The ID of the target subscription. The value must be an UUID.
- 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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- snapshotPolicyName - The name of the snapshot policy
- options - SnapshotPoliciesClientBeginDeleteOptions contains the optional parameters for the SnapshotPoliciesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSnapshotPoliciesClient().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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- snapshotPolicyName - The name of the snapshot policy
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSnapshotPoliciesClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SnapshotPolicy = armnetapp.SnapshotPolicy{
// Name: to.Ptr("account1/snapshotPolicy1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/snapshotPolicies"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotPolicy1"),
// 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),
// },
// ProvisioningState: to.Ptr("Succeeded"),
// WeeklySchedule: &armnetapp.WeeklySchedule{
// Day: to.Ptr("Wednesday"),
// Hour: to.Ptr[int32](14),
// Minute: to.Ptr[int32](45),
// SnapshotsToKeep: to.Ptr[int32](3),
// },
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- snapshotPolicyName - The name of the snapshot policy
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Create.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSnapshotPoliciesClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SnapshotPolicy = armnetapp.SnapshotPolicy{
// Name: to.Ptr("account1/snapshotPolicy1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/snapshotPolicies"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotPolicy1"),
// 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),
// },
// ProvisioningState: to.Ptr("Succeeded"),
// WeeklySchedule: &armnetapp.WeeklySchedule{
// Day: to.Ptr("Wednesday"),
// Hour: to.Ptr[int32](14),
// Minute: to.Ptr[int32](45),
// SnapshotsToKeep: to.Ptr[int32](3),
// },
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- snapshotPolicyName - The name of the snapshot policy
- options - SnapshotPoliciesClientGetOptions contains the optional parameters for the SnapshotPoliciesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSnapshotPoliciesClient().Get(ctx, "myRG", "account1", "snapshotPolicyName", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SnapshotPolicy = armnetapp.SnapshotPolicy{
// Name: to.Ptr("account1/snapshotPolicy1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/snapshotPolicies"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotPolicy1"),
// 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),
// },
// ProvisioningState: to.Ptr("Succeeded"),
// WeeklySchedule: &armnetapp.WeeklySchedule{
// Day: to.Ptr("Wednesday"),
// Hour: to.Ptr[int32](14),
// Minute: to.Ptr[int32](45),
// SnapshotsToKeep: to.Ptr[int32](3),
// },
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- snapshotPolicyName - The name of the snapshot policy
- options - SnapshotPoliciesClientListVolumesOptions contains the optional parameters for the SnapshotPoliciesClient.ListVolumes method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_ListVolumes.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSnapshotPoliciesClient().ListVolumes(ctx, "myRG", "account1", "snapshotPolicyName", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SnapshotPolicyVolumeList = armnetapp.SnapshotPolicyVolumeList{
// Value: []*armnetapp.Volume{
// {
// Name: to.Ptr("account1/pool1/volume1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("some-amazing-filepath"),
// FileSystemID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// ProvisioningState: to.Ptr("Succeeded"),
// 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),
// },
// }},
// }
func (*SnapshotPoliciesClient) NewListPager ¶
func (client *SnapshotPoliciesClient) NewListPager(resourceGroupName string, accountName string, options *SnapshotPoliciesClientListOptions) *runtime.Pager[SnapshotPoliciesClientListResponse]
NewListPager - List snapshot policy
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - SnapshotPoliciesClientListOptions contains the optional parameters for the SnapshotPoliciesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewSnapshotPoliciesClient().NewListPager("myRG", "account1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.SnapshotPoliciesList = armnetapp.SnapshotPoliciesList{
// Value: []*armnetapp.SnapshotPolicy{
// {
// Name: to.Ptr("account1/snapshotPolicy1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/snapshotPolicies"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotPolicy1"),
// 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),
// },
// ProvisioningState: to.Ptr("Succeeded"),
// WeeklySchedule: &armnetapp.WeeklySchedule{
// Day: to.Ptr("Wednesday"),
// Hour: to.Ptr[int32](14),
// Minute: to.Ptr[int32](45),
// SnapshotsToKeep: to.Ptr[int32](3),
// },
// },
// }},
// }
}
type SnapshotPoliciesClientBeginDeleteOptions ¶
type SnapshotPoliciesClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SnapshotPoliciesClientBeginDeleteOptions contains the optional parameters for the SnapshotPoliciesClient.BeginDelete method.
type SnapshotPoliciesClientBeginUpdateOptions ¶
type SnapshotPoliciesClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SnapshotPoliciesClientBeginUpdateOptions contains the optional parameters for the SnapshotPoliciesClient.BeginUpdate method.
type SnapshotPoliciesClientCreateOptions ¶
type SnapshotPoliciesClientCreateOptions struct {
}
SnapshotPoliciesClientCreateOptions contains the optional parameters for the SnapshotPoliciesClient.Create method.
type SnapshotPoliciesClientCreateResponse ¶
type SnapshotPoliciesClientCreateResponse struct {
// Snapshot policy information
SnapshotPolicy
}
SnapshotPoliciesClientCreateResponse contains the response from method SnapshotPoliciesClient.Create.
type SnapshotPoliciesClientDeleteResponse ¶
type SnapshotPoliciesClientDeleteResponse struct {
}
SnapshotPoliciesClientDeleteResponse contains the response from method SnapshotPoliciesClient.BeginDelete.
type SnapshotPoliciesClientGetOptions ¶
type SnapshotPoliciesClientGetOptions struct {
}
SnapshotPoliciesClientGetOptions contains the optional parameters for the SnapshotPoliciesClient.Get method.
type SnapshotPoliciesClientGetResponse ¶
type SnapshotPoliciesClientGetResponse struct {
// Snapshot policy information
SnapshotPolicy
}
SnapshotPoliciesClientGetResponse contains the response from method SnapshotPoliciesClient.Get.
type SnapshotPoliciesClientListOptions ¶
type SnapshotPoliciesClientListOptions struct {
}
SnapshotPoliciesClientListOptions contains the optional parameters for the SnapshotPoliciesClient.NewListPager method.
type SnapshotPoliciesClientListResponse ¶
type SnapshotPoliciesClientListResponse struct {
// List of Snapshot Policies
SnapshotPoliciesList
}
SnapshotPoliciesClientListResponse contains the response from method SnapshotPoliciesClient.NewListPager.
type SnapshotPoliciesClientListVolumesOptions ¶
type SnapshotPoliciesClientListVolumesOptions struct {
}
SnapshotPoliciesClientListVolumesOptions contains the optional parameters for the SnapshotPoliciesClient.ListVolumes method.
type SnapshotPoliciesClientListVolumesResponse ¶
type SnapshotPoliciesClientListVolumesResponse struct {
// Volumes associated with snapshot policy
SnapshotPolicyVolumeList
}
SnapshotPoliciesClientListVolumesResponse contains the response from method SnapshotPoliciesClient.ListVolumes.
type SnapshotPoliciesClientUpdateResponse ¶
type SnapshotPoliciesClientUpdateResponse struct {
// Snapshot policy information
SnapshotPolicy
}
SnapshotPoliciesClientUpdateResponse contains the response from method SnapshotPoliciesClient.BeginUpdate.
type SnapshotPoliciesList ¶
type SnapshotPoliciesList struct {
// A list of snapshot policies
Value []*SnapshotPolicy
}
SnapshotPoliciesList - List of Snapshot Policies
func (SnapshotPoliciesList) MarshalJSON ¶
func (s SnapshotPoliciesList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SnapshotPoliciesList.
func (*SnapshotPoliciesList) UnmarshalJSON ¶
func (s *SnapshotPoliciesList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotPoliciesList.
type SnapshotPolicy ¶
type SnapshotPolicy struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// REQUIRED; Snapshot policy Properties
Properties *SnapshotPolicyProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; A unique read-only string that changes whenever the resource is updated.
Etag *string
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
SnapshotPolicy - Snapshot policy information
func (SnapshotPolicy) MarshalJSON ¶
func (s SnapshotPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SnapshotPolicy.
func (*SnapshotPolicy) UnmarshalJSON ¶
func (s *SnapshotPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotPolicy.
type SnapshotPolicyPatch ¶
type SnapshotPolicyPatch struct {
// Resource location
Location *string
// Snapshot Policy properties
Properties *SnapshotPolicyProperties
// Resource tags
Tags map[string]*string
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource name
Name *string
// READ-ONLY; Resource type
Type *string
}
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.
func (*SnapshotPolicyPatch) UnmarshalJSON ¶
func (s *SnapshotPolicyPatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotPolicyPatch.
type SnapshotPolicyProperties ¶
type SnapshotPolicyProperties struct {
// Schedule for daily snapshots
DailySchedule *DailySchedule
// The property to decide policy is enabled or not
Enabled *bool
// Schedule for hourly snapshots
HourlySchedule *HourlySchedule
// Schedule for monthly snapshots
MonthlySchedule *MonthlySchedule
// Schedule for weekly snapshots
WeeklySchedule *WeeklySchedule
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
}
SnapshotPolicyProperties - Snapshot policy properties
func (SnapshotPolicyProperties) MarshalJSON ¶
func (s SnapshotPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SnapshotPolicyProperties.
func (*SnapshotPolicyProperties) UnmarshalJSON ¶
func (s *SnapshotPolicyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotPolicyProperties.
type SnapshotPolicyVolumeList ¶
type SnapshotPolicyVolumeList struct {
// List of volumes
Value []*Volume
}
SnapshotPolicyVolumeList - Volumes associated with snapshot policy
func (SnapshotPolicyVolumeList) MarshalJSON ¶
func (s SnapshotPolicyVolumeList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SnapshotPolicyVolumeList.
func (*SnapshotPolicyVolumeList) UnmarshalJSON ¶
func (s *SnapshotPolicyVolumeList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotPolicyVolumeList.
type SnapshotProperties ¶
type SnapshotProperties struct {
// READ-ONLY; The creation date of the snapshot
Created *time.Time
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
// READ-ONLY; UUID v4 used to identify the Snapshot
SnapshotID *string
}
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 ¶
type SnapshotRestoreFiles struct {
// REQUIRED; List of files to be restored
FilePaths []*string
// Destination folder where the files will be restored
DestinationPath *string
}
SnapshotRestoreFiles - Restore payload for Single File Snapshot Restore
func (SnapshotRestoreFiles) MarshalJSON ¶
func (s SnapshotRestoreFiles) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SnapshotRestoreFiles.
func (*SnapshotRestoreFiles) UnmarshalJSON ¶
func (s *SnapshotRestoreFiles) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller 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 - The ID of the target subscription. The value must be an UUID.
- 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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Create.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSnapshotsClient().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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSnapshotsClient().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)
}
func (*SnapshotsClient) BeginRestoreFiles ¶
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_SingleFileRestore.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSnapshotsClient().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)
}
func (*SnapshotsClient) BeginUpdate ¶
func (client *SnapshotsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, snapshotName string, body any, options *SnapshotsClientBeginUpdateOptions) (*runtime.Poller[SnapshotsClientUpdateResponse], error)
BeginUpdate - Patch a snapshot If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSnapshotsClient().BeginUpdate(ctx, "myRG", "account1", "pool1", "volume1", "snapshot1", map[string]any{}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Snapshot = armnetapp.Snapshot{
// Name: to.Ptr("account1/pool1/volume1/snapshot1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.SnapshotProperties{
// Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// ProvisioningState: to.Ptr("Succeeded"),
// SnapshotID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca3333"),
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSnapshotsClient().Get(ctx, "myRG", "account1", "pool1", "volume1", "snapshot1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Snapshot = armnetapp.Snapshot{
// Name: to.Ptr("account1/pool1/volume1/snapshot1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.SnapshotProperties{
// Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// ProvisioningState: to.Ptr("Succeeded"),
// SnapshotID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca3333"),
// },
// }
func (*SnapshotsClient) NewListPager ¶
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
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - SnapshotsClientListOptions contains the optional parameters for the SnapshotsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewSnapshotsClient().NewListPager("myRG", "account1", "pool1", "volume1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.SnapshotsList = armnetapp.SnapshotsList{
// Value: []*armnetapp.Snapshot{
// {
// Name: to.Ptr("account1/pool1/volume1/snapshot1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.SnapshotProperties{
// Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// ProvisioningState: to.Ptr("Succeeded"),
// SnapshotID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca3333"),
// },
// }},
// }
}
type SnapshotsClientBeginCreateOptions ¶
type SnapshotsClientBeginCreateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SnapshotsClientBeginCreateOptions contains the optional parameters for the SnapshotsClient.BeginCreate method.
type SnapshotsClientBeginDeleteOptions ¶
type SnapshotsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SnapshotsClientBeginDeleteOptions contains the optional parameters for the SnapshotsClient.BeginDelete method.
type SnapshotsClientBeginRestoreFilesOptions ¶
type SnapshotsClientBeginRestoreFilesOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SnapshotsClientBeginRestoreFilesOptions contains the optional parameters for the SnapshotsClient.BeginRestoreFiles method.
type SnapshotsClientBeginUpdateOptions ¶
type SnapshotsClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SnapshotsClientBeginUpdateOptions contains the optional parameters for the SnapshotsClient.BeginUpdate method.
type SnapshotsClientCreateResponse ¶
type SnapshotsClientCreateResponse struct {
// Snapshot of a Volume
Snapshot
}
SnapshotsClientCreateResponse contains the response from method SnapshotsClient.BeginCreate.
type SnapshotsClientDeleteResponse ¶
type SnapshotsClientDeleteResponse struct {
}
SnapshotsClientDeleteResponse contains the response from method SnapshotsClient.BeginDelete.
type SnapshotsClientGetOptions ¶
type SnapshotsClientGetOptions struct {
}
SnapshotsClientGetOptions contains the optional parameters for the SnapshotsClient.Get method.
type SnapshotsClientGetResponse ¶
type SnapshotsClientGetResponse struct {
// Snapshot of a Volume
Snapshot
}
SnapshotsClientGetResponse contains the response from method SnapshotsClient.Get.
type SnapshotsClientListOptions ¶
type SnapshotsClientListOptions struct {
}
SnapshotsClientListOptions contains the optional parameters for the SnapshotsClient.NewListPager method.
type SnapshotsClientListResponse ¶
type SnapshotsClientListResponse struct {
// List of Snapshots
SnapshotsList
}
SnapshotsClientListResponse contains the response from method SnapshotsClient.NewListPager.
type SnapshotsClientRestoreFilesResponse ¶
type SnapshotsClientRestoreFilesResponse struct {
}
SnapshotsClientRestoreFilesResponse contains the response from method SnapshotsClient.BeginRestoreFiles.
type SnapshotsClientUpdateResponse ¶
type SnapshotsClientUpdateResponse struct {
// Snapshot of a Volume
Snapshot
}
SnapshotsClientUpdateResponse contains the response from method SnapshotsClient.BeginUpdate.
type SnapshotsList ¶
type SnapshotsList struct {
// A list of Snapshots
Value []*Snapshot
}
SnapshotsList - List of Snapshots
func (SnapshotsList) MarshalJSON ¶
func (s SnapshotsList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SnapshotsList.
func (*SnapshotsList) UnmarshalJSON ¶
func (s *SnapshotsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SnapshotsList.
type SubscriptionQuotaItem ¶
type SubscriptionQuotaItem struct {
// SubscriptionQuotaItem properties
Properties *SubscriptionQuotaItemProperties
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
SubscriptionQuotaItem - Information regarding Subscription Quota Item.
func (SubscriptionQuotaItem) MarshalJSON ¶
func (s SubscriptionQuotaItem) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionQuotaItem.
func (*SubscriptionQuotaItem) UnmarshalJSON ¶
func (s *SubscriptionQuotaItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionQuotaItem.
type SubscriptionQuotaItemList ¶
type SubscriptionQuotaItemList struct {
// A list of SubscriptionQuotaItems
Value []*SubscriptionQuotaItem
}
SubscriptionQuotaItemList - List of Subscription Quota Items
func (SubscriptionQuotaItemList) MarshalJSON ¶
func (s SubscriptionQuotaItemList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionQuotaItemList.
func (*SubscriptionQuotaItemList) UnmarshalJSON ¶
func (s *SubscriptionQuotaItemList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionQuotaItemList.
type SubscriptionQuotaItemProperties ¶
type SubscriptionQuotaItemProperties struct {
// READ-ONLY; The current quota value.
Current *int32
// READ-ONLY; The default quota value.
Default *int32
}
SubscriptionQuotaItemProperties - SubscriptionQuotaItem Properties
func (SubscriptionQuotaItemProperties) MarshalJSON ¶
func (s SubscriptionQuotaItemProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionQuotaItemProperties.
func (*SubscriptionQuotaItemProperties) UnmarshalJSON ¶
func (s *SubscriptionQuotaItemProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionQuotaItemProperties.
type SubvolumeInfo ¶
type SubvolumeInfo struct {
// Subvolume Properties
Properties *SubvolumeProperties
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
SubvolumeInfo - Subvolume Information properties
func (SubvolumeInfo) MarshalJSON ¶
func (s SubvolumeInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubvolumeInfo.
func (*SubvolumeInfo) UnmarshalJSON ¶
func (s *SubvolumeInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubvolumeInfo.
type SubvolumeModel ¶
type SubvolumeModel struct {
// It represents the minimal properties of the subvolume.
Properties *SubvolumeModelProperties
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource name
Name *string
// READ-ONLY; Resource type
Type *string
}
SubvolumeModel - Result of the post subvolume and action is to get metadata of the subvolume.
func (SubvolumeModel) MarshalJSON ¶
func (s SubvolumeModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubvolumeModel.
func (*SubvolumeModel) UnmarshalJSON ¶
func (s *SubvolumeModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubvolumeModel.
type SubvolumeModelProperties ¶
type SubvolumeModelProperties struct {
// Most recent access time and date
AccessedTimeStamp *time.Time
// Bytes used
BytesUsed *int64
// Most recent change time and date
ChangedTimeStamp *time.Time
// Creation time and date
CreationTimeStamp *time.Time
// Most recent modification time and date
ModifiedTimeStamp *time.Time
// Path to the parent subvolume
ParentPath *string
// Path to the subvolume
Path *string
// Permissions of the subvolume
Permissions *string
// Azure lifecycle management
ProvisioningState *string
// Size of subvolume
Size *int64
}
SubvolumeModelProperties - Properties which represents actual subvolume model which is stored as a file in the system.
func (SubvolumeModelProperties) MarshalJSON ¶
func (s SubvolumeModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubvolumeModelProperties.
func (*SubvolumeModelProperties) UnmarshalJSON ¶
func (s *SubvolumeModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubvolumeModelProperties.
type SubvolumePatchParams ¶
type SubvolumePatchParams struct {
// path to the subvolume
Path *string
// Truncate subvolume to the provided size in bytes
Size *int64
}
SubvolumePatchParams - Parameters with which a subvolume can be updated
func (SubvolumePatchParams) MarshalJSON ¶
func (s SubvolumePatchParams) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubvolumePatchParams.
func (*SubvolumePatchParams) UnmarshalJSON ¶
func (s *SubvolumePatchParams) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubvolumePatchParams.
type SubvolumePatchRequest ¶
type SubvolumePatchRequest struct {
// Subvolume Properties
Properties *SubvolumePatchParams
}
SubvolumePatchRequest - Subvolume Patch Request properties
func (SubvolumePatchRequest) MarshalJSON ¶
func (s SubvolumePatchRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubvolumePatchRequest.
func (*SubvolumePatchRequest) UnmarshalJSON ¶
func (s *SubvolumePatchRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubvolumePatchRequest.
type SubvolumeProperties ¶
type SubvolumeProperties struct {
// parent path to the subvolume
ParentPath *string
// Path to the subvolume
Path *string
// Truncate subvolume to the provided size in bytes
Size *int64
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
}
SubvolumeProperties - This represents path associated with the subvolume
func (SubvolumeProperties) MarshalJSON ¶
func (s SubvolumeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubvolumeProperties.
func (*SubvolumeProperties) UnmarshalJSON ¶
func (s *SubvolumeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubvolumeProperties.
type SubvolumesClient ¶
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 ¶
func NewSubvolumesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SubvolumesClient, error)
NewSubvolumesClient creates a new instance of SubvolumesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SubvolumesClient) BeginCreate ¶
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Create.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSubvolumesClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SubvolumeInfo = armnetapp.SubvolumeInfo{
// Name: to.Ptr("account1/pool1/volume1/subvolume1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/subvolumes"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/subvolumes/subvolume1"),
// Properties: &armnetapp.SubvolumeProperties{
// Path: to.Ptr("/subvolumePath"),
// ProvisioningState: to.Ptr("Succeeded"),
// Size: to.Ptr[int64](0),
// },
// }
func (*SubvolumesClient) BeginDelete ¶
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSubvolumesClient().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)
}
func (*SubvolumesClient) BeginGetMetadata ¶
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Metadata.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSubvolumesClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SubvolumeModel = armnetapp.SubvolumeModel{
// Name: to.Ptr("account1/pool1/volume1/subvolume1/metadata"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/subvolumes/metadata"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/subvolumes/subvolume1/metadata"),
// Properties: &armnetapp.SubvolumeModelProperties{
// Path: to.Ptr("/pathToSubvol"),
// AccessedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// BytesUsed: to.Ptr[int64](5),
// ChangedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// CreationTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// ModifiedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-15T13:23:33.000Z"); return t}()),
// Permissions: to.Ptr("777"),
// Size: to.Ptr[int64](5),
// },
// }
func (*SubvolumesClient) BeginUpdate ¶
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSubvolumesClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SubvolumeInfo = armnetapp.SubvolumeInfo{
// Name: to.Ptr("account1/pool1/volume1/subvolume1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/subvolume1"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/subvolumes/subvolume1"),
// Properties: &armnetapp.SubvolumeProperties{
// Path: to.Ptr("/subvolumePath"),
// Size: to.Ptr[int64](0),
// },
// }
func (*SubvolumesClient) Get ¶
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSubvolumesClient().Get(ctx, "myRG", "account1", "pool1", "volume1", "subvolume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SubvolumeInfo = armnetapp.SubvolumeInfo{
// Name: to.Ptr("account1/pool1/volume1/subvolume1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/subvolumes"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/subvolumes/subvolume1"),
// Properties: &armnetapp.SubvolumeProperties{
// Path: to.Ptr("/pathToSubvol"),
// Size: to.Ptr[int64](0),
// },
// }
func (*SubvolumesClient) NewListByVolumePager ¶
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
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - SubvolumesClientListByVolumeOptions contains the optional parameters for the SubvolumesClient.NewListByVolumePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewSubvolumesClient().NewListByVolumePager("myRG", "account1", "pool1", "volume1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.SubvolumesList = armnetapp.SubvolumesList{
// Value: []*armnetapp.SubvolumeInfo{
// {
// Name: to.Ptr("account1/pool1/volume1/subvolume1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/subvolumes"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/subvolumes/subvolume1"),
// Properties: &armnetapp.SubvolumeProperties{
// Path: to.Ptr("/pathToSubvol"),
// Size: to.Ptr[int64](0),
// },
// }},
// }
}
type SubvolumesClientBeginCreateOptions ¶
type SubvolumesClientBeginCreateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SubvolumesClientBeginCreateOptions contains the optional parameters for the SubvolumesClient.BeginCreate method.
type SubvolumesClientBeginDeleteOptions ¶
type SubvolumesClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SubvolumesClientBeginDeleteOptions contains the optional parameters for the SubvolumesClient.BeginDelete method.
type SubvolumesClientBeginGetMetadataOptions ¶
type SubvolumesClientBeginGetMetadataOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SubvolumesClientBeginGetMetadataOptions contains the optional parameters for the SubvolumesClient.BeginGetMetadata method.
type SubvolumesClientBeginUpdateOptions ¶
type SubvolumesClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SubvolumesClientBeginUpdateOptions contains the optional parameters for the SubvolumesClient.BeginUpdate method.
type SubvolumesClientCreateResponse ¶
type SubvolumesClientCreateResponse struct {
// Subvolume Information properties
SubvolumeInfo
}
SubvolumesClientCreateResponse contains the response from method SubvolumesClient.BeginCreate.
type SubvolumesClientDeleteResponse ¶
type SubvolumesClientDeleteResponse struct {
}
SubvolumesClientDeleteResponse contains the response from method SubvolumesClient.BeginDelete.
type SubvolumesClientGetMetadataResponse ¶
type SubvolumesClientGetMetadataResponse struct {
// Result of the post subvolume and action is to get metadata of the subvolume.
SubvolumeModel
}
SubvolumesClientGetMetadataResponse contains the response from method SubvolumesClient.BeginGetMetadata.
type SubvolumesClientGetOptions ¶
type SubvolumesClientGetOptions struct {
}
SubvolumesClientGetOptions contains the optional parameters for the SubvolumesClient.Get method.
type SubvolumesClientGetResponse ¶
type SubvolumesClientGetResponse struct {
// Subvolume Information properties
SubvolumeInfo
}
SubvolumesClientGetResponse contains the response from method SubvolumesClient.Get.
type SubvolumesClientListByVolumeOptions ¶
type SubvolumesClientListByVolumeOptions struct {
}
SubvolumesClientListByVolumeOptions contains the optional parameters for the SubvolumesClient.NewListByVolumePager method.
type SubvolumesClientListByVolumeResponse ¶
type SubvolumesClientListByVolumeResponse struct {
// List of Subvolumes
SubvolumesList
}
SubvolumesClientListByVolumeResponse contains the response from method SubvolumesClient.NewListByVolumePager.
type SubvolumesClientUpdateResponse ¶
type SubvolumesClientUpdateResponse struct {
// Subvolume Information properties
SubvolumeInfo
}
SubvolumesClientUpdateResponse contains the response from method SubvolumesClient.BeginUpdate.
type SubvolumesList ¶
type SubvolumesList struct {
// URL to get the next set of results.
NextLink *string
// A list of Subvolumes
Value []*SubvolumeInfo
}
SubvolumesList - List of Subvolumes
func (SubvolumesList) MarshalJSON ¶
func (s SubvolumesList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubvolumesList.
func (*SubvolumesList) UnmarshalJSON ¶
func (s *SubvolumesList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubvolumesList.
type SvmPeerCommandResponse ¶
type SvmPeerCommandResponse struct {
// A command that needs to be run on the external ONTAP to accept svm peering. Will only be present if svmPeeringStatus is
// pending
SvmPeeringCommand *string
}
SvmPeerCommandResponse - Information about svm peering process
func (SvmPeerCommandResponse) MarshalJSON ¶
func (s SvmPeerCommandResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SvmPeerCommandResponse.
func (*SvmPeerCommandResponse) UnmarshalJSON ¶
func (s *SvmPeerCommandResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SvmPeerCommandResponse.
type SystemData ¶
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time
// The identity that created the resource.
CreatedBy *string
// The type of identity that created the resource.
CreatedByType *CreatedByType
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time
// The identity that last modified the resource.
LastModifiedBy *string
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType
}
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 Type ¶
type Type string
Type - Type of quota rule
const ( // TypeDefaultGroupQuota - Default group quota TypeDefaultGroupQuota Type = "DefaultGroupQuota" // TypeDefaultUserQuota - Default user quota TypeDefaultUserQuota Type = "DefaultUserQuota" // TypeIndividualGroupQuota - Individual group quota TypeIndividualGroupQuota Type = "IndividualGroupQuota" // TypeIndividualUserQuota - Individual user quota TypeIndividualUserQuota Type = "IndividualUserQuota" )
func PossibleTypeValues ¶
func PossibleTypeValues() []Type
PossibleTypeValues returns the possible values for the Type const type.
type UpdateNetworkSiblingSetRequest ¶
type UpdateNetworkSiblingSetRequest struct {
// REQUIRED; Network features available to the volume.
NetworkFeatures *NetworkFeatures
// REQUIRED; Network Sibling Set ID for a group of volumes sharing networking resources in a subnet.
NetworkSiblingSetID *string
// REQUIRED; Network sibling set state Id identifying the current state of the sibling set.
NetworkSiblingSetStateID *string
// REQUIRED; The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example
// /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}
SubnetID *string
}
UpdateNetworkSiblingSetRequest - Network sibling set update.
func (UpdateNetworkSiblingSetRequest) MarshalJSON ¶
func (u UpdateNetworkSiblingSetRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateNetworkSiblingSetRequest.
func (*UpdateNetworkSiblingSetRequest) UnmarshalJSON ¶
func (u *UpdateNetworkSiblingSetRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UpdateNetworkSiblingSetRequest.
type UserAssignedIdentity ¶
type UserAssignedIdentity struct {
// READ-ONLY; The client ID of the assigned identity.
ClientID *string
// READ-ONLY; The principal ID of the assigned identity.
PrincipalID *string
}
UserAssignedIdentity - User assigned identity properties
func (UserAssignedIdentity) MarshalJSON ¶
func (u UserAssignedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity.
func (*UserAssignedIdentity) UnmarshalJSON ¶
func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity.
type Volume ¶
type Volume struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// REQUIRED; Volume properties
Properties *VolumeProperties
// Resource tags.
Tags map[string]*string
// Availability Zone
Zones []*string
// READ-ONLY; A unique read-only string that changes whenever the resource is updated.
Etag *string
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
Volume resource
func (Volume) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Volume.
func (*Volume) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Volume.
type VolumeBackupProperties ¶
type VolumeBackupProperties struct {
// Backup Policy Resource ID
BackupPolicyID *string
// Backup Vault Resource ID
BackupVaultID *string
// Policy Enforced
PolicyEnforced *bool
}
VolumeBackupProperties - Volume Backup Properties
func (VolumeBackupProperties) MarshalJSON ¶
func (v VolumeBackupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeBackupProperties.
func (*VolumeBackupProperties) UnmarshalJSON ¶
func (v *VolumeBackupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeBackupProperties.
type VolumeBackups ¶
type VolumeBackups struct {
// Total count of backups for volume
BackupsCount *int32
// Policy enabled
PolicyEnabled *bool
// Volume name
VolumeName *string
// ResourceId used to identify the Volume
VolumeResourceID *string
}
VolumeBackups - Volume details using the backup policy
func (VolumeBackups) MarshalJSON ¶
func (v VolumeBackups) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeBackups.
func (*VolumeBackups) UnmarshalJSON ¶
func (v *VolumeBackups) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeBackups.
type VolumeGroup ¶
type VolumeGroup struct {
// Resource location
Location *string
// Volume group properties
Properties *VolumeGroupListProperties
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource name
Name *string
// READ-ONLY; Resource type
Type *string
}
VolumeGroup - Volume group resource
func (VolumeGroup) MarshalJSON ¶
func (v VolumeGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroup.
func (*VolumeGroup) UnmarshalJSON ¶
func (v *VolumeGroup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeGroup.
type VolumeGroupDetails ¶
type VolumeGroupDetails struct {
// Resource location
Location *string
// Volume group properties
Properties *VolumeGroupProperties
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource name
Name *string
// READ-ONLY; Resource type
Type *string
}
VolumeGroupDetails - Volume group resource for create
func (VolumeGroupDetails) MarshalJSON ¶
func (v VolumeGroupDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroupDetails.
func (*VolumeGroupDetails) UnmarshalJSON ¶
func (v *VolumeGroupDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeGroupDetails.
type VolumeGroupList ¶
type VolumeGroupList struct {
// List of volume Groups
Value []*VolumeGroup
}
VolumeGroupList - List of volume group resources
func (VolumeGroupList) MarshalJSON ¶
func (v VolumeGroupList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroupList.
func (*VolumeGroupList) UnmarshalJSON ¶
func (v *VolumeGroupList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeGroupList.
type VolumeGroupListProperties ¶
type VolumeGroupListProperties struct {
// Volume group details
GroupMetaData *VolumeGroupMetaData
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
}
VolumeGroupListProperties - Volume group properties
func (VolumeGroupListProperties) MarshalJSON ¶
func (v VolumeGroupListProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroupListProperties.
func (*VolumeGroupListProperties) UnmarshalJSON ¶
func (v *VolumeGroupListProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeGroupListProperties.
type VolumeGroupMetaData ¶
type VolumeGroupMetaData struct {
// Application specific identifier
ApplicationIdentifier *string
// Application Type
ApplicationType *ApplicationType
// Application specific placement rules for the volume group
GlobalPlacementRules []*PlacementKeyValuePairs
// Group Description
GroupDescription *string
// READ-ONLY; Number of volumes in volume group
VolumesCount *int64
}
VolumeGroupMetaData - Volume group properties
func (VolumeGroupMetaData) MarshalJSON ¶
func (v VolumeGroupMetaData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroupMetaData.
func (*VolumeGroupMetaData) UnmarshalJSON ¶
func (v *VolumeGroupMetaData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeGroupMetaData.
type VolumeGroupProperties ¶
type VolumeGroupProperties struct {
// Volume group details
GroupMetaData *VolumeGroupMetaData
// List of volumes from group
Volumes []*VolumeGroupVolumeProperties
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
}
VolumeGroupProperties - Volume group properties
func (VolumeGroupProperties) MarshalJSON ¶
func (v VolumeGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroupProperties.
func (*VolumeGroupProperties) UnmarshalJSON ¶
func (v *VolumeGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeGroupProperties.
type VolumeGroupVolumeProperties ¶
type VolumeGroupVolumeProperties struct {
// REQUIRED; Volume properties
Properties *VolumeProperties
// Resource name
Name *string
// Resource tags
Tags map[string]*string
// Availability Zone
Zones []*string
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource type
Type *string
}
VolumeGroupVolumeProperties - Volume resource
func (VolumeGroupVolumeProperties) MarshalJSON ¶
func (v VolumeGroupVolumeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeGroupVolumeProperties.
func (*VolumeGroupVolumeProperties) UnmarshalJSON ¶
func (v *VolumeGroupVolumeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller 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 - The ID of the target subscription. The value must be an UUID.
- 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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- volumeGroupName - The name of the volumeGroup
- body - Volume Group object supplied in the body of the operation.
- options - VolumeGroupsClientBeginCreateOptions contains the optional parameters for the VolumeGroupsClient.BeginCreate method.
Example (VolumeGroupsCreateOracle) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_Oracle.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumeGroupsClient().BeginCreate(ctx, "myRG", "account1", "group1", armnetapp.VolumeGroupDetails{
Location: to.Ptr("westus"),
Properties: &armnetapp.VolumeGroupProperties{
GroupMetaData: &armnetapp.VolumeGroupMetaData{
ApplicationIdentifier: to.Ptr("OR2"),
ApplicationType: to.Ptr(armnetapp.ApplicationTypeORACLE),
GroupDescription: to.Ptr("Volume group"),
},
Volumes: []*armnetapp.VolumeGroupVolumeProperties{
{
Name: to.Ptr("test-ora-data1"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-data1"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-data1"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-data2"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-data2"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-data2"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-data3"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-data3"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-data3"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-data4"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-data4"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-data4"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-data5"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-data5"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-data5"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-data6"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-data6"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-data6"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-data7"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-data7"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-data7"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-data8"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-data8"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-data8"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-log"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-log"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-log"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-log-mirror"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-log-mirror"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-log-mirror"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-binary"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-binary"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-binary"),
},
Zones: []*string{
to.Ptr("1")},
},
{
Name: to.Ptr("test-ora-backup"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-ora-backup"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("ora-backup"),
},
Zones: []*string{
to.Ptr("1")},
}},
},
}, 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)
}
Example (VolumeGroupsCreateSapHana) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_SapHana.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumeGroupsClient().BeginCreate(ctx, "myRG", "account1", "group1", armnetapp.VolumeGroupDetails{
Location: to.Ptr("westus"),
Properties: &armnetapp.VolumeGroupProperties{
GroupMetaData: &armnetapp.VolumeGroupMetaData{
ApplicationIdentifier: to.Ptr("SH9"),
ApplicationType: to.Ptr(armnetapp.ApplicationTypeSAPHANA),
GroupDescription: to.Ptr("Volume group"),
},
Volumes: []*armnetapp.VolumeGroupVolumeProperties{
{
Name: to.Ptr("test-data-mnt00001"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-data-mnt00001"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("test-log-mnt00001"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-log-mnt00001"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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("test-shared"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-shared"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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"),
},
},
{
Name: to.Ptr("test-data-backup"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-data-backup"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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-backup"),
},
},
{
Name: to.Ptr("test-log-backup"),
Properties: &armnetapp.VolumeProperties{
CapacityPoolResourceID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1"),
CreationToken: to.Ptr("test-log-backup"),
ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
Rules: []*armnetapp.ExportPolicyRule{
{
AllowedClients: to.Ptr("0.0.0.0/0"),
Cifs: to.Ptr(false),
HasRootAccess: to.Ptr(true),
Kerberos5ReadOnly: to.Ptr(false),
Kerberos5ReadWrite: to.Ptr(false),
Kerberos5IReadOnly: to.Ptr(false),
Kerberos5IReadWrite: to.Ptr(false),
Kerberos5PReadOnly: to.Ptr(false),
Kerberos5PReadWrite: to.Ptr(false),
Nfsv3: to.Ptr(false),
Nfsv41: to.Ptr(true),
RuleIndex: to.Ptr[int32](1),
UnixReadOnly: to.Ptr(true),
UnixReadWrite: to.Ptr(true),
}},
},
ProtocolTypes: []*string{
to.Ptr("NFSv4.1")},
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-backup"),
},
}},
},
}, 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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- volumeGroupName - The name of the volumeGroup
- options - VolumeGroupsClientBeginDeleteOptions contains the optional parameters for the VolumeGroupsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumeGroupsClient().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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- volumeGroupName - The name of the volumeGroup
- options - VolumeGroupsClientGetOptions contains the optional parameters for the VolumeGroupsClient.Get method.
Example (VolumeGroupsGetOracle) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Get_Oracle.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewVolumeGroupsClient().Get(ctx, "myRG", "account1", "group1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.VolumeGroupDetails = armnetapp.VolumeGroupDetails{
// Name: to.Ptr("group1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/volumeGroups"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/volumeGroups/group1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.VolumeGroupProperties{
// GroupMetaData: &armnetapp.VolumeGroupMetaData{
// ApplicationIdentifier: to.Ptr("OR2"),
// ApplicationType: to.Ptr(armnetapp.ApplicationTypeORACLE),
// GroupDescription: to.Ptr("Volume group"),
// VolumesCount: to.Ptr[int64](12),
// },
// ProvisioningState: to.Ptr("Succeeded"),
// Volumes: []*armnetapp.VolumeGroupVolumeProperties{
// {
// Name: to.Ptr("account1/pool1/test-ora-data1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data1"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-data1"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-data1"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-data2"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data2"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-data2"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-data2"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-data3"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data3"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-data3"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-data3"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-data4"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data4"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-data4"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-data4"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-data5"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data5"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-data5"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-data5"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-data6"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data6"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-data6"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-data6"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-data7"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data7"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-data7"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-data7"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-data8"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-data8"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-data8"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-data8"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-log"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-log"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-log"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-log"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-log-mirror"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-log-mirror"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-log-mirror"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-log-mirror"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-binary"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-binary"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-binary"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-binary"),
// },
// Zones: []*string{
// to.Ptr("1")},
// },
// {
// Name: to.Ptr("account1/pool1/test-ora-backup"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-ora-backup"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-ora-backup"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("ora-backup"),
// },
// Zones: []*string{
// to.Ptr("1")},
// }},
// },
// }
Example (VolumeGroupsGetSapHana) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Get_SapHana.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewVolumeGroupsClient().Get(ctx, "myRG", "account1", "group1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.VolumeGroupDetails = armnetapp.VolumeGroupDetails{
// Name: to.Ptr("group1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/volumeGroups"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/volumeGroups/group1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.VolumeGroupProperties{
// GroupMetaData: &armnetapp.VolumeGroupMetaData{
// ApplicationIdentifier: to.Ptr("SH9"),
// ApplicationType: to.Ptr(armnetapp.ApplicationTypeSAPHANA),
// GroupDescription: to.Ptr("Volume group"),
// VolumesCount: to.Ptr[int64](5),
// },
// ProvisioningState: to.Ptr("Succeeded"),
// Volumes: []*armnetapp.VolumeGroupVolumeProperties{
// {
// Name: to.Ptr("account1/pool1/test-data-mnt00001"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-data-mnt00001"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-data-mnt00001"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("account1/pool1/test-log-mnt00001"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-log-mnt00001"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-log-mnt00001"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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("account1/pool1/test-shared"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-shared"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-shared"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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"),
// },
// },
// {
// Name: to.Ptr("account1/pool1/test-data-backup"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-data-backup"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-data-backup"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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-backup"),
// },
// },
// {
// Name: to.Ptr("account1/pool1/test-log-backup"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/test-log-backup"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("test-log-backup"),
// ExportPolicy: &armnetapp.VolumePropertiesExportPolicy{
// Rules: []*armnetapp.ExportPolicyRule{
// {
// AllowedClients: to.Ptr("0.0.0.0/0"),
// Cifs: to.Ptr(false),
// HasRootAccess: to.Ptr(true),
// Kerberos5ReadOnly: to.Ptr(false),
// Kerberos5ReadWrite: to.Ptr(false),
// Kerberos5IReadOnly: to.Ptr(false),
// Kerberos5IReadWrite: to.Ptr(false),
// Kerberos5PReadOnly: to.Ptr(false),
// Kerberos5PReadWrite: to.Ptr(false),
// Nfsv3: to.Ptr(false),
// Nfsv41: to.Ptr(true),
// RuleIndex: to.Ptr[int32](1),
// UnixReadOnly: to.Ptr(true),
// UnixReadWrite: to.Ptr(true),
// }},
// },
// ProtocolTypes: []*string{
// to.Ptr("NFSv4.1")},
// ProvisioningState: to.Ptr("Succeeded"),
// 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-backup"),
// },
// }},
// },
// }
func (*VolumeGroupsClient) NewListByNetAppAccountPager ¶
func (client *VolumeGroupsClient) NewListByNetAppAccountPager(resourceGroupName string, accountName string, options *VolumeGroupsClientListByNetAppAccountOptions) *runtime.Pager[VolumeGroupsClientListByNetAppAccountResponse]
NewListByNetAppAccountPager - List all volume groups for given account
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- options - VolumeGroupsClientListByNetAppAccountOptions contains the optional parameters for the VolumeGroupsClient.NewListByNetAppAccountPager method.
Example (VolumeGroupsListOracle) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_List_Oracle.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewVolumeGroupsClient().NewListByNetAppAccountPager("myRG", "account1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.VolumeGroupList = armnetapp.VolumeGroupList{
// Value: []*armnetapp.VolumeGroup{
// {
// Name: to.Ptr("group1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/volumeGroups"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/volumeGroups/group1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.VolumeGroupListProperties{
// GroupMetaData: &armnetapp.VolumeGroupMetaData{
// ApplicationIdentifier: to.Ptr("DEV"),
// ApplicationType: to.Ptr(armnetapp.ApplicationTypeORACLE),
// GroupDescription: to.Ptr("Volume group"),
// VolumesCount: to.Ptr[int64](12),
// },
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }},
// }
}
Example (VolumeGroupsListSapHana) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_List_SapHana.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewVolumeGroupsClient().NewListByNetAppAccountPager("myRG", "account1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.VolumeGroupList = armnetapp.VolumeGroupList{
// Value: []*armnetapp.VolumeGroup{
// {
// Name: to.Ptr("group1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/volumeGroups"),
// ID: to.Ptr("/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/volumeGroups/group1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.VolumeGroupListProperties{
// GroupMetaData: &armnetapp.VolumeGroupMetaData{
// ApplicationIdentifier: to.Ptr("SH9"),
// ApplicationType: to.Ptr(armnetapp.ApplicationTypeSAPHANA),
// GroupDescription: to.Ptr("Volume group"),
// VolumesCount: to.Ptr[int64](5),
// },
// ProvisioningState: to.Ptr("Succeeded"),
// },
// }},
// }
}
type VolumeGroupsClientBeginCreateOptions ¶
type VolumeGroupsClientBeginCreateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumeGroupsClientBeginCreateOptions contains the optional parameters for the VolumeGroupsClient.BeginCreate method.
type VolumeGroupsClientBeginDeleteOptions ¶
type VolumeGroupsClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumeGroupsClientBeginDeleteOptions contains the optional parameters for the VolumeGroupsClient.BeginDelete method.
type VolumeGroupsClientCreateResponse ¶
type VolumeGroupsClientCreateResponse struct {
// Volume group resource for create
VolumeGroupDetails
}
VolumeGroupsClientCreateResponse contains the response from method VolumeGroupsClient.BeginCreate.
type VolumeGroupsClientDeleteResponse ¶
type VolumeGroupsClientDeleteResponse struct {
}
VolumeGroupsClientDeleteResponse contains the response from method VolumeGroupsClient.BeginDelete.
type VolumeGroupsClientGetOptions ¶
type VolumeGroupsClientGetOptions struct {
}
VolumeGroupsClientGetOptions contains the optional parameters for the VolumeGroupsClient.Get method.
type VolumeGroupsClientGetResponse ¶
type VolumeGroupsClientGetResponse struct {
// Volume group resource for create
VolumeGroupDetails
}
VolumeGroupsClientGetResponse contains the response from method VolumeGroupsClient.Get.
type VolumeGroupsClientListByNetAppAccountOptions ¶
type VolumeGroupsClientListByNetAppAccountOptions struct {
}
VolumeGroupsClientListByNetAppAccountOptions contains the optional parameters for the VolumeGroupsClient.NewListByNetAppAccountPager method.
type VolumeGroupsClientListByNetAppAccountResponse ¶
type VolumeGroupsClientListByNetAppAccountResponse struct {
// List of volume group resources
VolumeGroupList
}
VolumeGroupsClientListByNetAppAccountResponse contains the response from method VolumeGroupsClient.NewListByNetAppAccountPager.
type VolumeLanguage ¶
type VolumeLanguage string
VolumeLanguage - Language supported for volume.
const ( // VolumeLanguageAr - Arabic - Deprecated VolumeLanguageAr VolumeLanguage = "ar" // VolumeLanguageArUTF8 - Arabic with UTF-8 VolumeLanguageArUTF8 VolumeLanguage = "ar.utf-8" // VolumeLanguageC - Posix - Deprecated VolumeLanguageC VolumeLanguage = "c" // VolumeLanguageCUTF8 - Posix with UTF-8 VolumeLanguageCUTF8 VolumeLanguage = "c.utf-8" // VolumeLanguageCs - Czech - Deprecated VolumeLanguageCs VolumeLanguage = "cs" // VolumeLanguageCsUTF8 - Czech with UTF-8 VolumeLanguageCsUTF8 VolumeLanguage = "cs.utf-8" // VolumeLanguageDa - Danish - Deprecated VolumeLanguageDa VolumeLanguage = "da" // VolumeLanguageDaUTF8 - Danish with UTF-8 VolumeLanguageDaUTF8 VolumeLanguage = "da.utf-8" // VolumeLanguageDe - German - Deprecated VolumeLanguageDe VolumeLanguage = "de" // VolumeLanguageDeUTF8 - German with UTF-8 VolumeLanguageDeUTF8 VolumeLanguage = "de.utf-8" // VolumeLanguageEn - English - Deprecated VolumeLanguageEn VolumeLanguage = "en" // VolumeLanguageEnUTF8 - English with UTF-8 VolumeLanguageEnUTF8 VolumeLanguage = "en.utf-8" // VolumeLanguageEnUs - US English - Deprecated VolumeLanguageEnUs VolumeLanguage = "en-us" // VolumeLanguageEnUsUTF8 - US English with UTF-8 VolumeLanguageEnUsUTF8 VolumeLanguage = "en-us.utf-8" // VolumeLanguageEs - Spanish - Deprecated VolumeLanguageEs VolumeLanguage = "es" // VolumeLanguageEsUTF8 - Spanish with UTF-8 VolumeLanguageEsUTF8 VolumeLanguage = "es.utf-8" // VolumeLanguageFi - Finnish - Deprecated VolumeLanguageFi VolumeLanguage = "fi" // VolumeLanguageFiUTF8 - Finnish with UTF-8 VolumeLanguageFiUTF8 VolumeLanguage = "fi.utf-8" // VolumeLanguageFr - French - Deprecated VolumeLanguageFr VolumeLanguage = "fr" // VolumeLanguageFrUTF8 - French with UTF-8 VolumeLanguageFrUTF8 VolumeLanguage = "fr.utf-8" // VolumeLanguageHe - Hebrew - Deprecated VolumeLanguageHe VolumeLanguage = "he" // VolumeLanguageHeUTF8 - Hebrew with UTF-8 VolumeLanguageHeUTF8 VolumeLanguage = "he.utf-8" // VolumeLanguageHr - Croatian - Deprecated VolumeLanguageHr VolumeLanguage = "hr" // VolumeLanguageHrUTF8 - Croatian with UTF-8 VolumeLanguageHrUTF8 VolumeLanguage = "hr.utf-8" // VolumeLanguageHu - Hungarian - Deprecated VolumeLanguageHu VolumeLanguage = "hu" // VolumeLanguageHuUTF8 - Hungarian with UTF-8 VolumeLanguageHuUTF8 VolumeLanguage = "hu.utf-8" // VolumeLanguageIt - Italian - Deprecated VolumeLanguageIt VolumeLanguage = "it" // VolumeLanguageItUTF8 - Italian with UTF-8 VolumeLanguageItUTF8 VolumeLanguage = "it.utf-8" // VolumeLanguageJa - Japanese euc-j - Deprecated VolumeLanguageJa VolumeLanguage = "ja" // VolumeLanguageJaJp932 - Japanese cp932 VolumeLanguageJaJp932 VolumeLanguage = "ja-jp.932" // VolumeLanguageJaJp932UTF8 - Japanese cp932 with UTF-8 - Deprecated VolumeLanguageJaJp932UTF8 VolumeLanguage = "ja-jp.932.utf-8" // VolumeLanguageJaJpPck - Japanese pck VolumeLanguageJaJpPck VolumeLanguage = "ja-jp.pck" // VolumeLanguageJaJpPckUTF8 - Japanese pck with UTF-8 - Deprecated VolumeLanguageJaJpPckUTF8 VolumeLanguage = "ja-jp.pck.utf-8" // VolumeLanguageJaJpPckV2 - Japanese pck - sjis VolumeLanguageJaJpPckV2 VolumeLanguage = "ja-jp.pck-v2" // VolumeLanguageJaJpPckV2UTF8 - Japanese pck - sjis with UTF-8 - Deprecated VolumeLanguageJaJpPckV2UTF8 VolumeLanguage = "ja-jp.pck-v2.utf-8" // VolumeLanguageJaUTF8 - Japanese euc-j with UTF-8 VolumeLanguageJaUTF8 VolumeLanguage = "ja.utf-8" // VolumeLanguageJaV1 - Japanese euc-j - Deprecated VolumeLanguageJaV1 VolumeLanguage = "ja-v1" // VolumeLanguageJaV1UTF8 - Japanese euc-j with UTF-8 VolumeLanguageJaV1UTF8 VolumeLanguage = "ja-v1.utf-8" // VolumeLanguageKo - Korean - Deprecated VolumeLanguageKo VolumeLanguage = "ko" // VolumeLanguageKoUTF8 - Korean with UTF-8 VolumeLanguageKoUTF8 VolumeLanguage = "ko.utf-8" // VolumeLanguageNl - Dutch - Deprecated VolumeLanguageNl VolumeLanguage = "nl" // VolumeLanguageNlUTF8 - Dutch with UTF-8 VolumeLanguageNlUTF8 VolumeLanguage = "nl.utf-8" // VolumeLanguageNo - Norwegian - Deprecated VolumeLanguageNo VolumeLanguage = "no" // VolumeLanguageNoUTF8 - Norwegian with UTF-8 VolumeLanguageNoUTF8 VolumeLanguage = "no.utf-8" // VolumeLanguagePl - Polish - Deprecated VolumeLanguagePl VolumeLanguage = "pl" // VolumeLanguagePlUTF8 - Polish with UTF-8 VolumeLanguagePlUTF8 VolumeLanguage = "pl.utf-8" // VolumeLanguagePt - Portuguese - Deprecated VolumeLanguagePt VolumeLanguage = "pt" // VolumeLanguagePtUTF8 - Portuguese with UTF-8 VolumeLanguagePtUTF8 VolumeLanguage = "pt.utf-8" // VolumeLanguageRo - Romanian - Deprecated VolumeLanguageRo VolumeLanguage = "ro" // VolumeLanguageRoUTF8 - Romanian with UTF-8 VolumeLanguageRoUTF8 VolumeLanguage = "ro.utf-8" // VolumeLanguageRu - Russian - Deprecated VolumeLanguageRu VolumeLanguage = "ru" // VolumeLanguageRuUTF8 - Russian with UTF-8 VolumeLanguageRuUTF8 VolumeLanguage = "ru.utf-8" // VolumeLanguageSk - Slovak - Deprecated VolumeLanguageSk VolumeLanguage = "sk" // VolumeLanguageSkUTF8 - Slovak with UTF-8 VolumeLanguageSkUTF8 VolumeLanguage = "sk.utf-8" // VolumeLanguageSl - Slovenian - Deprecated VolumeLanguageSl VolumeLanguage = "sl" // VolumeLanguageSlUTF8 - Slovenian with UTF-8 VolumeLanguageSlUTF8 VolumeLanguage = "sl.utf-8" // VolumeLanguageSv - Swedish - Deprecated VolumeLanguageSv VolumeLanguage = "sv" // VolumeLanguageSvUTF8 - Swedish with UTF-8 VolumeLanguageSvUTF8 VolumeLanguage = "sv.utf-8" // VolumeLanguageTr - Turkish - Deprecated VolumeLanguageTr VolumeLanguage = "tr" // VolumeLanguageTrUTF8 - Turkish with UTF-8 VolumeLanguageTrUTF8 VolumeLanguage = "tr.utf-8" // VolumeLanguageUTF8Mb4 - UTF-8 with 4 byte character support VolumeLanguageUTF8Mb4 VolumeLanguage = "utf8mb4" // VolumeLanguageZh - Simplified Chinese - Deprecated VolumeLanguageZh VolumeLanguage = "zh" // VolumeLanguageZhGbk - Simplified gbk Chinese VolumeLanguageZhGbk VolumeLanguage = "zh.gbk" // VolumeLanguageZhGbkUTF8 - Simplified gbk Chinese with UTF-8 - Deprecated VolumeLanguageZhGbkUTF8 VolumeLanguage = "zh.gbk.utf-8" // VolumeLanguageZhTw - Traditional Chinese EUC-TW VolumeLanguageZhTw VolumeLanguage = "zh-tw" // VolumeLanguageZhTwBig5 - Traditional Chinese BIG 5 VolumeLanguageZhTwBig5 VolumeLanguage = "zh-tw.big5" // VolumeLanguageZhTwBig5UTF8 - Traditional Chinese BIG 5 with UTF-8 - Deprecated VolumeLanguageZhTwBig5UTF8 VolumeLanguage = "zh-tw.big5.utf-8" // VolumeLanguageZhTwUTF8 - Traditional Chinese EUC-TW with UTF-8 - Deprecated VolumeLanguageZhTwUTF8 VolumeLanguage = "zh-tw.utf-8" // VolumeLanguageZhUTF8 - Simplified Chinese with UTF-8 VolumeLanguageZhUTF8 VolumeLanguage = "zh.utf-8" )
func PossibleVolumeLanguageValues ¶
func PossibleVolumeLanguageValues() []VolumeLanguage
PossibleVolumeLanguageValues returns the possible values for the VolumeLanguage const type.
type VolumeList ¶
type VolumeList struct {
// URL to get the next set of results.
NextLink *string
// List of volumes
Value []*Volume
}
VolumeList - List of volume resources
func (VolumeList) MarshalJSON ¶
func (v VolumeList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeList.
func (*VolumeList) UnmarshalJSON ¶
func (v *VolumeList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeList.
type VolumePatch ¶
type VolumePatch struct {
// Resource location
Location *string
// Patchable volume properties
Properties *VolumePatchProperties
// Resource tags
Tags map[string]*string
// READ-ONLY; Resource Id
ID *string
// READ-ONLY; Resource name
Name *string
// READ-ONLY; Resource type
Type *string
}
VolumePatch - Volume patch resource
func (VolumePatch) MarshalJSON ¶
func (v VolumePatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumePatch.
func (*VolumePatch) UnmarshalJSON ¶
func (v *VolumePatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumePatch.
type VolumePatchProperties ¶
type VolumePatchProperties struct {
// Specifies whether Cool Access(tiering) is enabled for the volume.
CoolAccess *bool
// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read
// pattern for cool access enabled volumes. The possible values for this field
// are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. OnRead
// - All client-driven data read is pulled from cool tier to standard storage on
// both sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage.
CoolAccessRetrievalPolicy *CoolAccessRetrievalPolicy
// Specifies the number of days after which data that is not accessed by clients will be tiered.
CoolnessPeriod *int32
// DataProtection type volumes include an object containing details of the replication
DataProtection *VolumePatchPropertiesDataProtection
// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies.
DefaultGroupQuotaInKiBs *int64
// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies .
DefaultUserQuotaInKiBs *int64
// Set of export policy rules
ExportPolicy *VolumePatchPropertiesExportPolicy
// Specifies if default quota is enabled for the volume.
IsDefaultQuotaEnabled *bool
// Set of protocol types, default NFSv3, CIFS for SMB protocol
ProtocolTypes []*string
// The service level of the file system
ServiceLevel *ServiceLevel
// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume
SmbAccessBasedEnumeration *SmbAccessBasedEnumeration
// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume
SmbNonBrowsable *SmbNonBrowsable
// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's
// snapshots.
SnapshotDirectoryVisible *bool
// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType
// volume
ThroughputMibps *float32
// 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
// Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes,
// valid values are in the range 50GiB to 100TiB. For large volumes, valid
// values are in the range 100TiB to 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes
// as multiples of 1 GiB.
UsageThreshold *int64
}
VolumePatchProperties - Patchable volume properties
func (VolumePatchProperties) MarshalJSON ¶
func (v VolumePatchProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumePatchProperties.
func (*VolumePatchProperties) UnmarshalJSON ¶
func (v *VolumePatchProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumePatchProperties.
type VolumePatchPropertiesDataProtection ¶
type VolumePatchPropertiesDataProtection struct {
// Backup Properties
Backup *VolumeBackupProperties
// Snapshot properties.
Snapshot *VolumeSnapshotProperties
}
VolumePatchPropertiesDataProtection - DataProtection type volumes include an object containing details of the replication
func (VolumePatchPropertiesDataProtection) MarshalJSON ¶
func (v VolumePatchPropertiesDataProtection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumePatchPropertiesDataProtection.
func (*VolumePatchPropertiesDataProtection) UnmarshalJSON ¶
func (v *VolumePatchPropertiesDataProtection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumePatchPropertiesDataProtection.
type VolumePatchPropertiesExportPolicy ¶
type VolumePatchPropertiesExportPolicy struct {
// Export policy rule
Rules []*ExportPolicyRule
}
VolumePatchPropertiesExportPolicy - Set of export policy rules
func (VolumePatchPropertiesExportPolicy) MarshalJSON ¶
func (v VolumePatchPropertiesExportPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumePatchPropertiesExportPolicy.
func (*VolumePatchPropertiesExportPolicy) UnmarshalJSON ¶
func (v *VolumePatchPropertiesExportPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumePatchPropertiesExportPolicy.
type VolumeProperties ¶
type VolumeProperties struct {
// REQUIRED; A unique file path for the volume. Used when creating mount targets
CreationToken *string
// REQUIRED; The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes
SubnetID *string
// REQUIRED; Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular
// volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid
// values are in the range 100TiB to 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes
// as multiples of 1 GiB.
UsageThreshold *int64
// While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume
// after split, it will be automatically resized, which will lead to increased
// billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted.
AcceptGrowCapacityPoolForShortTermCloneSplit *AcceptGrowCapacityPoolForShortTermCloneSplit
// Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose
AvsDataStore *AvsDataStore
// Resource identifier used to identify the Backup.
BackupID *string
// Pool Resource Id used in case of creating a volume through volume group
CapacityPoolResourceID *string
// Specifies whether Cool Access(tiering) is enabled for the volume.
CoolAccess *bool
// coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read
// pattern for cool access enabled volumes. The possible values for this field
// are: Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. OnRead
// - All client-driven data read is pulled from cool tier to standard storage on
// both sequential and random reads. Never - No client-driven data is pulled from cool tier to standard storage.
CoolAccessRetrievalPolicy *CoolAccessRetrievalPolicy
// Specifies the number of days after which data that is not accessed by clients will be tiered.
CoolnessPeriod *int32
// DataProtection type volumes include an object containing details of the replication
DataProtection *VolumePropertiesDataProtection
// Default group quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies.
DefaultGroupQuotaInKiBs *int64
// Default user quota for volume in KiBs. If isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies .
DefaultUserQuotaInKiBs *int64
// If enabled (true) the snapshot the volume was created from will be automatically deleted after the volume create operation
// has finished. Defaults to false
DeleteBaseSnapshot *bool
// Flag indicating whether subvolume operations are enabled on the volume
EnableSubvolumes *EnableSubvolumes
// Source of key used to encrypt data in volume. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'.
// Possible values (case-insensitive) are: 'Microsoft.NetApp,
// Microsoft.KeyVault'
EncryptionKeySource *EncryptionKeySource
// Set of export policy rules
ExportPolicy *VolumePropertiesExportPolicy
// Specifies if default quota is enabled for the volume.
IsDefaultQuotaEnabled *bool
// Specifies whether volume is a Large Volume or Regular Volume.
IsLargeVolume *bool
// Restoring
IsRestoring *bool
// Describe if a volume is KerberosEnabled. To be use with swagger version 2020-05-01 or later
KerberosEnabled *bool
// The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource
// = 'Microsoft.KeyVault'.
KeyVaultPrivateEndpointResourceID *string
// Language supported for volume.
Language *VolumeLanguage
// Specifies whether LDAP is enabled or not for a given NFS volume.
LdapEnabled *bool
// The original value of the network features type available to the volume at the time it was created.
NetworkFeatures *NetworkFeatures
// Application specific placement rules for the particular volume
PlacementRules []*PlacementKeyValuePairs
// Set of protocol types, default NFSv3, CIFS for SMB protocol
ProtocolTypes []*string
// Proximity placement group associated with the volume
ProximityPlacementGroup *string
// The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol
SecurityStyle *SecurityStyle
// The service level of the file system
ServiceLevel *ServiceLevel
// Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume
SmbAccessBasedEnumeration *SmbAccessBasedEnumeration
// Enables continuously available share property for smb volume. Only applicable for SMB volume
SmbContinuouslyAvailable *bool
// 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
// Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume
SmbNonBrowsable *SmbNonBrowsable
// If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's
// snapshots (defaults to true).
SnapshotDirectoryVisible *bool
// Resource identifier used to identify the Snapshot.
SnapshotID *string
// Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType
// volume
ThroughputMibps *float32
// 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. Avoid passing null value for unixPermissions in volume update operation,
// As per the behavior, If Null value is passed then user-visible unixPermissions
// value will became null, and user will not be able to get unixPermissions value. On safer side, actual unixPermissions value
// on volume will remain as its last saved value only.
UnixPermissions *string
// Volume spec name is the application specific designation or identifier for the particular volume in a volume group for
// e.g. data, log
VolumeSpecName *string
// What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating
// clone volume, set type to ShortTermClone
VolumeType *string
// READ-ONLY; Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel
ActualThroughputMibps *float32
// READ-ONLY; Unique Baremetal Tenant Identifier.
BaremetalTenantID *string
// 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
// READ-ONLY; Data store resource unique identifier
DataStoreResourceID []*string
// READ-ONLY; The effective value of the network features type available to the volume, or current effective state of update.
EffectiveNetworkFeatures *NetworkFeatures
// READ-ONLY; Specifies if the volume is encrypted or not. Only available on volumes created or updated after 2022-01-01.
Encrypted *bool
// READ-ONLY; Flag indicating whether file access logs are enabled for the volume, based on active diagnostic settings present
// on the volume.
FileAccessLogs *FileAccessLogs
// READ-ONLY; Unique FileSystem Identifier.
FileSystemID *string
// READ-ONLY; Space shared by short term clone volume with parent volume in bytes.
InheritedSizeInBytes *int64
// READ-ONLY; Maximum number of files allowed. Needs a service request in order to be changed. Only allowed to be changed
// if volume quota is more than 4TiB.
MaximumNumberOfFiles *int64
// READ-ONLY; List of mount targets
MountTargets []*MountTargetProperties
// READ-ONLY; Network Sibling Set ID for the the group of volumes sharing networking resources.
NetworkSiblingSetID *string
// READ-ONLY; Id of the snapshot or backup that the volume is restored from.
OriginatingResourceID *string
// READ-ONLY; The availability zone where the volume is provisioned. This refers to the logical availability zone where the
// volume resides.
ProvisionedAvailabilityZone *string
// READ-ONLY; Azure lifecycle management
ProvisioningState *string
// READ-ONLY; Provides storage to network proximity information for the volume.
StorageToNetworkProximity *VolumeStorageToNetworkProximity
// READ-ONLY; T2 network information
T2Network *string
// READ-ONLY; Volume Group Name
VolumeGroupName *string
}
VolumeProperties - Volume properties
func (VolumeProperties) MarshalJSON ¶
func (v VolumeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeProperties.
func (*VolumeProperties) UnmarshalJSON ¶
func (v *VolumeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeProperties.
type VolumePropertiesDataProtection ¶
type VolumePropertiesDataProtection struct {
// Backup Properties
Backup *VolumeBackupProperties
// Replication properties
Replication *ReplicationObject
// Snapshot properties.
Snapshot *VolumeSnapshotProperties
// VolumeRelocation properties
VolumeRelocation *VolumeRelocationProperties
}
VolumePropertiesDataProtection - DataProtection type volumes include an object containing details of the replication
func (VolumePropertiesDataProtection) MarshalJSON ¶
func (v VolumePropertiesDataProtection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumePropertiesDataProtection.
func (*VolumePropertiesDataProtection) UnmarshalJSON ¶
func (v *VolumePropertiesDataProtection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumePropertiesDataProtection.
type VolumePropertiesExportPolicy ¶
type VolumePropertiesExportPolicy struct {
// Export policy rule
Rules []*ExportPolicyRule
}
VolumePropertiesExportPolicy - Set of export policy rules
func (VolumePropertiesExportPolicy) MarshalJSON ¶
func (v VolumePropertiesExportPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumePropertiesExportPolicy.
func (*VolumePropertiesExportPolicy) UnmarshalJSON ¶
func (v *VolumePropertiesExportPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumePropertiesExportPolicy.
type VolumeQuotaRule ¶
type VolumeQuotaRule struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// Volume Quota Rule Properties
Properties *VolumeQuotaRulesProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
VolumeQuotaRule - Quota Rule of a Volume
func (VolumeQuotaRule) MarshalJSON ¶
func (v VolumeQuotaRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeQuotaRule.
func (*VolumeQuotaRule) UnmarshalJSON ¶
func (v *VolumeQuotaRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeQuotaRule.
type VolumeQuotaRulePatch ¶
type VolumeQuotaRulePatch struct {
// Volume Quota Rule Properties
Properties *VolumeQuotaRulesProperties
// Resource tags
Tags map[string]*string
}
VolumeQuotaRulePatch - Patchable Quota Rule of a Volume
func (VolumeQuotaRulePatch) MarshalJSON ¶
func (v VolumeQuotaRulePatch) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeQuotaRulePatch.
func (*VolumeQuotaRulePatch) UnmarshalJSON ¶
func (v *VolumeQuotaRulePatch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeQuotaRulePatch.
type VolumeQuotaRulesClient ¶
type VolumeQuotaRulesClient struct {
// contains filtered or unexported fields
}
VolumeQuotaRulesClient contains the methods for the VolumeQuotaRules group. Don't use this type directly, use NewVolumeQuotaRulesClient() instead.
func NewVolumeQuotaRulesClient ¶
func NewVolumeQuotaRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VolumeQuotaRulesClient, error)
NewVolumeQuotaRulesClient creates a new instance of VolumeQuotaRulesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*VolumeQuotaRulesClient) BeginCreate ¶
func (client *VolumeQuotaRulesClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, volumeQuotaRuleName string, body VolumeQuotaRule, options *VolumeQuotaRulesClientBeginCreateOptions) (*runtime.Poller[VolumeQuotaRulesClientCreateResponse], error)
BeginCreate - Create the specified quota rule within the given volume If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- volumeQuotaRuleName - The name of volume quota rule
- body - Quota rule object supplied in the body of the operation.
- options - VolumeQuotaRulesClientBeginCreateOptions contains the optional parameters for the VolumeQuotaRulesClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Create.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumeQuotaRulesClient().BeginCreate(ctx, "myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", armnetapp.VolumeQuotaRule{
Location: to.Ptr("westus"),
Properties: &armnetapp.VolumeQuotaRulesProperties{
QuotaSizeInKiBs: to.Ptr[int64](100005),
QuotaTarget: to.Ptr("1821"),
QuotaType: to.Ptr(armnetapp.TypeIndividualUserQuota),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.VolumeQuotaRule = armnetapp.VolumeQuotaRule{
// Name: to.Ptr("account-9957/pool-5210/volume-6387/rule-0004"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules"),
// ID: to.Ptr("/subscriptions/5275316f-a498-48d6-b324-2cbfdc4311b9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account-9957/capacityPools/pool-5210/volumes/volume-6387/volumeQuotaRules/rule-0004"),
// Location: to.Ptr("westus"),
// Properties: &armnetapp.VolumeQuotaRulesProperties{
// ProvisioningState: to.Ptr(armnetapp.ProvisioningStateSucceeded),
// QuotaSizeInKiBs: to.Ptr[int64](100005),
// QuotaTarget: to.Ptr("1821"),
// QuotaType: to.Ptr(armnetapp.TypeIndividualUserQuota),
// },
// }
func (*VolumeQuotaRulesClient) BeginDelete ¶
func (client *VolumeQuotaRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, volumeQuotaRuleName string, options *VolumeQuotaRulesClientBeginDeleteOptions) (*runtime.Poller[VolumeQuotaRulesClientDeleteResponse], error)
BeginDelete - Delete quota rule If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- volumeQuotaRuleName - The name of volume quota rule
- options - VolumeQuotaRulesClientBeginDeleteOptions contains the optional parameters for the VolumeQuotaRulesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumeQuotaRulesClient().BeginDelete(ctx, "myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", 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)
}
func (*VolumeQuotaRulesClient) BeginUpdate ¶
func (client *VolumeQuotaRulesClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, volumeQuotaRuleName string, body VolumeQuotaRulePatch, options *VolumeQuotaRulesClientBeginUpdateOptions) (*runtime.Poller[VolumeQuotaRulesClientUpdateResponse], error)
BeginUpdate - Patch a quota rule If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- volumeQuotaRuleName - The name of volume quota rule
- body - Quota rule object supplied in the body of the operation.
- options - VolumeQuotaRulesClientBeginUpdateOptions contains the optional parameters for the VolumeQuotaRulesClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumeQuotaRulesClient().BeginUpdate(ctx, "myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", armnetapp.VolumeQuotaRulePatch{
Properties: &armnetapp.VolumeQuotaRulesProperties{
QuotaSizeInKiBs: to.Ptr[int64](100009),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.VolumeQuotaRule = armnetapp.VolumeQuotaRule{
// Name: to.Ptr("account-9957/pool-5210/volume-6387/rule-0004"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules"),
// ID: to.Ptr("/subscriptions/5275316f-a498-48d6-b324-2cbfdc4311b9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account-9957/capacityPools/pool-5210/volumes/volume-6387/volumeQuotaRules/rule-0004"),
// Location: to.Ptr("westus"),
// Properties: &armnetapp.VolumeQuotaRulesProperties{
// ProvisioningState: to.Ptr(armnetapp.ProvisioningStateSucceeded),
// QuotaSizeInKiBs: to.Ptr[int64](100005),
// QuotaTarget: to.Ptr("1821"),
// QuotaType: to.Ptr(armnetapp.TypeIndividualUserQuota),
// },
// }
func (*VolumeQuotaRulesClient) Get ¶
func (client *VolumeQuotaRulesClient) Get(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, volumeQuotaRuleName string, options *VolumeQuotaRulesClientGetOptions) (VolumeQuotaRulesClientGetResponse, error)
Get - Get details of the specified quota rule If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- volumeQuotaRuleName - The name of volume quota rule
- options - VolumeQuotaRulesClientGetOptions contains the optional parameters for the VolumeQuotaRulesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewVolumeQuotaRulesClient().Get(ctx, "myRG", "account-9957", "pool-5210", "volume-6387", "rule-0004", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.VolumeQuotaRule = armnetapp.VolumeQuotaRule{
// Name: to.Ptr("account-9957/pool-5210/volume-6387/rule-0004"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules"),
// ID: to.Ptr("/subscriptions/5275316f-a498-48d6-b324-2cbfdc4311b9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account-9957/capacityPools/pool-5210/volumes/volume-6387/volumeQuotaRules/rule-0004"),
// Location: to.Ptr("westus"),
// Properties: &armnetapp.VolumeQuotaRulesProperties{
// ProvisioningState: to.Ptr(armnetapp.ProvisioningStateSucceeded),
// QuotaSizeInKiBs: to.Ptr[int64](100005),
// QuotaTarget: to.Ptr("1821"),
// QuotaType: to.Ptr(armnetapp.TypeIndividualUserQuota),
// },
// }
func (*VolumeQuotaRulesClient) NewListByVolumePager ¶
func (client *VolumeQuotaRulesClient) NewListByVolumePager(resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumeQuotaRulesClientListByVolumeOptions) *runtime.Pager[VolumeQuotaRulesClientListByVolumeResponse]
NewListByVolumePager - List all quota rules associated with the volume
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumeQuotaRulesClientListByVolumeOptions contains the optional parameters for the VolumeQuotaRulesClient.NewListByVolumePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewVolumeQuotaRulesClient().NewListByVolumePager("myRG", "account-9957", "pool-5210", "volume-6387", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.VolumeQuotaRulesList = armnetapp.VolumeQuotaRulesList{
// Value: []*armnetapp.VolumeQuotaRule{
// {
// Name: to.Ptr("account-9957/pool-5210/volume-6387/rule-0004"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes/volumeQuotaRules"),
// ID: to.Ptr("/subscriptions/5275316f-a498-48d6-b324-2cbfdc4311b9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account-9957/capacityPools/pool-5210/volumes/volume-6387/volumeQuotaRules/rule-0004"),
// Location: to.Ptr("westus"),
// Properties: &armnetapp.VolumeQuotaRulesProperties{
// ProvisioningState: to.Ptr(armnetapp.ProvisioningStateSucceeded),
// QuotaSizeInKiBs: to.Ptr[int64](100005),
// QuotaTarget: to.Ptr("1821"),
// QuotaType: to.Ptr(armnetapp.TypeIndividualUserQuota),
// },
// }},
// }
}
type VolumeQuotaRulesClientBeginCreateOptions ¶
type VolumeQuotaRulesClientBeginCreateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumeQuotaRulesClientBeginCreateOptions contains the optional parameters for the VolumeQuotaRulesClient.BeginCreate method.
type VolumeQuotaRulesClientBeginDeleteOptions ¶
type VolumeQuotaRulesClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumeQuotaRulesClientBeginDeleteOptions contains the optional parameters for the VolumeQuotaRulesClient.BeginDelete method.
type VolumeQuotaRulesClientBeginUpdateOptions ¶
type VolumeQuotaRulesClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumeQuotaRulesClientBeginUpdateOptions contains the optional parameters for the VolumeQuotaRulesClient.BeginUpdate method.
type VolumeQuotaRulesClientCreateResponse ¶
type VolumeQuotaRulesClientCreateResponse struct {
// Quota Rule of a Volume
VolumeQuotaRule
}
VolumeQuotaRulesClientCreateResponse contains the response from method VolumeQuotaRulesClient.BeginCreate.
type VolumeQuotaRulesClientDeleteResponse ¶
type VolumeQuotaRulesClientDeleteResponse struct {
}
VolumeQuotaRulesClientDeleteResponse contains the response from method VolumeQuotaRulesClient.BeginDelete.
type VolumeQuotaRulesClientGetOptions ¶
type VolumeQuotaRulesClientGetOptions struct {
}
VolumeQuotaRulesClientGetOptions contains the optional parameters for the VolumeQuotaRulesClient.Get method.
type VolumeQuotaRulesClientGetResponse ¶
type VolumeQuotaRulesClientGetResponse struct {
// Quota Rule of a Volume
VolumeQuotaRule
}
VolumeQuotaRulesClientGetResponse contains the response from method VolumeQuotaRulesClient.Get.
type VolumeQuotaRulesClientListByVolumeOptions ¶
type VolumeQuotaRulesClientListByVolumeOptions struct {
}
VolumeQuotaRulesClientListByVolumeOptions contains the optional parameters for the VolumeQuotaRulesClient.NewListByVolumePager method.
type VolumeQuotaRulesClientListByVolumeResponse ¶
type VolumeQuotaRulesClientListByVolumeResponse struct {
// List of Volume Quota Rules
VolumeQuotaRulesList
}
VolumeQuotaRulesClientListByVolumeResponse contains the response from method VolumeQuotaRulesClient.NewListByVolumePager.
type VolumeQuotaRulesClientUpdateResponse ¶
type VolumeQuotaRulesClientUpdateResponse struct {
// Quota Rule of a Volume
VolumeQuotaRule
}
VolumeQuotaRulesClientUpdateResponse contains the response from method VolumeQuotaRulesClient.BeginUpdate.
type VolumeQuotaRulesList ¶
type VolumeQuotaRulesList struct {
// A list of Volume Quota Rules
Value []*VolumeQuotaRule
}
VolumeQuotaRulesList - List of Volume Quota Rules
func (VolumeQuotaRulesList) MarshalJSON ¶
func (v VolumeQuotaRulesList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeQuotaRulesList.
func (*VolumeQuotaRulesList) UnmarshalJSON ¶
func (v *VolumeQuotaRulesList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeQuotaRulesList.
type VolumeQuotaRulesProperties ¶
type VolumeQuotaRulesProperties struct {
// Size of quota
QuotaSizeInKiBs *int64
// UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command
// for the user or group and SID can be found by running
QuotaTarget *string
// Type of quota
QuotaType *Type
// READ-ONLY; Gets the status of the VolumeQuotaRule at the time the operation was called.
ProvisioningState *ProvisioningState
}
VolumeQuotaRulesProperties - Volume Quota Rule properties
func (VolumeQuotaRulesProperties) MarshalJSON ¶
func (v VolumeQuotaRulesProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeQuotaRulesProperties.
func (*VolumeQuotaRulesProperties) UnmarshalJSON ¶
func (v *VolumeQuotaRulesProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeQuotaRulesProperties.
type VolumeRelocationProperties ¶
type VolumeRelocationProperties struct {
// Has relocation been requested for this volume
RelocationRequested *bool
// READ-ONLY; Has relocation finished and is ready to be cleaned up
ReadyToBeFinalized *bool
}
VolumeRelocationProperties - Volume relocation properties
func (VolumeRelocationProperties) MarshalJSON ¶
func (v VolumeRelocationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeRelocationProperties.
func (*VolumeRelocationProperties) UnmarshalJSON ¶
func (v *VolumeRelocationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeRelocationProperties.
type VolumeRevert ¶
type VolumeRevert struct {
// Resource id of the snapshot
SnapshotID *string
}
VolumeRevert - revert a volume to the snapshot
func (VolumeRevert) MarshalJSON ¶
func (v VolumeRevert) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeRevert.
func (*VolumeRevert) UnmarshalJSON ¶
func (v *VolumeRevert) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeRevert.
type VolumeSnapshotProperties ¶
type VolumeSnapshotProperties struct {
// Snapshot Policy ResourceId
SnapshotPolicyID *string
}
VolumeSnapshotProperties - Volume Snapshot Properties
func (VolumeSnapshotProperties) MarshalJSON ¶
func (v VolumeSnapshotProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VolumeSnapshotProperties.
func (*VolumeSnapshotProperties) UnmarshalJSON ¶
func (v *VolumeSnapshotProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VolumeSnapshotProperties.
type VolumeStorageToNetworkProximity ¶
type VolumeStorageToNetworkProximity string
VolumeStorageToNetworkProximity - Provides storage to network proximity information for the volume.
const ( // VolumeStorageToNetworkProximityAcrossT2 - Standard AcrossT2 storage to network connectivity. VolumeStorageToNetworkProximityAcrossT2 VolumeStorageToNetworkProximity = "AcrossT2" // 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 - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*VolumesClient) BeginAuthorizeExternalReplication ¶
func (client *VolumesClient) BeginAuthorizeExternalReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginAuthorizeExternalReplicationOptions) (*runtime.Poller[VolumesClientAuthorizeExternalReplicationResponse], error)
BeginAuthorizeExternalReplication - Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginAuthorizeExternalReplicationOptions contains the optional parameters for the VolumesClient.BeginAuthorizeExternalReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeExternalReplication.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginAuthorizeExternalReplication(ctx, "myRG", "account1", "pool1", "volume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SvmPeerCommandResponse = armnetapp.SvmPeerCommandResponse{
// SvmPeeringCommand: to.Ptr("vserver peer accept -vserver OnPremSvm -peer-vserver AnfSvm"),
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeReplication.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().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)
}
func (*VolumesClient) BeginBreakFileLocks ¶
func (client *VolumesClient) BeginBreakFileLocks(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginBreakFileLocksOptions) (*runtime.Poller[VolumesClientBreakFileLocksResponse], error)
BeginBreakFileLocks - Break all the file locks on a volume If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginBreakFileLocksOptions contains the optional parameters for the VolumesClient.BeginBreakFileLocks method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakFileLocks.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginBreakFileLocks(ctx, "myRG", "account1", "pool1", "volume1", &armnetapp.VolumesClientBeginBreakFileLocksOptions{Body: &armnetapp.BreakFileLocksRequest{
ClientIP: to.Ptr("101.102.103.104"),
ConfirmRunningDisruptiveOperation: to.Ptr(true),
},
})
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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginBreakReplicationOptions contains the optional parameters for the VolumesClient.BeginBreakReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakReplication.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_CreateOrUpdate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginCreateOrUpdate(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.Volume{
Location: to.Ptr("eastus"),
Properties: &armnetapp.VolumeProperties{
CreationToken: to.Ptr("my-unique-file-path"),
ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium),
SubnetID: to.Ptr("/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"),
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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Volume = armnetapp.Volume{
// Name: to.Ptr("account1/pool1/volume1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("some-amazing-filepath"),
// EncryptionKeySource: to.Ptr(armnetapp.EncryptionKeySourceMicrosoftNetApp),
// FileSystemID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// ProvisioningState: to.Ptr("Succeeded"),
// 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),
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginDeleteOptions contains the optional parameters for the VolumesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Delete.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginDeleteReplicationOptions contains the optional parameters for the VolumesClient.BeginDeleteReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_DeleteReplication.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().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)
}
func (*VolumesClient) BeginFinalizeExternalReplication ¶
func (client *VolumesClient) BeginFinalizeExternalReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginFinalizeExternalReplicationOptions) (*runtime.Poller[VolumesClientFinalizeExternalReplicationResponse], error)
BeginFinalizeExternalReplication - Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginFinalizeExternalReplicationOptions contains the optional parameters for the VolumesClient.BeginFinalizeExternalReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeExternalReplication.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginFinalizeExternalReplication(ctx, "myRG", "account1", "pool1", "volume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
func (*VolumesClient) BeginFinalizeRelocation ¶
func (client *VolumesClient) BeginFinalizeRelocation(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginFinalizeRelocationOptions) (*runtime.Poller[VolumesClientFinalizeRelocationResponse], error)
BeginFinalizeRelocation - Finalizes the relocation of the volume and cleans up the old volume. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginFinalizeRelocationOptions contains the optional parameters for the VolumesClient.BeginFinalizeRelocation method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeRelocation.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginFinalizeRelocation(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)
}
func (*VolumesClient) BeginListGetGroupIDListForLdapUser ¶
func (client *VolumesClient) BeginListGetGroupIDListForLdapUser(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body GetGroupIDListForLDAPUserRequest, options *VolumesClientBeginListGetGroupIDListForLdapUserOptions) (*runtime.Poller[VolumesClientListGetGroupIDListForLdapUserResponse], error)
BeginListGetGroupIDListForLdapUser - Returns the list of group Ids for a specific LDAP User If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- body - Returns group Id list for a specific LDAP user
- options - VolumesClientBeginListGetGroupIDListForLdapUserOptions contains the optional parameters for the VolumesClient.BeginListGetGroupIDListForLdapUser method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginListGetGroupIDListForLdapUser(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.GetGroupIDListForLDAPUserRequest{
Username: to.Ptr("user1"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.GetGroupIDListForLDAPUserResponse = armnetapp.GetGroupIDListForLDAPUserResponse{
// GroupIDsForLdapUser: []*string{
// to.Ptr("123"),
// to.Ptr("224")},
// }
func (*VolumesClient) BeginListQuotaReport ¶
func (client *VolumesClient) BeginListQuotaReport(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginListQuotaReportOptions) (*runtime.Poller[VolumesClientListQuotaReportResponse], error)
BeginListQuotaReport - Returns report of quotas for the volume If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginListQuotaReportOptions contains the optional parameters for the VolumesClient.BeginListQuotaReport method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListQuotaReport.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginListQuotaReport(ctx, "myRG", "account1", "pool1", "volume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ListQuotaReportResponse = armnetapp.ListQuotaReportResponse{
// Value: []*armnetapp.QuotaReport{
// {
// IsDerivedQuota: to.Ptr(false),
// PercentageUsed: to.Ptr[float32](5),
// QuotaLimitTotalInKiBs: to.Ptr[int64](204914688),
// QuotaLimitUsedInKiBs: to.Ptr[int64](8192),
// QuotaTarget: to.Ptr("1013"),
// QuotaType: to.Ptr(armnetapp.TypeIndividualUserQuota),
// },
// {
// IsDerivedQuota: to.Ptr(false),
// PercentageUsed: to.Ptr[float32](5),
// QuotaLimitTotalInKiBs: to.Ptr[int64](204914688),
// QuotaLimitUsedInKiBs: to.Ptr[int64](8192),
// QuotaTarget: to.Ptr("1012"),
// QuotaType: to.Ptr(armnetapp.TypeIndividualGroupQuota),
// }},
// }
func (*VolumesClient) BeginPeerExternalCluster ¶
func (client *VolumesClient) BeginPeerExternalCluster(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body PeerClusterForVolumeMigrationRequest, options *VolumesClientBeginPeerExternalClusterOptions) (*runtime.Poller[VolumesClientPeerExternalClusterResponse], error)
BeginPeerExternalCluster - Starts peering the external cluster for this migration volume If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- body - Cluster peer request object supplied in the body of the operation.
- options - VolumesClientBeginPeerExternalClusterOptions contains the optional parameters for the VolumesClient.BeginPeerExternalCluster method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PeerExternalCluster.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginPeerExternalCluster(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.PeerClusterForVolumeMigrationRequest{
PeerIPAddresses: []*string{
to.Ptr("0.0.0.1"),
to.Ptr("0.0.0.2"),
to.Ptr("0.0.0.3"),
to.Ptr("0.0.0.4"),
to.Ptr("0.0.0.5"),
to.Ptr("0.0.0.6")},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ClusterPeerCommandResponse = armnetapp.ClusterPeerCommandResponse{
// PeerAcceptCommand: to.Ptr("cluster peer create -ipspace replication -encryption-protocol-proposed tls-psk -passphrase passphraseString -peer-addrs 1.1.1.1,1.1.1.2,1.1.1.3,1.1.1.4,1.1.1.5,1.1.1.6"),
// }
func (*VolumesClient) BeginPerformReplicationTransfer ¶
func (client *VolumesClient) BeginPerformReplicationTransfer(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginPerformReplicationTransferOptions) (*runtime.Poller[VolumesClientPerformReplicationTransferResponse], error)
BeginPerformReplicationTransfer - Performs an adhoc replication transfer on a volume with volumeType Migration If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginPerformReplicationTransferOptions contains the optional parameters for the VolumesClient.BeginPerformReplicationTransfer method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PerformReplicationTransfer.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginPerformReplicationTransfer(ctx, "myRG", "account1", "pool1", "volume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PoolChange.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().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)
}
func (*VolumesClient) BeginPopulateAvailabilityZone ¶
func (client *VolumesClient) BeginPopulateAvailabilityZone(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginPopulateAvailabilityZoneOptions) (*runtime.Poller[VolumesClientPopulateAvailabilityZoneResponse], error)
BeginPopulateAvailabilityZone - This operation will populate availability zone information for a volume If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginPopulateAvailabilityZoneOptions contains the optional parameters for the VolumesClient.BeginPopulateAvailabilityZone method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PopulateAvailabilityZones.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginPopulateAvailabilityZone(ctx, "myRG", "account1", "pool1", "volume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Volume = armnetapp.Volume{
// Name: to.Ptr("account1/pool1/volume1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("some-amazing-filepath"),
// FileSystemID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// NetworkFeatures: to.Ptr(armnetapp.NetworkFeaturesStandard),
// NetworkSiblingSetID: to.Ptr("0f434a03-ce0b-4935-81af-d98652ffb1c4"),
// ProvisioningState: to.Ptr("Succeeded"),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium),
// StorageToNetworkProximity: to.Ptr(armnetapp.VolumeStorageToNetworkProximityT2),
// 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),
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginReInitializeReplicationOptions contains the optional parameters for the VolumesClient.BeginReInitializeReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReInitializeReplication.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().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)
}
func (*VolumesClient) BeginReestablishReplication ¶
func (client *VolumesClient) BeginReestablishReplication(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, body ReestablishReplicationRequest, options *VolumesClientBeginReestablishReplicationOptions) (*runtime.Poller[VolumesClientReestablishReplicationResponse], error)
BeginReestablishReplication - Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- body - body for the id of the source volume.
- options - VolumesClientBeginReestablishReplicationOptions contains the optional parameters for the VolumesClient.BeginReestablishReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReestablishReplication.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginReestablishReplication(ctx, "myRG", "account1", "pool1", "volume1", armnetapp.ReestablishReplicationRequest{
SourceVolumeID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1"),
}, 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)
}
func (*VolumesClient) BeginRelocate ¶
func (client *VolumesClient) BeginRelocate(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginRelocateOptions) (*runtime.Poller[VolumesClientRelocateResponse], error)
BeginRelocate - Relocates volume to a new stamp If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginRelocateOptions contains the optional parameters for the VolumesClient.BeginRelocate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Relocate.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginRelocate(ctx, "myRG", "account1", "pool1", "volume1", &armnetapp.VolumesClientBeginRelocateOptions{Body: &armnetapp.RelocateVolumeRequest{}})
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)
}
func (*VolumesClient) BeginResetCifsPassword ¶
func (client *VolumesClient) BeginResetCifsPassword(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginResetCifsPasswordOptions) (*runtime.Poller[VolumesClientResetCifsPasswordResponse], error)
BeginResetCifsPassword - Reset cifs password from volume If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginResetCifsPasswordOptions contains the optional parameters for the VolumesClient.BeginResetCifsPassword method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResetCifsPassword.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginResetCifsPassword(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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginResyncReplicationOptions contains the optional parameters for the VolumesClient.BeginResyncReplication method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResyncReplication.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().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)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Revert.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().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)
}
func (*VolumesClient) BeginRevertRelocation ¶
func (client *VolumesClient) BeginRevertRelocation(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginRevertRelocationOptions) (*runtime.Poller[VolumesClientRevertRelocationResponse], error)
BeginRevertRelocation - Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginRevertRelocationOptions contains the optional parameters for the VolumesClient.BeginRevertRelocation method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_RevertRelocation.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginRevertRelocation(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)
}
func (*VolumesClient) BeginSplitCloneFromParent ¶
func (client *VolumesClient) BeginSplitCloneFromParent(ctx context.Context, resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientBeginSplitCloneFromParentOptions) (*runtime.Poller[VolumesClientSplitCloneFromParentResponse], error)
BeginSplitCloneFromParent - Split operation to convert clone volume to an independent volume. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientBeginSplitCloneFromParentOptions contains the optional parameters for the VolumesClient.BeginSplitCloneFromParent method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_SplitClone.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().BeginSplitCloneFromParent(ctx, "myRG", "account1", "pool1", "volume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- 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/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Update.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVolumesClient().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)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Volume = armnetapp.Volume{
// Name: to.Ptr("account1/pool1/volume1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("some-amazing-filepath"),
// DataProtection: &armnetapp.VolumePropertiesDataProtection{
// Snapshot: &armnetapp.VolumeSnapshotProperties{
// SnapshotPolicyID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotPolicy1"),
// },
// },
// FileSystemID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// NetworkFeatures: to.Ptr(armnetapp.NetworkFeaturesStandard),
// NetworkSiblingSetID: to.Ptr("0f434a03-ce0b-4935-81af-d98652ffb1c4"),
// ProvisioningState: to.Ptr("Succeeded"),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium),
// StorageToNetworkProximity: to.Ptr(armnetapp.VolumeStorageToNetworkProximityT2),
// 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),
// },
// }
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientGetOptions contains the optional parameters for the VolumesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Get.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewVolumesClient().Get(ctx, "myRG", "account1", "pool1", "volume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Volume = armnetapp.Volume{
// Name: to.Ptr("account1/pool1/volume1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("some-amazing-filepath"),
// FileSystemID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// NetworkFeatures: to.Ptr(armnetapp.NetworkFeaturesStandard),
// NetworkSiblingSetID: to.Ptr("0f434a03-ce0b-4935-81af-d98652ffb1c4"),
// ProvisioningState: to.Ptr("Succeeded"),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium),
// StorageToNetworkProximity: to.Ptr(armnetapp.VolumeStorageToNetworkProximityT2),
// 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),
// },
// }
func (*VolumesClient) NewListPager ¶
func (client *VolumesClient) NewListPager(resourceGroupName string, accountName string, poolName string, options *VolumesClientListOptions) *runtime.Pager[VolumesClientListResponse]
NewListPager - List all volumes within the capacity pool
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- options - VolumesClientListOptions contains the optional parameters for the VolumesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_List.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewVolumesClient().NewListPager("myRG", "account1", "pool1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.VolumeList = armnetapp.VolumeList{
// Value: []*armnetapp.Volume{
// {
// Name: to.Ptr("account1/pool1/volume1"),
// Type: to.Ptr("Microsoft.NetApp/netAppAccounts/capacityPools/volumes"),
// ID: to.Ptr("/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1"),
// Location: to.Ptr("eastus"),
// Properties: &armnetapp.VolumeProperties{
// CreationToken: to.Ptr("some-amazing-filepath"),
// FileSystemID: to.Ptr("9760acf5-4638-11e7-9bdb-020073ca7778"),
// NetworkFeatures: to.Ptr(armnetapp.NetworkFeaturesStandard),
// NetworkSiblingSetID: to.Ptr("0f434a03-ce0b-4935-81af-d98652ffb1c4"),
// ProvisioningState: to.Ptr("Succeeded"),
// ServiceLevel: to.Ptr(armnetapp.ServiceLevelPremium),
// StorageToNetworkProximity: to.Ptr(armnetapp.VolumeStorageToNetworkProximityT2),
// 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),
// },
// }},
// }
}
func (*VolumesClient) NewListReplicationsPager ¶
func (client *VolumesClient) NewListReplicationsPager(resourceGroupName string, accountName string, poolName string, volumeName string, options *VolumesClientListReplicationsOptions) *runtime.Pager[VolumesClientListReplicationsResponse]
NewListReplicationsPager - List all replications for a specified volume
Generated from API version 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientListReplicationsOptions contains the optional parameters for the VolumesClient.NewListReplicationsPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListReplications.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewVolumesClient().NewListReplicationsPager("myRG", "account1", "pool1", "volume1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.ListReplications = armnetapp.ListReplications{
// Value: []*armnetapp.Replication{
// {
// RemoteVolumeRegion: to.Ptr("westus"),
// RemoteVolumeResourceID: to.Ptr("/subscriptions/36e85c76-e720-473e-881f-e2fe72f462d0/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account-5999/capacityPools/pool-0977/volumes/volume-4508"),
// ReplicationSchedule: to.Ptr(armnetapp.ReplicationScheduleDaily),
// }},
// }
}
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 2024-07-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- accountName - The name of the NetApp account
- poolName - The name of the capacity pool
- volumeName - The name of the volume
- options - VolumesClientReplicationStatusOptions contains the optional parameters for the VolumesClient.ReplicationStatus method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/e838027e88cca634c1545e744630de9262a6e72a/specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReplicationStatus.json
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewVolumesClient().ReplicationStatus(ctx, "myRG", "account1", "pool1", "volume1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ReplicationStatus = armnetapp.ReplicationStatus{
// ErrorMessage: to.Ptr(""),
// Healthy: to.Ptr(true),
// MirrorState: to.Ptr(armnetapp.MirrorStateMirrored),
// RelationshipStatus: to.Ptr(armnetapp.RelationshipStatusIdle),
// TotalProgress: to.Ptr("1048576"),
// }
type VolumesClientAuthorizeExternalReplicationResponse ¶
type VolumesClientAuthorizeExternalReplicationResponse struct {
// Information about svm peering process
SvmPeerCommandResponse
}
VolumesClientAuthorizeExternalReplicationResponse contains the response from method VolumesClient.BeginAuthorizeExternalReplication.
type VolumesClientAuthorizeReplicationResponse ¶
type VolumesClientAuthorizeReplicationResponse struct {
}
VolumesClientAuthorizeReplicationResponse contains the response from method VolumesClient.BeginAuthorizeReplication.
type VolumesClientBeginAuthorizeExternalReplicationOptions ¶
type VolumesClientBeginAuthorizeExternalReplicationOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginAuthorizeExternalReplicationOptions contains the optional parameters for the VolumesClient.BeginAuthorizeExternalReplication method.
type VolumesClientBeginAuthorizeReplicationOptions ¶
type VolumesClientBeginAuthorizeReplicationOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginAuthorizeReplicationOptions contains the optional parameters for the VolumesClient.BeginAuthorizeReplication method.
type VolumesClientBeginBreakFileLocksOptions ¶
type VolumesClientBeginBreakFileLocksOptions struct {
// Optional body to provide the ability to clear file locks with selected options
Body *BreakFileLocksRequest
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginBreakFileLocksOptions contains the optional parameters for the VolumesClient.BeginBreakFileLocks method.
type VolumesClientBeginBreakReplicationOptions ¶
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 ¶
type VolumesClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginCreateOrUpdateOptions contains the optional parameters for the VolumesClient.BeginCreateOrUpdate method.
type VolumesClientBeginDeleteOptions ¶
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 ¶
type VolumesClientBeginDeleteReplicationOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginDeleteReplicationOptions contains the optional parameters for the VolumesClient.BeginDeleteReplication method.
type VolumesClientBeginFinalizeExternalReplicationOptions ¶
type VolumesClientBeginFinalizeExternalReplicationOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginFinalizeExternalReplicationOptions contains the optional parameters for the VolumesClient.BeginFinalizeExternalReplication method.
type VolumesClientBeginFinalizeRelocationOptions ¶
type VolumesClientBeginFinalizeRelocationOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginFinalizeRelocationOptions contains the optional parameters for the VolumesClient.BeginFinalizeRelocation method.
type VolumesClientBeginListGetGroupIDListForLdapUserOptions ¶
type VolumesClientBeginListGetGroupIDListForLdapUserOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginListGetGroupIDListForLdapUserOptions contains the optional parameters for the VolumesClient.BeginListGetGroupIDListForLdapUser method.
type VolumesClientBeginListQuotaReportOptions ¶
type VolumesClientBeginListQuotaReportOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginListQuotaReportOptions contains the optional parameters for the VolumesClient.BeginListQuotaReport method.
type VolumesClientBeginPeerExternalClusterOptions ¶
type VolumesClientBeginPeerExternalClusterOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginPeerExternalClusterOptions contains the optional parameters for the VolumesClient.BeginPeerExternalCluster method.
type VolumesClientBeginPerformReplicationTransferOptions ¶
type VolumesClientBeginPerformReplicationTransferOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginPerformReplicationTransferOptions contains the optional parameters for the VolumesClient.BeginPerformReplicationTransfer method.
type VolumesClientBeginPoolChangeOptions ¶
type VolumesClientBeginPoolChangeOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginPoolChangeOptions contains the optional parameters for the VolumesClient.BeginPoolChange method.
type VolumesClientBeginPopulateAvailabilityZoneOptions ¶
type VolumesClientBeginPopulateAvailabilityZoneOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginPopulateAvailabilityZoneOptions contains the optional parameters for the VolumesClient.BeginPopulateAvailabilityZone method.
type VolumesClientBeginReInitializeReplicationOptions ¶
type VolumesClientBeginReInitializeReplicationOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginReInitializeReplicationOptions contains the optional parameters for the VolumesClient.BeginReInitializeReplication method.
type VolumesClientBeginReestablishReplicationOptions ¶
type VolumesClientBeginReestablishReplicationOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginReestablishReplicationOptions contains the optional parameters for the VolumesClient.BeginReestablishReplication method.
type VolumesClientBeginRelocateOptions ¶
type VolumesClientBeginRelocateOptions struct {
// Relocate volume request
Body *RelocateVolumeRequest
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginRelocateOptions contains the optional parameters for the VolumesClient.BeginRelocate method.
type VolumesClientBeginResetCifsPasswordOptions ¶
type VolumesClientBeginResetCifsPasswordOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginResetCifsPasswordOptions contains the optional parameters for the VolumesClient.BeginResetCifsPassword method.
type VolumesClientBeginResyncReplicationOptions ¶
type VolumesClientBeginResyncReplicationOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginResyncReplicationOptions contains the optional parameters for the VolumesClient.BeginResyncReplication method.
type VolumesClientBeginRevertOptions ¶
type VolumesClientBeginRevertOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginRevertOptions contains the optional parameters for the VolumesClient.BeginRevert method.
type VolumesClientBeginRevertRelocationOptions ¶
type VolumesClientBeginRevertRelocationOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginRevertRelocationOptions contains the optional parameters for the VolumesClient.BeginRevertRelocation method.
type VolumesClientBeginSplitCloneFromParentOptions ¶
type VolumesClientBeginSplitCloneFromParentOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginSplitCloneFromParentOptions contains the optional parameters for the VolumesClient.BeginSplitCloneFromParent method.
type VolumesClientBeginUpdateOptions ¶
type VolumesClientBeginUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
VolumesClientBeginUpdateOptions contains the optional parameters for the VolumesClient.BeginUpdate method.
type VolumesClientBreakFileLocksResponse ¶
type VolumesClientBreakFileLocksResponse struct {
}
VolumesClientBreakFileLocksResponse contains the response from method VolumesClient.BeginBreakFileLocks.
type VolumesClientBreakReplicationResponse ¶
type VolumesClientBreakReplicationResponse struct {
}
VolumesClientBreakReplicationResponse contains the response from method VolumesClient.BeginBreakReplication.
type VolumesClientCreateOrUpdateResponse ¶
type VolumesClientCreateOrUpdateResponse struct {
// Volume resource
Volume
}
VolumesClientCreateOrUpdateResponse contains the response from method VolumesClient.BeginCreateOrUpdate.
type VolumesClientDeleteReplicationResponse ¶
type VolumesClientDeleteReplicationResponse struct {
}
VolumesClientDeleteReplicationResponse contains the response from method VolumesClient.BeginDeleteReplication.
type VolumesClientDeleteResponse ¶
type VolumesClientDeleteResponse struct {
}
VolumesClientDeleteResponse contains the response from method VolumesClient.BeginDelete.
type VolumesClientFinalizeExternalReplicationResponse ¶
type VolumesClientFinalizeExternalReplicationResponse struct {
}
VolumesClientFinalizeExternalReplicationResponse contains the response from method VolumesClient.BeginFinalizeExternalReplication.
type VolumesClientFinalizeRelocationResponse ¶
type VolumesClientFinalizeRelocationResponse struct {
}
VolumesClientFinalizeRelocationResponse contains the response from method VolumesClient.BeginFinalizeRelocation.
type VolumesClientGetOptions ¶
type VolumesClientGetOptions struct {
}
VolumesClientGetOptions contains the optional parameters for the VolumesClient.Get method.
type VolumesClientGetResponse ¶
type VolumesClientGetResponse struct {
// Volume resource
Volume
}
VolumesClientGetResponse contains the response from method VolumesClient.Get.
type VolumesClientListGetGroupIDListForLdapUserResponse ¶
type VolumesClientListGetGroupIDListForLdapUserResponse struct {
// Group Id list for Ldap user
GetGroupIDListForLDAPUserResponse
}
VolumesClientListGetGroupIDListForLdapUserResponse contains the response from method VolumesClient.BeginListGetGroupIDListForLdapUser.
type VolumesClientListOptions ¶
type VolumesClientListOptions struct {
}
VolumesClientListOptions contains the optional parameters for the VolumesClient.NewListPager method.
type VolumesClientListQuotaReportResponse ¶
type VolumesClientListQuotaReportResponse struct {
// Quota Report for volume
ListQuotaReportResponse
}
VolumesClientListQuotaReportResponse contains the response from method VolumesClient.BeginListQuotaReport.
type VolumesClientListReplicationsOptions ¶
type VolumesClientListReplicationsOptions struct {
}
VolumesClientListReplicationsOptions contains the optional parameters for the VolumesClient.NewListReplicationsPager method.
type VolumesClientListReplicationsResponse ¶
type VolumesClientListReplicationsResponse struct {
// List Replications
ListReplications
}
VolumesClientListReplicationsResponse contains the response from method VolumesClient.NewListReplicationsPager.
type VolumesClientListResponse ¶
type VolumesClientListResponse struct {
// List of volume resources
VolumeList
}
VolumesClientListResponse contains the response from method VolumesClient.NewListPager.
type VolumesClientPeerExternalClusterResponse ¶
type VolumesClientPeerExternalClusterResponse struct {
// Information about cluster peering process
ClusterPeerCommandResponse
}
VolumesClientPeerExternalClusterResponse contains the response from method VolumesClient.BeginPeerExternalCluster.
type VolumesClientPerformReplicationTransferResponse ¶
type VolumesClientPerformReplicationTransferResponse struct {
}
VolumesClientPerformReplicationTransferResponse contains the response from method VolumesClient.BeginPerformReplicationTransfer.
type VolumesClientPoolChangeResponse ¶
type VolumesClientPoolChangeResponse struct {
}
VolumesClientPoolChangeResponse contains the response from method VolumesClient.BeginPoolChange.
type VolumesClientPopulateAvailabilityZoneResponse ¶
type VolumesClientPopulateAvailabilityZoneResponse struct {
// Volume resource
Volume
}
VolumesClientPopulateAvailabilityZoneResponse contains the response from method VolumesClient.BeginPopulateAvailabilityZone.
type VolumesClientReInitializeReplicationResponse ¶
type VolumesClientReInitializeReplicationResponse struct {
}
VolumesClientReInitializeReplicationResponse contains the response from method VolumesClient.BeginReInitializeReplication.
type VolumesClientReestablishReplicationResponse ¶
type VolumesClientReestablishReplicationResponse struct {
}
VolumesClientReestablishReplicationResponse contains the response from method VolumesClient.BeginReestablishReplication.
type VolumesClientRelocateResponse ¶
type VolumesClientRelocateResponse struct {
}
VolumesClientRelocateResponse contains the response from method VolumesClient.BeginRelocate.
type VolumesClientReplicationStatusOptions ¶
type VolumesClientReplicationStatusOptions struct {
}
VolumesClientReplicationStatusOptions contains the optional parameters for the VolumesClient.ReplicationStatus method.
type VolumesClientReplicationStatusResponse ¶
type VolumesClientReplicationStatusResponse struct {
// Replication status
ReplicationStatus
}
VolumesClientReplicationStatusResponse contains the response from method VolumesClient.ReplicationStatus.
type VolumesClientResetCifsPasswordResponse ¶
type VolumesClientResetCifsPasswordResponse struct {
}
VolumesClientResetCifsPasswordResponse contains the response from method VolumesClient.BeginResetCifsPassword.
type VolumesClientResyncReplicationResponse ¶
type VolumesClientResyncReplicationResponse struct {
}
VolumesClientResyncReplicationResponse contains the response from method VolumesClient.BeginResyncReplication.
type VolumesClientRevertRelocationResponse ¶
type VolumesClientRevertRelocationResponse struct {
}
VolumesClientRevertRelocationResponse contains the response from method VolumesClient.BeginRevertRelocation.
type VolumesClientRevertResponse ¶
type VolumesClientRevertResponse struct {
}
VolumesClientRevertResponse contains the response from method VolumesClient.BeginRevert.
type VolumesClientSplitCloneFromParentResponse ¶
type VolumesClientSplitCloneFromParentResponse struct {
}
VolumesClientSplitCloneFromParentResponse contains the response from method VolumesClient.BeginSplitCloneFromParent.
type VolumesClientUpdateResponse ¶
type VolumesClientUpdateResponse struct {
// Volume resource
Volume
}
VolumesClientUpdateResponse contains the response from method VolumesClient.BeginUpdate.
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
// Indicates which hour in UTC timezone a snapshot should be taken
Hour *int32
// Indicates which minute snapshot should be taken
Minute *int32
// Weekly snapshot count to keep
SnapshotsToKeep *int32
// Resource size in bytes, current storage usage for the volume in bytes
UsedBytes *int64
}
WeeklySchedule - Weekly Schedule properties, make a snapshot every week at a specific day or days
func (WeeklySchedule) MarshalJSON ¶
func (w WeeklySchedule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WeeklySchedule.
func (*WeeklySchedule) UnmarshalJSON ¶
func (w *WeeklySchedule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WeeklySchedule.
Source Files
¶
- accounts_client.go
- backuppolicies_client.go
- backups_client.go
- backupsunderaccount_client.go
- backupsunderbackupvault_client.go
- backupsundervolume_client.go
- backupvaults_client.go
- build.go
- client_factory.go
- constants.go
- models.go
- models_serde.go
- operations_client.go
- options.go
- pools_client.go
- resource_client.go
- resourcequotalimits_client.go
- resourceregioninfos_client.go
- responses.go
- snapshotpolicies_client.go
- snapshots_client.go
- subvolumes_client.go
- time_rfc3339.go
- volumegroups_client.go
- volumequotarules_client.go
- volumes_client.go