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.
General documentation ¶
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage ¶
To get started with this package, create a client.
// go get cloud.google.com/go/netapp/apiv1@latest ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed. The methods of Client are safe for concurrent use by multiple goroutines. The returned client must be Closed when it is done being used.
Using the Client ¶
The following is an example of making an API call with the newly created client, mentioned above.
req := &netapppb.CreateActiveDirectoryRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateActiveDirectoryRequest. } op, err := c.CreateActiveDirectory(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp
Use of Context ¶
The ctx passed to NewClient is used for authentication requests and for creating the underlying connection, but is not used for subsequent calls. Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Index ¶
- func DefaultAuthScopes() []string
- type ActiveDirectoryIterator
- type BackupIterator
- type BackupPolicyIterator
- type BackupVaultIterator
- 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) CreateBackup(ctx context.Context, req *netapppb.CreateBackupRequest, opts ...gax.CallOption) (*CreateBackupOperation, error)
- func (c *Client) CreateBackupOperation(name string) *CreateBackupOperation
- func (c *Client) CreateBackupPolicy(ctx context.Context, req *netapppb.CreateBackupPolicyRequest, ...) (*CreateBackupPolicyOperation, error)
- func (c *Client) CreateBackupPolicyOperation(name string) *CreateBackupPolicyOperation
- func (c *Client) CreateBackupVault(ctx context.Context, req *netapppb.CreateBackupVaultRequest, ...) (*CreateBackupVaultOperation, error)
- func (c *Client) CreateBackupVaultOperation(name string) *CreateBackupVaultOperation
- 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) DeleteBackup(ctx context.Context, req *netapppb.DeleteBackupRequest, opts ...gax.CallOption) (*DeleteBackupOperation, error)
- func (c *Client) DeleteBackupOperation(name string) *DeleteBackupOperation
- func (c *Client) DeleteBackupPolicy(ctx context.Context, req *netapppb.DeleteBackupPolicyRequest, ...) (*DeleteBackupPolicyOperation, error)
- func (c *Client) DeleteBackupPolicyOperation(name string) *DeleteBackupPolicyOperation
- func (c *Client) DeleteBackupVault(ctx context.Context, req *netapppb.DeleteBackupVaultRequest, ...) (*DeleteBackupVaultOperation, error)
- func (c *Client) DeleteBackupVaultOperation(name string) *DeleteBackupVaultOperation
- 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) EstablishPeering(ctx context.Context, req *netapppb.EstablishPeeringRequest, ...) (*EstablishPeeringOperation, error)
- func (c *Client) EstablishPeeringOperation(name string) *EstablishPeeringOperation
- func (c *Client) GetActiveDirectory(ctx context.Context, req *netapppb.GetActiveDirectoryRequest, ...) (*netapppb.ActiveDirectory, error)
- func (c *Client) GetBackup(ctx context.Context, req *netapppb.GetBackupRequest, opts ...gax.CallOption) (*netapppb.Backup, error)
- func (c *Client) GetBackupPolicy(ctx context.Context, req *netapppb.GetBackupPolicyRequest, ...) (*netapppb.BackupPolicy, error)
- func (c *Client) GetBackupVault(ctx context.Context, req *netapppb.GetBackupVaultRequest, ...) (*netapppb.BackupVault, 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) ListBackupPolicies(ctx context.Context, req *netapppb.ListBackupPoliciesRequest, ...) *BackupPolicyIterator
- func (c *Client) ListBackupVaults(ctx context.Context, req *netapppb.ListBackupVaultsRequest, ...) *BackupVaultIterator
- func (c *Client) ListBackups(ctx context.Context, req *netapppb.ListBackupsRequest, opts ...gax.CallOption) *BackupIterator
- 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) SwitchActiveReplicaZone(ctx context.Context, req *netapppb.SwitchActiveReplicaZoneRequest, ...) (*SwitchActiveReplicaZoneOperation, error)
- func (c *Client) SwitchActiveReplicaZoneOperation(name string) *SwitchActiveReplicaZoneOperation
- func (c *Client) SyncReplication(ctx context.Context, req *netapppb.SyncReplicationRequest, ...) (*SyncReplicationOperation, error)
- func (c *Client) SyncReplicationOperation(name string) *SyncReplicationOperation
- func (c *Client) UpdateActiveDirectory(ctx context.Context, req *netapppb.UpdateActiveDirectoryRequest, ...) (*UpdateActiveDirectoryOperation, error)
- func (c *Client) UpdateActiveDirectoryOperation(name string) *UpdateActiveDirectoryOperation
- func (c *Client) UpdateBackup(ctx context.Context, req *netapppb.UpdateBackupRequest, opts ...gax.CallOption) (*UpdateBackupOperation, error)
- func (c *Client) UpdateBackupOperation(name string) *UpdateBackupOperation
- func (c *Client) UpdateBackupPolicy(ctx context.Context, req *netapppb.UpdateBackupPolicyRequest, ...) (*UpdateBackupPolicyOperation, error)
- func (c *Client) UpdateBackupPolicyOperation(name string) *UpdateBackupPolicyOperation
- func (c *Client) UpdateBackupVault(ctx context.Context, req *netapppb.UpdateBackupVaultRequest, ...) (*UpdateBackupVaultOperation, error)
- func (c *Client) UpdateBackupVaultOperation(name string) *UpdateBackupVaultOperation
- 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 CreateBackupOperation
- func (op *CreateBackupOperation) Done() bool
- func (op *CreateBackupOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *CreateBackupOperation) Name() string
- func (op *CreateBackupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
- func (op *CreateBackupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
- type CreateBackupPolicyOperation
- func (op *CreateBackupPolicyOperation) Done() bool
- func (op *CreateBackupPolicyOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *CreateBackupPolicyOperation) Name() string
- func (op *CreateBackupPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
- func (op *CreateBackupPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
- type CreateBackupVaultOperation
- func (op *CreateBackupVaultOperation) Done() bool
- func (op *CreateBackupVaultOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *CreateBackupVaultOperation) Name() string
- func (op *CreateBackupVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, error)
- func (op *CreateBackupVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, 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 DeleteBackupOperation
- func (op *DeleteBackupOperation) Done() bool
- func (op *DeleteBackupOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *DeleteBackupOperation) Name() string
- func (op *DeleteBackupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteBackupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteBackupPolicyOperation
- func (op *DeleteBackupPolicyOperation) Done() bool
- func (op *DeleteBackupPolicyOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *DeleteBackupPolicyOperation) Name() string
- func (op *DeleteBackupPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteBackupPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteBackupVaultOperation
- func (op *DeleteBackupVaultOperation) Done() bool
- func (op *DeleteBackupVaultOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *DeleteBackupVaultOperation) Name() string
- func (op *DeleteBackupVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteBackupVaultOperation) 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 EstablishPeeringOperation
- func (op *EstablishPeeringOperation) Done() bool
- func (op *EstablishPeeringOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *EstablishPeeringOperation) Name() string
- func (op *EstablishPeeringOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- func (op *EstablishPeeringOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, 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 SwitchActiveReplicaZoneOperation
- func (op *SwitchActiveReplicaZoneOperation) Done() bool
- func (op *SwitchActiveReplicaZoneOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *SwitchActiveReplicaZoneOperation) Name() string
- func (op *SwitchActiveReplicaZoneOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
- func (op *SwitchActiveReplicaZoneOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
- type SyncReplicationOperation
- func (op *SyncReplicationOperation) Done() bool
- func (op *SyncReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *SyncReplicationOperation) Name() string
- func (op *SyncReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- func (op *SyncReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
- 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 UpdateBackupOperation
- func (op *UpdateBackupOperation) Done() bool
- func (op *UpdateBackupOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *UpdateBackupOperation) Name() string
- func (op *UpdateBackupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
- func (op *UpdateBackupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
- type UpdateBackupPolicyOperation
- func (op *UpdateBackupPolicyOperation) Done() bool
- func (op *UpdateBackupPolicyOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *UpdateBackupPolicyOperation) Name() string
- func (op *UpdateBackupPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
- func (op *UpdateBackupPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
- type UpdateBackupVaultOperation
- func (op *UpdateBackupVaultOperation) Done() bool
- func (op *UpdateBackupVaultOperation) Metadata() (*netapppb.OperationMetadata, error)
- func (op *UpdateBackupVaultOperation) Name() string
- func (op *UpdateBackupVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, error)
- func (op *UpdateBackupVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, 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.CreateBackup
- Client.CreateBackupPolicy
- Client.CreateBackupVault
- Client.CreateKmsConfig
- Client.CreateReplication
- Client.CreateSnapshot
- Client.CreateStoragePool
- Client.CreateVolume
- Client.DeleteActiveDirectory
- Client.DeleteBackup
- Client.DeleteBackupPolicy
- Client.DeleteBackupVault
- Client.DeleteKmsConfig
- Client.DeleteOperation
- Client.DeleteReplication
- Client.DeleteSnapshot
- Client.DeleteStoragePool
- Client.DeleteVolume
- Client.EncryptVolumes
- Client.EstablishPeering
- Client.GetActiveDirectory
- Client.GetBackup
- Client.GetBackupPolicy
- Client.GetBackupVault
- Client.GetKmsConfig
- Client.GetLocation
- Client.GetOperation
- Client.GetReplication
- Client.GetSnapshot
- Client.GetStoragePool
- Client.GetVolume
- Client.ListActiveDirectories
- Client.ListActiveDirectories (All)
- Client.ListBackupPolicies
- Client.ListBackupPolicies (All)
- Client.ListBackupVaults
- Client.ListBackupVaults (All)
- Client.ListBackups
- Client.ListBackups (All)
- Client.ListKmsConfigs
- Client.ListKmsConfigs (All)
- Client.ListLocations
- Client.ListLocations (All)
- Client.ListOperations
- Client.ListOperations (All)
- Client.ListReplications
- Client.ListReplications (All)
- Client.ListSnapshots
- Client.ListSnapshots (All)
- Client.ListStoragePools
- Client.ListStoragePools (All)
- Client.ListVolumes
- Client.ListVolumes (All)
- Client.ResumeReplication
- Client.ReverseReplicationDirection
- Client.RevertVolume
- Client.StopReplication
- Client.SwitchActiveReplicaZone
- Client.SyncReplication
- Client.UpdateActiveDirectory
- Client.UpdateBackup
- Client.UpdateBackupPolicy
- Client.UpdateBackupVault
- 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) All ¶ added in v1.3.1
func (it *ActiveDirectoryIterator) All() iter.Seq2[*netapppb.ActiveDirectory, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ActiveDirectoryIterator) Next ¶
func (it *ActiveDirectoryIterator) Next() (*netapppb.ActiveDirectory, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ActiveDirectoryIterator) PageInfo ¶
func (it *ActiveDirectoryIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type BackupIterator ¶ added in v0.2.4
type BackupIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*netapppb.Backup, nextPageToken string, err error) // contains filtered or unexported fields }
BackupIterator manages a stream of *netapppb.Backup.
func (*BackupIterator) All ¶ added in v1.3.1
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*BackupIterator) Next ¶ added in v0.2.4
func (it *BackupIterator) Next() (*netapppb.Backup, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*BackupIterator) PageInfo ¶ added in v0.2.4
func (it *BackupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type BackupPolicyIterator ¶ added in v0.2.4
type BackupPolicyIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*netapppb.BackupPolicy, nextPageToken string, err error) // contains filtered or unexported fields }
BackupPolicyIterator manages a stream of *netapppb.BackupPolicy.
func (*BackupPolicyIterator) All ¶ added in v1.3.1
func (it *BackupPolicyIterator) All() iter.Seq2[*netapppb.BackupPolicy, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*BackupPolicyIterator) Next ¶ added in v0.2.4
func (it *BackupPolicyIterator) Next() (*netapppb.BackupPolicy, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*BackupPolicyIterator) PageInfo ¶ added in v0.2.4
func (it *BackupPolicyIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type BackupVaultIterator ¶ added in v0.2.4
type BackupVaultIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*netapppb.BackupVault, nextPageToken string, err error) // contains filtered or unexported fields }
BackupVaultIterator manages a stream of *netapppb.BackupVault.
func (*BackupVaultIterator) All ¶ added in v1.3.1
func (it *BackupVaultIterator) All() iter.Seq2[*netapppb.BackupVault, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*BackupVaultIterator) Next ¶ added in v0.2.4
func (it *BackupVaultIterator) Next() (*netapppb.BackupVault, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*BackupVaultIterator) PageInfo ¶ added in v0.2.4
func (it *BackupVaultIterator) 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 SwitchActiveReplicaZone []gax.CallOption ListVolumes []gax.CallOption GetVolume []gax.CallOption CreateVolume []gax.CallOption UpdateVolume []gax.CallOption DeleteVolume []gax.CallOption RevertVolume []gax.CallOption ListSnapshots []gax.CallOption GetSnapshot []gax.CallOption CreateSnapshot []gax.CallOption DeleteSnapshot []gax.CallOption UpdateSnapshot []gax.CallOption ListActiveDirectories []gax.CallOption GetActiveDirectory []gax.CallOption CreateActiveDirectory []gax.CallOption UpdateActiveDirectory []gax.CallOption DeleteActiveDirectory []gax.CallOption ListKmsConfigs []gax.CallOption CreateKmsConfig []gax.CallOption GetKmsConfig []gax.CallOption UpdateKmsConfig []gax.CallOption EncryptVolumes []gax.CallOption VerifyKmsConfig []gax.CallOption DeleteKmsConfig []gax.CallOption ListReplications []gax.CallOption GetReplication []gax.CallOption CreateReplication []gax.CallOption DeleteReplication []gax.CallOption UpdateReplication []gax.CallOption StopReplication []gax.CallOption ResumeReplication []gax.CallOption ReverseReplicationDirection []gax.CallOption EstablishPeering []gax.CallOption SyncReplication []gax.CallOption CreateBackupVault []gax.CallOption GetBackupVault []gax.CallOption ListBackupVaults []gax.CallOption UpdateBackupVault []gax.CallOption DeleteBackupVault []gax.CallOption CreateBackup []gax.CallOption GetBackup []gax.CallOption ListBackups []gax.CallOption DeleteBackup []gax.CallOption UpdateBackup []gax.CallOption CreateBackupPolicy []gax.CallOption GetBackupPolicy []gax.CallOption ListBackupPolicies []gax.CallOption UpdateBackupPolicy []gax.CallOption DeleteBackupPolicy []gax.CallOption 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) CreateBackup ¶ added in v0.2.4
func (c *Client) CreateBackup(ctx context.Context, req *netapppb.CreateBackupRequest, opts ...gax.CallOption) (*CreateBackupOperation, error)
CreateBackup creates a backup from the volume specified in the request The backup can be created from the given snapshot if specified in the request. If no snapshot specified, there’ll be a new snapshot taken to initiate the backup creation.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.CreateBackupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateBackupRequest. } op, err := c.CreateBackup(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CreateBackupOperation ¶ added in v0.2.4
func (c *Client) CreateBackupOperation(name string) *CreateBackupOperation
CreateBackupOperation returns a new CreateBackupOperation from a given name. The name must be that of a previously created CreateBackupOperation, possibly from a different process.
func (*Client) CreateBackupPolicy ¶ added in v0.2.4
func (c *Client) CreateBackupPolicy(ctx context.Context, req *netapppb.CreateBackupPolicyRequest, opts ...gax.CallOption) (*CreateBackupPolicyOperation, error)
CreateBackupPolicy creates new backup policy
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.CreateBackupPolicyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateBackupPolicyRequest. } op, err := c.CreateBackupPolicy(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CreateBackupPolicyOperation ¶ added in v0.2.4
func (c *Client) CreateBackupPolicyOperation(name string) *CreateBackupPolicyOperation
CreateBackupPolicyOperation returns a new CreateBackupPolicyOperation from a given name. The name must be that of a previously created CreateBackupPolicyOperation, possibly from a different process.
func (*Client) CreateBackupVault ¶ added in v0.2.4
func (c *Client) CreateBackupVault(ctx context.Context, req *netapppb.CreateBackupVaultRequest, opts ...gax.CallOption) (*CreateBackupVaultOperation, error)
CreateBackupVault creates new backup vault
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.CreateBackupVaultRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateBackupVaultRequest. } op, err := c.CreateBackupVault(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CreateBackupVaultOperation ¶ added in v0.2.4
func (c *Client) CreateBackupVaultOperation(name string) *CreateBackupVaultOperation
CreateBackupVaultOperation returns a new CreateBackupVaultOperation from a given name. The name must be that of a previously created CreateBackupVaultOperation, possibly from a different process.
func (*Client) CreateKmsConfig ¶
func (c *Client) CreateKmsConfig(ctx context.Context, req *netapppb.CreateKmsConfigRequest, opts ...gax.CallOption) (*CreateKmsConfigOperation, error)
CreateKmsConfig creates a new KMS config.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.CreateKmsConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#CreateKmsConfigRequest. } op, err := c.CreateKmsConfig(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
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) DeleteBackup ¶ added in v0.2.4
func (c *Client) DeleteBackup(ctx context.Context, req *netapppb.DeleteBackupRequest, opts ...gax.CallOption) (*DeleteBackupOperation, error)
DeleteBackup warning! This operation will permanently delete the backup.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.DeleteBackupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteBackupRequest. } op, err := c.DeleteBackup(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeleteBackupOperation ¶ added in v0.2.4
func (c *Client) DeleteBackupOperation(name string) *DeleteBackupOperation
DeleteBackupOperation returns a new DeleteBackupOperation from a given name. The name must be that of a previously created DeleteBackupOperation, possibly from a different process.
func (*Client) DeleteBackupPolicy ¶ added in v0.2.4
func (c *Client) DeleteBackupPolicy(ctx context.Context, req *netapppb.DeleteBackupPolicyRequest, opts ...gax.CallOption) (*DeleteBackupPolicyOperation, error)
DeleteBackupPolicy warning! This operation will permanently delete the backup policy.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.DeleteBackupPolicyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteBackupPolicyRequest. } op, err := c.DeleteBackupPolicy(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeleteBackupPolicyOperation ¶ added in v0.2.4
func (c *Client) DeleteBackupPolicyOperation(name string) *DeleteBackupPolicyOperation
DeleteBackupPolicyOperation returns a new DeleteBackupPolicyOperation from a given name. The name must be that of a previously created DeleteBackupPolicyOperation, possibly from a different process.
func (*Client) DeleteBackupVault ¶ added in v0.2.4
func (c *Client) DeleteBackupVault(ctx context.Context, req *netapppb.DeleteBackupVaultRequest, opts ...gax.CallOption) (*DeleteBackupVaultOperation, error)
DeleteBackupVault warning! This operation will permanently delete the backup vault.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.DeleteBackupVaultRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteBackupVaultRequest. } op, err := c.DeleteBackupVault(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeleteBackupVaultOperation ¶ added in v0.2.4
func (c *Client) DeleteBackupVaultOperation(name string) *DeleteBackupVaultOperation
DeleteBackupVaultOperation returns a new DeleteBackupVaultOperation from a given name. The name must be that of a previously created DeleteBackupVaultOperation, possibly from a different process.
func (*Client) DeleteKmsConfig ¶
func (c *Client) DeleteKmsConfig(ctx context.Context, req *netapppb.DeleteKmsConfigRequest, opts ...gax.CallOption) (*DeleteKmsConfigOperation, error)
DeleteKmsConfig warning! This operation will permanently delete the Kms config.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.DeleteKmsConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#DeleteKmsConfigRequest. } op, err := c.DeleteKmsConfig(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
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) EstablishPeering ¶ added in v1.5.0
func (c *Client) EstablishPeering(ctx context.Context, req *netapppb.EstablishPeeringRequest, opts ...gax.CallOption) (*EstablishPeeringOperation, error)
EstablishPeering establish replication peering.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.EstablishPeeringRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#EstablishPeeringRequest. } op, err := c.EstablishPeering(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) EstablishPeeringOperation ¶ added in v1.5.0
func (c *Client) EstablishPeeringOperation(name string) *EstablishPeeringOperation
EstablishPeeringOperation returns a new EstablishPeeringOperation from a given name. The name must be that of a previously created EstablishPeeringOperation, possibly from a different process.
func (*Client) GetActiveDirectory ¶
func (c *Client) GetActiveDirectory(ctx context.Context, req *netapppb.GetActiveDirectoryRequest, opts ...gax.CallOption) (*netapppb.ActiveDirectory, error)
GetActiveDirectory describes a specified active directory.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.GetActiveDirectoryRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetActiveDirectoryRequest. } resp, err := c.GetActiveDirectory(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetBackup ¶ added in v0.2.4
func (c *Client) GetBackup(ctx context.Context, req *netapppb.GetBackupRequest, opts ...gax.CallOption) (*netapppb.Backup, error)
GetBackup returns the description of the specified backup
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.GetBackupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetBackupRequest. } resp, err := c.GetBackup(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetBackupPolicy ¶ added in v0.2.4
func (c *Client) GetBackupPolicy(ctx context.Context, req *netapppb.GetBackupPolicyRequest, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
GetBackupPolicy returns the description of the specified backup policy by backup_policy_id.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.GetBackupPolicyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetBackupPolicyRequest. } resp, err := c.GetBackupPolicy(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetBackupVault ¶ added in v0.2.4
func (c *Client) GetBackupVault(ctx context.Context, req *netapppb.GetBackupVaultRequest, opts ...gax.CallOption) (*netapppb.BackupVault, error)
GetBackupVault returns the description of the specified backup vault
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.GetBackupVaultRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#GetBackupVaultRequest. } resp, err := c.GetBackupVault(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
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 // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*netapppb.ListActiveDirectoriesResponse) } }
Output:
Example (All) ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.ListActiveDirectoriesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListActiveDirectoriesRequest. } for resp, err := range c.ListActiveDirectories(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListBackupPolicies ¶ added in v0.2.4
func (c *Client) ListBackupPolicies(ctx context.Context, req *netapppb.ListBackupPoliciesRequest, opts ...gax.CallOption) *BackupPolicyIterator
ListBackupPolicies returns list of all available backup policies.
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.ListBackupPoliciesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupPoliciesRequest. } it := c.ListBackupPolicies(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*netapppb.ListBackupPoliciesResponse) } }
Output:
Example (All) ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.ListBackupPoliciesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupPoliciesRequest. } for resp, err := range c.ListBackupPolicies(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListBackupVaults ¶ added in v0.2.4
func (c *Client) ListBackupVaults(ctx context.Context, req *netapppb.ListBackupVaultsRequest, opts ...gax.CallOption) *BackupVaultIterator
ListBackupVaults returns list of all available backup vaults.
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.ListBackupVaultsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupVaultsRequest. } it := c.ListBackupVaults(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*netapppb.ListBackupVaultsResponse) } }
Output:
Example (All) ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.ListBackupVaultsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupVaultsRequest. } for resp, err := range c.ListBackupVaults(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListBackups ¶ added in v0.2.4
func (c *Client) ListBackups(ctx context.Context, req *netapppb.ListBackupsRequest, opts ...gax.CallOption) *BackupIterator
ListBackups returns descriptions of all backups for a backupVault.
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.ListBackupsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupsRequest. } it := c.ListBackups(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*netapppb.ListBackupsResponse) } }
Output:
Example (All) ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.ListBackupsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListBackupsRequest. } for resp, err := range c.ListBackups(ctx, req).All() { if err != nil { // TODO: Handle error. } // 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 // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*netapppb.ListKmsConfigsResponse) } }
Output:
Example (All) ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.ListKmsConfigsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListKmsConfigsRequest. } for resp, err := range c.ListKmsConfigs(ctx, req).All() { if err != nil { // TODO: Handle error. } // 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 // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*locationpb.ListLocationsResponse) } }
Output:
Example (All) ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" locationpb "google.golang.org/genproto/googleapis/cloud/location" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &locationpb.ListLocationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. } for resp, err := range c.ListLocations(ctx, req).All() { if err != nil { // TODO: Handle error. } // 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 // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*longrunningpb.ListOperationsResponse) } }
Output:
Example (All) ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" netapp "cloud.google.com/go/netapp/apiv1" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.ListOperationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest. } for resp, err := range c.ListOperations(ctx, req).All() { if err != nil { // TODO: Handle error. } // 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 // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*netapppb.ListReplicationsResponse) } }
Output:
Example (All) ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.ListReplicationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListReplicationsRequest. } for resp, err := range c.ListReplications(ctx, req).All() { if err != nil { // TODO: Handle error. } // 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 // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*netapppb.ListSnapshotsResponse) } }
Output:
Example (All) ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.ListSnapshotsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListSnapshotsRequest. } for resp, err := range c.ListSnapshots(ctx, req).All() { if err != nil { // TODO: Handle error. } // 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 // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*netapppb.ListStoragePoolsResponse) } }
Output:
Example (All) ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.ListStoragePoolsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListStoragePoolsRequest. } for resp, err := range c.ListStoragePools(ctx, req).All() { if err != nil { // TODO: Handle error. } // 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 // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*netapppb.ListVolumesResponse) } }
Output:
Example (All) ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.ListVolumesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#ListVolumesRequest. } for resp, err := range c.ListVolumes(ctx, req).All() { if err != nil { // TODO: Handle error. } // 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) SwitchActiveReplicaZone ¶ added in v1.4.0
func (c *Client) SwitchActiveReplicaZone(ctx context.Context, req *netapppb.SwitchActiveReplicaZoneRequest, opts ...gax.CallOption) (*SwitchActiveReplicaZoneOperation, error)
SwitchActiveReplicaZone this operation will switch the active/replica zone for a regional storagePool.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.SwitchActiveReplicaZoneRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#SwitchActiveReplicaZoneRequest. } op, err := c.SwitchActiveReplicaZone(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) SwitchActiveReplicaZoneOperation ¶ added in v1.4.0
func (c *Client) SwitchActiveReplicaZoneOperation(name string) *SwitchActiveReplicaZoneOperation
SwitchActiveReplicaZoneOperation returns a new SwitchActiveReplicaZoneOperation from a given name. The name must be that of a previously created SwitchActiveReplicaZoneOperation, possibly from a different process.
func (*Client) SyncReplication ¶ added in v1.5.0
func (c *Client) SyncReplication(ctx context.Context, req *netapppb.SyncReplicationRequest, opts ...gax.CallOption) (*SyncReplicationOperation, error)
SyncReplication syncs the replication. This will invoke one time volume data transfer from source to destination.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.SyncReplicationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#SyncReplicationRequest. } op, err := c.SyncReplication(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) SyncReplicationOperation ¶ added in v1.5.0
func (c *Client) SyncReplicationOperation(name string) *SyncReplicationOperation
SyncReplicationOperation returns a new SyncReplicationOperation from a given name. The name must be that of a previously created SyncReplicationOperation, possibly from a different process.
func (*Client) UpdateActiveDirectory ¶
func (c *Client) UpdateActiveDirectory(ctx context.Context, req *netapppb.UpdateActiveDirectoryRequest, opts ...gax.CallOption) (*UpdateActiveDirectoryOperation, error)
UpdateActiveDirectory update the parameters of an active directories.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.UpdateActiveDirectoryRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateActiveDirectoryRequest. } op, err := c.UpdateActiveDirectory(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
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) UpdateBackup ¶ added in v0.2.4
func (c *Client) UpdateBackup(ctx context.Context, req *netapppb.UpdateBackupRequest, opts ...gax.CallOption) (*UpdateBackupOperation, error)
UpdateBackup update backup with full spec.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.UpdateBackupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateBackupRequest. } op, err := c.UpdateBackup(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) UpdateBackupOperation ¶ added in v0.2.4
func (c *Client) UpdateBackupOperation(name string) *UpdateBackupOperation
UpdateBackupOperation returns a new UpdateBackupOperation from a given name. The name must be that of a previously created UpdateBackupOperation, possibly from a different process.
func (*Client) UpdateBackupPolicy ¶ added in v0.2.4
func (c *Client) UpdateBackupPolicy(ctx context.Context, req *netapppb.UpdateBackupPolicyRequest, opts ...gax.CallOption) (*UpdateBackupPolicyOperation, error)
UpdateBackupPolicy updates settings of a specific backup policy.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.UpdateBackupPolicyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateBackupPolicyRequest. } op, err := c.UpdateBackupPolicy(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) UpdateBackupPolicyOperation ¶ added in v0.2.4
func (c *Client) UpdateBackupPolicyOperation(name string) *UpdateBackupPolicyOperation
UpdateBackupPolicyOperation returns a new UpdateBackupPolicyOperation from a given name. The name must be that of a previously created UpdateBackupPolicyOperation, possibly from a different process.
func (*Client) UpdateBackupVault ¶ added in v0.2.4
func (c *Client) UpdateBackupVault(ctx context.Context, req *netapppb.UpdateBackupVaultRequest, opts ...gax.CallOption) (*UpdateBackupVaultOperation, error)
UpdateBackupVault updates the settings of a specific backup vault.
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.UpdateBackupVaultRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateBackupVaultRequest. } op, err := c.UpdateBackupVault(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) UpdateBackupVaultOperation ¶ added in v0.2.4
func (c *Client) UpdateBackupVaultOperation(name string) *UpdateBackupVaultOperation
UpdateBackupVaultOperation returns a new UpdateBackupVaultOperation from a given name. The name must be that of a previously created UpdateBackupVaultOperation, possibly from a different process.
func (*Client) UpdateKmsConfig ¶
func (c *Client) UpdateKmsConfig(ctx context.Context, req *netapppb.UpdateKmsConfigRequest, opts ...gax.CallOption) (*UpdateKmsConfigOperation, error)
UpdateKmsConfig updates the Kms config properties with the full spec
Example ¶
package main import ( "context" netapp "cloud.google.com/go/netapp/apiv1" netapppb "cloud.google.com/go/netapp/apiv1/netapppb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := netapp.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &netapppb.UpdateKmsConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/netapp/apiv1/netapppb#UpdateKmsConfigRequest. } op, err := c.UpdateKmsConfig(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
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 CreateBackupOperation ¶ added in v0.2.4
type CreateBackupOperation struct {
// contains filtered or unexported fields
}
CreateBackupOperation manages a long-running operation from CreateBackup.
func (*CreateBackupOperation) Done ¶ added in v0.2.4
func (op *CreateBackupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateBackupOperation) Metadata ¶ added in v0.2.4
func (op *CreateBackupOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateBackupOperation) Name ¶ added in v0.2.4
func (op *CreateBackupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateBackupOperation) Poll ¶ added in v0.2.4
func (op *CreateBackupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateBackupOperation) Wait ¶ added in v0.2.4
func (op *CreateBackupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateBackupPolicyOperation ¶ added in v0.2.4
type CreateBackupPolicyOperation struct {
// contains filtered or unexported fields
}
CreateBackupPolicyOperation manages a long-running operation from CreateBackupPolicy.
func (*CreateBackupPolicyOperation) Done ¶ added in v0.2.4
func (op *CreateBackupPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateBackupPolicyOperation) Metadata ¶ added in v0.2.4
func (op *CreateBackupPolicyOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateBackupPolicyOperation) Name ¶ added in v0.2.4
func (op *CreateBackupPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateBackupPolicyOperation) Poll ¶ added in v0.2.4
func (op *CreateBackupPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateBackupPolicyOperation) Wait ¶ added in v0.2.4
func (op *CreateBackupPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateBackupVaultOperation ¶ added in v0.2.4
type CreateBackupVaultOperation struct {
// contains filtered or unexported fields
}
CreateBackupVaultOperation manages a long-running operation from CreateBackupVault.
func (*CreateBackupVaultOperation) Done ¶ added in v0.2.4
func (op *CreateBackupVaultOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateBackupVaultOperation) Metadata ¶ added in v0.2.4
func (op *CreateBackupVaultOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateBackupVaultOperation) Name ¶ added in v0.2.4
func (op *CreateBackupVaultOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateBackupVaultOperation) Poll ¶ added in v0.2.4
func (op *CreateBackupVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateBackupVaultOperation) Wait ¶ added in v0.2.4
func (op *CreateBackupVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
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 DeleteBackupOperation ¶ added in v0.2.4
type DeleteBackupOperation struct {
// contains filtered or unexported fields
}
DeleteBackupOperation manages a long-running operation from DeleteBackup.
func (*DeleteBackupOperation) Done ¶ added in v0.2.4
func (op *DeleteBackupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteBackupOperation) Metadata ¶ added in v0.2.4
func (op *DeleteBackupOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteBackupOperation) Name ¶ added in v0.2.4
func (op *DeleteBackupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteBackupOperation) Poll ¶ added in v0.2.4
func (op *DeleteBackupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteBackupOperation) Wait ¶ added in v0.2.4
func (op *DeleteBackupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteBackupPolicyOperation ¶ added in v0.2.4
type DeleteBackupPolicyOperation struct {
// contains filtered or unexported fields
}
DeleteBackupPolicyOperation manages a long-running operation from DeleteBackupPolicy.
func (*DeleteBackupPolicyOperation) Done ¶ added in v0.2.4
func (op *DeleteBackupPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteBackupPolicyOperation) Metadata ¶ added in v0.2.4
func (op *DeleteBackupPolicyOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteBackupPolicyOperation) Name ¶ added in v0.2.4
func (op *DeleteBackupPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteBackupPolicyOperation) Poll ¶ added in v0.2.4
func (op *DeleteBackupPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteBackupPolicyOperation) Wait ¶ added in v0.2.4
func (op *DeleteBackupPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteBackupVaultOperation ¶ added in v0.2.4
type DeleteBackupVaultOperation struct {
// contains filtered or unexported fields
}
DeleteBackupVaultOperation manages a long-running operation from DeleteBackupVault.
func (*DeleteBackupVaultOperation) Done ¶ added in v0.2.4
func (op *DeleteBackupVaultOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteBackupVaultOperation) Metadata ¶ added in v0.2.4
func (op *DeleteBackupVaultOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteBackupVaultOperation) Name ¶ added in v0.2.4
func (op *DeleteBackupVaultOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteBackupVaultOperation) Poll ¶ added in v0.2.4
func (op *DeleteBackupVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteBackupVaultOperation) Wait ¶ added in v0.2.4
func (op *DeleteBackupVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
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 EstablishPeeringOperation ¶ added in v1.5.0
type EstablishPeeringOperation struct {
// contains filtered or unexported fields
}
EstablishPeeringOperation manages a long-running operation from EstablishPeering.
func (*EstablishPeeringOperation) Done ¶ added in v1.5.0
func (op *EstablishPeeringOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*EstablishPeeringOperation) Metadata ¶ added in v1.5.0
func (op *EstablishPeeringOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*EstablishPeeringOperation) Name ¶ added in v1.5.0
func (op *EstablishPeeringOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*EstablishPeeringOperation) Poll ¶ added in v1.5.0
func (op *EstablishPeeringOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*EstablishPeeringOperation) Wait ¶ added in v1.5.0
func (op *EstablishPeeringOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
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) All ¶ added in v1.3.1
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*KmsConfigIterator) Next ¶
func (it *KmsConfigIterator) Next() (*netapppb.KmsConfig, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*KmsConfigIterator) PageInfo ¶
func (it *KmsConfigIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
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) All ¶ added in v1.3.1
func (it *LocationIterator) All() iter.Seq2[*locationpb.Location, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*LocationIterator) Next ¶ 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) All ¶ added in v1.3.1
func (it *OperationIterator) All() iter.Seq2[*longrunningpb.Operation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*OperationIterator) Next ¶ 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) All ¶ added in v1.3.1
func (it *ReplicationIterator) All() iter.Seq2[*netapppb.Replication, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ReplicationIterator) Next ¶
func (it *ReplicationIterator) Next() (*netapppb.Replication, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ReplicationIterator) PageInfo ¶
func (it *ReplicationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
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) All ¶ added in v1.3.1
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SnapshotIterator) Next ¶
func (it *SnapshotIterator) Next() (*netapppb.Snapshot, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SnapshotIterator) PageInfo ¶
func (it *SnapshotIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
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) All ¶ added in v1.3.1
func (it *StoragePoolIterator) All() iter.Seq2[*netapppb.StoragePool, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*StoragePoolIterator) Next ¶
func (it *StoragePoolIterator) Next() (*netapppb.StoragePool, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*StoragePoolIterator) PageInfo ¶
func (it *StoragePoolIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SwitchActiveReplicaZoneOperation ¶ added in v1.4.0
type SwitchActiveReplicaZoneOperation struct {
// contains filtered or unexported fields
}
SwitchActiveReplicaZoneOperation manages a long-running operation from SwitchActiveReplicaZone.
func (*SwitchActiveReplicaZoneOperation) Done ¶ added in v1.4.0
func (op *SwitchActiveReplicaZoneOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*SwitchActiveReplicaZoneOperation) Metadata ¶ added in v1.4.0
func (op *SwitchActiveReplicaZoneOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*SwitchActiveReplicaZoneOperation) Name ¶ added in v1.4.0
func (op *SwitchActiveReplicaZoneOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*SwitchActiveReplicaZoneOperation) Poll ¶ added in v1.4.0
func (op *SwitchActiveReplicaZoneOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*SwitchActiveReplicaZoneOperation) Wait ¶ added in v1.4.0
func (op *SwitchActiveReplicaZoneOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.StoragePool, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type SyncReplicationOperation ¶ added in v1.5.0
type SyncReplicationOperation struct {
// contains filtered or unexported fields
}
SyncReplicationOperation manages a long-running operation from SyncReplication.
func (*SyncReplicationOperation) Done ¶ added in v1.5.0
func (op *SyncReplicationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*SyncReplicationOperation) Metadata ¶ added in v1.5.0
func (op *SyncReplicationOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*SyncReplicationOperation) Name ¶ added in v1.5.0
func (op *SyncReplicationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*SyncReplicationOperation) Poll ¶ added in v1.5.0
func (op *SyncReplicationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*SyncReplicationOperation) Wait ¶ added in v1.5.0
func (op *SyncReplicationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Replication, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
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 UpdateBackupOperation ¶ added in v0.2.4
type UpdateBackupOperation struct {
// contains filtered or unexported fields
}
UpdateBackupOperation manages a long-running operation from UpdateBackup.
func (*UpdateBackupOperation) Done ¶ added in v0.2.4
func (op *UpdateBackupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateBackupOperation) Metadata ¶ added in v0.2.4
func (op *UpdateBackupOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateBackupOperation) Name ¶ added in v0.2.4
func (op *UpdateBackupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateBackupOperation) Poll ¶ added in v0.2.4
func (op *UpdateBackupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateBackupOperation) Wait ¶ added in v0.2.4
func (op *UpdateBackupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.Backup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateBackupPolicyOperation ¶ added in v0.2.4
type UpdateBackupPolicyOperation struct {
// contains filtered or unexported fields
}
UpdateBackupPolicyOperation manages a long-running operation from UpdateBackupPolicy.
func (*UpdateBackupPolicyOperation) Done ¶ added in v0.2.4
func (op *UpdateBackupPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateBackupPolicyOperation) Metadata ¶ added in v0.2.4
func (op *UpdateBackupPolicyOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateBackupPolicyOperation) Name ¶ added in v0.2.4
func (op *UpdateBackupPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateBackupPolicyOperation) Poll ¶ added in v0.2.4
func (op *UpdateBackupPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateBackupPolicyOperation) Wait ¶ added in v0.2.4
func (op *UpdateBackupPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateBackupVaultOperation ¶ added in v0.2.4
type UpdateBackupVaultOperation struct {
// contains filtered or unexported fields
}
UpdateBackupVaultOperation manages a long-running operation from UpdateBackupVault.
func (*UpdateBackupVaultOperation) Done ¶ added in v0.2.4
func (op *UpdateBackupVaultOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateBackupVaultOperation) Metadata ¶ added in v0.2.4
func (op *UpdateBackupVaultOperation) Metadata() (*netapppb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateBackupVaultOperation) Name ¶ added in v0.2.4
func (op *UpdateBackupVaultOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateBackupVaultOperation) Poll ¶ added in v0.2.4
func (op *UpdateBackupVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateBackupVaultOperation) Wait ¶ added in v0.2.4
func (op *UpdateBackupVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*netapppb.BackupVault, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
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) All ¶ added in v1.3.1
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*VolumeIterator) Next ¶
func (it *VolumeIterator) Next() (*netapppb.Volume, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*VolumeIterator) PageInfo ¶
func (it *VolumeIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.