Package netapp is an auto-generated package for the NetApp API.
Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability.
General documentation
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage
To get started with this package, create a client.
// go get cloud.google.com/go/netapp/apiv1@latest 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_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.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) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp
Use of Context
The ctx passed to NewClient is used for authentication requests and for 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
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
ActiveDirectoryIterator
type ActiveDirectoryIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*netapppb.ActiveDirectory, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*ActiveDirectoryIterator) Next
func (it *ActiveDirectoryIterator) Next() (*netapppb.ActiveDirectory, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type BackupIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*netapppb.Backup, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*BackupIterator) Next
func (it *BackupIterator) Next() (*netapppb.Backup, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type BackupPolicyIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*netapppb.BackupPolicy, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*BackupPolicyIterator) Next
func (it *BackupPolicyIterator) Next() (*netapppb.BackupPolicy, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type BackupVaultIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*netapppb.BackupVault, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*BackupVaultIterator) Next
func (it *BackupVaultIterator) Next() (*netapppb.BackupVault, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type CallOptions struct {
ListStoragePools []gax.CallOption
CreateStoragePool []gax.CallOption
GetStoragePool []gax.CallOption
UpdateStoragePool []gax.CallOption
DeleteStoragePool []gax.CallOption
ValidateDirectoryService []gax.CallOption
SwitchActiveReplicaZone []gax.CallOption
ListVolumes []gax.CallOption
GetVolume []gax.CallOption
CreateVolume []gax.CallOption
UpdateVolume []gax.CallOption
DeleteVolume []gax.CallOption
RevertVolume []gax.CallOption
ListSnapshots []gax.CallOption
GetSnapshot []gax.CallOption
CreateSnapshot []gax.CallOption
DeleteSnapshot []gax.CallOption
UpdateSnapshot []gax.CallOption
ListActiveDirectories []gax.CallOption
GetActiveDirectory []gax.CallOption
CreateActiveDirectory []gax.CallOption
UpdateActiveDirectory []gax.CallOption
DeleteActiveDirectory []gax.CallOption
ListKmsConfigs []gax.CallOption
CreateKmsConfig []gax.CallOption
GetKmsConfig []gax.CallOption
UpdateKmsConfig []gax.CallOption
EncryptVolumes []gax.CallOption
VerifyKmsConfig []gax.CallOption
DeleteKmsConfig []gax.CallOption
ListReplications []gax.CallOption
GetReplication []gax.CallOption
CreateReplication []gax.CallOption
DeleteReplication []gax.CallOption
UpdateReplication []gax.CallOption
StopReplication []gax.CallOption
ResumeReplication []gax.CallOption
ReverseReplicationDirection []gax.CallOption
EstablishPeering []gax.CallOption
SyncReplication []gax.CallOption
CreateBackupVault []gax.CallOption
GetBackupVault []gax.CallOption
ListBackupVaults []gax.CallOption
UpdateBackupVault []gax.CallOption
DeleteBackupVault []gax.CallOption
CreateBackup []gax.CallOption
GetBackup []gax.CallOption
ListBackups []gax.CallOption
DeleteBackup []gax.CallOption
UpdateBackup []gax.CallOption
CreateBackupPolicy []gax.CallOption
GetBackupPolicy []gax.CallOption
ListBackupPolicies []gax.CallOption
UpdateBackupPolicy []gax.CallOption
DeleteBackupPolicy []gax.CallOption
ListQuotaRules []gax.CallOption
GetQuotaRule []gax.CallOption
CreateQuotaRule []gax.CallOption
UpdateQuotaRule []gax.CallOption
DeleteQuotaRule []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
CallOptions contains the retry settings for each method of Client.
Client
type Client struct {
// The call options for this service.
CallOptions *CallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
Client is a client for interacting with NetApp API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
NetApp Files Google Cloud Service
func NewClient
NewClient creates a new net app client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
NetApp Files Google Cloud Service
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func NewRESTClient
NewRESTClient creates a new net app rest client.
NetApp Files Google Cloud Service
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
)
func main() {
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_Options
c, err := netapp.NewRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func (*Client) CancelOperation
func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
netapp "cloud.google.com/go/netapp/apiv1"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) Close
Close closes the connection to the API service. The user should invoke this when the 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 always return the same resource.
func (*Client) CreateActiveDirectory
func (c *Client) CreateActiveDirectory(ctx context.Context, req *netapppb.CreateActiveDirectoryRequest, opts ...gax.CallOption) (*CreateActiveDirectoryOperation, error)
CreateActiveDirectory createActiveDirectory Creates the active directory specified in the request.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateActiveDirectoryOperation
func (c *Client) CreateActiveDirectoryOperation(name string) *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
func (c *Client) CreateBackup(ctx context.Context, req *netapppb.CreateBackupRequest, opts ...gax.CallOption) (*CreateBackupOperation, error)
CreateBackup creates a backup from the volume specified in the request The backup can be created from the given snapshot if specified in the request. If no snapshot specified, there’ll be a new snapshot taken to initiate the backup creation.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateBackupOperation
func (c *Client) CreateBackupOperation(name string) *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
func (c *Client) CreateBackupPolicy(ctx context.Context, req *netapppb.CreateBackupPolicyRequest, opts ...gax.CallOption) (*CreateBackupPolicyOperation, error)
CreateBackupPolicy creates new backup policy
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateBackupPolicyOperation
func (c *Client) CreateBackupPolicyOperation(name string) *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
func (c *Client) CreateBackupVault(ctx context.Context, req *netapppb.CreateBackupVaultRequest, opts ...gax.CallOption) (*CreateBackupVaultOperation, error)
CreateBackupVault creates new backup vault
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateBackupVaultOperation
func (c *Client) CreateBackupVaultOperation(name string) *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
func (c *Client) CreateKmsConfig(ctx context.Context, req *netapppb.CreateKmsConfigRequest, opts ...gax.CallOption) (*CreateKmsConfigOperation, error)
CreateKmsConfig creates a new KMS config.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateKmsConfigOperation
func (c *Client) CreateKmsConfigOperation(name string) *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
func (c *Client) CreateQuotaRule(ctx context.Context, req *netapppb.CreateQuotaRuleRequest, opts ...gax.CallOption) (*CreateQuotaRuleOperation, error)
CreateQuotaRule creates a new quota rule.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateQuotaRuleOperation
func (c *Client) CreateQuotaRuleOperation(name string) *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
func (c *Client) CreateReplication(ctx context.Context, req *netapppb.CreateReplicationRequest, opts ...gax.CallOption) (*CreateReplicationOperation, error)
CreateReplication create a new replication for a volume.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateReplicationOperation
func (c *Client) CreateReplicationOperation(name string) *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
func (c *Client) CreateSnapshot(ctx context.Context, req *netapppb.CreateSnapshotRequest, opts ...gax.CallOption) (*CreateSnapshotOperation, error)
CreateSnapshot create a new snapshot for a volume.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateSnapshotOperation
func (c *Client) CreateSnapshotOperation(name string) *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
func (c *Client) CreateStoragePool(ctx context.Context, req *netapppb.CreateStoragePoolRequest, opts ...gax.CallOption) (*CreateStoragePoolOperation, error)
CreateStoragePool creates a new storage pool.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateStoragePoolOperation
func (c *Client) CreateStoragePoolOperation(name string) *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
func (c *Client) CreateVolume(ctx context.Context, req *netapppb.CreateVolumeRequest, opts ...gax.CallOption) (*CreateVolumeOperation, error)
CreateVolume creates a new Volume in a given project and location.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateVolumeOperation
func (c *Client) CreateVolumeOperation(name string) *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
func (c *Client) DeleteActiveDirectory(ctx context.Context, req *netapppb.DeleteActiveDirectoryRequest, opts ...gax.CallOption) (*DeleteActiveDirectoryOperation, error)
DeleteActiveDirectory delete the active directory specified in the request.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteActiveDirectoryOperation
func (c *Client) DeleteActiveDirectoryOperation(name string) *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
func (c *Client) DeleteBackup(ctx context.Context, req *netapppb.DeleteBackupRequest, opts ...gax.CallOption) (*DeleteBackupOperation, error)
DeleteBackup warning! This operation will permanently delete the backup.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteBackupOperation
func (c *Client) DeleteBackupOperation(name string) *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
func (c *Client) DeleteBackupPolicy(ctx context.Context, req *netapppb.DeleteBackupPolicyRequest, opts ...gax.CallOption) (*DeleteBackupPolicyOperation, error)
DeleteBackupPolicy warning! This operation will permanently delete the backup policy.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteBackupPolicyOperation
func (c *Client) DeleteBackupPolicyOperation(name string) *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
func (c *Client) DeleteBackupVault(ctx context.Context, req *netapppb.DeleteBackupVaultRequest, opts ...gax.CallOption) (*DeleteBackupVaultOperation, error)
DeleteBackupVault warning! This operation will permanently delete the backup vault.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteBackupVaultOperation
func (c *Client) DeleteBackupVaultOperation(name string) *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
func (c *Client) DeleteKmsConfig(ctx context.Context, req *netapppb.DeleteKmsConfigRequest, opts ...gax.CallOption) (*DeleteKmsConfigOperation, error)
DeleteKmsConfig warning! This operation will permanently delete the Kms config.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteKmsConfigOperation
func (c *Client) DeleteKmsConfigOperation(name string) *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
func (c *Client) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
netapp "cloud.google.com/go/netapp/apiv1"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteQuotaRule
func (c *Client) DeleteQuotaRule(ctx context.Context, req *netapppb.DeleteQuotaRuleRequest, opts ...gax.CallOption) (*DeleteQuotaRuleOperation, error)
DeleteQuotaRule deletes a quota rule.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteQuotaRuleOperation
func (c *Client) DeleteQuotaRuleOperation(name string) *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
func (c *Client) DeleteReplication(ctx context.Context, req *netapppb.DeleteReplicationRequest, opts ...gax.CallOption) (*DeleteReplicationOperation, error)
DeleteReplication deletes a replication.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteReplicationOperation
func (c *Client) DeleteReplicationOperation(name string) *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
func (c *Client) DeleteSnapshot(ctx context.Context, req *netapppb.DeleteSnapshotRequest, opts ...gax.CallOption) (*DeleteSnapshotOperation, error)
DeleteSnapshot deletes a snapshot.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteSnapshotOperation
func (c *Client) DeleteSnapshotOperation(name string) *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
func (c *Client) DeleteStoragePool(ctx context.Context, req *netapppb.DeleteStoragePoolRequest, opts ...gax.CallOption) (*DeleteStoragePoolOperation, error)
DeleteStoragePool warning! This operation will permanently delete the storage pool.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteStoragePoolOperation
func (c *Client) DeleteStoragePoolOperation(name string) *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
func (c *Client) DeleteVolume(ctx context.Context, req *netapppb.DeleteVolumeRequest, opts ...gax.CallOption) (*DeleteVolumeOperation, error)
DeleteVolume deletes a single Volume.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteVolumeOperation
func (c *Client) DeleteVolumeOperation(name string) *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
func (c *Client) EncryptVolumes(ctx context.Context, req *netapppb.EncryptVolumesRequest, opts ...gax.CallOption) (*EncryptVolumesOperation, error)
EncryptVolumes encrypt the existing volumes without CMEK encryption with the desired the KMS config for the whole region.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) EncryptVolumesOperation
func (c *Client) EncryptVolumesOperation(name string) *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
func (c *Client) EstablishPeering(ctx context.Context, req *netapppb.EstablishPeeringRequest, opts ...gax.CallOption) (*EstablishPeeringOperation, error)
EstablishPeering establish replication peering.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) EstablishPeeringOperation
func (c *Client) EstablishPeeringOperation(name string) *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
func (c *Client) GetActiveDirectory(ctx context.Context, req *netapppb.GetActiveDirectoryRequest, opts ...gax.CallOption) (*netapppb.ActiveDirectory, error)
GetActiveDirectory describes a specified active directory.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetBackup
func (c *Client) GetBackup(ctx context.Context, req *netapppb.GetBackupRequest, opts ...gax.CallOption) (*netapppb.Backup, error)
GetBackup returns the description of the specified backup
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetBackupPolicy
func (c *Client) GetBackupPolicy(ctx context.Context, req *netapppb.GetBackupPolicyRequest, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
GetBackupPolicy returns the description of the specified backup policy by backup_policy_id.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetBackupVault
func (c *Client) GetBackupVault(ctx context.Context, req *netapppb.GetBackupVaultRequest, opts ...gax.CallOption) (*netapppb.BackupVault, error)
GetBackupVault returns the description of the specified backup vault
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetKmsConfig
func (c *Client) GetKmsConfig(ctx context.Context, req *netapppb.GetKmsConfigRequest, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
GetKmsConfig returns the description of the specified KMS config by kms_config_id.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetLocation
func (c *Client) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetOperation
func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
netapp "cloud.google.com/go/netapp/apiv1"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetQuotaRule
func (c *Client) GetQuotaRule(ctx context.Context, req *netapppb.GetQuotaRuleRequest, opts ...gax.CallOption) (*netapppb.QuotaRule, error)
GetQuotaRule returns details of the specified quota rule.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetReplication
func (c *Client) GetReplication(ctx context.Context, req *netapppb.GetReplicationRequest, opts ...gax.CallOption) (*netapppb.Replication, error)
GetReplication describe a replication for a volume.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetSnapshot
func (c *Client) GetSnapshot(ctx context.Context, req *netapppb.GetSnapshotRequest, opts ...gax.CallOption) (*netapppb.Snapshot, error)
GetSnapshot describe a snapshot for a volume.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetStoragePool
func (c *Client) GetStoragePool(ctx context.Context, req *netapppb.GetStoragePoolRequest, opts ...gax.CallOption) (*netapppb.StoragePool, error)
GetStoragePool returns the description of the specified storage pool by poolId.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetVolume
func (c *Client) GetVolume(ctx context.Context, req *netapppb.GetVolumeRequest, opts ...gax.CallOption) (*netapppb.Volume, error)
GetVolume gets details of a single Volume.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ListActiveDirectories
func (c *Client) ListActiveDirectories(ctx context.Context, req *netapppb.ListActiveDirectoriesRequest, opts ...gax.CallOption) *ActiveDirectoryIterator
ListActiveDirectories lists active directories.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &netapppb.ListActiveDirectoriesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListActiveDirectoriesRequest.
}
for resp, err := range c.ListActiveDirectories(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListBackupPolicies
func (c *Client) ListBackupPolicies(ctx context.Context, req *netapppb.ListBackupPoliciesRequest, opts ...gax.CallOption) *BackupPolicyIterator
ListBackupPolicies returns list of all available backup policies.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &netapppb.ListBackupPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupPoliciesRequest.
}
for resp, err := range c.ListBackupPolicies(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListBackupVaults
func (c *Client) ListBackupVaults(ctx context.Context, req *netapppb.ListBackupVaultsRequest, opts ...gax.CallOption) *BackupVaultIterator
ListBackupVaults returns list of all available backup vaults.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &netapppb.ListBackupVaultsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupVaultsRequest.
}
for resp, err := range c.ListBackupVaults(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListBackups
func (c *Client) ListBackups(ctx context.Context, req *netapppb.ListBackupsRequest, opts ...gax.CallOption) *BackupIterator
ListBackups returns descriptions of all backups for a backupVault.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &netapppb.ListBackupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupsRequest.
}
for resp, err := range c.ListBackups(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListKmsConfigs
func (c *Client) ListKmsConfigs(ctx context.Context, req *netapppb.ListKmsConfigsRequest, opts ...gax.CallOption) *KmsConfigIterator
ListKmsConfigs returns descriptions of all KMS configs owned by the caller.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &netapppb.ListKmsConfigsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListKmsConfigsRequest.
}
for resp, err := range c.ListKmsConfigs(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListLocations
func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListOperations
func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Examples
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
netapp "cloud.google.com/go/netapp/apiv1"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
netapp "cloud.google.com/go/netapp/apiv1"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListQuotaRules
func (c *Client) ListQuotaRules(ctx context.Context, req *netapppb.ListQuotaRulesRequest, opts ...gax.CallOption) *QuotaRuleIterator
ListQuotaRules returns list of all quota rules in a location.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &netapppb.ListQuotaRulesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListQuotaRulesRequest.
}
for resp, err := range c.ListQuotaRules(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListReplications
func (c *Client) ListReplications(ctx context.Context, req *netapppb.ListReplicationsRequest, opts ...gax.CallOption) *ReplicationIterator
ListReplications returns descriptions of all replications for a volume.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &netapppb.ListReplicationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListReplicationsRequest.
}
for resp, err := range c.ListReplications(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListSnapshots
func (c *Client) ListSnapshots(ctx context.Context, req *netapppb.ListSnapshotsRequest, opts ...gax.CallOption) *SnapshotIterator
ListSnapshots returns descriptions of all snapshots for a volume.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &netapppb.ListSnapshotsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListSnapshotsRequest.
}
for resp, err := range c.ListSnapshots(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListStoragePools
func (c *Client) ListStoragePools(ctx context.Context, req *netapppb.ListStoragePoolsRequest, opts ...gax.CallOption) *StoragePoolIterator
ListStoragePools returns descriptions of all storage pools owned by the caller.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &netapppb.ListStoragePoolsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListStoragePoolsRequest.
}
for resp, err := range c.ListStoragePools(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListVolumes
func (c *Client) ListVolumes(ctx context.Context, req *netapppb.ListVolumesRequest, opts ...gax.CallOption) *VolumeIterator
ListVolumes lists Volumes in a given project.
Examples
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
"google.golang.org/api/iterator"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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()
if err == iterator.Done {
break
}
if err != 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
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &netapppb.ListVolumesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListVolumesRequest.
}
for resp, err := range c.ListVolumes(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ResumeReplication
func (c *Client) ResumeReplication(ctx context.Context, req *netapppb.ResumeReplicationRequest, opts ...gax.CallOption) (*ResumeReplicationOperation, error)
ResumeReplication resume Cross Region Replication.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ResumeReplicationOperation
func (c *Client) ResumeReplicationOperation(name string) *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
func (c *Client) ReverseReplicationDirection(ctx context.Context, req *netapppb.ReverseReplicationDirectionRequest, opts ...gax.CallOption) (*ReverseReplicationDirectionOperation, error)
ReverseReplicationDirection reverses direction of replication. Source becomes destination and destination becomes source.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ReverseReplicationDirectionOperation
func (c *Client) ReverseReplicationDirectionOperation(name string) *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
func (c *Client) RevertVolume(ctx context.Context, req *netapppb.RevertVolumeRequest, opts ...gax.CallOption) (*RevertVolumeOperation, error)
RevertVolume revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) RevertVolumeOperation
func (c *Client) RevertVolumeOperation(name string) *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
func (c *Client) StopReplication(ctx context.Context, req *netapppb.StopReplicationRequest, opts ...gax.CallOption) (*StopReplicationOperation, error)
StopReplication stop Cross Region Replication.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) StopReplicationOperation
func (c *Client) StopReplicationOperation(name string) *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
func (c *Client) SwitchActiveReplicaZone(ctx context.Context, req *netapppb.SwitchActiveReplicaZoneRequest, opts ...gax.CallOption) (*SwitchActiveReplicaZoneOperation, error)
SwitchActiveReplicaZone this operation will switch the active/replica zone for a regional storagePool.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) SwitchActiveReplicaZoneOperation
func (c *Client) SwitchActiveReplicaZoneOperation(name string) *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
func (c *Client) SyncReplication(ctx context.Context, req *netapppb.SyncReplicationRequest, opts ...gax.CallOption) (*SyncReplicationOperation, error)
SyncReplication syncs the replication. This will invoke one time volume data transfer from source to destination.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) SyncReplicationOperation
func (c *Client) SyncReplicationOperation(name string) *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
func (c *Client) UpdateActiveDirectory(ctx context.Context, req *netapppb.UpdateActiveDirectoryRequest, opts ...gax.CallOption) (*UpdateActiveDirectoryOperation, error)
UpdateActiveDirectory update the parameters of an active directories.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateActiveDirectoryOperation
func (c *Client) UpdateActiveDirectoryOperation(name string) *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
func (c *Client) UpdateBackup(ctx context.Context, req *netapppb.UpdateBackupRequest, opts ...gax.CallOption) (*UpdateBackupOperation, error)
UpdateBackup update backup with full spec.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateBackupOperation
func (c *Client) UpdateBackupOperation(name string) *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
func (c *Client) UpdateBackupPolicy(ctx context.Context, req *netapppb.UpdateBackupPolicyRequest, opts ...gax.CallOption) (*UpdateBackupPolicyOperation, error)
UpdateBackupPolicy updates settings of a specific backup policy.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateBackupPolicyOperation
func (c *Client) UpdateBackupPolicyOperation(name string) *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
func (c *Client) UpdateBackupVault(ctx context.Context, req *netapppb.UpdateBackupVaultRequest, opts ...gax.CallOption) (*UpdateBackupVaultOperation, error)
UpdateBackupVault updates the settings of a specific backup vault.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateBackupVaultOperation
func (c *Client) UpdateBackupVaultOperation(name string) *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
func (c *Client) UpdateKmsConfig(ctx context.Context, req *netapppb.UpdateKmsConfigRequest, opts ...gax.CallOption) (*UpdateKmsConfigOperation, error)
UpdateKmsConfig updates the Kms config properties with the full spec
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateKmsConfigOperation
func (c *Client) UpdateKmsConfigOperation(name string) *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
func (c *Client) UpdateQuotaRule(ctx context.Context, req *netapppb.UpdateQuotaRuleRequest, opts ...gax.CallOption) (*UpdateQuotaRuleOperation, error)
UpdateQuotaRule updates a quota rule.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateQuotaRuleOperation
func (c *Client) UpdateQuotaRuleOperation(name string) *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
func (c *Client) UpdateReplication(ctx context.Context, req *netapppb.UpdateReplicationRequest, opts ...gax.CallOption) (*UpdateReplicationOperation, error)
UpdateReplication updates the settings of a specific replication.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateReplicationOperation
func (c *Client) UpdateReplicationOperation(name string) *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
func (c *Client) UpdateSnapshot(ctx context.Context, req *netapppb.UpdateSnapshotRequest, opts ...gax.CallOption) (*UpdateSnapshotOperation, error)
UpdateSnapshot updates the settings of a specific snapshot.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateSnapshotOperation
func (c *Client) UpdateSnapshotOperation(name string) *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
func (c *Client) UpdateStoragePool(ctx context.Context, req *netapppb.UpdateStoragePoolRequest, opts ...gax.CallOption) (*UpdateStoragePoolOperation, error)
UpdateStoragePool updates the storage pool properties with the full spec
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateStoragePoolOperation
func (c *Client) UpdateStoragePoolOperation(name string) *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
func (c *Client) UpdateVolume(ctx context.Context, req *netapppb.UpdateVolumeRequest, opts ...gax.CallOption) (*UpdateVolumeOperation, error)
UpdateVolume updates the parameters of a single Volume.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateVolumeOperation
func (c *Client) UpdateVolumeOperation(name string) *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
func (c *Client) ValidateDirectoryService(ctx context.Context, req *netapppb.ValidateDirectoryServiceRequest, opts ...gax.CallOption) (*ValidateDirectoryServiceOperation, error)
ValidateDirectoryService validateDirectoryService does a connectivity check for a directory service policy attached to the storage pool.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) ValidateDirectoryServiceOperation
func (c *Client) ValidateDirectoryServiceOperation(name string) *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
func (c *Client) VerifyKmsConfig(ctx context.Context, req *netapppb.VerifyKmsConfigRequest, opts ...gax.CallOption) (*netapppb.VerifyKmsConfigResponse, error)
VerifyKmsConfig verifies KMS config reachability.
Example
package main
import (
"context"
netapp "cloud.google.com/go/netapp/apiv1"
netapppb "cloud.google.com/go/netapp/apiv1/netapppb"
)
func main() {
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_Options
c, err := netapp.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.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)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
CreateActiveDirectoryOperation
type CreateActiveDirectoryOperation struct {
// contains filtered or unexported fields
}
CreateActiveDirectoryOperation manages a long-running operation from CreateActiveDirectory.
func (*CreateActiveDirectoryOperation) Done
func (op *CreateActiveDirectoryOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateActiveDirectoryOperation) Metadata
func (op *CreateActiveDirectoryOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateActiveDirectoryOperation) Name
func (op *CreateActiveDirectoryOperation) Name() string
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
func (op *CreateActiveDirectoryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.ActiveDirectory, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateActiveDirectoryOperation) Wait
func (op *CreateActiveDirectoryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.ActiveDirectory, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateBackupOperation
type CreateBackupOperation struct {
// contains filtered or unexported fields
}
CreateBackupOperation manages a long-running operation from CreateBackup.
func (*CreateBackupOperation) Done
func (op *CreateBackupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateBackupOperation) Metadata
func (op *CreateBackupOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateBackupOperation) Name
func (op *CreateBackupOperation) Name() string
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
func (op *CreateBackupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateBackupOperation) Wait
func (op *CreateBackupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateBackupPolicyOperation
type CreateBackupPolicyOperation struct {
// contains filtered or unexported fields
}
CreateBackupPolicyOperation manages a long-running operation from CreateBackupPolicy.
func (*CreateBackupPolicyOperation) Done
func (op *CreateBackupPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateBackupPolicyOperation) Metadata
func (op *CreateBackupPolicyOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateBackupPolicyOperation) Name
func (op *CreateBackupPolicyOperation) Name() string
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
func (op *CreateBackupPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateBackupPolicyOperation) Wait
func (op *CreateBackupPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateBackupVaultOperation
type CreateBackupVaultOperation struct {
// contains filtered or unexported fields
}
CreateBackupVaultOperation manages a long-running operation from CreateBackupVault.
func (*CreateBackupVaultOperation) Done
func (op *CreateBackupVaultOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateBackupVaultOperation) Metadata
func (op *CreateBackupVaultOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateBackupVaultOperation) Name
func (op *CreateBackupVaultOperation) Name() string
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
func (op *CreateBackupVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateBackupVaultOperation) Wait
func (op *CreateBackupVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateKmsConfigOperation
type CreateKmsConfigOperation struct {
// contains filtered or unexported fields
}
CreateKmsConfigOperation manages a long-running operation from CreateKmsConfig.
func (*CreateKmsConfigOperation) Done
func (op *CreateKmsConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateKmsConfigOperation) Metadata
func (op *CreateKmsConfigOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateKmsConfigOperation) Name
func (op *CreateKmsConfigOperation) Name() string
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
func (op *CreateKmsConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateKmsConfigOperation) Wait
func (op *CreateKmsConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateQuotaRuleOperation
type CreateQuotaRuleOperation struct {
// contains filtered or unexported fields
}
CreateQuotaRuleOperation manages a long-running operation from CreateQuotaRule.
func (*CreateQuotaRuleOperation) Done
func (op *CreateQuotaRuleOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateQuotaRuleOperation) Metadata
func (op *CreateQuotaRuleOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateQuotaRuleOperation) Name
func (op *CreateQuotaRuleOperation) Name() string
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
func (op *CreateQuotaRuleOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.QuotaRule, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateQuotaRuleOperation) Wait
func (op *CreateQuotaRuleOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.QuotaRule, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateReplicationOperation
type CreateReplicationOperation struct {
// contains filtered or unexported fields
}
CreateReplicationOperation manages a long-running operation from CreateReplication.
func (*CreateReplicationOperation) Done
func (op *CreateReplicationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateReplicationOperation) Metadata
func (op *CreateReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateReplicationOperation) Name
func (op *CreateReplicationOperation) Name() string
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
func (op *CreateReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateReplicationOperation) Wait
func (op *CreateReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateSnapshotOperation
type CreateSnapshotOperation struct {
// contains filtered or unexported fields
}
CreateSnapshotOperation manages a long-running operation from CreateSnapshot.
func (*CreateSnapshotOperation) Done
func (op *CreateSnapshotOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateSnapshotOperation) Metadata
func (op *CreateSnapshotOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateSnapshotOperation) Name
func (op *CreateSnapshotOperation) Name() string
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
func (op *CreateSnapshotOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Snapshot, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateSnapshotOperation) Wait
func (op *CreateSnapshotOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Snapshot, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateStoragePoolOperation
type CreateStoragePoolOperation struct {
// contains filtered or unexported fields
}
CreateStoragePoolOperation manages a long-running operation from CreateStoragePool.
func (*CreateStoragePoolOperation) Done
func (op *CreateStoragePoolOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateStoragePoolOperation) Metadata
func (op *CreateStoragePoolOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateStoragePoolOperation) Name
func (op *CreateStoragePoolOperation) Name() string
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
func (op *CreateStoragePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateStoragePoolOperation) Wait
func (op *CreateStoragePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
CreateVolumeOperation
type CreateVolumeOperation struct {
// contains filtered or unexported fields
}
CreateVolumeOperation manages a long-running operation from CreateVolume.
func (*CreateVolumeOperation) Done
func (op *CreateVolumeOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateVolumeOperation) Metadata
func (op *CreateVolumeOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateVolumeOperation) Name
func (op *CreateVolumeOperation) Name() string
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
func (op *CreateVolumeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateVolumeOperation) Wait
func (op *CreateVolumeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteActiveDirectoryOperation
type DeleteActiveDirectoryOperation struct {
// contains filtered or unexported fields
}
DeleteActiveDirectoryOperation manages a long-running operation from DeleteActiveDirectory.
func (*DeleteActiveDirectoryOperation) Done
func (op *DeleteActiveDirectoryOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteActiveDirectoryOperation) Metadata
func (op *DeleteActiveDirectoryOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteActiveDirectoryOperation) Name
func (op *DeleteActiveDirectoryOperation) Name() string
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
func (op *DeleteActiveDirectoryOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteActiveDirectoryOperation) Wait
func (op *DeleteActiveDirectoryOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteBackupOperation
type DeleteBackupOperation struct {
// contains filtered or unexported fields
}
DeleteBackupOperation manages a long-running operation from DeleteBackup.
func (*DeleteBackupOperation) Done
func (op *DeleteBackupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteBackupOperation) Metadata
func (op *DeleteBackupOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteBackupOperation) Name
func (op *DeleteBackupOperation) Name() string
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
func (op *DeleteBackupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteBackupOperation) Wait
func (op *DeleteBackupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteBackupPolicyOperation
type DeleteBackupPolicyOperation struct {
// contains filtered or unexported fields
}
DeleteBackupPolicyOperation manages a long-running operation from DeleteBackupPolicy.
func (*DeleteBackupPolicyOperation) Done
func (op *DeleteBackupPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteBackupPolicyOperation) Metadata
func (op *DeleteBackupPolicyOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteBackupPolicyOperation) Name
func (op *DeleteBackupPolicyOperation) Name() string
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
func (op *DeleteBackupPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteBackupPolicyOperation) Wait
func (op *DeleteBackupPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteBackupVaultOperation
type DeleteBackupVaultOperation struct {
// contains filtered or unexported fields
}
DeleteBackupVaultOperation manages a long-running operation from DeleteBackupVault.
func (*DeleteBackupVaultOperation) Done
func (op *DeleteBackupVaultOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteBackupVaultOperation) Metadata
func (op *DeleteBackupVaultOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteBackupVaultOperation) Name
func (op *DeleteBackupVaultOperation) Name() string
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
func (op *DeleteBackupVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteBackupVaultOperation) Wait
func (op *DeleteBackupVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteKmsConfigOperation
type DeleteKmsConfigOperation struct {
// contains filtered or unexported fields
}
DeleteKmsConfigOperation manages a long-running operation from DeleteKmsConfig.
func (*DeleteKmsConfigOperation) Done
func (op *DeleteKmsConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteKmsConfigOperation) Metadata
func (op *DeleteKmsConfigOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteKmsConfigOperation) Name
func (op *DeleteKmsConfigOperation) Name() string
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
func (op *DeleteKmsConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteKmsConfigOperation) Wait
func (op *DeleteKmsConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteQuotaRuleOperation
type DeleteQuotaRuleOperation struct {
// contains filtered or unexported fields
}
DeleteQuotaRuleOperation manages a long-running operation from DeleteQuotaRule.
func (*DeleteQuotaRuleOperation) Done
func (op *DeleteQuotaRuleOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteQuotaRuleOperation) Metadata
func (op *DeleteQuotaRuleOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteQuotaRuleOperation) Name
func (op *DeleteQuotaRuleOperation) Name() string
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
func (op *DeleteQuotaRuleOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteQuotaRuleOperation) Wait
func (op *DeleteQuotaRuleOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteReplicationOperation
type DeleteReplicationOperation struct {
// contains filtered or unexported fields
}
DeleteReplicationOperation manages a long-running operation from DeleteReplication.
func (*DeleteReplicationOperation) Done
func (op *DeleteReplicationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteReplicationOperation) Metadata
func (op *DeleteReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteReplicationOperation) Name
func (op *DeleteReplicationOperation) Name() string
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
func (op *DeleteReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteReplicationOperation) Wait
func (op *DeleteReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteSnapshotOperation
type DeleteSnapshotOperation struct {
// contains filtered or unexported fields
}
DeleteSnapshotOperation manages a long-running operation from DeleteSnapshot.
func (*DeleteSnapshotOperation) Done
func (op *DeleteSnapshotOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteSnapshotOperation) Metadata
func (op *DeleteSnapshotOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteSnapshotOperation) Name
func (op *DeleteSnapshotOperation) Name() string
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
func (op *DeleteSnapshotOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteSnapshotOperation) Wait
func (op *DeleteSnapshotOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteStoragePoolOperation
type DeleteStoragePoolOperation struct {
// contains filtered or unexported fields
}
DeleteStoragePoolOperation manages a long-running operation from DeleteStoragePool.
func (*DeleteStoragePoolOperation) Done
func (op *DeleteStoragePoolOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteStoragePoolOperation) Metadata
func (op *DeleteStoragePoolOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteStoragePoolOperation) Name
func (op *DeleteStoragePoolOperation) Name() string
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
func (op *DeleteStoragePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteStoragePoolOperation) Wait
func (op *DeleteStoragePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
DeleteVolumeOperation
type DeleteVolumeOperation struct {
// contains filtered or unexported fields
}
DeleteVolumeOperation manages a long-running operation from DeleteVolume.
func (*DeleteVolumeOperation) Done
func (op *DeleteVolumeOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteVolumeOperation) Metadata
func (op *DeleteVolumeOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteVolumeOperation) Name
func (op *DeleteVolumeOperation) Name() string
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
func (op *DeleteVolumeOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteVolumeOperation) Wait
func (op *DeleteVolumeOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
EncryptVolumesOperation
type EncryptVolumesOperation struct {
// contains filtered or unexported fields
}
EncryptVolumesOperation manages a long-running operation from EncryptVolumes.
func (*EncryptVolumesOperation) Done
func (op *EncryptVolumesOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*EncryptVolumesOperation) Metadata
func (op *EncryptVolumesOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*EncryptVolumesOperation) Name
func (op *EncryptVolumesOperation) Name() string
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
func (op *EncryptVolumesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*EncryptVolumesOperation) Wait
func (op *EncryptVolumesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
EstablishPeeringOperation
type EstablishPeeringOperation struct {
// contains filtered or unexported fields
}
EstablishPeeringOperation manages a long-running operation from EstablishPeering.
func (*EstablishPeeringOperation) Done
func (op *EstablishPeeringOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*EstablishPeeringOperation) Metadata
func (op *EstablishPeeringOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*EstablishPeeringOperation) Name
func (op *EstablishPeeringOperation) Name() string
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
func (op *EstablishPeeringOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*EstablishPeeringOperation) Wait
func (op *EstablishPeeringOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
KmsConfigIterator
type KmsConfigIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*netapppb.KmsConfig, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*KmsConfigIterator) Next
func (it *KmsConfigIterator) Next() (*netapppb.KmsConfig, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type LocationIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*locationpb.Location, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*LocationIterator) Next
func (it *LocationIterator) Next() (*locationpb.Location, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type OperationIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*OperationIterator) Next
func (it *OperationIterator) Next() (*longrunningpb.Operation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type QuotaRuleIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*netapppb.QuotaRule, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*QuotaRuleIterator) Next
func (it *QuotaRuleIterator) Next() (*netapppb.QuotaRule, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type ReplicationIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*netapppb.Replication, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*ReplicationIterator) Next
func (it *ReplicationIterator) Next() (*netapppb.Replication, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type ResumeReplicationOperation struct {
// contains filtered or unexported fields
}
ResumeReplicationOperation manages a long-running operation from ResumeReplication.
func (*ResumeReplicationOperation) Done
func (op *ResumeReplicationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ResumeReplicationOperation) Metadata
func (op *ResumeReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*ResumeReplicationOperation) Name
func (op *ResumeReplicationOperation) Name() string
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
func (op *ResumeReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ResumeReplicationOperation) Wait
func (op *ResumeReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
ReverseReplicationDirectionOperation
type ReverseReplicationDirectionOperation struct {
// contains filtered or unexported fields
}
ReverseReplicationDirectionOperation manages a long-running operation from ReverseReplicationDirection.
func (*ReverseReplicationDirectionOperation) Done
func (op *ReverseReplicationDirectionOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ReverseReplicationDirectionOperation) Metadata
func (op *ReverseReplicationDirectionOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*ReverseReplicationDirectionOperation) Name
func (op *ReverseReplicationDirectionOperation) Name() string
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
func (op *ReverseReplicationDirectionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ReverseReplicationDirectionOperation) Wait
func (op *ReverseReplicationDirectionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
RevertVolumeOperation
type RevertVolumeOperation struct {
// contains filtered or unexported fields
}
RevertVolumeOperation manages a long-running operation from RevertVolume.
func (*RevertVolumeOperation) Done
func (op *RevertVolumeOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*RevertVolumeOperation) Metadata
func (op *RevertVolumeOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*RevertVolumeOperation) Name
func (op *RevertVolumeOperation) Name() string
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
func (op *RevertVolumeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*RevertVolumeOperation) Wait
func (op *RevertVolumeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
SnapshotIterator
type SnapshotIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*netapppb.Snapshot, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*SnapshotIterator) Next
func (it *SnapshotIterator) Next() (*netapppb.Snapshot, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type StopReplicationOperation struct {
// contains filtered or unexported fields
}
StopReplicationOperation manages a long-running operation from StopReplication.
func (*StopReplicationOperation) Done
func (op *StopReplicationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*StopReplicationOperation) Metadata
func (op *StopReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*StopReplicationOperation) Name
func (op *StopReplicationOperation) Name() string
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
func (op *StopReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*StopReplicationOperation) Wait
func (op *StopReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
StoragePoolIterator
type StoragePoolIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*netapppb.StoragePool, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*StoragePoolIterator) Next
func (it *StoragePoolIterator) Next() (*netapppb.StoragePool, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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
type SwitchActiveReplicaZoneOperation struct {
// contains filtered or unexported fields
}
SwitchActiveReplicaZoneOperation manages a long-running operation from SwitchActiveReplicaZone.
func (*SwitchActiveReplicaZoneOperation) Done
func (op *SwitchActiveReplicaZoneOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*SwitchActiveReplicaZoneOperation) Metadata
func (op *SwitchActiveReplicaZoneOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*SwitchActiveReplicaZoneOperation) Name
func (op *SwitchActiveReplicaZoneOperation) Name() string
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
func (op *SwitchActiveReplicaZoneOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*SwitchActiveReplicaZoneOperation) Wait
func (op *SwitchActiveReplicaZoneOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
SyncReplicationOperation
type SyncReplicationOperation struct {
// contains filtered or unexported fields
}
SyncReplicationOperation manages a long-running operation from SyncReplication.
func (*SyncReplicationOperation) Done
func (op *SyncReplicationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*SyncReplicationOperation) Metadata
func (op *SyncReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*SyncReplicationOperation) Name
func (op *SyncReplicationOperation) Name() string
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
func (op *SyncReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*SyncReplicationOperation) Wait
func (op *SyncReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateActiveDirectoryOperation
type UpdateActiveDirectoryOperation struct {
// contains filtered or unexported fields
}
UpdateActiveDirectoryOperation manages a long-running operation from UpdateActiveDirectory.
func (*UpdateActiveDirectoryOperation) Done
func (op *UpdateActiveDirectoryOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateActiveDirectoryOperation) Metadata
func (op *UpdateActiveDirectoryOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateActiveDirectoryOperation) Name
func (op *UpdateActiveDirectoryOperation) Name() string
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
func (op *UpdateActiveDirectoryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.ActiveDirectory, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateActiveDirectoryOperation) Wait
func (op *UpdateActiveDirectoryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.ActiveDirectory, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateBackupOperation
type UpdateBackupOperation struct {
// contains filtered or unexported fields
}
UpdateBackupOperation manages a long-running operation from UpdateBackup.
func (*UpdateBackupOperation) Done
func (op *UpdateBackupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateBackupOperation) Metadata
func (op *UpdateBackupOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateBackupOperation) Name
func (op *UpdateBackupOperation) Name() string
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
func (op *UpdateBackupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateBackupOperation) Wait
func (op *UpdateBackupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateBackupPolicyOperation
type UpdateBackupPolicyOperation struct {
// contains filtered or unexported fields
}
UpdateBackupPolicyOperation manages a long-running operation from UpdateBackupPolicy.
func (*UpdateBackupPolicyOperation) Done
func (op *UpdateBackupPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateBackupPolicyOperation) Metadata
func (op *UpdateBackupPolicyOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateBackupPolicyOperation) Name
func (op *UpdateBackupPolicyOperation) Name() string
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
func (op *UpdateBackupPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateBackupPolicyOperation) Wait
func (op *UpdateBackupPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateBackupVaultOperation
type UpdateBackupVaultOperation struct {
// contains filtered or unexported fields
}
UpdateBackupVaultOperation manages a long-running operation from UpdateBackupVault.
func (*UpdateBackupVaultOperation) Done
func (op *UpdateBackupVaultOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateBackupVaultOperation) Metadata
func (op *UpdateBackupVaultOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateBackupVaultOperation) Name
func (op *UpdateBackupVaultOperation) Name() string
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
func (op *UpdateBackupVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateBackupVaultOperation) Wait
func (op *UpdateBackupVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateKmsConfigOperation
type UpdateKmsConfigOperation struct {
// contains filtered or unexported fields
}
UpdateKmsConfigOperation manages a long-running operation from UpdateKmsConfig.
func (*UpdateKmsConfigOperation) Done
func (op *UpdateKmsConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateKmsConfigOperation) Metadata
func (op *UpdateKmsConfigOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateKmsConfigOperation) Name
func (op *UpdateKmsConfigOperation) Name() string
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
func (op *UpdateKmsConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateKmsConfigOperation) Wait
func (op *UpdateKmsConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateQuotaRuleOperation
type UpdateQuotaRuleOperation struct {
// contains filtered or unexported fields
}
UpdateQuotaRuleOperation manages a long-running operation from UpdateQuotaRule.
func (*UpdateQuotaRuleOperation) Done
func (op *UpdateQuotaRuleOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateQuotaRuleOperation) Metadata
func (op *UpdateQuotaRuleOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateQuotaRuleOperation) Name
func (op *UpdateQuotaRuleOperation) Name() string
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
func (op *UpdateQuotaRuleOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.QuotaRule, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateQuotaRuleOperation) Wait
func (op *UpdateQuotaRuleOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.QuotaRule, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateReplicationOperation
type UpdateReplicationOperation struct {
// contains filtered or unexported fields
}
UpdateReplicationOperation manages a long-running operation from UpdateReplication.
func (*UpdateReplicationOperation) Done
func (op *UpdateReplicationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateReplicationOperation) Metadata
func (op *UpdateReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateReplicationOperation) Name
func (op *UpdateReplicationOperation) Name() string
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
func (op *UpdateReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateReplicationOperation) Wait
func (op *UpdateReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateSnapshotOperation
type UpdateSnapshotOperation struct {
// contains filtered or unexported fields
}
UpdateSnapshotOperation manages a long-running operation from UpdateSnapshot.
func (*UpdateSnapshotOperation) Done
func (op *UpdateSnapshotOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateSnapshotOperation) Metadata
func (op *UpdateSnapshotOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateSnapshotOperation) Name
func (op *UpdateSnapshotOperation) Name() string
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
func (op *UpdateSnapshotOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Snapshot, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateSnapshotOperation) Wait
func (op *UpdateSnapshotOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Snapshot, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateStoragePoolOperation
type UpdateStoragePoolOperation struct {
// contains filtered or unexported fields
}
UpdateStoragePoolOperation manages a long-running operation from UpdateStoragePool.
func (*UpdateStoragePoolOperation) Done
func (op *UpdateStoragePoolOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateStoragePoolOperation) Metadata
func (op *UpdateStoragePoolOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateStoragePoolOperation) Name
func (op *UpdateStoragePoolOperation) Name() string
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
func (op *UpdateStoragePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateStoragePoolOperation) Wait
func (op *UpdateStoragePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
UpdateVolumeOperation
type UpdateVolumeOperation struct {
// contains filtered or unexported fields
}
UpdateVolumeOperation manages a long-running operation from UpdateVolume.
func (*UpdateVolumeOperation) Done
func (op *UpdateVolumeOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateVolumeOperation) Metadata
func (op *UpdateVolumeOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateVolumeOperation) Name
func (op *UpdateVolumeOperation) Name() string
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
func (op *UpdateVolumeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateVolumeOperation) Wait
func (op *UpdateVolumeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
ValidateDirectoryServiceOperation
type ValidateDirectoryServiceOperation struct {
// contains filtered or unexported fields
}
ValidateDirectoryServiceOperation manages a long-running operation from ValidateDirectoryService.
func (*ValidateDirectoryServiceOperation) Done
func (op *ValidateDirectoryServiceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ValidateDirectoryServiceOperation) Metadata
func (op *ValidateDirectoryServiceOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*ValidateDirectoryServiceOperation) Name
func (op *ValidateDirectoryServiceOperation) Name() string
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
func (op *ValidateDirectoryServiceOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ValidateDirectoryServiceOperation) Wait
func (op *ValidateDirectoryServiceOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
VolumeIterator
type VolumeIterator struct {
// 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.
Response interface{}
// 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.
InternalFetch func(pageSize int, pageToken string) (results []*netapppb.Volume, nextPageToken string, err error)
// 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, the iterator will stop after that iteration.
func (*VolumeIterator) Next
func (it *VolumeIterator) Next() (*netapppb.Volume, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. 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.