NetApp API v1 - Package cloud.google.com/go/netapp/apiv1 (v1.10.1)

Note: To get more information about this package, such as access to older versions, viewthis package on pkg.go.dev.

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:

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()[]string

DefaultAuthScopes 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

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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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

funcNewClient(ctxcontext.Context,opts...option.ClientOption)(*Client,error)

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

funcNewRESTClient(ctxcontext.Context,opts...option.ClientOption)(*Client,error)

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

CancelOperation 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

func(c*Client)Close()error

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.ClientConn

Connection returns a connection to the API service.

Deprecated: Connections are now pooled so this method does not alwaysreturn the same resource.

func (*Client) CreateActiveDirectory

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)*CreateActiveDirectoryOperation

CreateActiveDirectoryOperation 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

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)*CreateBackupOperation

CreateBackupOperation 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

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)*CreateBackupPolicyOperation

CreateBackupPolicyOperation 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

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)*CreateBackupVaultOperation

CreateBackupVaultOperation 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

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)*CreateKmsConfigOperation

CreateKmsConfigOperation 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

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)*CreateQuotaRuleOperation

CreateQuotaRuleOperation 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

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)*CreateReplicationOperation

CreateReplicationOperation 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

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)*CreateSnapshotOperation

CreateSnapshotOperation 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

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)*CreateStoragePoolOperation

CreateStoragePoolOperation 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

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)*CreateVolumeOperation

CreateVolumeOperation 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

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)*DeleteActiveDirectoryOperation

DeleteActiveDirectoryOperation 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

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)*DeleteBackupOperation

DeleteBackupOperation 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

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)*DeleteBackupPolicyOperation

DeleteBackupPolicyOperation 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

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)*DeleteBackupVaultOperation

DeleteBackupVaultOperation 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

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)*DeleteKmsConfigOperation

DeleteKmsConfigOperation 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

DeleteOperation 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

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)*DeleteQuotaRuleOperation

DeleteQuotaRuleOperation 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

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)*DeleteReplicationOperation

DeleteReplicationOperation 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

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)*DeleteSnapshotOperation

DeleteSnapshotOperation 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

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)*DeleteStoragePoolOperation

DeleteStoragePoolOperation 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

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)*DeleteVolumeOperation

DeleteVolumeOperation 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

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)*EncryptVolumesOperation

EncryptVolumesOperation 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

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)*EstablishPeeringOperation

EstablishPeeringOperation 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

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

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

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

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

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

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

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

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

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

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

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

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

ListActiveDirectories 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

ListBackupPolicies 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

ListBackupVaults 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

ListBackups 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

ListKmsConfigs 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

ListLocations 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

ListOperations 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

ListQuotaRules 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

ListReplications 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

ListSnapshots 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

ListStoragePools 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

ListVolumes 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

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)*ResumeReplicationOperation

ResumeReplicationOperation 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

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)*ReverseReplicationDirectionOperation

ReverseReplicationDirectionOperation 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

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)*RevertVolumeOperation

RevertVolumeOperation 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

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)*StopReplicationOperation

StopReplicationOperation 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

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)*SwitchActiveReplicaZoneOperation

SwitchActiveReplicaZoneOperation 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

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)*SyncReplicationOperation

SyncReplicationOperation 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

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)*UpdateActiveDirectoryOperation

UpdateActiveDirectoryOperation 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

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)*UpdateBackupOperation

UpdateBackupOperation 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

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)*UpdateBackupPolicyOperation

UpdateBackupPolicyOperation 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

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)*UpdateBackupVaultOperation

UpdateBackupVaultOperation 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

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)*UpdateKmsConfigOperation

UpdateKmsConfigOperation 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

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)*UpdateQuotaRuleOperation

UpdateQuotaRuleOperation 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

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)*UpdateReplicationOperation

UpdateReplicationOperation 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

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)*UpdateSnapshotOperation

UpdateSnapshotOperation 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

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)*UpdateStoragePoolOperation

UpdateStoragePoolOperation 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

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)*UpdateVolumeOperation

UpdateVolumeOperation 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

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)*ValidateDirectoryServiceOperation

ValidateDirectoryServiceOperation 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

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

Done reports whether the long-running operation has completed.

func (*CreateActiveDirectoryOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*CreateBackupOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*CreateBackupPolicyOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*CreateBackupVaultOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*CreateKmsConfigOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*CreateQuotaRuleOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*CreateReplicationOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*CreateSnapshotOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*CreateStoragePoolOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*CreateVolumeOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*DeleteActiveDirectoryOperation) Metadata

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

Name 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

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 (*DeleteActiveDirectoryOperation) Wait

Wait 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

Done reports whether the long-running operation has completed.

func (*DeleteBackupOperation) Metadata

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

Name 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

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 (*DeleteBackupOperation) Wait

Wait 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

Done reports whether the long-running operation has completed.

func (*DeleteBackupPolicyOperation) Metadata

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

Name 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

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 (*DeleteBackupPolicyOperation) Wait

Wait 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

Done reports whether the long-running operation has completed.

func (*DeleteBackupVaultOperation) Metadata

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

Name 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

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 (*DeleteBackupVaultOperation) Wait

Wait 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

Done reports whether the long-running operation has completed.

func (*DeleteKmsConfigOperation) Metadata

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

Name 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

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 (*DeleteKmsConfigOperation) Wait

Wait 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

Done reports whether the long-running operation has completed.

func (*DeleteQuotaRuleOperation) Metadata

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

Name 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

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 (*DeleteQuotaRuleOperation) Wait

Wait 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

Done reports whether the long-running operation has completed.

func (*DeleteReplicationOperation) Metadata

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

Name 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

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 (*DeleteReplicationOperation) Wait

Wait 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

Done reports whether the long-running operation has completed.

func (*DeleteSnapshotOperation) Metadata

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

Name 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

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 (*DeleteSnapshotOperation) Wait

Wait 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

Done reports whether the long-running operation has completed.

func (*DeleteStoragePoolOperation) Metadata

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

Name 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

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 (*DeleteStoragePoolOperation) Wait

Wait 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

Done reports whether the long-running operation has completed.

func (*DeleteVolumeOperation) Metadata

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

Name 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

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 (*DeleteVolumeOperation) Wait

Wait 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

Done reports whether the long-running operation has completed.

func (*EncryptVolumesOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*EstablishPeeringOperation) Metadata

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

Name 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

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

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

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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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

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.PageInfo

PageInfo 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

Done reports whether the long-running operation has completed.

func (*ResumeReplicationOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*ReverseReplicationDirectionOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*RevertVolumeOperation) Metadata

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

Name 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

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

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

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.PageInfo

PageInfo 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

Done reports whether the long-running operation has completed.

func (*StopReplicationOperation) Metadata

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

Name 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

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

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

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.PageInfo

PageInfo 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

Done reports whether the long-running operation has completed.

func (*SwitchActiveReplicaZoneOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*SyncReplicationOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*UpdateActiveDirectoryOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*UpdateBackupOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*UpdateBackupPolicyOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*UpdateBackupVaultOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*UpdateKmsConfigOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*UpdateQuotaRuleOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*UpdateReplicationOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*UpdateSnapshotOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*UpdateStoragePoolOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*UpdateVolumeOperation) Metadata

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

Name 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

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

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

Done reports whether the long-running operation has completed.

func (*ValidateDirectoryServiceOperation) Metadata

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

Name 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

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 (*ValidateDirectoryServiceOperation) Wait

Wait 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

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.PageInfo

PageInfo 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.