NetApp API v1 - Package cloud.google.com/go/netapp/apiv1 (v1.10.1) Stay organized with collections Save and categorize content based on your preferences.
Package netapp is an auto-generated package for theNetApp API.
Google Cloud NetApp Volumes is a fully-managed, cloud-based data storageservice that provides advanced data management capabilities and highlyscalable performance with global availability.
General documentation
For information that is relevant for all client libraries please referencehttps://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on thispage includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage
To get started with this package, create a client.
// go get cloud.google.com/go/netapp/apiv1@latestctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed.The methods of Client are safe for concurrent use by multiple goroutines.The returned client must be Closed when it is done being used.
Using the Client
The following is an example of making an API call with the newly created client, mentioned above.
req:=&netapppb.CreateActiveDirectoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateActiveDirectoryRequest.}op,err:=c.CreateActiveDirectory(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp
Use of Context
The ctx passed to NewClient is used for authentication requests andfor creating the underlying connection, but is not used for subsequent calls.Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Functions
func DefaultAuthScopes
funcDefaultAuthScopes()[]stringDefaultAuthScopes reports the default set of authentication scopes to use with this package.
ActiveDirectoryIterator
typeActiveDirectoryIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*netapppb.ActiveDirectory,nextPageTokenstring,errerror)// contains filtered or unexported fields}ActiveDirectoryIterator manages a stream of *netapppb.ActiveDirectory.
func (*ActiveDirectoryIterator) All
func(it*ActiveDirectoryIterator)All()iter.Seq2[*netapppb.ActiveDirectory,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*ActiveDirectoryIterator) Next
func(it*ActiveDirectoryIterator)Next()(*netapppb.ActiveDirectory,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*ActiveDirectoryIterator) PageInfo
func(it*ActiveDirectoryIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
BackupIterator
typeBackupIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*netapppb.Backup,nextPageTokenstring,errerror)// contains filtered or unexported fields}BackupIterator manages a stream of *netapppb.Backup.
func (*BackupIterator) All
func(it*BackupIterator)All()iter.Seq2[*netapppb.Backup,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*BackupIterator) Next
func(it*BackupIterator)Next()(*netapppb.Backup,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*BackupIterator) PageInfo
func(it*BackupIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
BackupPolicyIterator
typeBackupPolicyIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*netapppb.BackupPolicy,nextPageTokenstring,errerror)// contains filtered or unexported fields}BackupPolicyIterator manages a stream of *netapppb.BackupPolicy.
func (*BackupPolicyIterator) All
func(it*BackupPolicyIterator)All()iter.Seq2[*netapppb.BackupPolicy,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*BackupPolicyIterator) Next
func(it*BackupPolicyIterator)Next()(*netapppb.BackupPolicy,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*BackupPolicyIterator) PageInfo
func(it*BackupPolicyIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
BackupVaultIterator
typeBackupVaultIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*netapppb.BackupVault,nextPageTokenstring,errerror)// contains filtered or unexported fields}BackupVaultIterator manages a stream of *netapppb.BackupVault.
func (*BackupVaultIterator) All
func(it*BackupVaultIterator)All()iter.Seq2[*netapppb.BackupVault,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*BackupVaultIterator) Next
func(it*BackupVaultIterator)Next()(*netapppb.BackupVault,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*BackupVaultIterator) PageInfo
func(it*BackupVaultIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
CallOptions
typeCallOptionsstruct{ListStoragePools[]gax.CallOptionCreateStoragePool[]gax.CallOptionGetStoragePool[]gax.CallOptionUpdateStoragePool[]gax.CallOptionDeleteStoragePool[]gax.CallOptionValidateDirectoryService[]gax.CallOptionSwitchActiveReplicaZone[]gax.CallOptionListVolumes[]gax.CallOptionGetVolume[]gax.CallOptionCreateVolume[]gax.CallOptionUpdateVolume[]gax.CallOptionDeleteVolume[]gax.CallOptionRevertVolume[]gax.CallOptionListSnapshots[]gax.CallOptionGetSnapshot[]gax.CallOptionCreateSnapshot[]gax.CallOptionDeleteSnapshot[]gax.CallOptionUpdateSnapshot[]gax.CallOptionListActiveDirectories[]gax.CallOptionGetActiveDirectory[]gax.CallOptionCreateActiveDirectory[]gax.CallOptionUpdateActiveDirectory[]gax.CallOptionDeleteActiveDirectory[]gax.CallOptionListKmsConfigs[]gax.CallOptionCreateKmsConfig[]gax.CallOptionGetKmsConfig[]gax.CallOptionUpdateKmsConfig[]gax.CallOptionEncryptVolumes[]gax.CallOptionVerifyKmsConfig[]gax.CallOptionDeleteKmsConfig[]gax.CallOptionListReplications[]gax.CallOptionGetReplication[]gax.CallOptionCreateReplication[]gax.CallOptionDeleteReplication[]gax.CallOptionUpdateReplication[]gax.CallOptionStopReplication[]gax.CallOptionResumeReplication[]gax.CallOptionReverseReplicationDirection[]gax.CallOptionEstablishPeering[]gax.CallOptionSyncReplication[]gax.CallOptionCreateBackupVault[]gax.CallOptionGetBackupVault[]gax.CallOptionListBackupVaults[]gax.CallOptionUpdateBackupVault[]gax.CallOptionDeleteBackupVault[]gax.CallOptionCreateBackup[]gax.CallOptionGetBackup[]gax.CallOptionListBackups[]gax.CallOptionDeleteBackup[]gax.CallOptionUpdateBackup[]gax.CallOptionCreateBackupPolicy[]gax.CallOptionGetBackupPolicy[]gax.CallOptionListBackupPolicies[]gax.CallOptionUpdateBackupPolicy[]gax.CallOptionDeleteBackupPolicy[]gax.CallOptionListQuotaRules[]gax.CallOptionGetQuotaRule[]gax.CallOptionCreateQuotaRule[]gax.CallOptionUpdateQuotaRule[]gax.CallOptionDeleteQuotaRule[]gax.CallOptionGetLocation[]gax.CallOptionListLocations[]gax.CallOptionCancelOperation[]gax.CallOptionDeleteOperation[]gax.CallOptionGetOperation[]gax.CallOptionListOperations[]gax.CallOption}CallOptions contains the retry settings for each method of Client.
Client
typeClientstruct{// The call options for this service.CallOptions*CallOptions// LROClient is used internally to handle long-running operations.// It is exposed so that its CallOptions can be modified if required.// Users should not Close this client.LROClient*lroauto.OperationsClient// contains filtered or unexported fields}Client is a client for interacting with NetApp API.Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
NetApp Files Google Cloud Service
func NewClient
NewClient creates a new net app client based on gRPC.The returned client must be Closed when it is done being used to clean up its underlying connections.
NetApp Files Google Cloud Service
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func NewRESTClient
NewRESTClient creates a new net app rest client.
NetApp Files Google Cloud Service
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewRESTClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()// TODO: Use client._=c}func (*Client) CancelOperation
func(c*Client)CancelOperation(ctxcontext.Context,req*longrunningpb.CancelOperationRequest,opts...gax.CallOption)errorCancelOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"netapp"cloud.google.com/go/netapp/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.CancelOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.}err=c.CancelOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) Close
Close closes the connection to the API service. The user should invoke this whenthe client is no longer required.
func (*Client) Connection (deprecated)
func(c*Client)Connection()*grpc.ClientConnConnection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.
func (*Client) CreateActiveDirectory
func(c*Client)CreateActiveDirectory(ctxcontext.Context,req*netapppb.CreateActiveDirectoryRequest,opts...gax.CallOption)(*CreateActiveDirectoryOperation,error)CreateActiveDirectory createActiveDirectoryCreates the active directory specified in the request.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.CreateActiveDirectoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateActiveDirectoryRequest.}op,err:=c.CreateActiveDirectory(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateActiveDirectoryOperation
func(c*Client)CreateActiveDirectoryOperation(namestring)*CreateActiveDirectoryOperationCreateActiveDirectoryOperation returns a new CreateActiveDirectoryOperation from a given name.The name must be that of a previously created CreateActiveDirectoryOperation, possibly from a different process.
func (*Client) CreateBackup
func(c*Client)CreateBackup(ctxcontext.Context,req*netapppb.CreateBackupRequest,opts...gax.CallOption)(*CreateBackupOperation,error)CreateBackup creates a backup from the volume specified in the requestThe backup can be created from the given snapshot if specified in therequest. If no snapshot specified, there’ll be a new snapshot taken toinitiate the backup creation.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.CreateBackupRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateBackupRequest.}op,err:=c.CreateBackup(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateBackupOperation
func(c*Client)CreateBackupOperation(namestring)*CreateBackupOperationCreateBackupOperation returns a new CreateBackupOperation from a given name.The name must be that of a previously created CreateBackupOperation, possibly from a different process.
func (*Client) CreateBackupPolicy
func(c*Client)CreateBackupPolicy(ctxcontext.Context,req*netapppb.CreateBackupPolicyRequest,opts...gax.CallOption)(*CreateBackupPolicyOperation,error)CreateBackupPolicy creates new backup policy
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.CreateBackupPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateBackupPolicyRequest.}op,err:=c.CreateBackupPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateBackupPolicyOperation
func(c*Client)CreateBackupPolicyOperation(namestring)*CreateBackupPolicyOperationCreateBackupPolicyOperation returns a new CreateBackupPolicyOperation from a given name.The name must be that of a previously created CreateBackupPolicyOperation, possibly from a different process.
func (*Client) CreateBackupVault
func(c*Client)CreateBackupVault(ctxcontext.Context,req*netapppb.CreateBackupVaultRequest,opts...gax.CallOption)(*CreateBackupVaultOperation,error)CreateBackupVault creates new backup vault
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.CreateBackupVaultRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateBackupVaultRequest.}op,err:=c.CreateBackupVault(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateBackupVaultOperation
func(c*Client)CreateBackupVaultOperation(namestring)*CreateBackupVaultOperationCreateBackupVaultOperation returns a new CreateBackupVaultOperation from a given name.The name must be that of a previously created CreateBackupVaultOperation, possibly from a different process.
func (*Client) CreateKmsConfig
func(c*Client)CreateKmsConfig(ctxcontext.Context,req*netapppb.CreateKmsConfigRequest,opts...gax.CallOption)(*CreateKmsConfigOperation,error)CreateKmsConfig creates a new KMS config.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.CreateKmsConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateKmsConfigRequest.}op,err:=c.CreateKmsConfig(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateKmsConfigOperation
func(c*Client)CreateKmsConfigOperation(namestring)*CreateKmsConfigOperationCreateKmsConfigOperation returns a new CreateKmsConfigOperation from a given name.The name must be that of a previously created CreateKmsConfigOperation, possibly from a different process.
func (*Client) CreateQuotaRule
func(c*Client)CreateQuotaRule(ctxcontext.Context,req*netapppb.CreateQuotaRuleRequest,opts...gax.CallOption)(*CreateQuotaRuleOperation,error)CreateQuotaRule creates a new quota rule.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.CreateQuotaRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateQuotaRuleRequest.}op,err:=c.CreateQuotaRule(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateQuotaRuleOperation
func(c*Client)CreateQuotaRuleOperation(namestring)*CreateQuotaRuleOperationCreateQuotaRuleOperation returns a new CreateQuotaRuleOperation from a given name.The name must be that of a previously created CreateQuotaRuleOperation, possibly from a different process.
func (*Client) CreateReplication
func(c*Client)CreateReplication(ctxcontext.Context,req*netapppb.CreateReplicationRequest,opts...gax.CallOption)(*CreateReplicationOperation,error)CreateReplication create a new replication for a volume.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.CreateReplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateReplicationRequest.}op,err:=c.CreateReplication(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateReplicationOperation
func(c*Client)CreateReplicationOperation(namestring)*CreateReplicationOperationCreateReplicationOperation returns a new CreateReplicationOperation from a given name.The name must be that of a previously created CreateReplicationOperation, possibly from a different process.
func (*Client) CreateSnapshot
func(c*Client)CreateSnapshot(ctxcontext.Context,req*netapppb.CreateSnapshotRequest,opts...gax.CallOption)(*CreateSnapshotOperation,error)CreateSnapshot create a new snapshot for a volume.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.CreateSnapshotRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateSnapshotRequest.}op,err:=c.CreateSnapshot(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateSnapshotOperation
func(c*Client)CreateSnapshotOperation(namestring)*CreateSnapshotOperationCreateSnapshotOperation returns a new CreateSnapshotOperation from a given name.The name must be that of a previously created CreateSnapshotOperation, possibly from a different process.
func (*Client) CreateStoragePool
func(c*Client)CreateStoragePool(ctxcontext.Context,req*netapppb.CreateStoragePoolRequest,opts...gax.CallOption)(*CreateStoragePoolOperation,error)CreateStoragePool creates a new storage pool.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.CreateStoragePoolRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateStoragePoolRequest.}op,err:=c.CreateStoragePool(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateStoragePoolOperation
func(c*Client)CreateStoragePoolOperation(namestring)*CreateStoragePoolOperationCreateStoragePoolOperation returns a new CreateStoragePoolOperation from a given name.The name must be that of a previously created CreateStoragePoolOperation, possibly from a different process.
func (*Client) CreateVolume
func(c*Client)CreateVolume(ctxcontext.Context,req*netapppb.CreateVolumeRequest,opts...gax.CallOption)(*CreateVolumeOperation,error)CreateVolume creates a new Volume in a given project and location.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.CreateVolumeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateVolumeRequest.}op,err:=c.CreateVolume(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) CreateVolumeOperation
func(c*Client)CreateVolumeOperation(namestring)*CreateVolumeOperationCreateVolumeOperation returns a new CreateVolumeOperation from a given name.The name must be that of a previously created CreateVolumeOperation, possibly from a different process.
func (*Client) DeleteActiveDirectory
func(c*Client)DeleteActiveDirectory(ctxcontext.Context,req*netapppb.DeleteActiveDirectoryRequest,opts...gax.CallOption)(*DeleteActiveDirectoryOperation,error)DeleteActiveDirectory delete the active directory specified in the request.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.DeleteActiveDirectoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteActiveDirectoryRequest.}op,err:=c.DeleteActiveDirectory(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteActiveDirectoryOperation
func(c*Client)DeleteActiveDirectoryOperation(namestring)*DeleteActiveDirectoryOperationDeleteActiveDirectoryOperation returns a new DeleteActiveDirectoryOperation from a given name.The name must be that of a previously created DeleteActiveDirectoryOperation, possibly from a different process.
func (*Client) DeleteBackup
func(c*Client)DeleteBackup(ctxcontext.Context,req*netapppb.DeleteBackupRequest,opts...gax.CallOption)(*DeleteBackupOperation,error)DeleteBackup warning! This operation will permanently delete the backup.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.DeleteBackupRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteBackupRequest.}op,err:=c.DeleteBackup(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteBackupOperation
func(c*Client)DeleteBackupOperation(namestring)*DeleteBackupOperationDeleteBackupOperation returns a new DeleteBackupOperation from a given name.The name must be that of a previously created DeleteBackupOperation, possibly from a different process.
func (*Client) DeleteBackupPolicy
func(c*Client)DeleteBackupPolicy(ctxcontext.Context,req*netapppb.DeleteBackupPolicyRequest,opts...gax.CallOption)(*DeleteBackupPolicyOperation,error)DeleteBackupPolicy warning! This operation will permanently delete the backup policy.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.DeleteBackupPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteBackupPolicyRequest.}op,err:=c.DeleteBackupPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteBackupPolicyOperation
func(c*Client)DeleteBackupPolicyOperation(namestring)*DeleteBackupPolicyOperationDeleteBackupPolicyOperation returns a new DeleteBackupPolicyOperation from a given name.The name must be that of a previously created DeleteBackupPolicyOperation, possibly from a different process.
func (*Client) DeleteBackupVault
func(c*Client)DeleteBackupVault(ctxcontext.Context,req*netapppb.DeleteBackupVaultRequest,opts...gax.CallOption)(*DeleteBackupVaultOperation,error)DeleteBackupVault warning! This operation will permanently delete the backup vault.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.DeleteBackupVaultRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteBackupVaultRequest.}op,err:=c.DeleteBackupVault(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteBackupVaultOperation
func(c*Client)DeleteBackupVaultOperation(namestring)*DeleteBackupVaultOperationDeleteBackupVaultOperation returns a new DeleteBackupVaultOperation from a given name.The name must be that of a previously created DeleteBackupVaultOperation, possibly from a different process.
func (*Client) DeleteKmsConfig
func(c*Client)DeleteKmsConfig(ctxcontext.Context,req*netapppb.DeleteKmsConfigRequest,opts...gax.CallOption)(*DeleteKmsConfigOperation,error)DeleteKmsConfig warning! This operation will permanently delete the Kms config.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.DeleteKmsConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteKmsConfigRequest.}op,err:=c.DeleteKmsConfig(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteKmsConfigOperation
func(c*Client)DeleteKmsConfigOperation(namestring)*DeleteKmsConfigOperationDeleteKmsConfigOperation returns a new DeleteKmsConfigOperation from a given name.The name must be that of a previously created DeleteKmsConfigOperation, possibly from a different process.
func (*Client) DeleteOperation
func(c*Client)DeleteOperation(ctxcontext.Context,req*longrunningpb.DeleteOperationRequest,opts...gax.CallOption)errorDeleteOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"netapp"cloud.google.com/go/netapp/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.DeleteOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.}err=c.DeleteOperation(ctx,req)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteQuotaRule
func(c*Client)DeleteQuotaRule(ctxcontext.Context,req*netapppb.DeleteQuotaRuleRequest,opts...gax.CallOption)(*DeleteQuotaRuleOperation,error)DeleteQuotaRule deletes a quota rule.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.DeleteQuotaRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteQuotaRuleRequest.}op,err:=c.DeleteQuotaRule(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteQuotaRuleOperation
func(c*Client)DeleteQuotaRuleOperation(namestring)*DeleteQuotaRuleOperationDeleteQuotaRuleOperation returns a new DeleteQuotaRuleOperation from a given name.The name must be that of a previously created DeleteQuotaRuleOperation, possibly from a different process.
func (*Client) DeleteReplication
func(c*Client)DeleteReplication(ctxcontext.Context,req*netapppb.DeleteReplicationRequest,opts...gax.CallOption)(*DeleteReplicationOperation,error)DeleteReplication deletes a replication.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.DeleteReplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteReplicationRequest.}op,err:=c.DeleteReplication(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteReplicationOperation
func(c*Client)DeleteReplicationOperation(namestring)*DeleteReplicationOperationDeleteReplicationOperation returns a new DeleteReplicationOperation from a given name.The name must be that of a previously created DeleteReplicationOperation, possibly from a different process.
func (*Client) DeleteSnapshot
func(c*Client)DeleteSnapshot(ctxcontext.Context,req*netapppb.DeleteSnapshotRequest,opts...gax.CallOption)(*DeleteSnapshotOperation,error)DeleteSnapshot deletes a snapshot.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.DeleteSnapshotRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteSnapshotRequest.}op,err:=c.DeleteSnapshot(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteSnapshotOperation
func(c*Client)DeleteSnapshotOperation(namestring)*DeleteSnapshotOperationDeleteSnapshotOperation returns a new DeleteSnapshotOperation from a given name.The name must be that of a previously created DeleteSnapshotOperation, possibly from a different process.
func (*Client) DeleteStoragePool
func(c*Client)DeleteStoragePool(ctxcontext.Context,req*netapppb.DeleteStoragePoolRequest,opts...gax.CallOption)(*DeleteStoragePoolOperation,error)DeleteStoragePool warning! This operation will permanently delete the storage pool.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.DeleteStoragePoolRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteStoragePoolRequest.}op,err:=c.DeleteStoragePool(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteStoragePoolOperation
func(c*Client)DeleteStoragePoolOperation(namestring)*DeleteStoragePoolOperationDeleteStoragePoolOperation returns a new DeleteStoragePoolOperation from a given name.The name must be that of a previously created DeleteStoragePoolOperation, possibly from a different process.
func (*Client) DeleteVolume
func(c*Client)DeleteVolume(ctxcontext.Context,req*netapppb.DeleteVolumeRequest,opts...gax.CallOption)(*DeleteVolumeOperation,error)DeleteVolume deletes a single Volume.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.DeleteVolumeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteVolumeRequest.}op,err:=c.DeleteVolume(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) DeleteVolumeOperation
func(c*Client)DeleteVolumeOperation(namestring)*DeleteVolumeOperationDeleteVolumeOperation returns a new DeleteVolumeOperation from a given name.The name must be that of a previously created DeleteVolumeOperation, possibly from a different process.
func (*Client) EncryptVolumes
func(c*Client)EncryptVolumes(ctxcontext.Context,req*netapppb.EncryptVolumesRequest,opts...gax.CallOption)(*EncryptVolumesOperation,error)EncryptVolumes encrypt the existing volumes without CMEK encryption with the desired theKMS config for the whole region.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.EncryptVolumesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#EncryptVolumesRequest.}op,err:=c.EncryptVolumes(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) EncryptVolumesOperation
func(c*Client)EncryptVolumesOperation(namestring)*EncryptVolumesOperationEncryptVolumesOperation returns a new EncryptVolumesOperation from a given name.The name must be that of a previously created EncryptVolumesOperation, possibly from a different process.
func (*Client) EstablishPeering
func(c*Client)EstablishPeering(ctxcontext.Context,req*netapppb.EstablishPeeringRequest,opts...gax.CallOption)(*EstablishPeeringOperation,error)EstablishPeering establish replication peering.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.EstablishPeeringRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#EstablishPeeringRequest.}op,err:=c.EstablishPeering(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) EstablishPeeringOperation
func(c*Client)EstablishPeeringOperation(namestring)*EstablishPeeringOperationEstablishPeeringOperation returns a new EstablishPeeringOperation from a given name.The name must be that of a previously created EstablishPeeringOperation, possibly from a different process.
func (*Client) GetActiveDirectory
func(c*Client)GetActiveDirectory(ctxcontext.Context,req*netapppb.GetActiveDirectoryRequest,opts...gax.CallOption)(*netapppb.ActiveDirectory,error)GetActiveDirectory describes a specified active directory.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.GetActiveDirectoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetActiveDirectoryRequest.}resp,err:=c.GetActiveDirectory(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetBackup
func(c*Client)GetBackup(ctxcontext.Context,req*netapppb.GetBackupRequest,opts...gax.CallOption)(*netapppb.Backup,error)GetBackup returns the description of the specified backup
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.GetBackupRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetBackupRequest.}resp,err:=c.GetBackup(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetBackupPolicy
func(c*Client)GetBackupPolicy(ctxcontext.Context,req*netapppb.GetBackupPolicyRequest,opts...gax.CallOption)(*netapppb.BackupPolicy,error)GetBackupPolicy returns the description of the specified backup policy by backup_policy_id.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.GetBackupPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetBackupPolicyRequest.}resp,err:=c.GetBackupPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetBackupVault
func(c*Client)GetBackupVault(ctxcontext.Context,req*netapppb.GetBackupVaultRequest,opts...gax.CallOption)(*netapppb.BackupVault,error)GetBackupVault returns the description of the specified backup vault
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.GetBackupVaultRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetBackupVaultRequest.}resp,err:=c.GetBackupVault(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetKmsConfig
func(c*Client)GetKmsConfig(ctxcontext.Context,req*netapppb.GetKmsConfigRequest,opts...gax.CallOption)(*netapppb.KmsConfig,error)GetKmsConfig returns the description of the specified KMS config by kms_config_id.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.GetKmsConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetKmsConfigRequest.}resp,err:=c.GetKmsConfig(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetLocation
func(c*Client)GetLocation(ctxcontext.Context,req*locationpb.GetLocationRequest,opts...gax.CallOption)(*locationpb.Location,error)GetLocation gets information about a location.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.GetLocationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.}resp,err:=c.GetLocation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetOperation
func(c*Client)GetOperation(ctxcontext.Context,req*longrunningpb.GetOperationRequest,opts...gax.CallOption)(*longrunningpb.Operation,error)GetOperation is a utility method from google.longrunning.Operations.
Example
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"netapp"cloud.google.com/go/netapp/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.GetOperationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.}resp,err:=c.GetOperation(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetQuotaRule
func(c*Client)GetQuotaRule(ctxcontext.Context,req*netapppb.GetQuotaRuleRequest,opts...gax.CallOption)(*netapppb.QuotaRule,error)GetQuotaRule returns details of the specified quota rule.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.GetQuotaRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetQuotaRuleRequest.}resp,err:=c.GetQuotaRule(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetReplication
func(c*Client)GetReplication(ctxcontext.Context,req*netapppb.GetReplicationRequest,opts...gax.CallOption)(*netapppb.Replication,error)GetReplication describe a replication for a volume.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.GetReplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetReplicationRequest.}resp,err:=c.GetReplication(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetSnapshot
func(c*Client)GetSnapshot(ctxcontext.Context,req*netapppb.GetSnapshotRequest,opts...gax.CallOption)(*netapppb.Snapshot,error)GetSnapshot describe a snapshot for a volume.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.GetSnapshotRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetSnapshotRequest.}resp,err:=c.GetSnapshot(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetStoragePool
func(c*Client)GetStoragePool(ctxcontext.Context,req*netapppb.GetStoragePoolRequest,opts...gax.CallOption)(*netapppb.StoragePool,error)GetStoragePool returns the description of the specified storage pool by poolId.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.GetStoragePoolRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetStoragePoolRequest.}resp,err:=c.GetStoragePool(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) GetVolume
func(c*Client)GetVolume(ctxcontext.Context,req*netapppb.GetVolumeRequest,opts...gax.CallOption)(*netapppb.Volume,error)GetVolume gets details of a single Volume.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.GetVolumeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetVolumeRequest.}resp,err:=c.GetVolume(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ListActiveDirectories
func(c*Client)ListActiveDirectories(ctxcontext.Context,req*netapppb.ListActiveDirectoriesRequest,opts...gax.CallOption)*ActiveDirectoryIteratorListActiveDirectories lists active directories.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListActiveDirectoriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListActiveDirectoriesRequest.}it:=c.ListActiveDirectories(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*netapppb.ListActiveDirectoriesResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListActiveDirectoriesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListActiveDirectoriesRequest.}forresp,err:=rangec.ListActiveDirectories(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListBackupPolicies
func(c*Client)ListBackupPolicies(ctxcontext.Context,req*netapppb.ListBackupPoliciesRequest,opts...gax.CallOption)*BackupPolicyIteratorListBackupPolicies returns list of all available backup policies.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListBackupPoliciesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupPoliciesRequest.}it:=c.ListBackupPolicies(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*netapppb.ListBackupPoliciesResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListBackupPoliciesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupPoliciesRequest.}forresp,err:=rangec.ListBackupPolicies(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListBackupVaults
func(c*Client)ListBackupVaults(ctxcontext.Context,req*netapppb.ListBackupVaultsRequest,opts...gax.CallOption)*BackupVaultIteratorListBackupVaults returns list of all available backup vaults.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListBackupVaultsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupVaultsRequest.}it:=c.ListBackupVaults(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*netapppb.ListBackupVaultsResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListBackupVaultsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupVaultsRequest.}forresp,err:=rangec.ListBackupVaults(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListBackups
func(c*Client)ListBackups(ctxcontext.Context,req*netapppb.ListBackupsRequest,opts...gax.CallOption)*BackupIteratorListBackups returns descriptions of all backups for a backupVault.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListBackupsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupsRequest.}it:=c.ListBackups(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*netapppb.ListBackupsResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListBackupsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupsRequest.}forresp,err:=rangec.ListBackups(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListKmsConfigs
func(c*Client)ListKmsConfigs(ctxcontext.Context,req*netapppb.ListKmsConfigsRequest,opts...gax.CallOption)*KmsConfigIteratorListKmsConfigs returns descriptions of all KMS configs owned by the caller.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListKmsConfigsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListKmsConfigsRequest.}it:=c.ListKmsConfigs(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*netapppb.ListKmsConfigsResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListKmsConfigsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListKmsConfigsRequest.}forresp,err:=rangec.ListKmsConfigs(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListLocations
func(c*Client)ListLocations(ctxcontext.Context,req*locationpb.ListLocationsRequest,opts...gax.CallOption)*LocationIteratorListLocations lists information about the supported locations for this service.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1""google.golang.org/api/iterator"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}it:=c.ListLocations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*locationpb.ListLocationsResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"locationpb"google.golang.org/genproto/googleapis/cloud/location")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&locationpb.ListLocationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.}forresp,err:=rangec.ListLocations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListOperations
func(c*Client)ListOperations(ctxcontext.Context,req*longrunningpb.ListOperationsRequest,opts...gax.CallOption)*OperationIteratorListOperations is a utility method from google.longrunning.Operations.
Examples
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"netapp"cloud.google.com/go/netapp/apiv1""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}it:=c.ListOperations(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*longrunningpb.ListOperationsResponse)}}all
packagemainimport("context"longrunningpb"cloud.google.com/go/longrunning/autogen/longrunningpb"netapp"cloud.google.com/go/netapp/apiv1")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&longrunningpb.ListOperationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.}forresp,err:=rangec.ListOperations(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListQuotaRules
func(c*Client)ListQuotaRules(ctxcontext.Context,req*netapppb.ListQuotaRulesRequest,opts...gax.CallOption)*QuotaRuleIteratorListQuotaRules returns list of all quota rules in a location.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListQuotaRulesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListQuotaRulesRequest.}it:=c.ListQuotaRules(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*netapppb.ListQuotaRulesResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListQuotaRulesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListQuotaRulesRequest.}forresp,err:=rangec.ListQuotaRules(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListReplications
func(c*Client)ListReplications(ctxcontext.Context,req*netapppb.ListReplicationsRequest,opts...gax.CallOption)*ReplicationIteratorListReplications returns descriptions of all replications for a volume.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListReplicationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListReplicationsRequest.}it:=c.ListReplications(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*netapppb.ListReplicationsResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListReplicationsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListReplicationsRequest.}forresp,err:=rangec.ListReplications(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListSnapshots
func(c*Client)ListSnapshots(ctxcontext.Context,req*netapppb.ListSnapshotsRequest,opts...gax.CallOption)*SnapshotIteratorListSnapshots returns descriptions of all snapshots for a volume.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListSnapshotsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListSnapshotsRequest.}it:=c.ListSnapshots(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*netapppb.ListSnapshotsResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListSnapshotsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListSnapshotsRequest.}forresp,err:=rangec.ListSnapshots(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListStoragePools
func(c*Client)ListStoragePools(ctxcontext.Context,req*netapppb.ListStoragePoolsRequest,opts...gax.CallOption)*StoragePoolIteratorListStoragePools returns descriptions of all storage pools owned by the caller.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListStoragePoolsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListStoragePoolsRequest.}it:=c.ListStoragePools(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*netapppb.ListStoragePoolsResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListStoragePoolsRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListStoragePoolsRequest.}forresp,err:=rangec.ListStoragePools(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ListVolumes
func(c*Client)ListVolumes(ctxcontext.Context,req*netapppb.ListVolumesRequest,opts...gax.CallOption)*VolumeIteratorListVolumes lists Volumes in a given project.
Examples
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb""google.golang.org/api/iterator")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListVolumesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListVolumesRequest.}it:=c.ListVolumes(ctx,req)for{resp,err:=it.Next()iferr==iterator.Done{break}iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp// If you need to access the underlying RPC response,// you can do so by casting the `Response` as below.// Otherwise, remove this line. Only populated after// first call to Next(). Not safe for concurrent access._=it.Response.(*netapppb.ListVolumesResponse)}}all
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ListVolumesRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListVolumesRequest.}forresp,err:=rangec.ListVolumes(ctx,req).All(){iferr!=nil{// TODO: Handle error and break/return/continue. Iteration will stop after any error.}// TODO: Use resp._=resp}}func (*Client) ResumeReplication
func(c*Client)ResumeReplication(ctxcontext.Context,req*netapppb.ResumeReplicationRequest,opts...gax.CallOption)(*ResumeReplicationOperation,error)ResumeReplication resume Cross Region Replication.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ResumeReplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ResumeReplicationRequest.}op,err:=c.ResumeReplication(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ResumeReplicationOperation
func(c*Client)ResumeReplicationOperation(namestring)*ResumeReplicationOperationResumeReplicationOperation returns a new ResumeReplicationOperation from a given name.The name must be that of a previously created ResumeReplicationOperation, possibly from a different process.
func (*Client) ReverseReplicationDirection
func(c*Client)ReverseReplicationDirection(ctxcontext.Context,req*netapppb.ReverseReplicationDirectionRequest,opts...gax.CallOption)(*ReverseReplicationDirectionOperation,error)ReverseReplicationDirection reverses direction of replication. Source becomes destination anddestination becomes source.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ReverseReplicationDirectionRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ReverseReplicationDirectionRequest.}op,err:=c.ReverseReplicationDirection(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) ReverseReplicationDirectionOperation
func(c*Client)ReverseReplicationDirectionOperation(namestring)*ReverseReplicationDirectionOperationReverseReplicationDirectionOperation returns a new ReverseReplicationDirectionOperation from a given name.The name must be that of a previously created ReverseReplicationDirectionOperation, possibly from a different process.
func (*Client) RevertVolume
func(c*Client)RevertVolume(ctxcontext.Context,req*netapppb.RevertVolumeRequest,opts...gax.CallOption)(*RevertVolumeOperation,error)RevertVolume revert an existing volume to a specified snapshot.Warning! This operation will permanently revert all changes made after thesnapshot was created.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.RevertVolumeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#RevertVolumeRequest.}op,err:=c.RevertVolume(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) RevertVolumeOperation
func(c*Client)RevertVolumeOperation(namestring)*RevertVolumeOperationRevertVolumeOperation returns a new RevertVolumeOperation from a given name.The name must be that of a previously created RevertVolumeOperation, possibly from a different process.
func (*Client) StopReplication
func(c*Client)StopReplication(ctxcontext.Context,req*netapppb.StopReplicationRequest,opts...gax.CallOption)(*StopReplicationOperation,error)StopReplication stop Cross Region Replication.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.StopReplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#StopReplicationRequest.}op,err:=c.StopReplication(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) StopReplicationOperation
func(c*Client)StopReplicationOperation(namestring)*StopReplicationOperationStopReplicationOperation returns a new StopReplicationOperation from a given name.The name must be that of a previously created StopReplicationOperation, possibly from a different process.
func (*Client) SwitchActiveReplicaZone
func(c*Client)SwitchActiveReplicaZone(ctxcontext.Context,req*netapppb.SwitchActiveReplicaZoneRequest,opts...gax.CallOption)(*SwitchActiveReplicaZoneOperation,error)SwitchActiveReplicaZone this operation will switch the active/replica zone for a regionalstoragePool.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.SwitchActiveReplicaZoneRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#SwitchActiveReplicaZoneRequest.}op,err:=c.SwitchActiveReplicaZone(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) SwitchActiveReplicaZoneOperation
func(c*Client)SwitchActiveReplicaZoneOperation(namestring)*SwitchActiveReplicaZoneOperationSwitchActiveReplicaZoneOperation returns a new SwitchActiveReplicaZoneOperation from a given name.The name must be that of a previously created SwitchActiveReplicaZoneOperation, possibly from a different process.
func (*Client) SyncReplication
func(c*Client)SyncReplication(ctxcontext.Context,req*netapppb.SyncReplicationRequest,opts...gax.CallOption)(*SyncReplicationOperation,error)SyncReplication syncs the replication. This will invoke one time volume data transfer fromsource to destination.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.SyncReplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#SyncReplicationRequest.}op,err:=c.SyncReplication(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) SyncReplicationOperation
func(c*Client)SyncReplicationOperation(namestring)*SyncReplicationOperationSyncReplicationOperation returns a new SyncReplicationOperation from a given name.The name must be that of a previously created SyncReplicationOperation, possibly from a different process.
func (*Client) UpdateActiveDirectory
func(c*Client)UpdateActiveDirectory(ctxcontext.Context,req*netapppb.UpdateActiveDirectoryRequest,opts...gax.CallOption)(*UpdateActiveDirectoryOperation,error)UpdateActiveDirectory update the parameters of an active directories.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.UpdateActiveDirectoryRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateActiveDirectoryRequest.}op,err:=c.UpdateActiveDirectory(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateActiveDirectoryOperation
func(c*Client)UpdateActiveDirectoryOperation(namestring)*UpdateActiveDirectoryOperationUpdateActiveDirectoryOperation returns a new UpdateActiveDirectoryOperation from a given name.The name must be that of a previously created UpdateActiveDirectoryOperation, possibly from a different process.
func (*Client) UpdateBackup
func(c*Client)UpdateBackup(ctxcontext.Context,req*netapppb.UpdateBackupRequest,opts...gax.CallOption)(*UpdateBackupOperation,error)UpdateBackup update backup with full spec.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.UpdateBackupRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateBackupRequest.}op,err:=c.UpdateBackup(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateBackupOperation
func(c*Client)UpdateBackupOperation(namestring)*UpdateBackupOperationUpdateBackupOperation returns a new UpdateBackupOperation from a given name.The name must be that of a previously created UpdateBackupOperation, possibly from a different process.
func (*Client) UpdateBackupPolicy
func(c*Client)UpdateBackupPolicy(ctxcontext.Context,req*netapppb.UpdateBackupPolicyRequest,opts...gax.CallOption)(*UpdateBackupPolicyOperation,error)UpdateBackupPolicy updates settings of a specific backup policy.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.UpdateBackupPolicyRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateBackupPolicyRequest.}op,err:=c.UpdateBackupPolicy(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateBackupPolicyOperation
func(c*Client)UpdateBackupPolicyOperation(namestring)*UpdateBackupPolicyOperationUpdateBackupPolicyOperation returns a new UpdateBackupPolicyOperation from a given name.The name must be that of a previously created UpdateBackupPolicyOperation, possibly from a different process.
func (*Client) UpdateBackupVault
func(c*Client)UpdateBackupVault(ctxcontext.Context,req*netapppb.UpdateBackupVaultRequest,opts...gax.CallOption)(*UpdateBackupVaultOperation,error)UpdateBackupVault updates the settings of a specific backup vault.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.UpdateBackupVaultRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateBackupVaultRequest.}op,err:=c.UpdateBackupVault(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateBackupVaultOperation
func(c*Client)UpdateBackupVaultOperation(namestring)*UpdateBackupVaultOperationUpdateBackupVaultOperation returns a new UpdateBackupVaultOperation from a given name.The name must be that of a previously created UpdateBackupVaultOperation, possibly from a different process.
func (*Client) UpdateKmsConfig
func(c*Client)UpdateKmsConfig(ctxcontext.Context,req*netapppb.UpdateKmsConfigRequest,opts...gax.CallOption)(*UpdateKmsConfigOperation,error)UpdateKmsConfig updates the Kms config properties with the full spec
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.UpdateKmsConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateKmsConfigRequest.}op,err:=c.UpdateKmsConfig(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateKmsConfigOperation
func(c*Client)UpdateKmsConfigOperation(namestring)*UpdateKmsConfigOperationUpdateKmsConfigOperation returns a new UpdateKmsConfigOperation from a given name.The name must be that of a previously created UpdateKmsConfigOperation, possibly from a different process.
func (*Client) UpdateQuotaRule
func(c*Client)UpdateQuotaRule(ctxcontext.Context,req*netapppb.UpdateQuotaRuleRequest,opts...gax.CallOption)(*UpdateQuotaRuleOperation,error)UpdateQuotaRule updates a quota rule.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.UpdateQuotaRuleRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateQuotaRuleRequest.}op,err:=c.UpdateQuotaRule(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateQuotaRuleOperation
func(c*Client)UpdateQuotaRuleOperation(namestring)*UpdateQuotaRuleOperationUpdateQuotaRuleOperation returns a new UpdateQuotaRuleOperation from a given name.The name must be that of a previously created UpdateQuotaRuleOperation, possibly from a different process.
func (*Client) UpdateReplication
func(c*Client)UpdateReplication(ctxcontext.Context,req*netapppb.UpdateReplicationRequest,opts...gax.CallOption)(*UpdateReplicationOperation,error)UpdateReplication updates the settings of a specific replication.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.UpdateReplicationRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateReplicationRequest.}op,err:=c.UpdateReplication(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateReplicationOperation
func(c*Client)UpdateReplicationOperation(namestring)*UpdateReplicationOperationUpdateReplicationOperation returns a new UpdateReplicationOperation from a given name.The name must be that of a previously created UpdateReplicationOperation, possibly from a different process.
func (*Client) UpdateSnapshot
func(c*Client)UpdateSnapshot(ctxcontext.Context,req*netapppb.UpdateSnapshotRequest,opts...gax.CallOption)(*UpdateSnapshotOperation,error)UpdateSnapshot updates the settings of a specific snapshot.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.UpdateSnapshotRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateSnapshotRequest.}op,err:=c.UpdateSnapshot(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateSnapshotOperation
func(c*Client)UpdateSnapshotOperation(namestring)*UpdateSnapshotOperationUpdateSnapshotOperation returns a new UpdateSnapshotOperation from a given name.The name must be that of a previously created UpdateSnapshotOperation, possibly from a different process.
func (*Client) UpdateStoragePool
func(c*Client)UpdateStoragePool(ctxcontext.Context,req*netapppb.UpdateStoragePoolRequest,opts...gax.CallOption)(*UpdateStoragePoolOperation,error)UpdateStoragePool updates the storage pool properties with the full spec
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.UpdateStoragePoolRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateStoragePoolRequest.}op,err:=c.UpdateStoragePool(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateStoragePoolOperation
func(c*Client)UpdateStoragePoolOperation(namestring)*UpdateStoragePoolOperationUpdateStoragePoolOperation returns a new UpdateStoragePoolOperation from a given name.The name must be that of a previously created UpdateStoragePoolOperation, possibly from a different process.
func (*Client) UpdateVolume
func(c*Client)UpdateVolume(ctxcontext.Context,req*netapppb.UpdateVolumeRequest,opts...gax.CallOption)(*UpdateVolumeOperation,error)UpdateVolume updates the parameters of a single Volume.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.UpdateVolumeRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateVolumeRequest.}op,err:=c.UpdateVolume(ctx,req)iferr!=nil{// TODO: Handle error.}resp,err:=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}func (*Client) UpdateVolumeOperation
func(c*Client)UpdateVolumeOperation(namestring)*UpdateVolumeOperationUpdateVolumeOperation returns a new UpdateVolumeOperation from a given name.The name must be that of a previously created UpdateVolumeOperation, possibly from a different process.
func (*Client) ValidateDirectoryService
func(c*Client)ValidateDirectoryService(ctxcontext.Context,req*netapppb.ValidateDirectoryServiceRequest,opts...gax.CallOption)(*ValidateDirectoryServiceOperation,error)ValidateDirectoryService validateDirectoryService does a connectivity check for a directory servicepolicy attached to the storage pool.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.ValidateDirectoryServiceRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ValidateDirectoryServiceRequest.}op,err:=c.ValidateDirectoryService(ctx,req)iferr!=nil{// TODO: Handle error.}err=op.Wait(ctx)iferr!=nil{// TODO: Handle error.}}func (*Client) ValidateDirectoryServiceOperation
func(c*Client)ValidateDirectoryServiceOperation(namestring)*ValidateDirectoryServiceOperationValidateDirectoryServiceOperation returns a new ValidateDirectoryServiceOperation from a given name.The name must be that of a previously created ValidateDirectoryServiceOperation, possibly from a different process.
func (*Client) VerifyKmsConfig
func(c*Client)VerifyKmsConfig(ctxcontext.Context,req*netapppb.VerifyKmsConfigRequest,opts...gax.CallOption)(*netapppb.VerifyKmsConfigResponse,error)VerifyKmsConfig verifies KMS config reachability.
Example
packagemainimport("context"netapp"cloud.google.com/go/netapp/apiv1"netapppb"cloud.google.com/go/netapp/apiv1/netapppb")funcmain(){ctx:=context.Background()// This snippet has been automatically generated and should be regarded as a code template only.// It will require modifications to work:// - It may require correct/in-range values for request initialization.// - It may require specifying regional endpoints when creating the service client as shown in:// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Optionsc,err:=netapp.NewClient(ctx)iferr!=nil{// TODO: Handle error.}deferc.Close()req:=&netapppb.VerifyKmsConfigRequest{// TODO: Fill request struct fields.// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#VerifyKmsConfigRequest.}resp,err:=c.VerifyKmsConfig(ctx,req)iferr!=nil{// TODO: Handle error.}// TODO: Use resp._=resp}CreateActiveDirectoryOperation
typeCreateActiveDirectoryOperationstruct{// contains filtered or unexported fields}CreateActiveDirectoryOperation manages a long-running operation from CreateActiveDirectory.
func (*CreateActiveDirectoryOperation) Done
func(op*CreateActiveDirectoryOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateActiveDirectoryOperation) Metadata
func(op*CreateActiveDirectoryOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateActiveDirectoryOperation) Name
func(op*CreateActiveDirectoryOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateActiveDirectoryOperation) Poll
func(op*CreateActiveDirectoryOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.ActiveDirectory,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateActiveDirectoryOperation) Wait
func(op*CreateActiveDirectoryOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.ActiveDirectory,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateBackupOperation
typeCreateBackupOperationstruct{// contains filtered or unexported fields}CreateBackupOperation manages a long-running operation from CreateBackup.
func (*CreateBackupOperation) Done
func(op*CreateBackupOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateBackupOperation) Metadata
func(op*CreateBackupOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateBackupOperation) Name
func(op*CreateBackupOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateBackupOperation) Poll
func(op*CreateBackupOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Backup,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateBackupOperation) Wait
func(op*CreateBackupOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Backup,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateBackupPolicyOperation
typeCreateBackupPolicyOperationstruct{// contains filtered or unexported fields}CreateBackupPolicyOperation manages a long-running operation from CreateBackupPolicy.
func (*CreateBackupPolicyOperation) Done
func(op*CreateBackupPolicyOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateBackupPolicyOperation) Metadata
func(op*CreateBackupPolicyOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateBackupPolicyOperation) Name
func(op*CreateBackupPolicyOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateBackupPolicyOperation) Poll
func(op*CreateBackupPolicyOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.BackupPolicy,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateBackupPolicyOperation) Wait
func(op*CreateBackupPolicyOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.BackupPolicy,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateBackupVaultOperation
typeCreateBackupVaultOperationstruct{// contains filtered or unexported fields}CreateBackupVaultOperation manages a long-running operation from CreateBackupVault.
func (*CreateBackupVaultOperation) Done
func(op*CreateBackupVaultOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateBackupVaultOperation) Metadata
func(op*CreateBackupVaultOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateBackupVaultOperation) Name
func(op*CreateBackupVaultOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateBackupVaultOperation) Poll
func(op*CreateBackupVaultOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.BackupVault,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateBackupVaultOperation) Wait
func(op*CreateBackupVaultOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.BackupVault,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateKmsConfigOperation
typeCreateKmsConfigOperationstruct{// contains filtered or unexported fields}CreateKmsConfigOperation manages a long-running operation from CreateKmsConfig.
func (*CreateKmsConfigOperation) Done
func(op*CreateKmsConfigOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateKmsConfigOperation) Metadata
func(op*CreateKmsConfigOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateKmsConfigOperation) Name
func(op*CreateKmsConfigOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateKmsConfigOperation) Poll
func(op*CreateKmsConfigOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.KmsConfig,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateKmsConfigOperation) Wait
func(op*CreateKmsConfigOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.KmsConfig,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateQuotaRuleOperation
typeCreateQuotaRuleOperationstruct{// contains filtered or unexported fields}CreateQuotaRuleOperation manages a long-running operation from CreateQuotaRule.
func (*CreateQuotaRuleOperation) Done
func(op*CreateQuotaRuleOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateQuotaRuleOperation) Metadata
func(op*CreateQuotaRuleOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateQuotaRuleOperation) Name
func(op*CreateQuotaRuleOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateQuotaRuleOperation) Poll
func(op*CreateQuotaRuleOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.QuotaRule,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateQuotaRuleOperation) Wait
func(op*CreateQuotaRuleOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.QuotaRule,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateReplicationOperation
typeCreateReplicationOperationstruct{// contains filtered or unexported fields}CreateReplicationOperation manages a long-running operation from CreateReplication.
func (*CreateReplicationOperation) Done
func(op*CreateReplicationOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateReplicationOperation) Metadata
func(op*CreateReplicationOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateReplicationOperation) Name
func(op*CreateReplicationOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateReplicationOperation) Poll
func(op*CreateReplicationOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateReplicationOperation) Wait
func(op*CreateReplicationOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateSnapshotOperation
typeCreateSnapshotOperationstruct{// contains filtered or unexported fields}CreateSnapshotOperation manages a long-running operation from CreateSnapshot.
func (*CreateSnapshotOperation) Done
func(op*CreateSnapshotOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateSnapshotOperation) Metadata
func(op*CreateSnapshotOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateSnapshotOperation) Name
func(op*CreateSnapshotOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateSnapshotOperation) Poll
func(op*CreateSnapshotOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Snapshot,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateSnapshotOperation) Wait
func(op*CreateSnapshotOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Snapshot,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateStoragePoolOperation
typeCreateStoragePoolOperationstruct{// contains filtered or unexported fields}CreateStoragePoolOperation manages a long-running operation from CreateStoragePool.
func (*CreateStoragePoolOperation) Done
func(op*CreateStoragePoolOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateStoragePoolOperation) Metadata
func(op*CreateStoragePoolOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateStoragePoolOperation) Name
func(op*CreateStoragePoolOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateStoragePoolOperation) Poll
func(op*CreateStoragePoolOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.StoragePool,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateStoragePoolOperation) Wait
func(op*CreateStoragePoolOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.StoragePool,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateVolumeOperation
typeCreateVolumeOperationstruct{// contains filtered or unexported fields}CreateVolumeOperation manages a long-running operation from CreateVolume.
func (*CreateVolumeOperation) Done
func(op*CreateVolumeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*CreateVolumeOperation) Metadata
func(op*CreateVolumeOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*CreateVolumeOperation) Name
func(op*CreateVolumeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateVolumeOperation) Poll
func(op*CreateVolumeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Volume,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateVolumeOperation) Wait
func(op*CreateVolumeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Volume,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteActiveDirectoryOperation
typeDeleteActiveDirectoryOperationstruct{// contains filtered or unexported fields}DeleteActiveDirectoryOperation manages a long-running operation from DeleteActiveDirectory.
func (*DeleteActiveDirectoryOperation) Done
func(op*DeleteActiveDirectoryOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteActiveDirectoryOperation) Metadata
func(op*DeleteActiveDirectoryOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteActiveDirectoryOperation) Name
func(op*DeleteActiveDirectoryOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteActiveDirectoryOperation) Poll
func(op*DeleteActiveDirectoryOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteActiveDirectoryOperation) Wait
func(op*DeleteActiveDirectoryOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteBackupOperation
typeDeleteBackupOperationstruct{// contains filtered or unexported fields}DeleteBackupOperation manages a long-running operation from DeleteBackup.
func (*DeleteBackupOperation) Done
func(op*DeleteBackupOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteBackupOperation) Metadata
func(op*DeleteBackupOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteBackupOperation) Name
func(op*DeleteBackupOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteBackupOperation) Poll
func(op*DeleteBackupOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteBackupOperation) Wait
func(op*DeleteBackupOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteBackupPolicyOperation
typeDeleteBackupPolicyOperationstruct{// contains filtered or unexported fields}DeleteBackupPolicyOperation manages a long-running operation from DeleteBackupPolicy.
func (*DeleteBackupPolicyOperation) Done
func(op*DeleteBackupPolicyOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteBackupPolicyOperation) Metadata
func(op*DeleteBackupPolicyOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteBackupPolicyOperation) Name
func(op*DeleteBackupPolicyOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteBackupPolicyOperation) Poll
func(op*DeleteBackupPolicyOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteBackupPolicyOperation) Wait
func(op*DeleteBackupPolicyOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteBackupVaultOperation
typeDeleteBackupVaultOperationstruct{// contains filtered or unexported fields}DeleteBackupVaultOperation manages a long-running operation from DeleteBackupVault.
func (*DeleteBackupVaultOperation) Done
func(op*DeleteBackupVaultOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteBackupVaultOperation) Metadata
func(op*DeleteBackupVaultOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteBackupVaultOperation) Name
func(op*DeleteBackupVaultOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteBackupVaultOperation) Poll
func(op*DeleteBackupVaultOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteBackupVaultOperation) Wait
func(op*DeleteBackupVaultOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteKmsConfigOperation
typeDeleteKmsConfigOperationstruct{// contains filtered or unexported fields}DeleteKmsConfigOperation manages a long-running operation from DeleteKmsConfig.
func (*DeleteKmsConfigOperation) Done
func(op*DeleteKmsConfigOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteKmsConfigOperation) Metadata
func(op*DeleteKmsConfigOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteKmsConfigOperation) Name
func(op*DeleteKmsConfigOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteKmsConfigOperation) Poll
func(op*DeleteKmsConfigOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteKmsConfigOperation) Wait
func(op*DeleteKmsConfigOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteQuotaRuleOperation
typeDeleteQuotaRuleOperationstruct{// contains filtered or unexported fields}DeleteQuotaRuleOperation manages a long-running operation from DeleteQuotaRule.
func (*DeleteQuotaRuleOperation) Done
func(op*DeleteQuotaRuleOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteQuotaRuleOperation) Metadata
func(op*DeleteQuotaRuleOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteQuotaRuleOperation) Name
func(op*DeleteQuotaRuleOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteQuotaRuleOperation) Poll
func(op*DeleteQuotaRuleOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteQuotaRuleOperation) Wait
func(op*DeleteQuotaRuleOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteReplicationOperation
typeDeleteReplicationOperationstruct{// contains filtered or unexported fields}DeleteReplicationOperation manages a long-running operation from DeleteReplication.
func (*DeleteReplicationOperation) Done
func(op*DeleteReplicationOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteReplicationOperation) Metadata
func(op*DeleteReplicationOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteReplicationOperation) Name
func(op*DeleteReplicationOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteReplicationOperation) Poll
func(op*DeleteReplicationOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteReplicationOperation) Wait
func(op*DeleteReplicationOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteSnapshotOperation
typeDeleteSnapshotOperationstruct{// contains filtered or unexported fields}DeleteSnapshotOperation manages a long-running operation from DeleteSnapshot.
func (*DeleteSnapshotOperation) Done
func(op*DeleteSnapshotOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteSnapshotOperation) Metadata
func(op*DeleteSnapshotOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteSnapshotOperation) Name
func(op*DeleteSnapshotOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteSnapshotOperation) Poll
func(op*DeleteSnapshotOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteSnapshotOperation) Wait
func(op*DeleteSnapshotOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteStoragePoolOperation
typeDeleteStoragePoolOperationstruct{// contains filtered or unexported fields}DeleteStoragePoolOperation manages a long-running operation from DeleteStoragePool.
func (*DeleteStoragePoolOperation) Done
func(op*DeleteStoragePoolOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteStoragePoolOperation) Metadata
func(op*DeleteStoragePoolOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteStoragePoolOperation) Name
func(op*DeleteStoragePoolOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteStoragePoolOperation) Poll
func(op*DeleteStoragePoolOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteStoragePoolOperation) Wait
func(op*DeleteStoragePoolOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteVolumeOperation
typeDeleteVolumeOperationstruct{// contains filtered or unexported fields}DeleteVolumeOperation manages a long-running operation from DeleteVolume.
func (*DeleteVolumeOperation) Done
func(op*DeleteVolumeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*DeleteVolumeOperation) Metadata
func(op*DeleteVolumeOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteVolumeOperation) Name
func(op*DeleteVolumeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteVolumeOperation) Poll
func(op*DeleteVolumeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteVolumeOperation) Wait
func(op*DeleteVolumeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
EncryptVolumesOperation
typeEncryptVolumesOperationstruct{// contains filtered or unexported fields}EncryptVolumesOperation manages a long-running operation from EncryptVolumes.
func (*EncryptVolumesOperation) Done
func(op*EncryptVolumesOperation)Done()boolDone reports whether the long-running operation has completed.
func (*EncryptVolumesOperation) Metadata
func(op*EncryptVolumesOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*EncryptVolumesOperation) Name
func(op*EncryptVolumesOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*EncryptVolumesOperation) Poll
func(op*EncryptVolumesOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.KmsConfig,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*EncryptVolumesOperation) Wait
func(op*EncryptVolumesOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.KmsConfig,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
EstablishPeeringOperation
typeEstablishPeeringOperationstruct{// contains filtered or unexported fields}EstablishPeeringOperation manages a long-running operation from EstablishPeering.
func (*EstablishPeeringOperation) Done
func(op*EstablishPeeringOperation)Done()boolDone reports whether the long-running operation has completed.
func (*EstablishPeeringOperation) Metadata
func(op*EstablishPeeringOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*EstablishPeeringOperation) Name
func(op*EstablishPeeringOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*EstablishPeeringOperation) Poll
func(op*EstablishPeeringOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*EstablishPeeringOperation) Wait
func(op*EstablishPeeringOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
KmsConfigIterator
typeKmsConfigIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*netapppb.KmsConfig,nextPageTokenstring,errerror)// contains filtered or unexported fields}KmsConfigIterator manages a stream of *netapppb.KmsConfig.
func (*KmsConfigIterator) All
func(it*KmsConfigIterator)All()iter.Seq2[*netapppb.KmsConfig,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*KmsConfigIterator) Next
func(it*KmsConfigIterator)Next()(*netapppb.KmsConfig,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*KmsConfigIterator) PageInfo
func(it*KmsConfigIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
LocationIterator
typeLocationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*locationpb.Location,nextPageTokenstring,errerror)// contains filtered or unexported fields}LocationIterator manages a stream of *locationpb.Location.
func (*LocationIterator) All
func(it*LocationIterator)All()iter.Seq2[*locationpb.Location,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*LocationIterator) Next
func(it*LocationIterator)Next()(*locationpb.Location,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*LocationIterator) PageInfo
func(it*LocationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
OperationIterator
typeOperationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*longrunningpb.Operation,nextPageTokenstring,errerror)// contains filtered or unexported fields}OperationIterator manages a stream of *longrunningpb.Operation.
func (*OperationIterator) All
func(it*OperationIterator)All()iter.Seq2[*longrunningpb.Operation,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*OperationIterator) Next
func(it*OperationIterator)Next()(*longrunningpb.Operation,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*OperationIterator) PageInfo
func(it*OperationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
QuotaRuleIterator
typeQuotaRuleIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*netapppb.QuotaRule,nextPageTokenstring,errerror)// contains filtered or unexported fields}QuotaRuleIterator manages a stream of *netapppb.QuotaRule.
func (*QuotaRuleIterator) All
func(it*QuotaRuleIterator)All()iter.Seq2[*netapppb.QuotaRule,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*QuotaRuleIterator) Next
func(it*QuotaRuleIterator)Next()(*netapppb.QuotaRule,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*QuotaRuleIterator) PageInfo
func(it*QuotaRuleIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
ReplicationIterator
typeReplicationIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*netapppb.Replication,nextPageTokenstring,errerror)// contains filtered or unexported fields}ReplicationIterator manages a stream of *netapppb.Replication.
func (*ReplicationIterator) All
func(it*ReplicationIterator)All()iter.Seq2[*netapppb.Replication,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*ReplicationIterator) Next
func(it*ReplicationIterator)Next()(*netapppb.Replication,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*ReplicationIterator) PageInfo
func(it*ReplicationIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
ResumeReplicationOperation
typeResumeReplicationOperationstruct{// contains filtered or unexported fields}ResumeReplicationOperation manages a long-running operation from ResumeReplication.
func (*ResumeReplicationOperation) Done
func(op*ResumeReplicationOperation)Done()boolDone reports whether the long-running operation has completed.
func (*ResumeReplicationOperation) Metadata
func(op*ResumeReplicationOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*ResumeReplicationOperation) Name
func(op*ResumeReplicationOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*ResumeReplicationOperation) Poll
func(op*ResumeReplicationOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ResumeReplicationOperation) Wait
func(op*ResumeReplicationOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
ReverseReplicationDirectionOperation
typeReverseReplicationDirectionOperationstruct{// contains filtered or unexported fields}ReverseReplicationDirectionOperation manages a long-running operation from ReverseReplicationDirection.
func (*ReverseReplicationDirectionOperation) Done
func(op*ReverseReplicationDirectionOperation)Done()boolDone reports whether the long-running operation has completed.
func (*ReverseReplicationDirectionOperation) Metadata
func(op*ReverseReplicationDirectionOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*ReverseReplicationDirectionOperation) Name
func(op*ReverseReplicationDirectionOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*ReverseReplicationDirectionOperation) Poll
func(op*ReverseReplicationDirectionOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ReverseReplicationDirectionOperation) Wait
func(op*ReverseReplicationDirectionOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
RevertVolumeOperation
typeRevertVolumeOperationstruct{// contains filtered or unexported fields}RevertVolumeOperation manages a long-running operation from RevertVolume.
func (*RevertVolumeOperation) Done
func(op*RevertVolumeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*RevertVolumeOperation) Metadata
func(op*RevertVolumeOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*RevertVolumeOperation) Name
func(op*RevertVolumeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*RevertVolumeOperation) Poll
func(op*RevertVolumeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Volume,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*RevertVolumeOperation) Wait
func(op*RevertVolumeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Volume,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
SnapshotIterator
typeSnapshotIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*netapppb.Snapshot,nextPageTokenstring,errerror)// contains filtered or unexported fields}SnapshotIterator manages a stream of *netapppb.Snapshot.
func (*SnapshotIterator) All
func(it*SnapshotIterator)All()iter.Seq2[*netapppb.Snapshot,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*SnapshotIterator) Next
func(it*SnapshotIterator)Next()(*netapppb.Snapshot,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*SnapshotIterator) PageInfo
func(it*SnapshotIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
StopReplicationOperation
typeStopReplicationOperationstruct{// contains filtered or unexported fields}StopReplicationOperation manages a long-running operation from StopReplication.
func (*StopReplicationOperation) Done
func(op*StopReplicationOperation)Done()boolDone reports whether the long-running operation has completed.
func (*StopReplicationOperation) Metadata
func(op*StopReplicationOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*StopReplicationOperation) Name
func(op*StopReplicationOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*StopReplicationOperation) Poll
func(op*StopReplicationOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*StopReplicationOperation) Wait
func(op*StopReplicationOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
StoragePoolIterator
typeStoragePoolIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*netapppb.StoragePool,nextPageTokenstring,errerror)// contains filtered or unexported fields}StoragePoolIterator manages a stream of *netapppb.StoragePool.
func (*StoragePoolIterator) All
func(it*StoragePoolIterator)All()iter.Seq2[*netapppb.StoragePool,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*StoragePoolIterator) Next
func(it*StoragePoolIterator)Next()(*netapppb.StoragePool,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*StoragePoolIterator) PageInfo
func(it*StoragePoolIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
SwitchActiveReplicaZoneOperation
typeSwitchActiveReplicaZoneOperationstruct{// contains filtered or unexported fields}SwitchActiveReplicaZoneOperation manages a long-running operation from SwitchActiveReplicaZone.
func (*SwitchActiveReplicaZoneOperation) Done
func(op*SwitchActiveReplicaZoneOperation)Done()boolDone reports whether the long-running operation has completed.
func (*SwitchActiveReplicaZoneOperation) Metadata
func(op*SwitchActiveReplicaZoneOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*SwitchActiveReplicaZoneOperation) Name
func(op*SwitchActiveReplicaZoneOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*SwitchActiveReplicaZoneOperation) Poll
func(op*SwitchActiveReplicaZoneOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.StoragePool,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*SwitchActiveReplicaZoneOperation) Wait
func(op*SwitchActiveReplicaZoneOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.StoragePool,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
SyncReplicationOperation
typeSyncReplicationOperationstruct{// contains filtered or unexported fields}SyncReplicationOperation manages a long-running operation from SyncReplication.
func (*SyncReplicationOperation) Done
func(op*SyncReplicationOperation)Done()boolDone reports whether the long-running operation has completed.
func (*SyncReplicationOperation) Metadata
func(op*SyncReplicationOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*SyncReplicationOperation) Name
func(op*SyncReplicationOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*SyncReplicationOperation) Poll
func(op*SyncReplicationOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*SyncReplicationOperation) Wait
func(op*SyncReplicationOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateActiveDirectoryOperation
typeUpdateActiveDirectoryOperationstruct{// contains filtered or unexported fields}UpdateActiveDirectoryOperation manages a long-running operation from UpdateActiveDirectory.
func (*UpdateActiveDirectoryOperation) Done
func(op*UpdateActiveDirectoryOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateActiveDirectoryOperation) Metadata
func(op*UpdateActiveDirectoryOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateActiveDirectoryOperation) Name
func(op*UpdateActiveDirectoryOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateActiveDirectoryOperation) Poll
func(op*UpdateActiveDirectoryOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.ActiveDirectory,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateActiveDirectoryOperation) Wait
func(op*UpdateActiveDirectoryOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.ActiveDirectory,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateBackupOperation
typeUpdateBackupOperationstruct{// contains filtered or unexported fields}UpdateBackupOperation manages a long-running operation from UpdateBackup.
func (*UpdateBackupOperation) Done
func(op*UpdateBackupOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateBackupOperation) Metadata
func(op*UpdateBackupOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateBackupOperation) Name
func(op*UpdateBackupOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateBackupOperation) Poll
func(op*UpdateBackupOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Backup,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateBackupOperation) Wait
func(op*UpdateBackupOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Backup,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateBackupPolicyOperation
typeUpdateBackupPolicyOperationstruct{// contains filtered or unexported fields}UpdateBackupPolicyOperation manages a long-running operation from UpdateBackupPolicy.
func (*UpdateBackupPolicyOperation) Done
func(op*UpdateBackupPolicyOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateBackupPolicyOperation) Metadata
func(op*UpdateBackupPolicyOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateBackupPolicyOperation) Name
func(op*UpdateBackupPolicyOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateBackupPolicyOperation) Poll
func(op*UpdateBackupPolicyOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.BackupPolicy,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateBackupPolicyOperation) Wait
func(op*UpdateBackupPolicyOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.BackupPolicy,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateBackupVaultOperation
typeUpdateBackupVaultOperationstruct{// contains filtered or unexported fields}UpdateBackupVaultOperation manages a long-running operation from UpdateBackupVault.
func (*UpdateBackupVaultOperation) Done
func(op*UpdateBackupVaultOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateBackupVaultOperation) Metadata
func(op*UpdateBackupVaultOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateBackupVaultOperation) Name
func(op*UpdateBackupVaultOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateBackupVaultOperation) Poll
func(op*UpdateBackupVaultOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.BackupVault,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateBackupVaultOperation) Wait
func(op*UpdateBackupVaultOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.BackupVault,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateKmsConfigOperation
typeUpdateKmsConfigOperationstruct{// contains filtered or unexported fields}UpdateKmsConfigOperation manages a long-running operation from UpdateKmsConfig.
func (*UpdateKmsConfigOperation) Done
func(op*UpdateKmsConfigOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateKmsConfigOperation) Metadata
func(op*UpdateKmsConfigOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateKmsConfigOperation) Name
func(op*UpdateKmsConfigOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateKmsConfigOperation) Poll
func(op*UpdateKmsConfigOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.KmsConfig,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateKmsConfigOperation) Wait
func(op*UpdateKmsConfigOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.KmsConfig,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateQuotaRuleOperation
typeUpdateQuotaRuleOperationstruct{// contains filtered or unexported fields}UpdateQuotaRuleOperation manages a long-running operation from UpdateQuotaRule.
func (*UpdateQuotaRuleOperation) Done
func(op*UpdateQuotaRuleOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateQuotaRuleOperation) Metadata
func(op*UpdateQuotaRuleOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateQuotaRuleOperation) Name
func(op*UpdateQuotaRuleOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateQuotaRuleOperation) Poll
func(op*UpdateQuotaRuleOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.QuotaRule,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateQuotaRuleOperation) Wait
func(op*UpdateQuotaRuleOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.QuotaRule,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateReplicationOperation
typeUpdateReplicationOperationstruct{// contains filtered or unexported fields}UpdateReplicationOperation manages a long-running operation from UpdateReplication.
func (*UpdateReplicationOperation) Done
func(op*UpdateReplicationOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateReplicationOperation) Metadata
func(op*UpdateReplicationOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateReplicationOperation) Name
func(op*UpdateReplicationOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateReplicationOperation) Poll
func(op*UpdateReplicationOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateReplicationOperation) Wait
func(op*UpdateReplicationOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Replication,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateSnapshotOperation
typeUpdateSnapshotOperationstruct{// contains filtered or unexported fields}UpdateSnapshotOperation manages a long-running operation from UpdateSnapshot.
func (*UpdateSnapshotOperation) Done
func(op*UpdateSnapshotOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateSnapshotOperation) Metadata
func(op*UpdateSnapshotOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateSnapshotOperation) Name
func(op*UpdateSnapshotOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateSnapshotOperation) Poll
func(op*UpdateSnapshotOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Snapshot,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateSnapshotOperation) Wait
func(op*UpdateSnapshotOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Snapshot,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateStoragePoolOperation
typeUpdateStoragePoolOperationstruct{// contains filtered or unexported fields}UpdateStoragePoolOperation manages a long-running operation from UpdateStoragePool.
func (*UpdateStoragePoolOperation) Done
func(op*UpdateStoragePoolOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateStoragePoolOperation) Metadata
func(op*UpdateStoragePoolOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateStoragePoolOperation) Name
func(op*UpdateStoragePoolOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateStoragePoolOperation) Poll
func(op*UpdateStoragePoolOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.StoragePool,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateStoragePoolOperation) Wait
func(op*UpdateStoragePoolOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.StoragePool,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateVolumeOperation
typeUpdateVolumeOperationstruct{// contains filtered or unexported fields}UpdateVolumeOperation manages a long-running operation from UpdateVolume.
func (*UpdateVolumeOperation) Done
func(op*UpdateVolumeOperation)Done()boolDone reports whether the long-running operation has completed.
func (*UpdateVolumeOperation) Metadata
func(op*UpdateVolumeOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateVolumeOperation) Name
func(op*UpdateVolumeOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateVolumeOperation) Poll
func(op*UpdateVolumeOperation)Poll(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Volume,error)Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateVolumeOperation) Wait
func(op*UpdateVolumeOperation)Wait(ctxcontext.Context,opts...gax.CallOption)(*netapppb.Volume,error)Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
ValidateDirectoryServiceOperation
typeValidateDirectoryServiceOperationstruct{// contains filtered or unexported fields}ValidateDirectoryServiceOperation manages a long-running operation from ValidateDirectoryService.
func (*ValidateDirectoryServiceOperation) Done
func(op*ValidateDirectoryServiceOperation)Done()boolDone reports whether the long-running operation has completed.
func (*ValidateDirectoryServiceOperation) Metadata
func(op*ValidateDirectoryServiceOperation)Metadata()(*netapppb.OperationMetadata,error)Metadata returns metadata associated with the long-running operation.Metadata itself does not contact the server, but Poll does.To get the latest metadata, call this method after a successful call to Poll.If the metadata is not available, the returned metadata and error are both nil.
func (*ValidateDirectoryServiceOperation) Name
func(op*ValidateDirectoryServiceOperation)Name()stringName returns the name of the long-running operation.The name is assigned by the server and is unique within the service from which the operation is created.
func (*ValidateDirectoryServiceOperation) Poll
func(op*ValidateDirectoryServiceOperation)Poll(ctxcontext.Context,opts...gax.CallOption)errorPoll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds andthe operation has completed with failure, the error is returned and op.Done will return true.If Poll succeeds and the operation has completed successfully,op.Done will return true, and the response of the operation is returned.If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ValidateDirectoryServiceOperation) Wait
func(op*ValidateDirectoryServiceOperation)Wait(ctxcontext.Context,opts...gax.CallOption)errorWait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
VolumeIterator
typeVolumeIteratorstruct{// Response is the raw response for the current page.// It must be cast to the RPC response type.// Calling Next() or InternalFetch() updates this value.Responseinterface{}// InternalFetch is for use by the Google Cloud Libraries only.// It is not part of the stable interface of this package.//// InternalFetch returns results from a single call to the underlying RPC.// The number of results is no greater than pageSize.// If there are no more results, nextPageToken is empty and err is nil.InternalFetchfunc(pageSizeint,pageTokenstring)(results[]*netapppb.Volume,nextPageTokenstring,errerror)// contains filtered or unexported fields}VolumeIterator manages a stream of *netapppb.Volume.
func (*VolumeIterator) All
func(it*VolumeIterator)All()iter.Seq2[*netapppb.Volume,error]All returns an iterator. If an error is returned by the iterator, theiterator will stop after that iteration.
func (*VolumeIterator) Next
func(it*VolumeIterator)Next()(*netapppb.Volume,error)Next returns the next result. Its second return value is iterator.Done if there are no moreresults. Once Next returns Done, all subsequent calls will return Done.
func (*VolumeIterator) PageInfo
func(it*VolumeIterator)PageInfo()*iterator.PageInfoPageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.