Documentation
¶
Overview ¶
Package oracledatabase is an auto-generated package for the Oracle Database@Google Cloud API.
The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases.
NOTE: This package is in beta. It is not stable, and may be subject to changes.
General documentation ¶
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage ¶
To get started with this package, create a client.
// go get cloud.google.com/go/oracledatabase/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 := oracledatabase.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 := &oracledatabasepb.CreateAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#CreateAutonomousDatabaseRequest.
}
op, err := c.CreateAutonomousDatabase(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 AutonomousDatabaseBackupIterator
- type AutonomousDatabaseCharacterSetIterator
- func (it *AutonomousDatabaseCharacterSetIterator) All() iter.Seq2[*oracledatabasepb.AutonomousDatabaseCharacterSet, error]
- func (it *AutonomousDatabaseCharacterSetIterator) Next() (*oracledatabasepb.AutonomousDatabaseCharacterSet, error)
- func (it *AutonomousDatabaseCharacterSetIterator) PageInfo() *iterator.PageInfo
- type AutonomousDatabaseIterator
- type AutonomousDbVersionIterator
- 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) CreateAutonomousDatabase(ctx context.Context, req *oracledatabasepb.CreateAutonomousDatabaseRequest, ...) (*CreateAutonomousDatabaseOperation, error)
- func (c *Client) CreateAutonomousDatabaseOperation(name string) *CreateAutonomousDatabaseOperation
- func (c *Client) CreateCloudExadataInfrastructure(ctx context.Context, ...) (*CreateCloudExadataInfrastructureOperation, error)
- func (c *Client) CreateCloudExadataInfrastructureOperation(name string) *CreateCloudExadataInfrastructureOperation
- func (c *Client) CreateCloudVmCluster(ctx context.Context, req *oracledatabasepb.CreateCloudVmClusterRequest, ...) (*CreateCloudVmClusterOperation, error)
- func (c *Client) CreateCloudVmClusterOperation(name string) *CreateCloudVmClusterOperation
- func (c *Client) CreateDbSystem(ctx context.Context, req *oracledatabasepb.CreateDbSystemRequest, ...) (*CreateDbSystemOperation, error)
- func (c *Client) CreateDbSystemOperation(name string) *CreateDbSystemOperation
- func (c *Client) CreateExadbVmCluster(ctx context.Context, req *oracledatabasepb.CreateExadbVmClusterRequest, ...) (*CreateExadbVmClusterOperation, error)
- func (c *Client) CreateExadbVmClusterOperation(name string) *CreateExadbVmClusterOperation
- func (c *Client) CreateExascaleDbStorageVault(ctx context.Context, req *oracledatabasepb.CreateExascaleDbStorageVaultRequest, ...) (*CreateExascaleDbStorageVaultOperation, error)
- func (c *Client) CreateExascaleDbStorageVaultOperation(name string) *CreateExascaleDbStorageVaultOperation
- func (c *Client) CreateOdbNetwork(ctx context.Context, req *oracledatabasepb.CreateOdbNetworkRequest, ...) (*CreateOdbNetworkOperation, error)
- func (c *Client) CreateOdbNetworkOperation(name string) *CreateOdbNetworkOperation
- func (c *Client) CreateOdbSubnet(ctx context.Context, req *oracledatabasepb.CreateOdbSubnetRequest, ...) (*CreateOdbSubnetOperation, error)
- func (c *Client) CreateOdbSubnetOperation(name string) *CreateOdbSubnetOperation
- func (c *Client) DeleteAutonomousDatabase(ctx context.Context, req *oracledatabasepb.DeleteAutonomousDatabaseRequest, ...) (*DeleteAutonomousDatabaseOperation, error)
- func (c *Client) DeleteAutonomousDatabaseOperation(name string) *DeleteAutonomousDatabaseOperation
- func (c *Client) DeleteCloudExadataInfrastructure(ctx context.Context, ...) (*DeleteCloudExadataInfrastructureOperation, error)
- func (c *Client) DeleteCloudExadataInfrastructureOperation(name string) *DeleteCloudExadataInfrastructureOperation
- func (c *Client) DeleteCloudVmCluster(ctx context.Context, req *oracledatabasepb.DeleteCloudVmClusterRequest, ...) (*DeleteCloudVmClusterOperation, error)
- func (c *Client) DeleteCloudVmClusterOperation(name string) *DeleteCloudVmClusterOperation
- func (c *Client) DeleteDbSystem(ctx context.Context, req *oracledatabasepb.DeleteDbSystemRequest, ...) (*DeleteDbSystemOperation, error)
- func (c *Client) DeleteDbSystemOperation(name string) *DeleteDbSystemOperation
- func (c *Client) DeleteExadbVmCluster(ctx context.Context, req *oracledatabasepb.DeleteExadbVmClusterRequest, ...) (*DeleteExadbVmClusterOperation, error)
- func (c *Client) DeleteExadbVmClusterOperation(name string) *DeleteExadbVmClusterOperation
- func (c *Client) DeleteExascaleDbStorageVault(ctx context.Context, req *oracledatabasepb.DeleteExascaleDbStorageVaultRequest, ...) (*DeleteExascaleDbStorageVaultOperation, error)
- func (c *Client) DeleteExascaleDbStorageVaultOperation(name string) *DeleteExascaleDbStorageVaultOperation
- func (c *Client) DeleteOdbNetwork(ctx context.Context, req *oracledatabasepb.DeleteOdbNetworkRequest, ...) (*DeleteOdbNetworkOperation, error)
- func (c *Client) DeleteOdbNetworkOperation(name string) *DeleteOdbNetworkOperation
- func (c *Client) DeleteOdbSubnet(ctx context.Context, req *oracledatabasepb.DeleteOdbSubnetRequest, ...) (*DeleteOdbSubnetOperation, error)
- func (c *Client) DeleteOdbSubnetOperation(name string) *DeleteOdbSubnetOperation
- func (c *Client) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *Client) FailoverAutonomousDatabase(ctx context.Context, req *oracledatabasepb.FailoverAutonomousDatabaseRequest, ...) (*FailoverAutonomousDatabaseOperation, error)
- func (c *Client) FailoverAutonomousDatabaseOperation(name string) *FailoverAutonomousDatabaseOperation
- func (c *Client) GenerateAutonomousDatabaseWallet(ctx context.Context, ...) (*oracledatabasepb.GenerateAutonomousDatabaseWalletResponse, error)
- func (c *Client) GetAutonomousDatabase(ctx context.Context, req *oracledatabasepb.GetAutonomousDatabaseRequest, ...) (*oracledatabasepb.AutonomousDatabase, error)
- func (c *Client) GetCloudExadataInfrastructure(ctx context.Context, ...) (*oracledatabasepb.CloudExadataInfrastructure, error)
- func (c *Client) GetCloudVmCluster(ctx context.Context, req *oracledatabasepb.GetCloudVmClusterRequest, ...) (*oracledatabasepb.CloudVmCluster, error)
- func (c *Client) GetDatabase(ctx context.Context, req *oracledatabasepb.GetDatabaseRequest, ...) (*oracledatabasepb.Database, error)
- func (c *Client) GetDbSystem(ctx context.Context, req *oracledatabasepb.GetDbSystemRequest, ...) (*oracledatabasepb.DbSystem, error)
- func (c *Client) GetExadbVmCluster(ctx context.Context, req *oracledatabasepb.GetExadbVmClusterRequest, ...) (*oracledatabasepb.ExadbVmCluster, error)
- func (c *Client) GetExascaleDbStorageVault(ctx context.Context, req *oracledatabasepb.GetExascaleDbStorageVaultRequest, ...) (*oracledatabasepb.ExascaleDbStorageVault, error)
- func (c *Client) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *Client) GetOdbNetwork(ctx context.Context, req *oracledatabasepb.GetOdbNetworkRequest, ...) (*oracledatabasepb.OdbNetwork, error)
- func (c *Client) GetOdbSubnet(ctx context.Context, req *oracledatabasepb.GetOdbSubnetRequest, ...) (*oracledatabasepb.OdbSubnet, error)
- func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *Client) GetPluggableDatabase(ctx context.Context, req *oracledatabasepb.GetPluggableDatabaseRequest, ...) (*oracledatabasepb.PluggableDatabase, error)
- func (c *Client) ListAutonomousDatabaseBackups(ctx context.Context, ...) *AutonomousDatabaseBackupIterator
- func (c *Client) ListAutonomousDatabaseCharacterSets(ctx context.Context, ...) *AutonomousDatabaseCharacterSetIterator
- func (c *Client) ListAutonomousDatabases(ctx context.Context, req *oracledatabasepb.ListAutonomousDatabasesRequest, ...) *AutonomousDatabaseIterator
- func (c *Client) ListAutonomousDbVersions(ctx context.Context, req *oracledatabasepb.ListAutonomousDbVersionsRequest, ...) *AutonomousDbVersionIterator
- func (c *Client) ListCloudExadataInfrastructures(ctx context.Context, ...) *CloudExadataInfrastructureIterator
- func (c *Client) ListCloudVmClusters(ctx context.Context, req *oracledatabasepb.ListCloudVmClustersRequest, ...) *CloudVmClusterIterator
- func (c *Client) ListDatabaseCharacterSets(ctx context.Context, req *oracledatabasepb.ListDatabaseCharacterSetsRequest, ...) *DatabaseCharacterSetIterator
- func (c *Client) ListDatabases(ctx context.Context, req *oracledatabasepb.ListDatabasesRequest, ...) *DatabaseIterator
- func (c *Client) ListDbNodes(ctx context.Context, req *oracledatabasepb.ListDbNodesRequest, ...) *DbNodeIterator
- func (c *Client) ListDbServers(ctx context.Context, req *oracledatabasepb.ListDbServersRequest, ...) *DbServerIterator
- func (c *Client) ListDbSystemInitialStorageSizes(ctx context.Context, ...) *DbSystemInitialStorageSizeIterator
- func (c *Client) ListDbSystemShapes(ctx context.Context, req *oracledatabasepb.ListDbSystemShapesRequest, ...) *DbSystemShapeIterator
- func (c *Client) ListDbSystems(ctx context.Context, req *oracledatabasepb.ListDbSystemsRequest, ...) *DbSystemIterator
- func (c *Client) ListDbVersions(ctx context.Context, req *oracledatabasepb.ListDbVersionsRequest, ...) *DbVersionIterator
- func (c *Client) ListEntitlements(ctx context.Context, req *oracledatabasepb.ListEntitlementsRequest, ...) *EntitlementIterator
- func (c *Client) ListExadbVmClusters(ctx context.Context, req *oracledatabasepb.ListExadbVmClustersRequest, ...) *ExadbVmClusterIterator
- func (c *Client) ListExascaleDbStorageVaults(ctx context.Context, req *oracledatabasepb.ListExascaleDbStorageVaultsRequest, ...) *ExascaleDbStorageVaultIterator
- func (c *Client) ListGiVersions(ctx context.Context, req *oracledatabasepb.ListGiVersionsRequest, ...) *GiVersionIterator
- func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *Client) ListMinorVersions(ctx context.Context, req *oracledatabasepb.ListMinorVersionsRequest, ...) *MinorVersionIterator
- func (c *Client) ListOdbNetworks(ctx context.Context, req *oracledatabasepb.ListOdbNetworksRequest, ...) *OdbNetworkIterator
- func (c *Client) ListOdbSubnets(ctx context.Context, req *oracledatabasepb.ListOdbSubnetsRequest, ...) *OdbSubnetIterator
- func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *Client) ListPluggableDatabases(ctx context.Context, req *oracledatabasepb.ListPluggableDatabasesRequest, ...) *PluggableDatabaseIterator
- func (c *Client) RemoveVirtualMachineExadbVmCluster(ctx context.Context, ...) (*RemoveVirtualMachineExadbVmClusterOperation, error)
- func (c *Client) RemoveVirtualMachineExadbVmClusterOperation(name string) *RemoveVirtualMachineExadbVmClusterOperation
- func (c *Client) RestartAutonomousDatabase(ctx context.Context, req *oracledatabasepb.RestartAutonomousDatabaseRequest, ...) (*RestartAutonomousDatabaseOperation, error)
- func (c *Client) RestartAutonomousDatabaseOperation(name string) *RestartAutonomousDatabaseOperation
- func (c *Client) RestoreAutonomousDatabase(ctx context.Context, req *oracledatabasepb.RestoreAutonomousDatabaseRequest, ...) (*RestoreAutonomousDatabaseOperation, error)
- func (c *Client) RestoreAutonomousDatabaseOperation(name string) *RestoreAutonomousDatabaseOperation
- func (c *Client) StartAutonomousDatabase(ctx context.Context, req *oracledatabasepb.StartAutonomousDatabaseRequest, ...) (*StartAutonomousDatabaseOperation, error)
- func (c *Client) StartAutonomousDatabaseOperation(name string) *StartAutonomousDatabaseOperation
- func (c *Client) StopAutonomousDatabase(ctx context.Context, req *oracledatabasepb.StopAutonomousDatabaseRequest, ...) (*StopAutonomousDatabaseOperation, error)
- func (c *Client) StopAutonomousDatabaseOperation(name string) *StopAutonomousDatabaseOperation
- func (c *Client) SwitchoverAutonomousDatabase(ctx context.Context, req *oracledatabasepb.SwitchoverAutonomousDatabaseRequest, ...) (*SwitchoverAutonomousDatabaseOperation, error)
- func (c *Client) SwitchoverAutonomousDatabaseOperation(name string) *SwitchoverAutonomousDatabaseOperation
- func (c *Client) UpdateAutonomousDatabase(ctx context.Context, req *oracledatabasepb.UpdateAutonomousDatabaseRequest, ...) (*UpdateAutonomousDatabaseOperation, error)
- func (c *Client) UpdateAutonomousDatabaseOperation(name string) *UpdateAutonomousDatabaseOperation
- func (c *Client) UpdateExadbVmCluster(ctx context.Context, req *oracledatabasepb.UpdateExadbVmClusterRequest, ...) (*UpdateExadbVmClusterOperation, error)
- func (c *Client) UpdateExadbVmClusterOperation(name string) *UpdateExadbVmClusterOperation
- type CloudExadataInfrastructureIterator
- type CloudVmClusterIterator
- type CreateAutonomousDatabaseOperation
- func (op *CreateAutonomousDatabaseOperation) Done() bool
- func (op *CreateAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *CreateAutonomousDatabaseOperation) Name() string
- func (op *CreateAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- func (op *CreateAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- type CreateCloudExadataInfrastructureOperation
- func (op *CreateCloudExadataInfrastructureOperation) Done() bool
- func (op *CreateCloudExadataInfrastructureOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *CreateCloudExadataInfrastructureOperation) Name() string
- func (op *CreateCloudExadataInfrastructureOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.CloudExadataInfrastructure, error)
- func (op *CreateCloudExadataInfrastructureOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.CloudExadataInfrastructure, error)
- type CreateCloudVmClusterOperation
- func (op *CreateCloudVmClusterOperation) Done() bool
- func (op *CreateCloudVmClusterOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *CreateCloudVmClusterOperation) Name() string
- func (op *CreateCloudVmClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.CloudVmCluster, error)
- func (op *CreateCloudVmClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.CloudVmCluster, error)
- type CreateDbSystemOperation
- func (op *CreateDbSystemOperation) Done() bool
- func (op *CreateDbSystemOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *CreateDbSystemOperation) Name() string
- func (op *CreateDbSystemOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.DbSystem, error)
- func (op *CreateDbSystemOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.DbSystem, error)
- type CreateExadbVmClusterOperation
- func (op *CreateExadbVmClusterOperation) Done() bool
- func (op *CreateExadbVmClusterOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *CreateExadbVmClusterOperation) Name() string
- func (op *CreateExadbVmClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, error)
- func (op *CreateExadbVmClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, error)
- type CreateExascaleDbStorageVaultOperation
- func (op *CreateExascaleDbStorageVaultOperation) Done() bool
- func (op *CreateExascaleDbStorageVaultOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *CreateExascaleDbStorageVaultOperation) Name() string
- func (op *CreateExascaleDbStorageVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExascaleDbStorageVault, error)
- func (op *CreateExascaleDbStorageVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExascaleDbStorageVault, error)
- type CreateOdbNetworkOperation
- func (op *CreateOdbNetworkOperation) Done() bool
- func (op *CreateOdbNetworkOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *CreateOdbNetworkOperation) Name() string
- func (op *CreateOdbNetworkOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.OdbNetwork, error)
- func (op *CreateOdbNetworkOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.OdbNetwork, error)
- type CreateOdbSubnetOperation
- func (op *CreateOdbSubnetOperation) Done() bool
- func (op *CreateOdbSubnetOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *CreateOdbSubnetOperation) Name() string
- func (op *CreateOdbSubnetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.OdbSubnet, error)
- func (op *CreateOdbSubnetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.OdbSubnet, error)
- type DatabaseCharacterSetIterator
- type DatabaseIterator
- type DbNodeIterator
- type DbServerIterator
- type DbSystemInitialStorageSizeIterator
- type DbSystemIterator
- type DbSystemShapeIterator
- type DbVersionIterator
- type DeleteAutonomousDatabaseOperation
- func (op *DeleteAutonomousDatabaseOperation) Done() bool
- func (op *DeleteAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *DeleteAutonomousDatabaseOperation) Name() string
- func (op *DeleteAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteCloudExadataInfrastructureOperation
- func (op *DeleteCloudExadataInfrastructureOperation) Done() bool
- func (op *DeleteCloudExadataInfrastructureOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *DeleteCloudExadataInfrastructureOperation) Name() string
- func (op *DeleteCloudExadataInfrastructureOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteCloudExadataInfrastructureOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteCloudVmClusterOperation
- func (op *DeleteCloudVmClusterOperation) Done() bool
- func (op *DeleteCloudVmClusterOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *DeleteCloudVmClusterOperation) Name() string
- func (op *DeleteCloudVmClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteCloudVmClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteDbSystemOperation
- func (op *DeleteDbSystemOperation) Done() bool
- func (op *DeleteDbSystemOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *DeleteDbSystemOperation) Name() string
- func (op *DeleteDbSystemOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteDbSystemOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteExadbVmClusterOperation
- func (op *DeleteExadbVmClusterOperation) Done() bool
- func (op *DeleteExadbVmClusterOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *DeleteExadbVmClusterOperation) Name() string
- func (op *DeleteExadbVmClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteExadbVmClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteExascaleDbStorageVaultOperation
- func (op *DeleteExascaleDbStorageVaultOperation) Done() bool
- func (op *DeleteExascaleDbStorageVaultOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *DeleteExascaleDbStorageVaultOperation) Name() string
- func (op *DeleteExascaleDbStorageVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteExascaleDbStorageVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteOdbNetworkOperation
- func (op *DeleteOdbNetworkOperation) Done() bool
- func (op *DeleteOdbNetworkOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *DeleteOdbNetworkOperation) Name() string
- func (op *DeleteOdbNetworkOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteOdbNetworkOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteOdbSubnetOperation
- func (op *DeleteOdbSubnetOperation) Done() bool
- func (op *DeleteOdbSubnetOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *DeleteOdbSubnetOperation) Name() string
- func (op *DeleteOdbSubnetOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteOdbSubnetOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type EntitlementIterator
- type ExadbVmClusterIterator
- type ExascaleDbStorageVaultIterator
- type FailoverAutonomousDatabaseOperation
- func (op *FailoverAutonomousDatabaseOperation) Done() bool
- func (op *FailoverAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *FailoverAutonomousDatabaseOperation) Name() string
- func (op *FailoverAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- func (op *FailoverAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- type GiVersionIterator
- type LocationIterator
- type MinorVersionIterator
- type OdbNetworkIterator
- type OdbSubnetIterator
- type OperationIterator
- type PluggableDatabaseIterator
- type RemoveVirtualMachineExadbVmClusterOperation
- func (op *RemoveVirtualMachineExadbVmClusterOperation) Done() bool
- func (op *RemoveVirtualMachineExadbVmClusterOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *RemoveVirtualMachineExadbVmClusterOperation) Name() string
- func (op *RemoveVirtualMachineExadbVmClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, error)
- func (op *RemoveVirtualMachineExadbVmClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, error)
- type RestartAutonomousDatabaseOperation
- func (op *RestartAutonomousDatabaseOperation) Done() bool
- func (op *RestartAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *RestartAutonomousDatabaseOperation) Name() string
- func (op *RestartAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- func (op *RestartAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- type RestoreAutonomousDatabaseOperation
- func (op *RestoreAutonomousDatabaseOperation) Done() bool
- func (op *RestoreAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *RestoreAutonomousDatabaseOperation) Name() string
- func (op *RestoreAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- func (op *RestoreAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- type StartAutonomousDatabaseOperation
- func (op *StartAutonomousDatabaseOperation) Done() bool
- func (op *StartAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *StartAutonomousDatabaseOperation) Name() string
- func (op *StartAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- func (op *StartAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- type StopAutonomousDatabaseOperation
- func (op *StopAutonomousDatabaseOperation) Done() bool
- func (op *StopAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *StopAutonomousDatabaseOperation) Name() string
- func (op *StopAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- func (op *StopAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- type SwitchoverAutonomousDatabaseOperation
- func (op *SwitchoverAutonomousDatabaseOperation) Done() bool
- func (op *SwitchoverAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *SwitchoverAutonomousDatabaseOperation) Name() string
- func (op *SwitchoverAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- func (op *SwitchoverAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- type UpdateAutonomousDatabaseOperation
- func (op *UpdateAutonomousDatabaseOperation) Done() bool
- func (op *UpdateAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *UpdateAutonomousDatabaseOperation) Name() string
- func (op *UpdateAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- func (op *UpdateAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
- type UpdateExadbVmClusterOperation
- func (op *UpdateExadbVmClusterOperation) Done() bool
- func (op *UpdateExadbVmClusterOperation) Metadata() (*oracledatabasepb.OperationMetadata, error)
- func (op *UpdateExadbVmClusterOperation) Name() string
- func (op *UpdateExadbVmClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, error)
- func (op *UpdateExadbVmClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, error)
Examples ¶
- Client.CancelOperation
- Client.CreateAutonomousDatabase
- Client.CreateCloudExadataInfrastructure
- Client.CreateCloudVmCluster
- Client.CreateDbSystem
- Client.CreateExadbVmCluster
- Client.CreateExascaleDbStorageVault
- Client.CreateOdbNetwork
- Client.CreateOdbSubnet
- Client.DeleteAutonomousDatabase
- Client.DeleteCloudExadataInfrastructure
- Client.DeleteCloudVmCluster
- Client.DeleteDbSystem
- Client.DeleteExadbVmCluster
- Client.DeleteExascaleDbStorageVault
- Client.DeleteOdbNetwork
- Client.DeleteOdbSubnet
- Client.DeleteOperation
- Client.FailoverAutonomousDatabase
- Client.GenerateAutonomousDatabaseWallet
- Client.GetAutonomousDatabase
- Client.GetCloudExadataInfrastructure
- Client.GetCloudVmCluster
- Client.GetDatabase
- Client.GetDbSystem
- Client.GetExadbVmCluster
- Client.GetExascaleDbStorageVault
- Client.GetLocation
- Client.GetOdbNetwork
- Client.GetOdbSubnet
- Client.GetOperation
- Client.GetPluggableDatabase
- Client.ListAutonomousDatabaseBackups
- Client.ListAutonomousDatabaseBackups (All)
- Client.ListAutonomousDatabaseCharacterSets
- Client.ListAutonomousDatabaseCharacterSets (All)
- Client.ListAutonomousDatabases
- Client.ListAutonomousDatabases (All)
- Client.ListAutonomousDbVersions
- Client.ListAutonomousDbVersions (All)
- Client.ListCloudExadataInfrastructures
- Client.ListCloudExadataInfrastructures (All)
- Client.ListCloudVmClusters
- Client.ListCloudVmClusters (All)
- Client.ListDatabaseCharacterSets
- Client.ListDatabaseCharacterSets (All)
- Client.ListDatabases
- Client.ListDatabases (All)
- Client.ListDbNodes
- Client.ListDbNodes (All)
- Client.ListDbServers
- Client.ListDbServers (All)
- Client.ListDbSystemInitialStorageSizes
- Client.ListDbSystemInitialStorageSizes (All)
- Client.ListDbSystemShapes
- Client.ListDbSystemShapes (All)
- Client.ListDbSystems
- Client.ListDbSystems (All)
- Client.ListDbVersions
- Client.ListDbVersions (All)
- Client.ListEntitlements
- Client.ListEntitlements (All)
- Client.ListExadbVmClusters
- Client.ListExadbVmClusters (All)
- Client.ListExascaleDbStorageVaults
- Client.ListExascaleDbStorageVaults (All)
- Client.ListGiVersions
- Client.ListGiVersions (All)
- Client.ListLocations
- Client.ListLocations (All)
- Client.ListMinorVersions
- Client.ListMinorVersions (All)
- Client.ListOdbNetworks
- Client.ListOdbNetworks (All)
- Client.ListOdbSubnets
- Client.ListOdbSubnets (All)
- Client.ListOperations
- Client.ListOperations (All)
- Client.ListPluggableDatabases
- Client.ListPluggableDatabases (All)
- Client.RemoveVirtualMachineExadbVmCluster
- Client.RestartAutonomousDatabase
- Client.RestoreAutonomousDatabase
- Client.StartAutonomousDatabase
- Client.StopAutonomousDatabase
- Client.SwitchoverAutonomousDatabase
- Client.UpdateAutonomousDatabase
- Client.UpdateExadbVmCluster
- 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 AutonomousDatabaseBackupIterator ¶
type AutonomousDatabaseBackupIterator 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 []*oracledatabasepb.AutonomousDatabaseBackup, nextPageToken string, err error)
// contains filtered or unexported fields
}
AutonomousDatabaseBackupIterator manages a stream of *oracledatabasepb.AutonomousDatabaseBackup.
func (*AutonomousDatabaseBackupIterator) All ¶
func (it *AutonomousDatabaseBackupIterator) All() iter.Seq2[*oracledatabasepb.AutonomousDatabaseBackup, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AutonomousDatabaseBackupIterator) Next ¶
func (it *AutonomousDatabaseBackupIterator) Next() (*oracledatabasepb.AutonomousDatabaseBackup, 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 (*AutonomousDatabaseBackupIterator) PageInfo ¶
func (it *AutonomousDatabaseBackupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AutonomousDatabaseCharacterSetIterator ¶
type AutonomousDatabaseCharacterSetIterator 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 []*oracledatabasepb.AutonomousDatabaseCharacterSet, nextPageToken string, err error)
// contains filtered or unexported fields
}
AutonomousDatabaseCharacterSetIterator manages a stream of *oracledatabasepb.AutonomousDatabaseCharacterSet.
func (*AutonomousDatabaseCharacterSetIterator) All ¶
func (it *AutonomousDatabaseCharacterSetIterator) All() iter.Seq2[*oracledatabasepb.AutonomousDatabaseCharacterSet, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AutonomousDatabaseCharacterSetIterator) Next ¶
func (it *AutonomousDatabaseCharacterSetIterator) Next() (*oracledatabasepb.AutonomousDatabaseCharacterSet, 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 (*AutonomousDatabaseCharacterSetIterator) PageInfo ¶
func (it *AutonomousDatabaseCharacterSetIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AutonomousDatabaseIterator ¶
type AutonomousDatabaseIterator 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 []*oracledatabasepb.AutonomousDatabase, nextPageToken string, err error)
// contains filtered or unexported fields
}
AutonomousDatabaseIterator manages a stream of *oracledatabasepb.AutonomousDatabase.
func (*AutonomousDatabaseIterator) All ¶
func (it *AutonomousDatabaseIterator) All() iter.Seq2[*oracledatabasepb.AutonomousDatabase, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AutonomousDatabaseIterator) Next ¶
func (it *AutonomousDatabaseIterator) Next() (*oracledatabasepb.AutonomousDatabase, 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 (*AutonomousDatabaseIterator) PageInfo ¶
func (it *AutonomousDatabaseIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AutonomousDbVersionIterator ¶
type AutonomousDbVersionIterator 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 []*oracledatabasepb.AutonomousDbVersion, nextPageToken string, err error)
// contains filtered or unexported fields
}
AutonomousDbVersionIterator manages a stream of *oracledatabasepb.AutonomousDbVersion.
func (*AutonomousDbVersionIterator) All ¶
func (it *AutonomousDbVersionIterator) All() iter.Seq2[*oracledatabasepb.AutonomousDbVersion, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AutonomousDbVersionIterator) Next ¶
func (it *AutonomousDbVersionIterator) Next() (*oracledatabasepb.AutonomousDbVersion, 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 (*AutonomousDbVersionIterator) PageInfo ¶
func (it *AutonomousDbVersionIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CallOptions ¶
type CallOptions struct {
ListCloudExadataInfrastructures []gax.CallOption
GetCloudExadataInfrastructure []gax.CallOption
CreateCloudExadataInfrastructure []gax.CallOption
DeleteCloudExadataInfrastructure []gax.CallOption
ListCloudVmClusters []gax.CallOption
GetCloudVmCluster []gax.CallOption
CreateCloudVmCluster []gax.CallOption
DeleteCloudVmCluster []gax.CallOption
ListEntitlements []gax.CallOption
ListDbServers []gax.CallOption
ListDbNodes []gax.CallOption
ListGiVersions []gax.CallOption
ListMinorVersions []gax.CallOption
ListDbSystemShapes []gax.CallOption
ListAutonomousDatabases []gax.CallOption
GetAutonomousDatabase []gax.CallOption
CreateAutonomousDatabase []gax.CallOption
UpdateAutonomousDatabase []gax.CallOption
DeleteAutonomousDatabase []gax.CallOption
RestoreAutonomousDatabase []gax.CallOption
GenerateAutonomousDatabaseWallet []gax.CallOption
ListAutonomousDbVersions []gax.CallOption
ListAutonomousDatabaseCharacterSets []gax.CallOption
ListAutonomousDatabaseBackups []gax.CallOption
StopAutonomousDatabase []gax.CallOption
StartAutonomousDatabase []gax.CallOption
RestartAutonomousDatabase []gax.CallOption
SwitchoverAutonomousDatabase []gax.CallOption
FailoverAutonomousDatabase []gax.CallOption
ListOdbNetworks []gax.CallOption
GetOdbNetwork []gax.CallOption
CreateOdbNetwork []gax.CallOption
DeleteOdbNetwork []gax.CallOption
ListOdbSubnets []gax.CallOption
GetOdbSubnet []gax.CallOption
CreateOdbSubnet []gax.CallOption
DeleteOdbSubnet []gax.CallOption
ListExadbVmClusters []gax.CallOption
GetExadbVmCluster []gax.CallOption
CreateExadbVmCluster []gax.CallOption
DeleteExadbVmCluster []gax.CallOption
UpdateExadbVmCluster []gax.CallOption
RemoveVirtualMachineExadbVmCluster []gax.CallOption
ListExascaleDbStorageVaults []gax.CallOption
GetExascaleDbStorageVault []gax.CallOption
CreateExascaleDbStorageVault []gax.CallOption
DeleteExascaleDbStorageVault []gax.CallOption
ListDbSystemInitialStorageSizes []gax.CallOption
ListDatabases []gax.CallOption
GetDatabase []gax.CallOption
ListPluggableDatabases []gax.CallOption
GetPluggableDatabase []gax.CallOption
ListDbSystems []gax.CallOption
GetDbSystem []gax.CallOption
CreateDbSystem []gax.CallOption
DeleteDbSystem []gax.CallOption
ListDbVersions []gax.CallOption
ListDatabaseCharacterSets []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 Oracle Database@Google Cloud API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Service describing handlers for resources
func NewClient ¶ added in v0.5.0
NewClient creates a new oracle database client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Service describing handlers for resources
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func NewRESTClient ¶
NewRESTClient creates a new oracle database rest client.
Service describing handlers for resources
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/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 := oracledatabase.NewRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func (*Client) CancelOperation ¶
func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
oracledatabase "cloud.google.com/go/oracledatabase/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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) Close ¶
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*Client) Connection
deprecated
func (c *Client) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*Client) CreateAutonomousDatabase ¶
func (c *Client) CreateAutonomousDatabase(ctx context.Context, req *oracledatabasepb.CreateAutonomousDatabaseRequest, opts ...gax.CallOption) (*CreateAutonomousDatabaseOperation, error)
CreateAutonomousDatabase creates a new Autonomous Database in a given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.CreateAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#CreateAutonomousDatabaseRequest.
}
op, err := c.CreateAutonomousDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateAutonomousDatabaseOperation ¶
func (c *Client) CreateAutonomousDatabaseOperation(name string) *CreateAutonomousDatabaseOperation
CreateAutonomousDatabaseOperation returns a new CreateAutonomousDatabaseOperation from a given name. The name must be that of a previously created CreateAutonomousDatabaseOperation, possibly from a different process.
func (*Client) CreateCloudExadataInfrastructure ¶
func (c *Client) CreateCloudExadataInfrastructure(ctx context.Context, req *oracledatabasepb.CreateCloudExadataInfrastructureRequest, opts ...gax.CallOption) (*CreateCloudExadataInfrastructureOperation, error)
CreateCloudExadataInfrastructure creates a new Exadata Infrastructure in a given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.CreateCloudExadataInfrastructureRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#CreateCloudExadataInfrastructureRequest.
}
op, err := c.CreateCloudExadataInfrastructure(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateCloudExadataInfrastructureOperation ¶
func (c *Client) CreateCloudExadataInfrastructureOperation(name string) *CreateCloudExadataInfrastructureOperation
CreateCloudExadataInfrastructureOperation returns a new CreateCloudExadataInfrastructureOperation from a given name. The name must be that of a previously created CreateCloudExadataInfrastructureOperation, possibly from a different process.
func (*Client) CreateCloudVmCluster ¶
func (c *Client) CreateCloudVmCluster(ctx context.Context, req *oracledatabasepb.CreateCloudVmClusterRequest, opts ...gax.CallOption) (*CreateCloudVmClusterOperation, error)
CreateCloudVmCluster creates a new VM Cluster in a given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.CreateCloudVmClusterRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#CreateCloudVmClusterRequest.
}
op, err := c.CreateCloudVmCluster(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateCloudVmClusterOperation ¶
func (c *Client) CreateCloudVmClusterOperation(name string) *CreateCloudVmClusterOperation
CreateCloudVmClusterOperation returns a new CreateCloudVmClusterOperation from a given name. The name must be that of a previously created CreateCloudVmClusterOperation, possibly from a different process.
func (*Client) CreateDbSystem ¶ added in v0.6.0
func (c *Client) CreateDbSystem(ctx context.Context, req *oracledatabasepb.CreateDbSystemRequest, opts ...gax.CallOption) (*CreateDbSystemOperation, error)
CreateDbSystem creates a new DbSystem in a given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.CreateDbSystemRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#CreateDbSystemRequest.
}
op, err := c.CreateDbSystem(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateDbSystemOperation ¶ added in v0.6.0
func (c *Client) CreateDbSystemOperation(name string) *CreateDbSystemOperation
CreateDbSystemOperation returns a new CreateDbSystemOperation from a given name. The name must be that of a previously created CreateDbSystemOperation, possibly from a different process.
func (*Client) CreateExadbVmCluster ¶ added in v0.6.0
func (c *Client) CreateExadbVmCluster(ctx context.Context, req *oracledatabasepb.CreateExadbVmClusterRequest, opts ...gax.CallOption) (*CreateExadbVmClusterOperation, error)
CreateExadbVmCluster creates a new Exadb (Exascale) VM Cluster resource.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.CreateExadbVmClusterRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#CreateExadbVmClusterRequest.
}
op, err := c.CreateExadbVmCluster(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateExadbVmClusterOperation ¶ added in v0.6.0
func (c *Client) CreateExadbVmClusterOperation(name string) *CreateExadbVmClusterOperation
CreateExadbVmClusterOperation returns a new CreateExadbVmClusterOperation from a given name. The name must be that of a previously created CreateExadbVmClusterOperation, possibly from a different process.
func (*Client) CreateExascaleDbStorageVault ¶ added in v0.6.0
func (c *Client) CreateExascaleDbStorageVault(ctx context.Context, req *oracledatabasepb.CreateExascaleDbStorageVaultRequest, opts ...gax.CallOption) (*CreateExascaleDbStorageVaultOperation, error)
CreateExascaleDbStorageVault creates a new ExascaleDB Storage Vault resource.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.CreateExascaleDbStorageVaultRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#CreateExascaleDbStorageVaultRequest.
}
op, err := c.CreateExascaleDbStorageVault(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateExascaleDbStorageVaultOperation ¶ added in v0.6.0
func (c *Client) CreateExascaleDbStorageVaultOperation(name string) *CreateExascaleDbStorageVaultOperation
CreateExascaleDbStorageVaultOperation returns a new CreateExascaleDbStorageVaultOperation from a given name. The name must be that of a previously created CreateExascaleDbStorageVaultOperation, possibly from a different process.
func (*Client) CreateOdbNetwork ¶ added in v0.6.0
func (c *Client) CreateOdbNetwork(ctx context.Context, req *oracledatabasepb.CreateOdbNetworkRequest, opts ...gax.CallOption) (*CreateOdbNetworkOperation, error)
CreateOdbNetwork creates a new ODB Network in a given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.CreateOdbNetworkRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#CreateOdbNetworkRequest.
}
op, err := c.CreateOdbNetwork(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateOdbNetworkOperation ¶ added in v0.6.0
func (c *Client) CreateOdbNetworkOperation(name string) *CreateOdbNetworkOperation
CreateOdbNetworkOperation returns a new CreateOdbNetworkOperation from a given name. The name must be that of a previously created CreateOdbNetworkOperation, possibly from a different process.
func (*Client) CreateOdbSubnet ¶ added in v0.6.0
func (c *Client) CreateOdbSubnet(ctx context.Context, req *oracledatabasepb.CreateOdbSubnetRequest, opts ...gax.CallOption) (*CreateOdbSubnetOperation, error)
CreateOdbSubnet creates a new ODB Subnet in a given ODB Network.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.CreateOdbSubnetRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#CreateOdbSubnetRequest.
}
op, err := c.CreateOdbSubnet(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateOdbSubnetOperation ¶ added in v0.6.0
func (c *Client) CreateOdbSubnetOperation(name string) *CreateOdbSubnetOperation
CreateOdbSubnetOperation returns a new CreateOdbSubnetOperation from a given name. The name must be that of a previously created CreateOdbSubnetOperation, possibly from a different process.
func (*Client) DeleteAutonomousDatabase ¶
func (c *Client) DeleteAutonomousDatabase(ctx context.Context, req *oracledatabasepb.DeleteAutonomousDatabaseRequest, opts ...gax.CallOption) (*DeleteAutonomousDatabaseOperation, error)
DeleteAutonomousDatabase deletes a single Autonomous Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.DeleteAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#DeleteAutonomousDatabaseRequest.
}
op, err := c.DeleteAutonomousDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteAutonomousDatabaseOperation ¶
func (c *Client) DeleteAutonomousDatabaseOperation(name string) *DeleteAutonomousDatabaseOperation
DeleteAutonomousDatabaseOperation returns a new DeleteAutonomousDatabaseOperation from a given name. The name must be that of a previously created DeleteAutonomousDatabaseOperation, possibly from a different process.
func (*Client) DeleteCloudExadataInfrastructure ¶
func (c *Client) DeleteCloudExadataInfrastructure(ctx context.Context, req *oracledatabasepb.DeleteCloudExadataInfrastructureRequest, opts ...gax.CallOption) (*DeleteCloudExadataInfrastructureOperation, error)
DeleteCloudExadataInfrastructure deletes a single Exadata Infrastructure.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.DeleteCloudExadataInfrastructureRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#DeleteCloudExadataInfrastructureRequest.
}
op, err := c.DeleteCloudExadataInfrastructure(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteCloudExadataInfrastructureOperation ¶
func (c *Client) DeleteCloudExadataInfrastructureOperation(name string) *DeleteCloudExadataInfrastructureOperation
DeleteCloudExadataInfrastructureOperation returns a new DeleteCloudExadataInfrastructureOperation from a given name. The name must be that of a previously created DeleteCloudExadataInfrastructureOperation, possibly from a different process.
func (*Client) DeleteCloudVmCluster ¶
func (c *Client) DeleteCloudVmCluster(ctx context.Context, req *oracledatabasepb.DeleteCloudVmClusterRequest, opts ...gax.CallOption) (*DeleteCloudVmClusterOperation, error)
DeleteCloudVmCluster deletes a single VM Cluster.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.DeleteCloudVmClusterRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#DeleteCloudVmClusterRequest.
}
op, err := c.DeleteCloudVmCluster(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteCloudVmClusterOperation ¶
func (c *Client) DeleteCloudVmClusterOperation(name string) *DeleteCloudVmClusterOperation
DeleteCloudVmClusterOperation returns a new DeleteCloudVmClusterOperation from a given name. The name must be that of a previously created DeleteCloudVmClusterOperation, possibly from a different process.
func (*Client) DeleteDbSystem ¶ added in v0.6.0
func (c *Client) DeleteDbSystem(ctx context.Context, req *oracledatabasepb.DeleteDbSystemRequest, opts ...gax.CallOption) (*DeleteDbSystemOperation, error)
DeleteDbSystem deletes a single DbSystem.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.DeleteDbSystemRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#DeleteDbSystemRequest.
}
op, err := c.DeleteDbSystem(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteDbSystemOperation ¶ added in v0.6.0
func (c *Client) DeleteDbSystemOperation(name string) *DeleteDbSystemOperation
DeleteDbSystemOperation returns a new DeleteDbSystemOperation from a given name. The name must be that of a previously created DeleteDbSystemOperation, possibly from a different process.
func (*Client) DeleteExadbVmCluster ¶ added in v0.6.0
func (c *Client) DeleteExadbVmCluster(ctx context.Context, req *oracledatabasepb.DeleteExadbVmClusterRequest, opts ...gax.CallOption) (*DeleteExadbVmClusterOperation, error)
DeleteExadbVmCluster deletes a single Exadb (Exascale) VM Cluster.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.DeleteExadbVmClusterRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#DeleteExadbVmClusterRequest.
}
op, err := c.DeleteExadbVmCluster(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteExadbVmClusterOperation ¶ added in v0.6.0
func (c *Client) DeleteExadbVmClusterOperation(name string) *DeleteExadbVmClusterOperation
DeleteExadbVmClusterOperation returns a new DeleteExadbVmClusterOperation from a given name. The name must be that of a previously created DeleteExadbVmClusterOperation, possibly from a different process.
func (*Client) DeleteExascaleDbStorageVault ¶ added in v0.6.0
func (c *Client) DeleteExascaleDbStorageVault(ctx context.Context, req *oracledatabasepb.DeleteExascaleDbStorageVaultRequest, opts ...gax.CallOption) (*DeleteExascaleDbStorageVaultOperation, error)
DeleteExascaleDbStorageVault deletes a single ExascaleDB Storage Vault.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.DeleteExascaleDbStorageVaultRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#DeleteExascaleDbStorageVaultRequest.
}
op, err := c.DeleteExascaleDbStorageVault(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteExascaleDbStorageVaultOperation ¶ added in v0.6.0
func (c *Client) DeleteExascaleDbStorageVaultOperation(name string) *DeleteExascaleDbStorageVaultOperation
DeleteExascaleDbStorageVaultOperation returns a new DeleteExascaleDbStorageVaultOperation from a given name. The name must be that of a previously created DeleteExascaleDbStorageVaultOperation, possibly from a different process.
func (*Client) DeleteOdbNetwork ¶ added in v0.6.0
func (c *Client) DeleteOdbNetwork(ctx context.Context, req *oracledatabasepb.DeleteOdbNetworkRequest, opts ...gax.CallOption) (*DeleteOdbNetworkOperation, error)
DeleteOdbNetwork deletes a single ODB Network.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.DeleteOdbNetworkRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#DeleteOdbNetworkRequest.
}
op, err := c.DeleteOdbNetwork(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteOdbNetworkOperation ¶ added in v0.6.0
func (c *Client) DeleteOdbNetworkOperation(name string) *DeleteOdbNetworkOperation
DeleteOdbNetworkOperation returns a new DeleteOdbNetworkOperation from a given name. The name must be that of a previously created DeleteOdbNetworkOperation, possibly from a different process.
func (*Client) DeleteOdbSubnet ¶ added in v0.6.0
func (c *Client) DeleteOdbSubnet(ctx context.Context, req *oracledatabasepb.DeleteOdbSubnetRequest, opts ...gax.CallOption) (*DeleteOdbSubnetOperation, error)
DeleteOdbSubnet deletes a single ODB Subnet.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.DeleteOdbSubnetRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#DeleteOdbSubnetRequest.
}
op, err := c.DeleteOdbSubnet(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteOdbSubnetOperation ¶ added in v0.6.0
func (c *Client) DeleteOdbSubnetOperation(name string) *DeleteOdbSubnetOperation
DeleteOdbSubnetOperation returns a new DeleteOdbSubnetOperation from a given name. The name must be that of a previously created DeleteOdbSubnetOperation, possibly from a different process.
func (*Client) DeleteOperation ¶
func (c *Client) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
oracledatabase "cloud.google.com/go/oracledatabase/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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) FailoverAutonomousDatabase ¶ added in v0.6.0
func (c *Client) FailoverAutonomousDatabase(ctx context.Context, req *oracledatabasepb.FailoverAutonomousDatabaseRequest, opts ...gax.CallOption) (*FailoverAutonomousDatabaseOperation, error)
FailoverAutonomousDatabase initiates a failover to target autonomous database from the associated primary database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.FailoverAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#FailoverAutonomousDatabaseRequest.
}
op, err := c.FailoverAutonomousDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) FailoverAutonomousDatabaseOperation ¶ added in v0.6.0
func (c *Client) FailoverAutonomousDatabaseOperation(name string) *FailoverAutonomousDatabaseOperation
FailoverAutonomousDatabaseOperation returns a new FailoverAutonomousDatabaseOperation from a given name. The name must be that of a previously created FailoverAutonomousDatabaseOperation, possibly from a different process.
func (*Client) GenerateAutonomousDatabaseWallet ¶
func (c *Client) GenerateAutonomousDatabaseWallet(ctx context.Context, req *oracledatabasepb.GenerateAutonomousDatabaseWalletRequest, opts ...gax.CallOption) (*oracledatabasepb.GenerateAutonomousDatabaseWalletResponse, error)
GenerateAutonomousDatabaseWallet generates a wallet for an Autonomous Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GenerateAutonomousDatabaseWalletRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GenerateAutonomousDatabaseWalletRequest.
}
resp, err := c.GenerateAutonomousDatabaseWallet(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetAutonomousDatabase ¶
func (c *Client) GetAutonomousDatabase(ctx context.Context, req *oracledatabasepb.GetAutonomousDatabaseRequest, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, error)
GetAutonomousDatabase gets the details of a single Autonomous Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GetAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GetAutonomousDatabaseRequest.
}
resp, err := c.GetAutonomousDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetCloudExadataInfrastructure ¶
func (c *Client) GetCloudExadataInfrastructure(ctx context.Context, req *oracledatabasepb.GetCloudExadataInfrastructureRequest, opts ...gax.CallOption) (*oracledatabasepb.CloudExadataInfrastructure, error)
GetCloudExadataInfrastructure gets details of a single Exadata Infrastructure.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GetCloudExadataInfrastructureRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GetCloudExadataInfrastructureRequest.
}
resp, err := c.GetCloudExadataInfrastructure(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetCloudVmCluster ¶
func (c *Client) GetCloudVmCluster(ctx context.Context, req *oracledatabasepb.GetCloudVmClusterRequest, opts ...gax.CallOption) (*oracledatabasepb.CloudVmCluster, error)
GetCloudVmCluster gets details of a single VM Cluster.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GetCloudVmClusterRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GetCloudVmClusterRequest.
}
resp, err := c.GetCloudVmCluster(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetDatabase ¶ added in v0.6.0
func (c *Client) GetDatabase(ctx context.Context, req *oracledatabasepb.GetDatabaseRequest, opts ...gax.CallOption) (*oracledatabasepb.Database, error)
GetDatabase gets details of a single Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GetDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GetDatabaseRequest.
}
resp, err := c.GetDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetDbSystem ¶ added in v0.6.0
func (c *Client) GetDbSystem(ctx context.Context, req *oracledatabasepb.GetDbSystemRequest, opts ...gax.CallOption) (*oracledatabasepb.DbSystem, error)
GetDbSystem gets details of a single DbSystem.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GetDbSystemRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GetDbSystemRequest.
}
resp, err := c.GetDbSystem(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetExadbVmCluster ¶ added in v0.6.0
func (c *Client) GetExadbVmCluster(ctx context.Context, req *oracledatabasepb.GetExadbVmClusterRequest, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, error)
GetExadbVmCluster gets details of a single Exadb (Exascale) VM Cluster.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GetExadbVmClusterRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GetExadbVmClusterRequest.
}
resp, err := c.GetExadbVmCluster(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetExascaleDbStorageVault ¶ added in v0.6.0
func (c *Client) GetExascaleDbStorageVault(ctx context.Context, req *oracledatabasepb.GetExascaleDbStorageVaultRequest, opts ...gax.CallOption) (*oracledatabasepb.ExascaleDbStorageVault, error)
GetExascaleDbStorageVault gets details of a single ExascaleDB Storage Vault.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GetExascaleDbStorageVaultRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GetExascaleDbStorageVaultRequest.
}
resp, err := c.GetExascaleDbStorageVault(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetLocation ¶
func (c *Client) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetOdbNetwork ¶ added in v0.6.0
func (c *Client) GetOdbNetwork(ctx context.Context, req *oracledatabasepb.GetOdbNetworkRequest, opts ...gax.CallOption) (*oracledatabasepb.OdbNetwork, error)
GetOdbNetwork gets details of a single ODB Network.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GetOdbNetworkRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GetOdbNetworkRequest.
}
resp, err := c.GetOdbNetwork(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetOdbSubnet ¶ added in v0.6.0
func (c *Client) GetOdbSubnet(ctx context.Context, req *oracledatabasepb.GetOdbSubnetRequest, opts ...gax.CallOption) (*oracledatabasepb.OdbSubnet, error)
GetOdbSubnet gets details of a single ODB Subnet.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GetOdbSubnetRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GetOdbSubnetRequest.
}
resp, err := c.GetOdbSubnet(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetOperation ¶
func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
oracledatabase "cloud.google.com/go/oracledatabase/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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetPluggableDatabase ¶ added in v0.6.0
func (c *Client) GetPluggableDatabase(ctx context.Context, req *oracledatabasepb.GetPluggableDatabaseRequest, opts ...gax.CallOption) (*oracledatabasepb.PluggableDatabase, error)
GetPluggableDatabase gets details of a single PluggableDatabase.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.GetPluggableDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#GetPluggableDatabaseRequest.
}
resp, err := c.GetPluggableDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ListAutonomousDatabaseBackups ¶
func (c *Client) ListAutonomousDatabaseBackups(ctx context.Context, req *oracledatabasepb.ListAutonomousDatabaseBackupsRequest, opts ...gax.CallOption) *AutonomousDatabaseBackupIterator
ListAutonomousDatabaseBackups lists the long-term and automatic backups of an Autonomous Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListAutonomousDatabaseBackupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListAutonomousDatabaseBackupsRequest.
}
it := c.ListAutonomousDatabaseBackups(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.(*oracledatabasepb.ListAutonomousDatabaseBackupsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListAutonomousDatabaseBackupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListAutonomousDatabaseBackupsRequest.
}
for resp, err := range c.ListAutonomousDatabaseBackups(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListAutonomousDatabaseCharacterSets ¶
func (c *Client) ListAutonomousDatabaseCharacterSets(ctx context.Context, req *oracledatabasepb.ListAutonomousDatabaseCharacterSetsRequest, opts ...gax.CallOption) *AutonomousDatabaseCharacterSetIterator
ListAutonomousDatabaseCharacterSets lists Autonomous Database Character Sets in a given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListAutonomousDatabaseCharacterSetsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListAutonomousDatabaseCharacterSetsRequest.
}
it := c.ListAutonomousDatabaseCharacterSets(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.(*oracledatabasepb.ListAutonomousDatabaseCharacterSetsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListAutonomousDatabaseCharacterSetsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListAutonomousDatabaseCharacterSetsRequest.
}
for resp, err := range c.ListAutonomousDatabaseCharacterSets(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListAutonomousDatabases ¶
func (c *Client) ListAutonomousDatabases(ctx context.Context, req *oracledatabasepb.ListAutonomousDatabasesRequest, opts ...gax.CallOption) *AutonomousDatabaseIterator
ListAutonomousDatabases lists the Autonomous Databases in a given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListAutonomousDatabasesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListAutonomousDatabasesRequest.
}
it := c.ListAutonomousDatabases(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.(*oracledatabasepb.ListAutonomousDatabasesResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListAutonomousDatabasesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListAutonomousDatabasesRequest.
}
for resp, err := range c.ListAutonomousDatabases(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListAutonomousDbVersions ¶
func (c *Client) ListAutonomousDbVersions(ctx context.Context, req *oracledatabasepb.ListAutonomousDbVersionsRequest, opts ...gax.CallOption) *AutonomousDbVersionIterator
ListAutonomousDbVersions lists all the available Autonomous Database versions for a project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListAutonomousDbVersionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListAutonomousDbVersionsRequest.
}
it := c.ListAutonomousDbVersions(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.(*oracledatabasepb.ListAutonomousDbVersionsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListAutonomousDbVersionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListAutonomousDbVersionsRequest.
}
for resp, err := range c.ListAutonomousDbVersions(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListCloudExadataInfrastructures ¶
func (c *Client) ListCloudExadataInfrastructures(ctx context.Context, req *oracledatabasepb.ListCloudExadataInfrastructuresRequest, opts ...gax.CallOption) *CloudExadataInfrastructureIterator
ListCloudExadataInfrastructures lists Exadata Infrastructures in a given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListCloudExadataInfrastructuresRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListCloudExadataInfrastructuresRequest.
}
it := c.ListCloudExadataInfrastructures(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.(*oracledatabasepb.ListCloudExadataInfrastructuresResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListCloudExadataInfrastructuresRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListCloudExadataInfrastructuresRequest.
}
for resp, err := range c.ListCloudExadataInfrastructures(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListCloudVmClusters ¶
func (c *Client) ListCloudVmClusters(ctx context.Context, req *oracledatabasepb.ListCloudVmClustersRequest, opts ...gax.CallOption) *CloudVmClusterIterator
ListCloudVmClusters lists the VM Clusters in a given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListCloudVmClustersRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListCloudVmClustersRequest.
}
it := c.ListCloudVmClusters(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.(*oracledatabasepb.ListCloudVmClustersResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListCloudVmClustersRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListCloudVmClustersRequest.
}
for resp, err := range c.ListCloudVmClusters(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListDatabaseCharacterSets ¶ added in v0.6.0
func (c *Client) ListDatabaseCharacterSets(ctx context.Context, req *oracledatabasepb.ListDatabaseCharacterSetsRequest, opts ...gax.CallOption) *DatabaseCharacterSetIterator
ListDatabaseCharacterSets list DatabaseCharacterSets for the given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDatabaseCharacterSetsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDatabaseCharacterSetsRequest.
}
it := c.ListDatabaseCharacterSets(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.(*oracledatabasepb.ListDatabaseCharacterSetsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDatabaseCharacterSetsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDatabaseCharacterSetsRequest.
}
for resp, err := range c.ListDatabaseCharacterSets(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListDatabases ¶ added in v0.6.0
func (c *Client) ListDatabases(ctx context.Context, req *oracledatabasepb.ListDatabasesRequest, opts ...gax.CallOption) *DatabaseIterator
ListDatabases lists all the Databases for the given project, location and DbSystem.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDatabasesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDatabasesRequest.
}
it := c.ListDatabases(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.(*oracledatabasepb.ListDatabasesResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDatabasesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDatabasesRequest.
}
for resp, err := range c.ListDatabases(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListDbNodes ¶
func (c *Client) ListDbNodes(ctx context.Context, req *oracledatabasepb.ListDbNodesRequest, opts ...gax.CallOption) *DbNodeIterator
ListDbNodes lists the database nodes of a VM Cluster.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbNodesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbNodesRequest.
}
it := c.ListDbNodes(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.(*oracledatabasepb.ListDbNodesResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbNodesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbNodesRequest.
}
for resp, err := range c.ListDbNodes(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListDbServers ¶
func (c *Client) ListDbServers(ctx context.Context, req *oracledatabasepb.ListDbServersRequest, opts ...gax.CallOption) *DbServerIterator
ListDbServers lists the database servers of an Exadata Infrastructure instance.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbServersRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbServersRequest.
}
it := c.ListDbServers(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.(*oracledatabasepb.ListDbServersResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbServersRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbServersRequest.
}
for resp, err := range c.ListDbServers(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListDbSystemInitialStorageSizes ¶ added in v0.6.0
func (c *Client) ListDbSystemInitialStorageSizes(ctx context.Context, req *oracledatabasepb.ListDbSystemInitialStorageSizesRequest, opts ...gax.CallOption) *DbSystemInitialStorageSizeIterator
ListDbSystemInitialStorageSizes lists all the DbSystemInitialStorageSizes for the given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbSystemInitialStorageSizesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbSystemInitialStorageSizesRequest.
}
it := c.ListDbSystemInitialStorageSizes(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.(*oracledatabasepb.ListDbSystemInitialStorageSizesResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbSystemInitialStorageSizesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbSystemInitialStorageSizesRequest.
}
for resp, err := range c.ListDbSystemInitialStorageSizes(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListDbSystemShapes ¶
func (c *Client) ListDbSystemShapes(ctx context.Context, req *oracledatabasepb.ListDbSystemShapesRequest, opts ...gax.CallOption) *DbSystemShapeIterator
ListDbSystemShapes lists the database system shapes available for the project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbSystemShapesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbSystemShapesRequest.
}
it := c.ListDbSystemShapes(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.(*oracledatabasepb.ListDbSystemShapesResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbSystemShapesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbSystemShapesRequest.
}
for resp, err := range c.ListDbSystemShapes(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListDbSystems ¶ added in v0.6.0
func (c *Client) ListDbSystems(ctx context.Context, req *oracledatabasepb.ListDbSystemsRequest, opts ...gax.CallOption) *DbSystemIterator
ListDbSystems lists all the DbSystems for the given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbSystemsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbSystemsRequest.
}
it := c.ListDbSystems(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.(*oracledatabasepb.ListDbSystemsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbSystemsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbSystemsRequest.
}
for resp, err := range c.ListDbSystems(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListDbVersions ¶ added in v0.6.0
func (c *Client) ListDbVersions(ctx context.Context, req *oracledatabasepb.ListDbVersionsRequest, opts ...gax.CallOption) *DbVersionIterator
ListDbVersions list DbVersions for the given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbVersionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbVersionsRequest.
}
it := c.ListDbVersions(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.(*oracledatabasepb.ListDbVersionsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListDbVersionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListDbVersionsRequest.
}
for resp, err := range c.ListDbVersions(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListEntitlements ¶
func (c *Client) ListEntitlements(ctx context.Context, req *oracledatabasepb.ListEntitlementsRequest, opts ...gax.CallOption) *EntitlementIterator
ListEntitlements lists the entitlements in a given project.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListEntitlementsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListEntitlementsRequest.
}
it := c.ListEntitlements(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.(*oracledatabasepb.ListEntitlementsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListEntitlementsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListEntitlementsRequest.
}
for resp, err := range c.ListEntitlements(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListExadbVmClusters ¶ added in v0.6.0
func (c *Client) ListExadbVmClusters(ctx context.Context, req *oracledatabasepb.ListExadbVmClustersRequest, opts ...gax.CallOption) *ExadbVmClusterIterator
ListExadbVmClusters lists all the Exadb (Exascale) VM Clusters for the given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListExadbVmClustersRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListExadbVmClustersRequest.
}
it := c.ListExadbVmClusters(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.(*oracledatabasepb.ListExadbVmClustersResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListExadbVmClustersRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListExadbVmClustersRequest.
}
for resp, err := range c.ListExadbVmClusters(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListExascaleDbStorageVaults ¶ added in v0.6.0
func (c *Client) ListExascaleDbStorageVaults(ctx context.Context, req *oracledatabasepb.ListExascaleDbStorageVaultsRequest, opts ...gax.CallOption) *ExascaleDbStorageVaultIterator
ListExascaleDbStorageVaults lists all the ExascaleDB Storage Vaults for the given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListExascaleDbStorageVaultsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListExascaleDbStorageVaultsRequest.
}
it := c.ListExascaleDbStorageVaults(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.(*oracledatabasepb.ListExascaleDbStorageVaultsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListExascaleDbStorageVaultsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListExascaleDbStorageVaultsRequest.
}
for resp, err := range c.ListExascaleDbStorageVaults(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListGiVersions ¶
func (c *Client) ListGiVersions(ctx context.Context, req *oracledatabasepb.ListGiVersionsRequest, opts ...gax.CallOption) *GiVersionIterator
ListGiVersions lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListGiVersionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListGiVersionsRequest.
}
it := c.ListGiVersions(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.(*oracledatabasepb.ListGiVersionsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListGiVersionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListGiVersionsRequest.
}
for resp, err := range c.ListGiVersions(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListLocations ¶
func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/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 := oracledatabase.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)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListMinorVersions ¶ added in v0.6.0
func (c *Client) ListMinorVersions(ctx context.Context, req *oracledatabasepb.ListMinorVersionsRequest, opts ...gax.CallOption) *MinorVersionIterator
ListMinorVersions lists all the valid minor versions for the given project, location, gi version and shape family.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListMinorVersionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListMinorVersionsRequest.
}
it := c.ListMinorVersions(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.(*oracledatabasepb.ListMinorVersionsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListMinorVersionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListMinorVersionsRequest.
}
for resp, err := range c.ListMinorVersions(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListOdbNetworks ¶ added in v0.6.0
func (c *Client) ListOdbNetworks(ctx context.Context, req *oracledatabasepb.ListOdbNetworksRequest, opts ...gax.CallOption) *OdbNetworkIterator
ListOdbNetworks lists the ODB Networks in a given project and location.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListOdbNetworksRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListOdbNetworksRequest.
}
it := c.ListOdbNetworks(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.(*oracledatabasepb.ListOdbNetworksResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListOdbNetworksRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListOdbNetworksRequest.
}
for resp, err := range c.ListOdbNetworks(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListOdbSubnets ¶ added in v0.6.0
func (c *Client) ListOdbSubnets(ctx context.Context, req *oracledatabasepb.ListOdbSubnetsRequest, opts ...gax.CallOption) *OdbSubnetIterator
ListOdbSubnets lists all the ODB Subnets in a given ODB Network.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListOdbSubnetsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListOdbSubnetsRequest.
}
it := c.ListOdbSubnets(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.(*oracledatabasepb.ListOdbSubnetsResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListOdbSubnetsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListOdbSubnetsRequest.
}
for resp, err := range c.ListOdbSubnets(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListOperations ¶
func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
oracledatabase "cloud.google.com/go/oracledatabase/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 := oracledatabase.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)
}
}
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
oracledatabase "cloud.google.com/go/oracledatabase/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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListPluggableDatabases ¶ added in v0.6.0
func (c *Client) ListPluggableDatabases(ctx context.Context, req *oracledatabasepb.ListPluggableDatabasesRequest, opts ...gax.CallOption) *PluggableDatabaseIterator
ListPluggableDatabases lists all the PluggableDatabases for the given project, location and Container Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
"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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListPluggableDatabasesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListPluggableDatabasesRequest.
}
it := c.ListPluggableDatabases(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.(*oracledatabasepb.ListPluggableDatabasesResponse)
}
}
Example (All) ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.ListPluggableDatabasesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#ListPluggableDatabasesRequest.
}
for resp, err := range c.ListPluggableDatabases(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) RemoveVirtualMachineExadbVmCluster ¶ added in v0.6.0
func (c *Client) RemoveVirtualMachineExadbVmCluster(ctx context.Context, req *oracledatabasepb.RemoveVirtualMachineExadbVmClusterRequest, opts ...gax.CallOption) (*RemoveVirtualMachineExadbVmClusterOperation, error)
RemoveVirtualMachineExadbVmCluster removes virtual machines from an existing exadb vm cluster.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.RemoveVirtualMachineExadbVmClusterRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#RemoveVirtualMachineExadbVmClusterRequest.
}
op, err := c.RemoveVirtualMachineExadbVmCluster(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) RemoveVirtualMachineExadbVmClusterOperation ¶ added in v0.6.0
func (c *Client) RemoveVirtualMachineExadbVmClusterOperation(name string) *RemoveVirtualMachineExadbVmClusterOperation
RemoveVirtualMachineExadbVmClusterOperation returns a new RemoveVirtualMachineExadbVmClusterOperation from a given name. The name must be that of a previously created RemoveVirtualMachineExadbVmClusterOperation, possibly from a different process.
func (*Client) RestartAutonomousDatabase ¶ added in v0.4.0
func (c *Client) RestartAutonomousDatabase(ctx context.Context, req *oracledatabasepb.RestartAutonomousDatabaseRequest, opts ...gax.CallOption) (*RestartAutonomousDatabaseOperation, error)
RestartAutonomousDatabase restarts an Autonomous Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.RestartAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#RestartAutonomousDatabaseRequest.
}
op, err := c.RestartAutonomousDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) RestartAutonomousDatabaseOperation ¶ added in v0.4.0
func (c *Client) RestartAutonomousDatabaseOperation(name string) *RestartAutonomousDatabaseOperation
RestartAutonomousDatabaseOperation returns a new RestartAutonomousDatabaseOperation from a given name. The name must be that of a previously created RestartAutonomousDatabaseOperation, possibly from a different process.
func (*Client) RestoreAutonomousDatabase ¶
func (c *Client) RestoreAutonomousDatabase(ctx context.Context, req *oracledatabasepb.RestoreAutonomousDatabaseRequest, opts ...gax.CallOption) (*RestoreAutonomousDatabaseOperation, error)
RestoreAutonomousDatabase restores a single Autonomous Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.RestoreAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#RestoreAutonomousDatabaseRequest.
}
op, err := c.RestoreAutonomousDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) RestoreAutonomousDatabaseOperation ¶
func (c *Client) RestoreAutonomousDatabaseOperation(name string) *RestoreAutonomousDatabaseOperation
RestoreAutonomousDatabaseOperation returns a new RestoreAutonomousDatabaseOperation from a given name. The name must be that of a previously created RestoreAutonomousDatabaseOperation, possibly from a different process.
func (*Client) StartAutonomousDatabase ¶ added in v0.4.0
func (c *Client) StartAutonomousDatabase(ctx context.Context, req *oracledatabasepb.StartAutonomousDatabaseRequest, opts ...gax.CallOption) (*StartAutonomousDatabaseOperation, error)
StartAutonomousDatabase starts an Autonomous Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.StartAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#StartAutonomousDatabaseRequest.
}
op, err := c.StartAutonomousDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) StartAutonomousDatabaseOperation ¶ added in v0.4.0
func (c *Client) StartAutonomousDatabaseOperation(name string) *StartAutonomousDatabaseOperation
StartAutonomousDatabaseOperation returns a new StartAutonomousDatabaseOperation from a given name. The name must be that of a previously created StartAutonomousDatabaseOperation, possibly from a different process.
func (*Client) StopAutonomousDatabase ¶ added in v0.4.0
func (c *Client) StopAutonomousDatabase(ctx context.Context, req *oracledatabasepb.StopAutonomousDatabaseRequest, opts ...gax.CallOption) (*StopAutonomousDatabaseOperation, error)
StopAutonomousDatabase stops an Autonomous Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.StopAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#StopAutonomousDatabaseRequest.
}
op, err := c.StopAutonomousDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) StopAutonomousDatabaseOperation ¶ added in v0.4.0
func (c *Client) StopAutonomousDatabaseOperation(name string) *StopAutonomousDatabaseOperation
StopAutonomousDatabaseOperation returns a new StopAutonomousDatabaseOperation from a given name. The name must be that of a previously created StopAutonomousDatabaseOperation, possibly from a different process.
func (*Client) SwitchoverAutonomousDatabase ¶ added in v0.6.0
func (c *Client) SwitchoverAutonomousDatabase(ctx context.Context, req *oracledatabasepb.SwitchoverAutonomousDatabaseRequest, opts ...gax.CallOption) (*SwitchoverAutonomousDatabaseOperation, error)
SwitchoverAutonomousDatabase initiates a switchover of specified autonomous database to the associated peer database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.SwitchoverAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#SwitchoverAutonomousDatabaseRequest.
}
op, err := c.SwitchoverAutonomousDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) SwitchoverAutonomousDatabaseOperation ¶ added in v0.6.0
func (c *Client) SwitchoverAutonomousDatabaseOperation(name string) *SwitchoverAutonomousDatabaseOperation
SwitchoverAutonomousDatabaseOperation returns a new SwitchoverAutonomousDatabaseOperation from a given name. The name must be that of a previously created SwitchoverAutonomousDatabaseOperation, possibly from a different process.
func (*Client) UpdateAutonomousDatabase ¶ added in v0.6.0
func (c *Client) UpdateAutonomousDatabase(ctx context.Context, req *oracledatabasepb.UpdateAutonomousDatabaseRequest, opts ...gax.CallOption) (*UpdateAutonomousDatabaseOperation, error)
UpdateAutonomousDatabase updates the parameters of a single Autonomous Database.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.UpdateAutonomousDatabaseRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#UpdateAutonomousDatabaseRequest.
}
op, err := c.UpdateAutonomousDatabase(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateAutonomousDatabaseOperation ¶ added in v0.6.0
func (c *Client) UpdateAutonomousDatabaseOperation(name string) *UpdateAutonomousDatabaseOperation
UpdateAutonomousDatabaseOperation returns a new UpdateAutonomousDatabaseOperation from a given name. The name must be that of a previously created UpdateAutonomousDatabaseOperation, possibly from a different process.
func (*Client) UpdateExadbVmCluster ¶ added in v0.6.0
func (c *Client) UpdateExadbVmCluster(ctx context.Context, req *oracledatabasepb.UpdateExadbVmClusterRequest, opts ...gax.CallOption) (*UpdateExadbVmClusterOperation, error)
UpdateExadbVmCluster updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count.
Example ¶
package main
import (
"context"
oracledatabase "cloud.google.com/go/oracledatabase/apiv1"
oracledatabasepb "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb"
)
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 := oracledatabase.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &oracledatabasepb.UpdateExadbVmClusterRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb#UpdateExadbVmClusterRequest.
}
op, err := c.UpdateExadbVmCluster(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateExadbVmClusterOperation ¶ added in v0.6.0
func (c *Client) UpdateExadbVmClusterOperation(name string) *UpdateExadbVmClusterOperation
UpdateExadbVmClusterOperation returns a new UpdateExadbVmClusterOperation from a given name. The name must be that of a previously created UpdateExadbVmClusterOperation, possibly from a different process.
type CloudExadataInfrastructureIterator ¶
type CloudExadataInfrastructureIterator 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 []*oracledatabasepb.CloudExadataInfrastructure, nextPageToken string, err error)
// contains filtered or unexported fields
}
CloudExadataInfrastructureIterator manages a stream of *oracledatabasepb.CloudExadataInfrastructure.
func (*CloudExadataInfrastructureIterator) All ¶
func (it *CloudExadataInfrastructureIterator) All() iter.Seq2[*oracledatabasepb.CloudExadataInfrastructure, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*CloudExadataInfrastructureIterator) Next ¶
func (it *CloudExadataInfrastructureIterator) Next() (*oracledatabasepb.CloudExadataInfrastructure, 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 (*CloudExadataInfrastructureIterator) PageInfo ¶
func (it *CloudExadataInfrastructureIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CloudVmClusterIterator ¶
type CloudVmClusterIterator 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 []*oracledatabasepb.CloudVmCluster, nextPageToken string, err error)
// contains filtered or unexported fields
}
CloudVmClusterIterator manages a stream of *oracledatabasepb.CloudVmCluster.
func (*CloudVmClusterIterator) All ¶
func (it *CloudVmClusterIterator) All() iter.Seq2[*oracledatabasepb.CloudVmCluster, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*CloudVmClusterIterator) Next ¶
func (it *CloudVmClusterIterator) Next() (*oracledatabasepb.CloudVmCluster, 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 (*CloudVmClusterIterator) PageInfo ¶
func (it *CloudVmClusterIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CreateAutonomousDatabaseOperation ¶
type CreateAutonomousDatabaseOperation struct {
// contains filtered or unexported fields
}
CreateAutonomousDatabaseOperation manages a long-running operation from CreateAutonomousDatabase.
func (*CreateAutonomousDatabaseOperation) Done ¶
func (op *CreateAutonomousDatabaseOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateAutonomousDatabaseOperation) Metadata ¶
func (op *CreateAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.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 (*CreateAutonomousDatabaseOperation) Name ¶
func (op *CreateAutonomousDatabaseOperation) 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 (*CreateAutonomousDatabaseOperation) Poll ¶
func (op *CreateAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 (*CreateAutonomousDatabaseOperation) Wait ¶
func (op *CreateAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 CreateCloudExadataInfrastructureOperation ¶
type CreateCloudExadataInfrastructureOperation struct {
// contains filtered or unexported fields
}
CreateCloudExadataInfrastructureOperation manages a long-running operation from CreateCloudExadataInfrastructure.
func (*CreateCloudExadataInfrastructureOperation) Done ¶
func (op *CreateCloudExadataInfrastructureOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateCloudExadataInfrastructureOperation) Metadata ¶
func (op *CreateCloudExadataInfrastructureOperation) Metadata() (*oracledatabasepb.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 (*CreateCloudExadataInfrastructureOperation) Name ¶
func (op *CreateCloudExadataInfrastructureOperation) 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 (*CreateCloudExadataInfrastructureOperation) Poll ¶
func (op *CreateCloudExadataInfrastructureOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.CloudExadataInfrastructure, 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 (*CreateCloudExadataInfrastructureOperation) Wait ¶
func (op *CreateCloudExadataInfrastructureOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.CloudExadataInfrastructure, 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 CreateCloudVmClusterOperation ¶
type CreateCloudVmClusterOperation struct {
// contains filtered or unexported fields
}
CreateCloudVmClusterOperation manages a long-running operation from CreateCloudVmCluster.
func (*CreateCloudVmClusterOperation) Done ¶
func (op *CreateCloudVmClusterOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateCloudVmClusterOperation) Metadata ¶
func (op *CreateCloudVmClusterOperation) Metadata() (*oracledatabasepb.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 (*CreateCloudVmClusterOperation) Name ¶
func (op *CreateCloudVmClusterOperation) 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 (*CreateCloudVmClusterOperation) Poll ¶
func (op *CreateCloudVmClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.CloudVmCluster, 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 (*CreateCloudVmClusterOperation) Wait ¶
func (op *CreateCloudVmClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.CloudVmCluster, 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 CreateDbSystemOperation ¶ added in v0.6.0
type CreateDbSystemOperation struct {
// contains filtered or unexported fields
}
CreateDbSystemOperation manages a long-running operation from CreateDbSystem.
func (*CreateDbSystemOperation) Done ¶ added in v0.6.0
func (op *CreateDbSystemOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateDbSystemOperation) Metadata ¶ added in v0.6.0
func (op *CreateDbSystemOperation) Metadata() (*oracledatabasepb.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 (*CreateDbSystemOperation) Name ¶ added in v0.6.0
func (op *CreateDbSystemOperation) 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 (*CreateDbSystemOperation) Poll ¶ added in v0.6.0
func (op *CreateDbSystemOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.DbSystem, 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 (*CreateDbSystemOperation) Wait ¶ added in v0.6.0
func (op *CreateDbSystemOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.DbSystem, 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 CreateExadbVmClusterOperation ¶ added in v0.6.0
type CreateExadbVmClusterOperation struct {
// contains filtered or unexported fields
}
CreateExadbVmClusterOperation manages a long-running operation from CreateExadbVmCluster.
func (*CreateExadbVmClusterOperation) Done ¶ added in v0.6.0
func (op *CreateExadbVmClusterOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateExadbVmClusterOperation) Metadata ¶ added in v0.6.0
func (op *CreateExadbVmClusterOperation) Metadata() (*oracledatabasepb.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 (*CreateExadbVmClusterOperation) Name ¶ added in v0.6.0
func (op *CreateExadbVmClusterOperation) 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 (*CreateExadbVmClusterOperation) Poll ¶ added in v0.6.0
func (op *CreateExadbVmClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, 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 (*CreateExadbVmClusterOperation) Wait ¶ added in v0.6.0
func (op *CreateExadbVmClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, 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 CreateExascaleDbStorageVaultOperation ¶ added in v0.6.0
type CreateExascaleDbStorageVaultOperation struct {
// contains filtered or unexported fields
}
CreateExascaleDbStorageVaultOperation manages a long-running operation from CreateExascaleDbStorageVault.
func (*CreateExascaleDbStorageVaultOperation) Done ¶ added in v0.6.0
func (op *CreateExascaleDbStorageVaultOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateExascaleDbStorageVaultOperation) Metadata ¶ added in v0.6.0
func (op *CreateExascaleDbStorageVaultOperation) Metadata() (*oracledatabasepb.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 (*CreateExascaleDbStorageVaultOperation) Name ¶ added in v0.6.0
func (op *CreateExascaleDbStorageVaultOperation) 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 (*CreateExascaleDbStorageVaultOperation) Poll ¶ added in v0.6.0
func (op *CreateExascaleDbStorageVaultOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExascaleDbStorageVault, 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 (*CreateExascaleDbStorageVaultOperation) Wait ¶ added in v0.6.0
func (op *CreateExascaleDbStorageVaultOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExascaleDbStorageVault, 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 CreateOdbNetworkOperation ¶ added in v0.6.0
type CreateOdbNetworkOperation struct {
// contains filtered or unexported fields
}
CreateOdbNetworkOperation manages a long-running operation from CreateOdbNetwork.
func (*CreateOdbNetworkOperation) Done ¶ added in v0.6.0
func (op *CreateOdbNetworkOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateOdbNetworkOperation) Metadata ¶ added in v0.6.0
func (op *CreateOdbNetworkOperation) Metadata() (*oracledatabasepb.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 (*CreateOdbNetworkOperation) Name ¶ added in v0.6.0
func (op *CreateOdbNetworkOperation) 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 (*CreateOdbNetworkOperation) Poll ¶ added in v0.6.0
func (op *CreateOdbNetworkOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.OdbNetwork, 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 (*CreateOdbNetworkOperation) Wait ¶ added in v0.6.0
func (op *CreateOdbNetworkOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.OdbNetwork, 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 CreateOdbSubnetOperation ¶ added in v0.6.0
type CreateOdbSubnetOperation struct {
// contains filtered or unexported fields
}
CreateOdbSubnetOperation manages a long-running operation from CreateOdbSubnet.
func (*CreateOdbSubnetOperation) Done ¶ added in v0.6.0
func (op *CreateOdbSubnetOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateOdbSubnetOperation) Metadata ¶ added in v0.6.0
func (op *CreateOdbSubnetOperation) Metadata() (*oracledatabasepb.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 (*CreateOdbSubnetOperation) Name ¶ added in v0.6.0
func (op *CreateOdbSubnetOperation) 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 (*CreateOdbSubnetOperation) Poll ¶ added in v0.6.0
func (op *CreateOdbSubnetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.OdbSubnet, 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 (*CreateOdbSubnetOperation) Wait ¶ added in v0.6.0
func (op *CreateOdbSubnetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.OdbSubnet, 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 DatabaseCharacterSetIterator ¶ added in v0.6.0
type DatabaseCharacterSetIterator 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 []*oracledatabasepb.DatabaseCharacterSet, nextPageToken string, err error)
// contains filtered or unexported fields
}
DatabaseCharacterSetIterator manages a stream of *oracledatabasepb.DatabaseCharacterSet.
func (*DatabaseCharacterSetIterator) All ¶ added in v0.6.0
func (it *DatabaseCharacterSetIterator) All() iter.Seq2[*oracledatabasepb.DatabaseCharacterSet, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DatabaseCharacterSetIterator) Next ¶ added in v0.6.0
func (it *DatabaseCharacterSetIterator) Next() (*oracledatabasepb.DatabaseCharacterSet, 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 (*DatabaseCharacterSetIterator) PageInfo ¶ added in v0.6.0
func (it *DatabaseCharacterSetIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DatabaseIterator ¶ added in v0.6.0
type DatabaseIterator 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 []*oracledatabasepb.Database, nextPageToken string, err error)
// contains filtered or unexported fields
}
DatabaseIterator manages a stream of *oracledatabasepb.Database.
func (*DatabaseIterator) All ¶ added in v0.6.0
func (it *DatabaseIterator) All() iter.Seq2[*oracledatabasepb.Database, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DatabaseIterator) Next ¶ added in v0.6.0
func (it *DatabaseIterator) Next() (*oracledatabasepb.Database, 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 (*DatabaseIterator) PageInfo ¶ added in v0.6.0
func (it *DatabaseIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DbNodeIterator ¶
type DbNodeIterator 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 []*oracledatabasepb.DbNode, nextPageToken string, err error)
// contains filtered or unexported fields
}
DbNodeIterator manages a stream of *oracledatabasepb.DbNode.
func (*DbNodeIterator) All ¶
func (it *DbNodeIterator) All() iter.Seq2[*oracledatabasepb.DbNode, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DbNodeIterator) Next ¶
func (it *DbNodeIterator) Next() (*oracledatabasepb.DbNode, 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 (*DbNodeIterator) PageInfo ¶
func (it *DbNodeIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DbServerIterator ¶
type DbServerIterator 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 []*oracledatabasepb.DbServer, nextPageToken string, err error)
// contains filtered or unexported fields
}
DbServerIterator manages a stream of *oracledatabasepb.DbServer.
func (*DbServerIterator) All ¶
func (it *DbServerIterator) All() iter.Seq2[*oracledatabasepb.DbServer, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DbServerIterator) Next ¶
func (it *DbServerIterator) Next() (*oracledatabasepb.DbServer, 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 (*DbServerIterator) PageInfo ¶
func (it *DbServerIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DbSystemInitialStorageSizeIterator ¶ added in v0.6.0
type DbSystemInitialStorageSizeIterator 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 []*oracledatabasepb.DbSystemInitialStorageSize, nextPageToken string, err error)
// contains filtered or unexported fields
}
DbSystemInitialStorageSizeIterator manages a stream of *oracledatabasepb.DbSystemInitialStorageSize.
func (*DbSystemInitialStorageSizeIterator) All ¶ added in v0.6.0
func (it *DbSystemInitialStorageSizeIterator) All() iter.Seq2[*oracledatabasepb.DbSystemInitialStorageSize, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DbSystemInitialStorageSizeIterator) Next ¶ added in v0.6.0
func (it *DbSystemInitialStorageSizeIterator) Next() (*oracledatabasepb.DbSystemInitialStorageSize, 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 (*DbSystemInitialStorageSizeIterator) PageInfo ¶ added in v0.6.0
func (it *DbSystemInitialStorageSizeIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DbSystemIterator ¶ added in v0.6.0
type DbSystemIterator 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 []*oracledatabasepb.DbSystem, nextPageToken string, err error)
// contains filtered or unexported fields
}
DbSystemIterator manages a stream of *oracledatabasepb.DbSystem.
func (*DbSystemIterator) All ¶ added in v0.6.0
func (it *DbSystemIterator) All() iter.Seq2[*oracledatabasepb.DbSystem, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DbSystemIterator) Next ¶ added in v0.6.0
func (it *DbSystemIterator) Next() (*oracledatabasepb.DbSystem, 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 (*DbSystemIterator) PageInfo ¶ added in v0.6.0
func (it *DbSystemIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DbSystemShapeIterator ¶
type DbSystemShapeIterator 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 []*oracledatabasepb.DbSystemShape, nextPageToken string, err error)
// contains filtered or unexported fields
}
DbSystemShapeIterator manages a stream of *oracledatabasepb.DbSystemShape.
func (*DbSystemShapeIterator) All ¶
func (it *DbSystemShapeIterator) All() iter.Seq2[*oracledatabasepb.DbSystemShape, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DbSystemShapeIterator) Next ¶
func (it *DbSystemShapeIterator) Next() (*oracledatabasepb.DbSystemShape, 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 (*DbSystemShapeIterator) PageInfo ¶
func (it *DbSystemShapeIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DbVersionIterator ¶ added in v0.6.0
type DbVersionIterator 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 []*oracledatabasepb.DbVersion, nextPageToken string, err error)
// contains filtered or unexported fields
}
DbVersionIterator manages a stream of *oracledatabasepb.DbVersion.
func (*DbVersionIterator) All ¶ added in v0.6.0
func (it *DbVersionIterator) All() iter.Seq2[*oracledatabasepb.DbVersion, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DbVersionIterator) Next ¶ added in v0.6.0
func (it *DbVersionIterator) Next() (*oracledatabasepb.DbVersion, 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 (*DbVersionIterator) PageInfo ¶ added in v0.6.0
func (it *DbVersionIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DeleteAutonomousDatabaseOperation ¶
type DeleteAutonomousDatabaseOperation struct {
// contains filtered or unexported fields
}
DeleteAutonomousDatabaseOperation manages a long-running operation from DeleteAutonomousDatabase.
func (*DeleteAutonomousDatabaseOperation) Done ¶
func (op *DeleteAutonomousDatabaseOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteAutonomousDatabaseOperation) Metadata ¶
func (op *DeleteAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.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 (*DeleteAutonomousDatabaseOperation) Name ¶
func (op *DeleteAutonomousDatabaseOperation) 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 (*DeleteAutonomousDatabaseOperation) Poll ¶
func (op *DeleteAutonomousDatabaseOperation) 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 (*DeleteAutonomousDatabaseOperation) Wait ¶
func (op *DeleteAutonomousDatabaseOperation) 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 DeleteCloudExadataInfrastructureOperation ¶
type DeleteCloudExadataInfrastructureOperation struct {
// contains filtered or unexported fields
}
DeleteCloudExadataInfrastructureOperation manages a long-running operation from DeleteCloudExadataInfrastructure.
func (*DeleteCloudExadataInfrastructureOperation) Done ¶
func (op *DeleteCloudExadataInfrastructureOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteCloudExadataInfrastructureOperation) Metadata ¶
func (op *DeleteCloudExadataInfrastructureOperation) Metadata() (*oracledatabasepb.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 (*DeleteCloudExadataInfrastructureOperation) Name ¶
func (op *DeleteCloudExadataInfrastructureOperation) 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 (*DeleteCloudExadataInfrastructureOperation) Poll ¶
func (op *DeleteCloudExadataInfrastructureOperation) 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 (*DeleteCloudExadataInfrastructureOperation) Wait ¶
func (op *DeleteCloudExadataInfrastructureOperation) 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 DeleteCloudVmClusterOperation ¶
type DeleteCloudVmClusterOperation struct {
// contains filtered or unexported fields
}
DeleteCloudVmClusterOperation manages a long-running operation from DeleteCloudVmCluster.
func (*DeleteCloudVmClusterOperation) Done ¶
func (op *DeleteCloudVmClusterOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteCloudVmClusterOperation) Metadata ¶
func (op *DeleteCloudVmClusterOperation) Metadata() (*oracledatabasepb.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 (*DeleteCloudVmClusterOperation) Name ¶
func (op *DeleteCloudVmClusterOperation) 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 (*DeleteCloudVmClusterOperation) Poll ¶
func (op *DeleteCloudVmClusterOperation) 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 (*DeleteCloudVmClusterOperation) Wait ¶
func (op *DeleteCloudVmClusterOperation) 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 DeleteDbSystemOperation ¶ added in v0.6.0
type DeleteDbSystemOperation struct {
// contains filtered or unexported fields
}
DeleteDbSystemOperation manages a long-running operation from DeleteDbSystem.
func (*DeleteDbSystemOperation) Done ¶ added in v0.6.0
func (op *DeleteDbSystemOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteDbSystemOperation) Metadata ¶ added in v0.6.0
func (op *DeleteDbSystemOperation) Metadata() (*oracledatabasepb.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 (*DeleteDbSystemOperation) Name ¶ added in v0.6.0
func (op *DeleteDbSystemOperation) 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 (*DeleteDbSystemOperation) Poll ¶ added in v0.6.0
func (op *DeleteDbSystemOperation) 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 (*DeleteDbSystemOperation) Wait ¶ added in v0.6.0
func (op *DeleteDbSystemOperation) 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 DeleteExadbVmClusterOperation ¶ added in v0.6.0
type DeleteExadbVmClusterOperation struct {
// contains filtered or unexported fields
}
DeleteExadbVmClusterOperation manages a long-running operation from DeleteExadbVmCluster.
func (*DeleteExadbVmClusterOperation) Done ¶ added in v0.6.0
func (op *DeleteExadbVmClusterOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteExadbVmClusterOperation) Metadata ¶ added in v0.6.0
func (op *DeleteExadbVmClusterOperation) Metadata() (*oracledatabasepb.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 (*DeleteExadbVmClusterOperation) Name ¶ added in v0.6.0
func (op *DeleteExadbVmClusterOperation) 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 (*DeleteExadbVmClusterOperation) Poll ¶ added in v0.6.0
func (op *DeleteExadbVmClusterOperation) 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 (*DeleteExadbVmClusterOperation) Wait ¶ added in v0.6.0
func (op *DeleteExadbVmClusterOperation) 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 DeleteExascaleDbStorageVaultOperation ¶ added in v0.6.0
type DeleteExascaleDbStorageVaultOperation struct {
// contains filtered or unexported fields
}
DeleteExascaleDbStorageVaultOperation manages a long-running operation from DeleteExascaleDbStorageVault.
func (*DeleteExascaleDbStorageVaultOperation) Done ¶ added in v0.6.0
func (op *DeleteExascaleDbStorageVaultOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteExascaleDbStorageVaultOperation) Metadata ¶ added in v0.6.0
func (op *DeleteExascaleDbStorageVaultOperation) Metadata() (*oracledatabasepb.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 (*DeleteExascaleDbStorageVaultOperation) Name ¶ added in v0.6.0
func (op *DeleteExascaleDbStorageVaultOperation) 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 (*DeleteExascaleDbStorageVaultOperation) Poll ¶ added in v0.6.0
func (op *DeleteExascaleDbStorageVaultOperation) 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 (*DeleteExascaleDbStorageVaultOperation) Wait ¶ added in v0.6.0
func (op *DeleteExascaleDbStorageVaultOperation) 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 DeleteOdbNetworkOperation ¶ added in v0.6.0
type DeleteOdbNetworkOperation struct {
// contains filtered or unexported fields
}
DeleteOdbNetworkOperation manages a long-running operation from DeleteOdbNetwork.
func (*DeleteOdbNetworkOperation) Done ¶ added in v0.6.0
func (op *DeleteOdbNetworkOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteOdbNetworkOperation) Metadata ¶ added in v0.6.0
func (op *DeleteOdbNetworkOperation) Metadata() (*oracledatabasepb.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 (*DeleteOdbNetworkOperation) Name ¶ added in v0.6.0
func (op *DeleteOdbNetworkOperation) 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 (*DeleteOdbNetworkOperation) Poll ¶ added in v0.6.0
func (op *DeleteOdbNetworkOperation) 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 (*DeleteOdbNetworkOperation) Wait ¶ added in v0.6.0
func (op *DeleteOdbNetworkOperation) 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 DeleteOdbSubnetOperation ¶ added in v0.6.0
type DeleteOdbSubnetOperation struct {
// contains filtered or unexported fields
}
DeleteOdbSubnetOperation manages a long-running operation from DeleteOdbSubnet.
func (*DeleteOdbSubnetOperation) Done ¶ added in v0.6.0
func (op *DeleteOdbSubnetOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteOdbSubnetOperation) Metadata ¶ added in v0.6.0
func (op *DeleteOdbSubnetOperation) Metadata() (*oracledatabasepb.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 (*DeleteOdbSubnetOperation) Name ¶ added in v0.6.0
func (op *DeleteOdbSubnetOperation) 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 (*DeleteOdbSubnetOperation) Poll ¶ added in v0.6.0
func (op *DeleteOdbSubnetOperation) 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 (*DeleteOdbSubnetOperation) Wait ¶ added in v0.6.0
func (op *DeleteOdbSubnetOperation) 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 EntitlementIterator ¶
type EntitlementIterator 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 []*oracledatabasepb.Entitlement, nextPageToken string, err error)
// contains filtered or unexported fields
}
EntitlementIterator manages a stream of *oracledatabasepb.Entitlement.
func (*EntitlementIterator) All ¶
func (it *EntitlementIterator) All() iter.Seq2[*oracledatabasepb.Entitlement, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*EntitlementIterator) Next ¶
func (it *EntitlementIterator) Next() (*oracledatabasepb.Entitlement, 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 (*EntitlementIterator) PageInfo ¶
func (it *EntitlementIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ExadbVmClusterIterator ¶ added in v0.6.0
type ExadbVmClusterIterator 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 []*oracledatabasepb.ExadbVmCluster, nextPageToken string, err error)
// contains filtered or unexported fields
}
ExadbVmClusterIterator manages a stream of *oracledatabasepb.ExadbVmCluster.
func (*ExadbVmClusterIterator) All ¶ added in v0.6.0
func (it *ExadbVmClusterIterator) All() iter.Seq2[*oracledatabasepb.ExadbVmCluster, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ExadbVmClusterIterator) Next ¶ added in v0.6.0
func (it *ExadbVmClusterIterator) Next() (*oracledatabasepb.ExadbVmCluster, 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 (*ExadbVmClusterIterator) PageInfo ¶ added in v0.6.0
func (it *ExadbVmClusterIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ExascaleDbStorageVaultIterator ¶ added in v0.6.0
type ExascaleDbStorageVaultIterator 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 []*oracledatabasepb.ExascaleDbStorageVault, nextPageToken string, err error)
// contains filtered or unexported fields
}
ExascaleDbStorageVaultIterator manages a stream of *oracledatabasepb.ExascaleDbStorageVault.
func (*ExascaleDbStorageVaultIterator) All ¶ added in v0.6.0
func (it *ExascaleDbStorageVaultIterator) All() iter.Seq2[*oracledatabasepb.ExascaleDbStorageVault, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ExascaleDbStorageVaultIterator) Next ¶ added in v0.6.0
func (it *ExascaleDbStorageVaultIterator) Next() (*oracledatabasepb.ExascaleDbStorageVault, 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 (*ExascaleDbStorageVaultIterator) PageInfo ¶ added in v0.6.0
func (it *ExascaleDbStorageVaultIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type FailoverAutonomousDatabaseOperation ¶ added in v0.6.0
type FailoverAutonomousDatabaseOperation struct {
// contains filtered or unexported fields
}
FailoverAutonomousDatabaseOperation manages a long-running operation from FailoverAutonomousDatabase.
func (*FailoverAutonomousDatabaseOperation) Done ¶ added in v0.6.0
func (op *FailoverAutonomousDatabaseOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*FailoverAutonomousDatabaseOperation) Metadata ¶ added in v0.6.0
func (op *FailoverAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.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 (*FailoverAutonomousDatabaseOperation) Name ¶ added in v0.6.0
func (op *FailoverAutonomousDatabaseOperation) 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 (*FailoverAutonomousDatabaseOperation) Poll ¶ added in v0.6.0
func (op *FailoverAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 (*FailoverAutonomousDatabaseOperation) Wait ¶ added in v0.6.0
func (op *FailoverAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 GiVersionIterator ¶
type GiVersionIterator 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 []*oracledatabasepb.GiVersion, nextPageToken string, err error)
// contains filtered or unexported fields
}
GiVersionIterator manages a stream of *oracledatabasepb.GiVersion.
func (*GiVersionIterator) All ¶
func (it *GiVersionIterator) All() iter.Seq2[*oracledatabasepb.GiVersion, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*GiVersionIterator) Next ¶
func (it *GiVersionIterator) Next() (*oracledatabasepb.GiVersion, 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 (*GiVersionIterator) PageInfo ¶
func (it *GiVersionIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type LocationIterator ¶
type LocationIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*locationpb.Location, nextPageToken string, err error)
// contains filtered or unexported fields
}
LocationIterator manages a stream of *locationpb.Location.
func (*LocationIterator) All ¶
func (it *LocationIterator) All() iter.Seq2[*locationpb.Location, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*LocationIterator) Next ¶
func (it *LocationIterator) Next() (*locationpb.Location, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*LocationIterator) PageInfo ¶
func (it *LocationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type MinorVersionIterator ¶ added in v0.6.0
type MinorVersionIterator 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 []*oracledatabasepb.MinorVersion, nextPageToken string, err error)
// contains filtered or unexported fields
}
MinorVersionIterator manages a stream of *oracledatabasepb.MinorVersion.
func (*MinorVersionIterator) All ¶ added in v0.6.0
func (it *MinorVersionIterator) All() iter.Seq2[*oracledatabasepb.MinorVersion, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*MinorVersionIterator) Next ¶ added in v0.6.0
func (it *MinorVersionIterator) Next() (*oracledatabasepb.MinorVersion, 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 (*MinorVersionIterator) PageInfo ¶ added in v0.6.0
func (it *MinorVersionIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type OdbNetworkIterator ¶ added in v0.6.0
type OdbNetworkIterator 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 []*oracledatabasepb.OdbNetwork, nextPageToken string, err error)
// contains filtered or unexported fields
}
OdbNetworkIterator manages a stream of *oracledatabasepb.OdbNetwork.
func (*OdbNetworkIterator) All ¶ added in v0.6.0
func (it *OdbNetworkIterator) All() iter.Seq2[*oracledatabasepb.OdbNetwork, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*OdbNetworkIterator) Next ¶ added in v0.6.0
func (it *OdbNetworkIterator) Next() (*oracledatabasepb.OdbNetwork, 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 (*OdbNetworkIterator) PageInfo ¶ added in v0.6.0
func (it *OdbNetworkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type OdbSubnetIterator ¶ added in v0.6.0
type OdbSubnetIterator 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 []*oracledatabasepb.OdbSubnet, nextPageToken string, err error)
// contains filtered or unexported fields
}
OdbSubnetIterator manages a stream of *oracledatabasepb.OdbSubnet.
func (*OdbSubnetIterator) All ¶ added in v0.6.0
func (it *OdbSubnetIterator) All() iter.Seq2[*oracledatabasepb.OdbSubnet, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*OdbSubnetIterator) Next ¶ added in v0.6.0
func (it *OdbSubnetIterator) Next() (*oracledatabasepb.OdbSubnet, 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 (*OdbSubnetIterator) PageInfo ¶ added in v0.6.0
func (it *OdbSubnetIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type OperationIterator ¶
type OperationIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error)
// contains filtered or unexported fields
}
OperationIterator manages a stream of *longrunningpb.Operation.
func (*OperationIterator) All ¶
func (it *OperationIterator) All() iter.Seq2[*longrunningpb.Operation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*OperationIterator) Next ¶
func (it *OperationIterator) Next() (*longrunningpb.Operation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*OperationIterator) PageInfo ¶
func (it *OperationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type PluggableDatabaseIterator ¶ added in v0.6.0
type PluggableDatabaseIterator 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 []*oracledatabasepb.PluggableDatabase, nextPageToken string, err error)
// contains filtered or unexported fields
}
PluggableDatabaseIterator manages a stream of *oracledatabasepb.PluggableDatabase.
func (*PluggableDatabaseIterator) All ¶ added in v0.6.0
func (it *PluggableDatabaseIterator) All() iter.Seq2[*oracledatabasepb.PluggableDatabase, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*PluggableDatabaseIterator) Next ¶ added in v0.6.0
func (it *PluggableDatabaseIterator) Next() (*oracledatabasepb.PluggableDatabase, 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 (*PluggableDatabaseIterator) PageInfo ¶ added in v0.6.0
func (it *PluggableDatabaseIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type RemoveVirtualMachineExadbVmClusterOperation ¶ added in v0.6.0
type RemoveVirtualMachineExadbVmClusterOperation struct {
// contains filtered or unexported fields
}
RemoveVirtualMachineExadbVmClusterOperation manages a long-running operation from RemoveVirtualMachineExadbVmCluster.
func (*RemoveVirtualMachineExadbVmClusterOperation) Done ¶ added in v0.6.0
func (op *RemoveVirtualMachineExadbVmClusterOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*RemoveVirtualMachineExadbVmClusterOperation) Metadata ¶ added in v0.6.0
func (op *RemoveVirtualMachineExadbVmClusterOperation) Metadata() (*oracledatabasepb.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 (*RemoveVirtualMachineExadbVmClusterOperation) Name ¶ added in v0.6.0
func (op *RemoveVirtualMachineExadbVmClusterOperation) 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 (*RemoveVirtualMachineExadbVmClusterOperation) Poll ¶ added in v0.6.0
func (op *RemoveVirtualMachineExadbVmClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, 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 (*RemoveVirtualMachineExadbVmClusterOperation) Wait ¶ added in v0.6.0
func (op *RemoveVirtualMachineExadbVmClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, 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 RestartAutonomousDatabaseOperation ¶ added in v0.4.0
type RestartAutonomousDatabaseOperation struct {
// contains filtered or unexported fields
}
RestartAutonomousDatabaseOperation manages a long-running operation from RestartAutonomousDatabase.
func (*RestartAutonomousDatabaseOperation) Done ¶ added in v0.4.0
func (op *RestartAutonomousDatabaseOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*RestartAutonomousDatabaseOperation) Metadata ¶ added in v0.4.0
func (op *RestartAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.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 (*RestartAutonomousDatabaseOperation) Name ¶ added in v0.4.0
func (op *RestartAutonomousDatabaseOperation) 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 (*RestartAutonomousDatabaseOperation) Poll ¶ added in v0.4.0
func (op *RestartAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 (*RestartAutonomousDatabaseOperation) Wait ¶ added in v0.4.0
func (op *RestartAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 RestoreAutonomousDatabaseOperation ¶
type RestoreAutonomousDatabaseOperation struct {
// contains filtered or unexported fields
}
RestoreAutonomousDatabaseOperation manages a long-running operation from RestoreAutonomousDatabase.
func (*RestoreAutonomousDatabaseOperation) Done ¶
func (op *RestoreAutonomousDatabaseOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*RestoreAutonomousDatabaseOperation) Metadata ¶
func (op *RestoreAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.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 (*RestoreAutonomousDatabaseOperation) Name ¶
func (op *RestoreAutonomousDatabaseOperation) 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 (*RestoreAutonomousDatabaseOperation) Poll ¶
func (op *RestoreAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 (*RestoreAutonomousDatabaseOperation) Wait ¶
func (op *RestoreAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 StartAutonomousDatabaseOperation ¶ added in v0.4.0
type StartAutonomousDatabaseOperation struct {
// contains filtered or unexported fields
}
StartAutonomousDatabaseOperation manages a long-running operation from StartAutonomousDatabase.
func (*StartAutonomousDatabaseOperation) Done ¶ added in v0.4.0
func (op *StartAutonomousDatabaseOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*StartAutonomousDatabaseOperation) Metadata ¶ added in v0.4.0
func (op *StartAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.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 (*StartAutonomousDatabaseOperation) Name ¶ added in v0.4.0
func (op *StartAutonomousDatabaseOperation) 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 (*StartAutonomousDatabaseOperation) Poll ¶ added in v0.4.0
func (op *StartAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 (*StartAutonomousDatabaseOperation) Wait ¶ added in v0.4.0
func (op *StartAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 StopAutonomousDatabaseOperation ¶ added in v0.4.0
type StopAutonomousDatabaseOperation struct {
// contains filtered or unexported fields
}
StopAutonomousDatabaseOperation manages a long-running operation from StopAutonomousDatabase.
func (*StopAutonomousDatabaseOperation) Done ¶ added in v0.4.0
func (op *StopAutonomousDatabaseOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*StopAutonomousDatabaseOperation) Metadata ¶ added in v0.4.0
func (op *StopAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.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 (*StopAutonomousDatabaseOperation) Name ¶ added in v0.4.0
func (op *StopAutonomousDatabaseOperation) 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 (*StopAutonomousDatabaseOperation) Poll ¶ added in v0.4.0
func (op *StopAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 (*StopAutonomousDatabaseOperation) Wait ¶ added in v0.4.0
func (op *StopAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 SwitchoverAutonomousDatabaseOperation ¶ added in v0.6.0
type SwitchoverAutonomousDatabaseOperation struct {
// contains filtered or unexported fields
}
SwitchoverAutonomousDatabaseOperation manages a long-running operation from SwitchoverAutonomousDatabase.
func (*SwitchoverAutonomousDatabaseOperation) Done ¶ added in v0.6.0
func (op *SwitchoverAutonomousDatabaseOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*SwitchoverAutonomousDatabaseOperation) Metadata ¶ added in v0.6.0
func (op *SwitchoverAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.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 (*SwitchoverAutonomousDatabaseOperation) Name ¶ added in v0.6.0
func (op *SwitchoverAutonomousDatabaseOperation) 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 (*SwitchoverAutonomousDatabaseOperation) Poll ¶ added in v0.6.0
func (op *SwitchoverAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 (*SwitchoverAutonomousDatabaseOperation) Wait ¶ added in v0.6.0
func (op *SwitchoverAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 UpdateAutonomousDatabaseOperation ¶ added in v0.6.0
type UpdateAutonomousDatabaseOperation struct {
// contains filtered or unexported fields
}
UpdateAutonomousDatabaseOperation manages a long-running operation from UpdateAutonomousDatabase.
func (*UpdateAutonomousDatabaseOperation) Done ¶ added in v0.6.0
func (op *UpdateAutonomousDatabaseOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateAutonomousDatabaseOperation) Metadata ¶ added in v0.6.0
func (op *UpdateAutonomousDatabaseOperation) Metadata() (*oracledatabasepb.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 (*UpdateAutonomousDatabaseOperation) Name ¶ added in v0.6.0
func (op *UpdateAutonomousDatabaseOperation) 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 (*UpdateAutonomousDatabaseOperation) Poll ¶ added in v0.6.0
func (op *UpdateAutonomousDatabaseOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 (*UpdateAutonomousDatabaseOperation) Wait ¶ added in v0.6.0
func (op *UpdateAutonomousDatabaseOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.AutonomousDatabase, 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 UpdateExadbVmClusterOperation ¶ added in v0.6.0
type UpdateExadbVmClusterOperation struct {
// contains filtered or unexported fields
}
UpdateExadbVmClusterOperation manages a long-running operation from UpdateExadbVmCluster.
func (*UpdateExadbVmClusterOperation) Done ¶ added in v0.6.0
func (op *UpdateExadbVmClusterOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateExadbVmClusterOperation) Metadata ¶ added in v0.6.0
func (op *UpdateExadbVmClusterOperation) Metadata() (*oracledatabasepb.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 (*UpdateExadbVmClusterOperation) Name ¶ added in v0.6.0
func (op *UpdateExadbVmClusterOperation) 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 (*UpdateExadbVmClusterOperation) Poll ¶ added in v0.6.0
func (op *UpdateExadbVmClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, 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 (*UpdateExadbVmClusterOperation) Wait ¶ added in v0.6.0
func (op *UpdateExadbVmClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*oracledatabasepb.ExadbVmCluster, 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.