Documentation ¶
Overview ¶
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.
NOTE: This package is in beta. It is not stable, and may be subject to changes.
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.
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.
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 }
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.
Index ¶
- func DefaultAuthScopes() []string
- type ActiveDirectoryIterator
- type CallOptions
- type Client
- func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *Client) Close() error
- func (c *Client) Connection() *grpc.ClientConndeprecated
- func (c *Client) CreateActiveDirectory(ctx context.Context, req *netapppb.CreateActiveDirectoryRequest, ...) (*CreateActiveDirectoryOperation, error)
- func (c *Client) CreateActiveDirectoryOperation(name string) *CreateActiveDirectoryOperation
- func (c *Client) CreateKmsConfig(ctx context.Context, req *netapppb.CreateKmsConfigRequest, ...) (*CreateKmsConfigOperation, error)
- func (c *Client) CreateKmsConfigOperation(name string) *CreateKmsConfigOperation
- func (c *Client) CreateReplication(ctx context.Context, req *netapppb.CreateReplicationRequest, ...) (*CreateReplicationOperation, error)
- func (c *Client) CreateReplicationOperation(name string) *CreateReplicationOperation
- func (c *Client) CreateSnapshot(ctx context.Context, req *netapppb.CreateSnapshotRequest, ...) (*CreateSnapshotOperation, error)
- func (c *Client) CreateSnapshotOperation(name string) *CreateSnapshotOperation
- func (c *Client) CreateStoragePool(ctx context.Context, req *netapppb.CreateStoragePoolRequest, ...) (*CreateStoragePoolOperation, error)
- func (c *Client) CreateStoragePoolOperation(name string) *CreateStoragePoolOperation
- func (c *Client) CreateVolume(ctx context.Context, req *netapppb.CreateVolumeRequest, opts ...gax.CallOption) (*CreateVolumeOperation, error)
- func (c *Client) CreateVolumeOperation(name string) *CreateVolumeOperation
- func (c *Client) DeleteActiveDirectory(ctx context.Context, req *netapppb.DeleteActiveDirectoryRequest, ...) (*DeleteActiveDirectoryOperation, error)
- func (c *Client) DeleteActiveDirectoryOperation(name string) *DeleteActiveDirectoryOperation
- func (c *Client) DeleteKmsConfig(ctx context.Context, req *netapppb.DeleteKmsConfigRequest, ...) (*DeleteKmsConfigOperation, error)
- func (c *Client) DeleteKmsConfigOperation(name string) *DeleteKmsConfigOperation
- func (c *Client) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *Client) DeleteReplication(ctx context.Context, req *netapppb.DeleteReplicationRequest, ...) (*DeleteReplicationOperation, error)
- func (c *Client) DeleteReplicationOperation(name string) *DeleteReplicationOperation
- func (c *Client) DeleteSnapshot(ctx context.Context, req *netapppb.DeleteSnapshotRequest, ...) (*DeleteSnapshotOperation, error)
- func (c *Client) DeleteSnapshotOperation(name string) *DeleteSnapshotOperation
- func (c *Client) DeleteStoragePool(ctx context.Context, req *netapppb.DeleteStoragePoolRequest, ...) (*DeleteStoragePoolOperation, error)
- func (c *Client) DeleteStoragePoolOperation(name string) *DeleteStoragePoolOperation
- func (c *Client) DeleteVolume(ctx context.Context, req *netapppb.DeleteVolumeRequest, opts ...gax.CallOption) (*DeleteVolumeOperation, error)
- func (c *Client) DeleteVolumeOperation(name string) *DeleteVolumeOperation
- func (c *Client) EncryptVolumes(ctx context.Context, req *netapppb.EncryptVolumesRequest, ...) (*EncryptVolumesOperation, error)
- func (c *Client) EncryptVolumesOperation(name string) *EncryptVolumesOperation
- func (c *Client) GetActiveDirectory(ctx context.Context, req *netapppb.GetActiveDirectoryRequest, ...) (*netapppb.ActiveDirectory, error)
- func (c *Client) GetKmsConfig(ctx context.Context, req *netapppb.GetKmsConfigRequest, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
- func (c *Client) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *Client) GetReplication(ctx context.Context, req *netapppb.GetReplicationRequest, ...) (*netapppb.Replication, error)
- func (c *Client) GetSnapshot(ctx context.Context, req *netapppb.GetSnapshotRequest, opts ...gax.CallOption) (*netapppb.Snapshot, error)
- func (c *Client) GetStoragePool(ctx context.Context, req *netapppb.GetStoragePoolRequest, ...) (*netapppb.StoragePool, error)
- func (c *Client) GetVolume(ctx context.Context, req *netapppb.GetVolumeRequest, opts ...gax.CallOption) (*netapppb.Volume, error)
- func (c *Client) ListActiveDirectories(ctx context.Context, req *netapppb.ListActiveDirectoriesRequest, ...) *ActiveDirectoryIterator
- func (c *Client) ListKmsConfigs(ctx context.Context, req *netapppb.ListKmsConfigsRequest, ...) *KmsConfigIterator
- func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *Client) ListReplications(ctx context.Context, req *netapppb.ListReplicationsRequest, ...) *ReplicationIterator
- func (c *Client) ListSnapshots(ctx context.Context, req *netapppb.ListSnapshotsRequest, ...) *SnapshotIterator
- func (c *Client) ListStoragePools(ctx context.Context, req *netapppb.ListStoragePoolsRequest, ...) *StoragePoolIterator
- func (c *Client) ListVolumes(ctx context.Context, req *netapppb.ListVolumesRequest, opts ...gax.CallOption) *VolumeIterator
- func (c *Client) ResumeReplication(ctx context.Context, req *netapppb.ResumeReplicationRequest, ...) (*ResumeReplicationOperation, error)
- func (c *Client) ResumeReplicationOperation(name string) *ResumeReplicationOperation
- func (c *Client) ReverseReplicationDirection(ctx context.Context, req *netapppb.ReverseReplicationDirectionRequest, ...) (*ReverseReplicationDirectionOperation, error)
- func (c *Client) ReverseReplicationDirectionOperation(name string) *ReverseReplicationDirectionOperation
- func (c *Client) RevertVolume(ctx context.Context, req *netapppb.RevertVolumeRequest, opts ...gax.CallOption) (*RevertVolumeOperation, error)
- func (c *Client) RevertVolumeOperation(name string) *RevertVolumeOperation
- func (c *Client) StopReplication(ctx context.Context, req *netapppb.StopReplicationRequest, ...) (*StopReplicationOperation, error)
- func (c *Client) StopReplicationOperation(name string) *StopReplicationOperation
- func (c *Client) UpdateActiveDirectory(ctx context.Context, req *netapppb.UpdateActiveDirectoryRequest, ...) (*UpdateActiveDirectoryOperation, error)
- func (c *Client) UpdateActiveDirectoryOperation(name string) *UpdateActiveDirectoryOperation
- func (c *Client) UpdateKmsConfig(ctx context.Context, req *netapppb.UpdateKmsConfigRequest, ...) (*UpdateKmsConfigOperation, error)
- func (c *Client) UpdateKmsConfigOperation(name string) *UpdateKmsConfigOperation
- func (c *Client) UpdateReplication(ctx context.Context, req *netapppb.UpdateReplicationRequest, ...) (*UpdateReplicationOperation, error)
- func (c *Client) UpdateReplicationOperation(name string) *UpdateReplicationOperation
- func (c *Client) UpdateSnapshot(ctx context.Context, req *netapppb.UpdateSnapshotRequest, ...) (*UpdateSnapshotOperation, error)
- func (c *Client) UpdateSnapshotOperation(name string) *UpdateSnapshotOperation
- func (c *Client) UpdateStoragePool(ctx context.Context, req *netapppb.UpdateStoragePoolRequest, ...) (*UpdateStoragePoolOperation, error)
- func (c *Client) UpdateStoragePoolOperation(name string) *UpdateStoragePoolOperation
- func (c *Client) UpdateVolume(ctx context.Context, req *netapppb.UpdateVolumeRequest, opts ...gax.CallOption) (*UpdateVolumeOperation, error)
- func (c *Client) UpdateVolumeOperation(name string) *UpdateVolumeOperation
- func (c *Client) VerifyKmsConfig(ctx context.Context, req *netapppb.VerifyKmsConfigRequest, ...) (*netapppb.VerifyKmsConfigResponse, error)
- type CreateActiveDirectoryOperation
- func (op *CreateActiveDirectoryOperation) Done() bool
- func (op *CreateActiveDirectoryOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *CreateActiveDirectoryOperation) Name() string
- func (op *CreateActiveDirectoryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.ActiveDirectory, error)
- func (op *CreateActiveDirectoryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.ActiveDirectory, error)
- type CreateKmsConfigOperation
- func (op *CreateKmsConfigOperation) Done() bool
- func (op *CreateKmsConfigOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *CreateKmsConfigOperation) Name() string
- func (op *CreateKmsConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
- func (op *CreateKmsConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
- type CreateReplicationOperation
- func (op *CreateReplicationOperation) Done() bool
- func (op *CreateReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *CreateReplicationOperation) Name() string
- func (op *CreateReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- func (op *CreateReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- type CreateSnapshotOperation
- func (op *CreateSnapshotOperation) Done() bool
- func (op *CreateSnapshotOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *CreateSnapshotOperation) Name() string
- func (op *CreateSnapshotOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Snapshot, error)
- func (op *CreateSnapshotOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Snapshot, error)
- type CreateStoragePoolOperation
- func (op *CreateStoragePoolOperation) Done() bool
- func (op *CreateStoragePoolOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *CreateStoragePoolOperation) Name() string
- func (op *CreateStoragePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
- func (op *CreateStoragePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
- type CreateVolumeOperation
- func (op *CreateVolumeOperation) Done() bool
- func (op *CreateVolumeOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *CreateVolumeOperation) Name() string
- func (op *CreateVolumeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
- func (op *CreateVolumeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
- type DeleteActiveDirectoryOperation
- func (op *DeleteActiveDirectoryOperation) Done() bool
- func (op *DeleteActiveDirectoryOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *DeleteActiveDirectoryOperation) Name() string
- func (op *DeleteActiveDirectoryOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteActiveDirectoryOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteKmsConfigOperation
- func (op *DeleteKmsConfigOperation) Done() bool
- func (op *DeleteKmsConfigOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *DeleteKmsConfigOperation) Name() string
- func (op *DeleteKmsConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteKmsConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteReplicationOperation
- func (op *DeleteReplicationOperation) Done() bool
- func (op *DeleteReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *DeleteReplicationOperation) Name() string
- func (op *DeleteReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteSnapshotOperation
- func (op *DeleteSnapshotOperation) Done() bool
- func (op *DeleteSnapshotOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *DeleteSnapshotOperation) Name() string
- func (op *DeleteSnapshotOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteSnapshotOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteStoragePoolOperation
- func (op *DeleteStoragePoolOperation) Done() bool
- func (op *DeleteStoragePoolOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *DeleteStoragePoolOperation) Name() string
- func (op *DeleteStoragePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteStoragePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteVolumeOperation
- func (op *DeleteVolumeOperation) Done() bool
- func (op *DeleteVolumeOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *DeleteVolumeOperation) Name() string
- func (op *DeleteVolumeOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteVolumeOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type EncryptVolumesOperation
- func (op *EncryptVolumesOperation) Done() bool
- func (op *EncryptVolumesOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *EncryptVolumesOperation) Name() string
- func (op *EncryptVolumesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
- func (op *EncryptVolumesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
- type KmsConfigIterator
- type LocationIterator
- type OperationIterator
- type ReplicationIterator
- type ResumeReplicationOperation
- func (op *ResumeReplicationOperation) Done() bool
- func (op *ResumeReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *ResumeReplicationOperation) Name() string
- func (op *ResumeReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- func (op *ResumeReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- type ReverseReplicationDirectionOperation
- func (op *ReverseReplicationDirectionOperation) Done() bool
- func (op *ReverseReplicationDirectionOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *ReverseReplicationDirectionOperation) Name() string
- func (op *ReverseReplicationDirectionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- func (op *ReverseReplicationDirectionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- type RevertVolumeOperation
- func (op *RevertVolumeOperation) Done() bool
- func (op *RevertVolumeOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *RevertVolumeOperation) Name() string
- func (op *RevertVolumeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
- func (op *RevertVolumeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
- type SnapshotIterator
- type StopReplicationOperation
- func (op *StopReplicationOperation) Done() bool
- func (op *StopReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *StopReplicationOperation) Name() string
- func (op *StopReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- func (op *StopReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- type StoragePoolIterator
- type UpdateActiveDirectoryOperation
- func (op *UpdateActiveDirectoryOperation) Done() bool
- func (op *UpdateActiveDirectoryOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *UpdateActiveDirectoryOperation) Name() string
- func (op *UpdateActiveDirectoryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.ActiveDirectory, error)
- func (op *UpdateActiveDirectoryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.ActiveDirectory, error)
- type UpdateKmsConfigOperation
- func (op *UpdateKmsConfigOperation) Done() bool
- func (op *UpdateKmsConfigOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *UpdateKmsConfigOperation) Name() string
- func (op *UpdateKmsConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
- func (op *UpdateKmsConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.KmsConfig, error)
- type UpdateReplicationOperation
- func (op *UpdateReplicationOperation) Done() bool
- func (op *UpdateReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *UpdateReplicationOperation) Name() string
- func (op *UpdateReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- func (op *UpdateReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- type UpdateSnapshotOperation
- func (op *UpdateSnapshotOperation) Done() bool
- func (op *UpdateSnapshotOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *UpdateSnapshotOperation) Name() string
- func (op *UpdateSnapshotOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Snapshot, error)
- func (op *UpdateSnapshotOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Snapshot, error)
- type UpdateStoragePoolOperation
- func (op *UpdateStoragePoolOperation) Done() bool
- func (op *UpdateStoragePoolOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *UpdateStoragePoolOperation) Name() string
- func (op *UpdateStoragePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
- func (op *UpdateStoragePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
- type UpdateVolumeOperation
- func (op *UpdateVolumeOperation) Done() bool
- func (op *UpdateVolumeOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *UpdateVolumeOperation) Name() string
- func (op *UpdateVolumeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
- func (op *UpdateVolumeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Volume, error)
- type VolumeIterator
Examples ¶
- Client.CancelOperation
- Client.CreateActiveDirectory
- Client.CreateKmsConfig
- Client.CreateReplication
- Client.CreateSnapshot
- Client.CreateStoragePool
- Client.CreateVolume
- Client.DeleteActiveDirectory
- Client.DeleteKmsConfig
- Client.DeleteOperation
- Client.DeleteReplication
- Client.DeleteSnapshot
- Client.DeleteStoragePool
- Client.DeleteVolume
- Client.EncryptVolumes
- Client.GetActiveDirectory
- Client.GetKmsConfig
- Client.GetLocation
- Client.GetOperation
- Client.GetReplication
- Client.GetSnapshot
- Client.GetStoragePool
- Client.GetVolume
- Client.ListActiveDirectories
- Client.ListKmsConfigs
- Client.ListLocations
- Client.ListOperations
- Client.ListReplications
- Client.ListSnapshots
- Client.ListStoragePools
- Client.ListVolumes
- Client.ResumeReplication
- Client.ReverseReplicationDirection
- Client.RevertVolume
- Client.StopReplication
- Client.UpdateActiveDirectory
- Client.UpdateKmsConfig
- Client.UpdateReplication
- Client.UpdateSnapshot
- Client.UpdateStoragePool
- Client.UpdateVolume
- Client.VerifyKmsConfig
- NewClient
- NewRESTClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Types ¶
type 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) 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.
type CallOptions ¶
type CallOptions struct { ListStoragePools []gax.CallOption CreateStoragePool []gax.CallOption GetStoragePool []gax.CallOption UpdateStoragePool []gax.CallOption DeleteStoragePool []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 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.
type 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 }
Output:
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 }
Output:
func (*Client) CancelOperation ¶ added in v0.2.0
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. } }
Output:
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 }
Output:
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) 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 }
Output:
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) 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 }
Output:
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 }
Output:
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 }
Output:
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 }
Output:
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. } }
Output:
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) 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. } }
Output:
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 ¶ added in v0.2.0
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. } }
Output:
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. } }
Output:
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. } }
Output:
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. } }
Output:
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. } }
Output:
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 }
Output:
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) 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 }
Output:
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 }
Output:
func (*Client) GetLocation ¶ added in v0.2.0
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 }
Output:
func (*Client) GetOperation ¶ added in v0.2.0
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 }
Output:
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 }
Output:
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 }
Output:
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 }
Output:
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 }
Output:
func (*Client) ListActiveDirectories ¶
func (c *Client) ListActiveDirectories(ctx context.Context, req *netapppb.ListActiveDirectoriesRequest, opts ...gax.CallOption) *ActiveDirectoryIterator
ListActiveDirectories lists active directories.
Example ¶
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 } }
Output:
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.
Example ¶
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 } }
Output:
func (*Client) ListLocations ¶ added in v0.2.0
func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
Example ¶
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 } }
Output:
func (*Client) ListOperations ¶ added in v0.2.0
func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations 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" "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 } }
Output:
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.
Example ¶
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 } }
Output:
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.
Example ¶
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 } }
Output:
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.
Example ¶
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 } }
Output:
func (*Client) ListVolumes ¶
func (c *Client) ListVolumes(ctx context.Context, req *netapppb.ListVolumesRequest, opts ...gax.CallOption) *VolumeIterator
ListVolumes lists Volumes in a given project.
Example ¶
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 } }
Output:
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 }
Output:
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 }
Output:
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 }
Output:
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 }
Output:
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) 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 }
Output:
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) 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 }
Output:
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) 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 }
Output:
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 }
Output:
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 }
Output:
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 }
Output:
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) 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 }
Output:
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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) 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.
type LocationIterator ¶ added in v0.2.0
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) Next ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (it *LocationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type OperationIterator ¶ added in v0.2.0
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) Next ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (it *OperationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type 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) 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.
type 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.
type 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.
type 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.
type 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) 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.
type 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.
type 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) 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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.
type 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) 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.