Documentation ¶
Overview ¶
Package clouddms is an auto-generated package for the Database Migration API.
Manage Cloud Database Migration Service resources on Google Cloud Platform.
General documentation ¶
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage ¶
To get started with this package, create a client.
ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed. The methods of Client are safe for concurrent use by multiple goroutines. The returned client must be Closed when it is done being used.
Using the Client ¶
The following is an example of making an API call with the newly created client.
ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ApplyConversionWorkspaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ApplyConversionWorkspaceRequest. } op, err := c.ApplyConversionWorkspace(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 NewDataMigrationClient 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 ApplyConversionWorkspaceOperation
- func (op *ApplyConversionWorkspaceOperation) Done() bool
- func (op *ApplyConversionWorkspaceOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *ApplyConversionWorkspaceOperation) Name() string
- func (op *ApplyConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- func (op *ApplyConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- type CommitConversionWorkspaceOperation
- func (op *CommitConversionWorkspaceOperation) Done() bool
- func (op *CommitConversionWorkspaceOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *CommitConversionWorkspaceOperation) Name() string
- func (op *CommitConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- func (op *CommitConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- type ConnectionProfileIterator
- type ConversionWorkspaceIterator
- type ConvertConversionWorkspaceOperation
- func (op *ConvertConversionWorkspaceOperation) Done() bool
- func (op *ConvertConversionWorkspaceOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *ConvertConversionWorkspaceOperation) Name() string
- func (op *ConvertConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- func (op *ConvertConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- type CreateConnectionProfileOperation
- func (op *CreateConnectionProfileOperation) Done() bool
- func (op *CreateConnectionProfileOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *CreateConnectionProfileOperation) Name() string
- func (op *CreateConnectionProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConnectionProfile, error)
- func (op *CreateConnectionProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConnectionProfile, error)
- type CreateConversionWorkspaceOperation
- func (op *CreateConversionWorkspaceOperation) Done() bool
- func (op *CreateConversionWorkspaceOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *CreateConversionWorkspaceOperation) Name() string
- func (op *CreateConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- func (op *CreateConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- type CreateMigrationJobOperation
- func (op *CreateMigrationJobOperation) Done() bool
- func (op *CreateMigrationJobOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *CreateMigrationJobOperation) Name() string
- func (op *CreateMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- func (op *CreateMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- type CreatePrivateConnectionOperation
- func (op *CreatePrivateConnectionOperation) Done() bool
- func (op *CreatePrivateConnectionOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *CreatePrivateConnectionOperation) Name() string
- func (op *CreatePrivateConnectionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.PrivateConnection, error)
- func (op *CreatePrivateConnectionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.PrivateConnection, error)
- type DataMigrationCallOptions
- type DataMigrationClient
- func (c *DataMigrationClient) ApplyConversionWorkspace(ctx context.Context, req *clouddmspb.ApplyConversionWorkspaceRequest, ...) (*ApplyConversionWorkspaceOperation, error)
- func (c *DataMigrationClient) ApplyConversionWorkspaceOperation(name string) *ApplyConversionWorkspaceOperation
- func (c *DataMigrationClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *DataMigrationClient) Close() error
- func (c *DataMigrationClient) CommitConversionWorkspace(ctx context.Context, req *clouddmspb.CommitConversionWorkspaceRequest, ...) (*CommitConversionWorkspaceOperation, error)
- func (c *DataMigrationClient) CommitConversionWorkspaceOperation(name string) *CommitConversionWorkspaceOperation
- func (c *DataMigrationClient) Connection() *grpc.ClientConndeprecated
- func (c *DataMigrationClient) ConvertConversionWorkspace(ctx context.Context, req *clouddmspb.ConvertConversionWorkspaceRequest, ...) (*ConvertConversionWorkspaceOperation, error)
- func (c *DataMigrationClient) ConvertConversionWorkspaceOperation(name string) *ConvertConversionWorkspaceOperation
- func (c *DataMigrationClient) CreateConnectionProfile(ctx context.Context, req *clouddmspb.CreateConnectionProfileRequest, ...) (*CreateConnectionProfileOperation, error)
- func (c *DataMigrationClient) CreateConnectionProfileOperation(name string) *CreateConnectionProfileOperation
- func (c *DataMigrationClient) CreateConversionWorkspace(ctx context.Context, req *clouddmspb.CreateConversionWorkspaceRequest, ...) (*CreateConversionWorkspaceOperation, error)
- func (c *DataMigrationClient) CreateConversionWorkspaceOperation(name string) *CreateConversionWorkspaceOperation
- func (c *DataMigrationClient) CreateMappingRule(ctx context.Context, req *clouddmspb.CreateMappingRuleRequest, ...) (*clouddmspb.MappingRule, error)
- func (c *DataMigrationClient) CreateMigrationJob(ctx context.Context, req *clouddmspb.CreateMigrationJobRequest, ...) (*CreateMigrationJobOperation, error)
- func (c *DataMigrationClient) CreateMigrationJobOperation(name string) *CreateMigrationJobOperation
- func (c *DataMigrationClient) CreatePrivateConnection(ctx context.Context, req *clouddmspb.CreatePrivateConnectionRequest, ...) (*CreatePrivateConnectionOperation, error)
- func (c *DataMigrationClient) CreatePrivateConnectionOperation(name string) *CreatePrivateConnectionOperation
- func (c *DataMigrationClient) DeleteConnectionProfile(ctx context.Context, req *clouddmspb.DeleteConnectionProfileRequest, ...) (*DeleteConnectionProfileOperation, error)
- func (c *DataMigrationClient) DeleteConnectionProfileOperation(name string) *DeleteConnectionProfileOperation
- func (c *DataMigrationClient) DeleteConversionWorkspace(ctx context.Context, req *clouddmspb.DeleteConversionWorkspaceRequest, ...) (*DeleteConversionWorkspaceOperation, error)
- func (c *DataMigrationClient) DeleteConversionWorkspaceOperation(name string) *DeleteConversionWorkspaceOperation
- func (c *DataMigrationClient) DeleteMappingRule(ctx context.Context, req *clouddmspb.DeleteMappingRuleRequest, ...) error
- func (c *DataMigrationClient) DeleteMigrationJob(ctx context.Context, req *clouddmspb.DeleteMigrationJobRequest, ...) (*DeleteMigrationJobOperation, error)
- func (c *DataMigrationClient) DeleteMigrationJobOperation(name string) *DeleteMigrationJobOperation
- func (c *DataMigrationClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *DataMigrationClient) DeletePrivateConnection(ctx context.Context, req *clouddmspb.DeletePrivateConnectionRequest, ...) (*DeletePrivateConnectionOperation, error)
- func (c *DataMigrationClient) DeletePrivateConnectionOperation(name string) *DeletePrivateConnectionOperation
- func (c *DataMigrationClient) DescribeConversionWorkspaceRevisions(ctx context.Context, ...) (*clouddmspb.DescribeConversionWorkspaceRevisionsResponse, error)
- func (c *DataMigrationClient) DescribeDatabaseEntities(ctx context.Context, req *clouddmspb.DescribeDatabaseEntitiesRequest, ...) *DatabaseEntityIterator
- func (c *DataMigrationClient) FetchStaticIps(ctx context.Context, req *clouddmspb.FetchStaticIpsRequest, ...) *StringIterator
- func (c *DataMigrationClient) GenerateSshScript(ctx context.Context, req *clouddmspb.GenerateSshScriptRequest, ...) (*clouddmspb.SshScript, error)
- func (c *DataMigrationClient) GenerateTcpProxyScript(ctx context.Context, req *clouddmspb.GenerateTcpProxyScriptRequest, ...) (*clouddmspb.TcpProxyScript, error)
- func (c *DataMigrationClient) GetConnectionProfile(ctx context.Context, req *clouddmspb.GetConnectionProfileRequest, ...) (*clouddmspb.ConnectionProfile, error)
- func (c *DataMigrationClient) GetConversionWorkspace(ctx context.Context, req *clouddmspb.GetConversionWorkspaceRequest, ...) (*clouddmspb.ConversionWorkspace, error)
- func (c *DataMigrationClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *DataMigrationClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *DataMigrationClient) GetMappingRule(ctx context.Context, req *clouddmspb.GetMappingRuleRequest, ...) (*clouddmspb.MappingRule, error)
- func (c *DataMigrationClient) GetMigrationJob(ctx context.Context, req *clouddmspb.GetMigrationJobRequest, ...) (*clouddmspb.MigrationJob, error)
- func (c *DataMigrationClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *DataMigrationClient) GetPrivateConnection(ctx context.Context, req *clouddmspb.GetPrivateConnectionRequest, ...) (*clouddmspb.PrivateConnection, error)
- func (c *DataMigrationClient) ImportMappingRules(ctx context.Context, req *clouddmspb.ImportMappingRulesRequest, ...) (*ImportMappingRulesOperation, error)
- func (c *DataMigrationClient) ImportMappingRulesOperation(name string) *ImportMappingRulesOperation
- func (c *DataMigrationClient) ListConnectionProfiles(ctx context.Context, req *clouddmspb.ListConnectionProfilesRequest, ...) *ConnectionProfileIterator
- func (c *DataMigrationClient) ListConversionWorkspaces(ctx context.Context, req *clouddmspb.ListConversionWorkspacesRequest, ...) *ConversionWorkspaceIterator
- func (c *DataMigrationClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *DataMigrationClient) ListMappingRules(ctx context.Context, req *clouddmspb.ListMappingRulesRequest, ...) *MappingRuleIterator
- func (c *DataMigrationClient) ListMigrationJobs(ctx context.Context, req *clouddmspb.ListMigrationJobsRequest, ...) *MigrationJobIterator
- func (c *DataMigrationClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *DataMigrationClient) ListPrivateConnections(ctx context.Context, req *clouddmspb.ListPrivateConnectionsRequest, ...) *PrivateConnectionIterator
- func (c *DataMigrationClient) PromoteMigrationJob(ctx context.Context, req *clouddmspb.PromoteMigrationJobRequest, ...) (*PromoteMigrationJobOperation, error)
- func (c *DataMigrationClient) PromoteMigrationJobOperation(name string) *PromoteMigrationJobOperation
- func (c *DataMigrationClient) RestartMigrationJob(ctx context.Context, req *clouddmspb.RestartMigrationJobRequest, ...) (*RestartMigrationJobOperation, error)
- func (c *DataMigrationClient) RestartMigrationJobOperation(name string) *RestartMigrationJobOperation
- func (c *DataMigrationClient) ResumeMigrationJob(ctx context.Context, req *clouddmspb.ResumeMigrationJobRequest, ...) (*ResumeMigrationJobOperation, error)
- func (c *DataMigrationClient) ResumeMigrationJobOperation(name string) *ResumeMigrationJobOperation
- func (c *DataMigrationClient) RollbackConversionWorkspace(ctx context.Context, req *clouddmspb.RollbackConversionWorkspaceRequest, ...) (*RollbackConversionWorkspaceOperation, error)
- func (c *DataMigrationClient) RollbackConversionWorkspaceOperation(name string) *RollbackConversionWorkspaceOperation
- func (c *DataMigrationClient) SearchBackgroundJobs(ctx context.Context, req *clouddmspb.SearchBackgroundJobsRequest, ...) (*clouddmspb.SearchBackgroundJobsResponse, error)
- func (c *DataMigrationClient) SeedConversionWorkspace(ctx context.Context, req *clouddmspb.SeedConversionWorkspaceRequest, ...) (*SeedConversionWorkspaceOperation, error)
- func (c *DataMigrationClient) SeedConversionWorkspaceOperation(name string) *SeedConversionWorkspaceOperation
- func (c *DataMigrationClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *DataMigrationClient) StartMigrationJob(ctx context.Context, req *clouddmspb.StartMigrationJobRequest, ...) (*StartMigrationJobOperation, error)
- func (c *DataMigrationClient) StartMigrationJobOperation(name string) *StartMigrationJobOperation
- func (c *DataMigrationClient) StopMigrationJob(ctx context.Context, req *clouddmspb.StopMigrationJobRequest, ...) (*StopMigrationJobOperation, error)
- func (c *DataMigrationClient) StopMigrationJobOperation(name string) *StopMigrationJobOperation
- func (c *DataMigrationClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- func (c *DataMigrationClient) UpdateConnectionProfile(ctx context.Context, req *clouddmspb.UpdateConnectionProfileRequest, ...) (*UpdateConnectionProfileOperation, error)
- func (c *DataMigrationClient) UpdateConnectionProfileOperation(name string) *UpdateConnectionProfileOperation
- func (c *DataMigrationClient) UpdateConversionWorkspace(ctx context.Context, req *clouddmspb.UpdateConversionWorkspaceRequest, ...) (*UpdateConversionWorkspaceOperation, error)
- func (c *DataMigrationClient) UpdateConversionWorkspaceOperation(name string) *UpdateConversionWorkspaceOperation
- func (c *DataMigrationClient) UpdateMigrationJob(ctx context.Context, req *clouddmspb.UpdateMigrationJobRequest, ...) (*UpdateMigrationJobOperation, error)
- func (c *DataMigrationClient) UpdateMigrationJobOperation(name string) *UpdateMigrationJobOperation
- func (c *DataMigrationClient) VerifyMigrationJob(ctx context.Context, req *clouddmspb.VerifyMigrationJobRequest, ...) (*VerifyMigrationJobOperation, error)
- func (c *DataMigrationClient) VerifyMigrationJobOperation(name string) *VerifyMigrationJobOperation
- type DatabaseEntityIterator
- type DeleteConnectionProfileOperation
- func (op *DeleteConnectionProfileOperation) Done() bool
- func (op *DeleteConnectionProfileOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *DeleteConnectionProfileOperation) Name() string
- func (op *DeleteConnectionProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteConnectionProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteConversionWorkspaceOperation
- func (op *DeleteConversionWorkspaceOperation) Done() bool
- func (op *DeleteConversionWorkspaceOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *DeleteConversionWorkspaceOperation) Name() string
- func (op *DeleteConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteMigrationJobOperation
- func (op *DeleteMigrationJobOperation) Done() bool
- func (op *DeleteMigrationJobOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *DeleteMigrationJobOperation) Name() string
- func (op *DeleteMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeletePrivateConnectionOperation
- func (op *DeletePrivateConnectionOperation) Done() bool
- func (op *DeletePrivateConnectionOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *DeletePrivateConnectionOperation) Name() string
- func (op *DeletePrivateConnectionOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeletePrivateConnectionOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type ImportMappingRulesOperation
- func (op *ImportMappingRulesOperation) Done() bool
- func (op *ImportMappingRulesOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *ImportMappingRulesOperation) Name() string
- func (op *ImportMappingRulesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- func (op *ImportMappingRulesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- type LocationIterator
- type MappingRuleIterator
- type MigrationJobIterator
- type OperationIterator
- type PrivateConnectionIterator
- type PromoteMigrationJobOperation
- func (op *PromoteMigrationJobOperation) Done() bool
- func (op *PromoteMigrationJobOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *PromoteMigrationJobOperation) Name() string
- func (op *PromoteMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- func (op *PromoteMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- type RestartMigrationJobOperation
- func (op *RestartMigrationJobOperation) Done() bool
- func (op *RestartMigrationJobOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *RestartMigrationJobOperation) Name() string
- func (op *RestartMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- func (op *RestartMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- type ResumeMigrationJobOperation
- func (op *ResumeMigrationJobOperation) Done() bool
- func (op *ResumeMigrationJobOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *ResumeMigrationJobOperation) Name() string
- func (op *ResumeMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- func (op *ResumeMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- type RollbackConversionWorkspaceOperation
- func (op *RollbackConversionWorkspaceOperation) Done() bool
- func (op *RollbackConversionWorkspaceOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *RollbackConversionWorkspaceOperation) Name() string
- func (op *RollbackConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- func (op *RollbackConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- type SeedConversionWorkspaceOperation
- func (op *SeedConversionWorkspaceOperation) Done() bool
- func (op *SeedConversionWorkspaceOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *SeedConversionWorkspaceOperation) Name() string
- func (op *SeedConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- func (op *SeedConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- type StartMigrationJobOperation
- func (op *StartMigrationJobOperation) Done() bool
- func (op *StartMigrationJobOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *StartMigrationJobOperation) Name() string
- func (op *StartMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- func (op *StartMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- type StopMigrationJobOperation
- func (op *StopMigrationJobOperation) Done() bool
- func (op *StopMigrationJobOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *StopMigrationJobOperation) Name() string
- func (op *StopMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- func (op *StopMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- type StringIterator
- type UpdateConnectionProfileOperation
- func (op *UpdateConnectionProfileOperation) Done() bool
- func (op *UpdateConnectionProfileOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *UpdateConnectionProfileOperation) Name() string
- func (op *UpdateConnectionProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConnectionProfile, error)
- func (op *UpdateConnectionProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConnectionProfile, error)
- type UpdateConversionWorkspaceOperation
- func (op *UpdateConversionWorkspaceOperation) Done() bool
- func (op *UpdateConversionWorkspaceOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *UpdateConversionWorkspaceOperation) Name() string
- func (op *UpdateConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- func (op *UpdateConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
- type UpdateMigrationJobOperation
- func (op *UpdateMigrationJobOperation) Done() bool
- func (op *UpdateMigrationJobOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *UpdateMigrationJobOperation) Name() string
- func (op *UpdateMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- func (op *UpdateMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- type VerifyMigrationJobOperation
- func (op *VerifyMigrationJobOperation) Done() bool
- func (op *VerifyMigrationJobOperation) Metadata() (*clouddmspb.OperationMetadata, error)
- func (op *VerifyMigrationJobOperation) Name() string
- func (op *VerifyMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
- func (op *VerifyMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
Examples ¶
- DataMigrationClient.ApplyConversionWorkspace
- DataMigrationClient.CancelOperation
- DataMigrationClient.CommitConversionWorkspace
- DataMigrationClient.ConvertConversionWorkspace
- DataMigrationClient.CreateConnectionProfile
- DataMigrationClient.CreateConversionWorkspace
- DataMigrationClient.CreateMappingRule
- DataMigrationClient.CreateMigrationJob
- DataMigrationClient.CreatePrivateConnection
- DataMigrationClient.DeleteConnectionProfile
- DataMigrationClient.DeleteConversionWorkspace
- DataMigrationClient.DeleteMappingRule
- DataMigrationClient.DeleteMigrationJob
- DataMigrationClient.DeleteOperation
- DataMigrationClient.DeletePrivateConnection
- DataMigrationClient.DescribeConversionWorkspaceRevisions
- DataMigrationClient.DescribeDatabaseEntities
- DataMigrationClient.DescribeDatabaseEntities (All)
- DataMigrationClient.FetchStaticIps
- DataMigrationClient.FetchStaticIps (All)
- DataMigrationClient.GenerateSshScript
- DataMigrationClient.GenerateTcpProxyScript
- DataMigrationClient.GetConnectionProfile
- DataMigrationClient.GetConversionWorkspace
- DataMigrationClient.GetIamPolicy
- DataMigrationClient.GetLocation
- DataMigrationClient.GetMappingRule
- DataMigrationClient.GetMigrationJob
- DataMigrationClient.GetOperation
- DataMigrationClient.GetPrivateConnection
- DataMigrationClient.ImportMappingRules
- DataMigrationClient.ListConnectionProfiles
- DataMigrationClient.ListConnectionProfiles (All)
- DataMigrationClient.ListConversionWorkspaces
- DataMigrationClient.ListConversionWorkspaces (All)
- DataMigrationClient.ListLocations
- DataMigrationClient.ListLocations (All)
- DataMigrationClient.ListMappingRules
- DataMigrationClient.ListMappingRules (All)
- DataMigrationClient.ListMigrationJobs
- DataMigrationClient.ListMigrationJobs (All)
- DataMigrationClient.ListOperations
- DataMigrationClient.ListOperations (All)
- DataMigrationClient.ListPrivateConnections
- DataMigrationClient.ListPrivateConnections (All)
- DataMigrationClient.PromoteMigrationJob
- DataMigrationClient.RestartMigrationJob
- DataMigrationClient.ResumeMigrationJob
- DataMigrationClient.RollbackConversionWorkspace
- DataMigrationClient.SearchBackgroundJobs
- DataMigrationClient.SeedConversionWorkspace
- DataMigrationClient.SetIamPolicy
- DataMigrationClient.StartMigrationJob
- DataMigrationClient.StopMigrationJob
- DataMigrationClient.TestIamPermissions
- DataMigrationClient.UpdateConnectionProfile
- DataMigrationClient.UpdateConversionWorkspace
- DataMigrationClient.UpdateMigrationJob
- DataMigrationClient.VerifyMigrationJob
- NewDataMigrationClient
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 ApplyConversionWorkspaceOperation ¶ added in v1.6.0
type ApplyConversionWorkspaceOperation struct {
// contains filtered or unexported fields
}
ApplyConversionWorkspaceOperation manages a long-running operation from ApplyConversionWorkspace.
func (*ApplyConversionWorkspaceOperation) Done ¶ added in v1.6.0
func (op *ApplyConversionWorkspaceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ApplyConversionWorkspaceOperation) Metadata ¶ added in v1.6.0
func (op *ApplyConversionWorkspaceOperation) Metadata() (*clouddmspb.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 (*ApplyConversionWorkspaceOperation) Name ¶ added in v1.6.0
func (op *ApplyConversionWorkspaceOperation) 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 (*ApplyConversionWorkspaceOperation) Poll ¶ added in v1.6.0
func (op *ApplyConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 (*ApplyConversionWorkspaceOperation) Wait ¶ added in v1.6.0
func (op *ApplyConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 CommitConversionWorkspaceOperation ¶ added in v1.6.0
type CommitConversionWorkspaceOperation struct {
// contains filtered or unexported fields
}
CommitConversionWorkspaceOperation manages a long-running operation from CommitConversionWorkspace.
func (*CommitConversionWorkspaceOperation) Done ¶ added in v1.6.0
func (op *CommitConversionWorkspaceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CommitConversionWorkspaceOperation) Metadata ¶ added in v1.6.0
func (op *CommitConversionWorkspaceOperation) Metadata() (*clouddmspb.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 (*CommitConversionWorkspaceOperation) Name ¶ added in v1.6.0
func (op *CommitConversionWorkspaceOperation) 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 (*CommitConversionWorkspaceOperation) Poll ¶ added in v1.6.0
func (op *CommitConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 (*CommitConversionWorkspaceOperation) Wait ¶ added in v1.6.0
func (op *CommitConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 ConnectionProfileIterator ¶
type ConnectionProfileIterator 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 []*clouddmspb.ConnectionProfile, nextPageToken string, err error) // contains filtered or unexported fields }
ConnectionProfileIterator manages a stream of *clouddmspb.ConnectionProfile.
func (*ConnectionProfileIterator) All ¶ added in v1.8.1
func (it *ConnectionProfileIterator) All() iter.Seq2[*clouddmspb.ConnectionProfile, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ConnectionProfileIterator) Next ¶
func (it *ConnectionProfileIterator) Next() (*clouddmspb.ConnectionProfile, 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 (*ConnectionProfileIterator) PageInfo ¶
func (it *ConnectionProfileIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ConversionWorkspaceIterator ¶ added in v1.6.0
type ConversionWorkspaceIterator 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 []*clouddmspb.ConversionWorkspace, nextPageToken string, err error) // contains filtered or unexported fields }
ConversionWorkspaceIterator manages a stream of *clouddmspb.ConversionWorkspace.
func (*ConversionWorkspaceIterator) All ¶ added in v1.8.1
func (it *ConversionWorkspaceIterator) All() iter.Seq2[*clouddmspb.ConversionWorkspace, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ConversionWorkspaceIterator) Next ¶ added in v1.6.0
func (it *ConversionWorkspaceIterator) Next() (*clouddmspb.ConversionWorkspace, 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 (*ConversionWorkspaceIterator) PageInfo ¶ added in v1.6.0
func (it *ConversionWorkspaceIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ConvertConversionWorkspaceOperation ¶ added in v1.6.0
type ConvertConversionWorkspaceOperation struct {
// contains filtered or unexported fields
}
ConvertConversionWorkspaceOperation manages a long-running operation from ConvertConversionWorkspace.
func (*ConvertConversionWorkspaceOperation) Done ¶ added in v1.6.0
func (op *ConvertConversionWorkspaceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ConvertConversionWorkspaceOperation) Metadata ¶ added in v1.6.0
func (op *ConvertConversionWorkspaceOperation) Metadata() (*clouddmspb.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 (*ConvertConversionWorkspaceOperation) Name ¶ added in v1.6.0
func (op *ConvertConversionWorkspaceOperation) 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 (*ConvertConversionWorkspaceOperation) Poll ¶ added in v1.6.0
func (op *ConvertConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 (*ConvertConversionWorkspaceOperation) Wait ¶ added in v1.6.0
func (op *ConvertConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 CreateConnectionProfileOperation ¶
type CreateConnectionProfileOperation struct {
// contains filtered or unexported fields
}
CreateConnectionProfileOperation manages a long-running operation from CreateConnectionProfile.
func (*CreateConnectionProfileOperation) Done ¶
func (op *CreateConnectionProfileOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateConnectionProfileOperation) Metadata ¶
func (op *CreateConnectionProfileOperation) Metadata() (*clouddmspb.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 (*CreateConnectionProfileOperation) Name ¶
func (op *CreateConnectionProfileOperation) 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 (*CreateConnectionProfileOperation) Poll ¶
func (op *CreateConnectionProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConnectionProfile, 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 (*CreateConnectionProfileOperation) Wait ¶
func (op *CreateConnectionProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConnectionProfile, 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 CreateConversionWorkspaceOperation ¶ added in v1.6.0
type CreateConversionWorkspaceOperation struct {
// contains filtered or unexported fields
}
CreateConversionWorkspaceOperation manages a long-running operation from CreateConversionWorkspace.
func (*CreateConversionWorkspaceOperation) Done ¶ added in v1.6.0
func (op *CreateConversionWorkspaceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateConversionWorkspaceOperation) Metadata ¶ added in v1.6.0
func (op *CreateConversionWorkspaceOperation) Metadata() (*clouddmspb.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 (*CreateConversionWorkspaceOperation) Name ¶ added in v1.6.0
func (op *CreateConversionWorkspaceOperation) 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 (*CreateConversionWorkspaceOperation) Poll ¶ added in v1.6.0
func (op *CreateConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 (*CreateConversionWorkspaceOperation) Wait ¶ added in v1.6.0
func (op *CreateConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 CreateMigrationJobOperation ¶
type CreateMigrationJobOperation struct {
// contains filtered or unexported fields
}
CreateMigrationJobOperation manages a long-running operation from CreateMigrationJob.
func (*CreateMigrationJobOperation) Done ¶
func (op *CreateMigrationJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateMigrationJobOperation) Metadata ¶
func (op *CreateMigrationJobOperation) Metadata() (*clouddmspb.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 (*CreateMigrationJobOperation) Name ¶
func (op *CreateMigrationJobOperation) 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 (*CreateMigrationJobOperation) Poll ¶
func (op *CreateMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 (*CreateMigrationJobOperation) Wait ¶
func (op *CreateMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 CreatePrivateConnectionOperation ¶ added in v1.6.0
type CreatePrivateConnectionOperation struct {
// contains filtered or unexported fields
}
CreatePrivateConnectionOperation manages a long-running operation from CreatePrivateConnection.
func (*CreatePrivateConnectionOperation) Done ¶ added in v1.6.0
func (op *CreatePrivateConnectionOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreatePrivateConnectionOperation) Metadata ¶ added in v1.6.0
func (op *CreatePrivateConnectionOperation) Metadata() (*clouddmspb.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 (*CreatePrivateConnectionOperation) Name ¶ added in v1.6.0
func (op *CreatePrivateConnectionOperation) 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 (*CreatePrivateConnectionOperation) Poll ¶ added in v1.6.0
func (op *CreatePrivateConnectionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.PrivateConnection, 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 (*CreatePrivateConnectionOperation) Wait ¶ added in v1.6.0
func (op *CreatePrivateConnectionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.PrivateConnection, 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 DataMigrationCallOptions ¶
type DataMigrationCallOptions struct { ListMigrationJobs []gax.CallOption GetMigrationJob []gax.CallOption CreateMigrationJob []gax.CallOption UpdateMigrationJob []gax.CallOption DeleteMigrationJob []gax.CallOption StartMigrationJob []gax.CallOption StopMigrationJob []gax.CallOption ResumeMigrationJob []gax.CallOption PromoteMigrationJob []gax.CallOption VerifyMigrationJob []gax.CallOption RestartMigrationJob []gax.CallOption GenerateSshScript []gax.CallOption GenerateTcpProxyScript []gax.CallOption ListConnectionProfiles []gax.CallOption GetConnectionProfile []gax.CallOption CreateConnectionProfile []gax.CallOption UpdateConnectionProfile []gax.CallOption DeleteConnectionProfile []gax.CallOption CreatePrivateConnection []gax.CallOption GetPrivateConnection []gax.CallOption ListPrivateConnections []gax.CallOption DeletePrivateConnection []gax.CallOption GetConversionWorkspace []gax.CallOption ListConversionWorkspaces []gax.CallOption CreateConversionWorkspace []gax.CallOption UpdateConversionWorkspace []gax.CallOption DeleteConversionWorkspace []gax.CallOption CreateMappingRule []gax.CallOption DeleteMappingRule []gax.CallOption ListMappingRules []gax.CallOption GetMappingRule []gax.CallOption SeedConversionWorkspace []gax.CallOption ImportMappingRules []gax.CallOption ConvertConversionWorkspace []gax.CallOption CommitConversionWorkspace []gax.CallOption RollbackConversionWorkspace []gax.CallOption ApplyConversionWorkspace []gax.CallOption DescribeDatabaseEntities []gax.CallOption SearchBackgroundJobs []gax.CallOption DescribeConversionWorkspaceRevisions []gax.CallOption FetchStaticIps []gax.CallOption GetLocation []gax.CallOption ListLocations []gax.CallOption GetIamPolicy []gax.CallOption SetIamPolicy []gax.CallOption TestIamPermissions []gax.CallOption CancelOperation []gax.CallOption DeleteOperation []gax.CallOption GetOperation []gax.CallOption ListOperations []gax.CallOption }
DataMigrationCallOptions contains the retry settings for each method of DataMigrationClient.
type DataMigrationClient ¶
type DataMigrationClient struct { // The call options for this service. CallOptions *DataMigrationCallOptions // 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 }
DataMigrationClient is a client for interacting with Database Migration API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Database Migration service
func NewDataMigrationClient ¶
func NewDataMigrationClient(ctx context.Context, opts ...option.ClientOption) (*DataMigrationClient, error)
NewDataMigrationClient creates a new data migration service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Database Migration service
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func (*DataMigrationClient) ApplyConversionWorkspace ¶ added in v1.6.0
func (c *DataMigrationClient) ApplyConversionWorkspace(ctx context.Context, req *clouddmspb.ApplyConversionWorkspaceRequest, opts ...gax.CallOption) (*ApplyConversionWorkspaceOperation, error)
ApplyConversionWorkspace applies draft tree onto a specific destination database.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ApplyConversionWorkspaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ApplyConversionWorkspaceRequest. } op, err := c.ApplyConversionWorkspace(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) ApplyConversionWorkspaceOperation ¶ added in v1.6.0
func (c *DataMigrationClient) ApplyConversionWorkspaceOperation(name string) *ApplyConversionWorkspaceOperation
ApplyConversionWorkspaceOperation returns a new ApplyConversionWorkspaceOperation from a given name. The name must be that of a previously created ApplyConversionWorkspaceOperation, possibly from a different process.
func (*DataMigrationClient) CancelOperation ¶ added in v1.6.0
func (c *DataMigrationClient) 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" clouddms "cloud.google.com/go/clouddms/apiv1" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.CancelOperationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest. } err = c.CancelOperation(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*DataMigrationClient) Close ¶
func (c *DataMigrationClient) Close() error
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*DataMigrationClient) CommitConversionWorkspace ¶ added in v1.6.0
func (c *DataMigrationClient) CommitConversionWorkspace(ctx context.Context, req *clouddmspb.CommitConversionWorkspaceRequest, opts ...gax.CallOption) (*CommitConversionWorkspaceOperation, error)
CommitConversionWorkspace marks all the data in the conversion workspace as committed.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.CommitConversionWorkspaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#CommitConversionWorkspaceRequest. } op, err := c.CommitConversionWorkspace(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) CommitConversionWorkspaceOperation ¶ added in v1.6.0
func (c *DataMigrationClient) CommitConversionWorkspaceOperation(name string) *CommitConversionWorkspaceOperation
CommitConversionWorkspaceOperation returns a new CommitConversionWorkspaceOperation from a given name. The name must be that of a previously created CommitConversionWorkspaceOperation, possibly from a different process.
func (*DataMigrationClient) Connection
deprecated
func (c *DataMigrationClient) 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 (*DataMigrationClient) ConvertConversionWorkspace ¶ added in v1.6.0
func (c *DataMigrationClient) ConvertConversionWorkspace(ctx context.Context, req *clouddmspb.ConvertConversionWorkspaceRequest, opts ...gax.CallOption) (*ConvertConversionWorkspaceOperation, error)
ConvertConversionWorkspace creates a draft tree schema for the destination database.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ConvertConversionWorkspaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ConvertConversionWorkspaceRequest. } op, err := c.ConvertConversionWorkspace(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) ConvertConversionWorkspaceOperation ¶ added in v1.6.0
func (c *DataMigrationClient) ConvertConversionWorkspaceOperation(name string) *ConvertConversionWorkspaceOperation
ConvertConversionWorkspaceOperation returns a new ConvertConversionWorkspaceOperation from a given name. The name must be that of a previously created ConvertConversionWorkspaceOperation, possibly from a different process.
func (*DataMigrationClient) CreateConnectionProfile ¶
func (c *DataMigrationClient) CreateConnectionProfile(ctx context.Context, req *clouddmspb.CreateConnectionProfileRequest, opts ...gax.CallOption) (*CreateConnectionProfileOperation, error)
CreateConnectionProfile creates a new connection profile in a given project and location.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.CreateConnectionProfileRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#CreateConnectionProfileRequest. } op, err := c.CreateConnectionProfile(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) CreateConnectionProfileOperation ¶
func (c *DataMigrationClient) CreateConnectionProfileOperation(name string) *CreateConnectionProfileOperation
CreateConnectionProfileOperation returns a new CreateConnectionProfileOperation from a given name. The name must be that of a previously created CreateConnectionProfileOperation, possibly from a different process.
func (*DataMigrationClient) CreateConversionWorkspace ¶ added in v1.6.0
func (c *DataMigrationClient) CreateConversionWorkspace(ctx context.Context, req *clouddmspb.CreateConversionWorkspaceRequest, opts ...gax.CallOption) (*CreateConversionWorkspaceOperation, error)
CreateConversionWorkspace creates a new conversion workspace in a given project and location.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.CreateConversionWorkspaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#CreateConversionWorkspaceRequest. } op, err := c.CreateConversionWorkspace(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) CreateConversionWorkspaceOperation ¶ added in v1.6.0
func (c *DataMigrationClient) CreateConversionWorkspaceOperation(name string) *CreateConversionWorkspaceOperation
CreateConversionWorkspaceOperation returns a new CreateConversionWorkspaceOperation from a given name. The name must be that of a previously created CreateConversionWorkspaceOperation, possibly from a different process.
func (*DataMigrationClient) CreateMappingRule ¶ added in v1.7.0
func (c *DataMigrationClient) CreateMappingRule(ctx context.Context, req *clouddmspb.CreateMappingRuleRequest, opts ...gax.CallOption) (*clouddmspb.MappingRule, error)
CreateMappingRule creates a new mapping rule for a given conversion workspace.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.CreateMappingRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#CreateMappingRuleRequest. } resp, err := c.CreateMappingRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) CreateMigrationJob ¶
func (c *DataMigrationClient) CreateMigrationJob(ctx context.Context, req *clouddmspb.CreateMigrationJobRequest, opts ...gax.CallOption) (*CreateMigrationJobOperation, error)
CreateMigrationJob creates a new migration job in a given project and location.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.CreateMigrationJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#CreateMigrationJobRequest. } op, err := c.CreateMigrationJob(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) CreateMigrationJobOperation ¶
func (c *DataMigrationClient) CreateMigrationJobOperation(name string) *CreateMigrationJobOperation
CreateMigrationJobOperation returns a new CreateMigrationJobOperation from a given name. The name must be that of a previously created CreateMigrationJobOperation, possibly from a different process.
func (*DataMigrationClient) CreatePrivateConnection ¶ added in v1.6.0
func (c *DataMigrationClient) CreatePrivateConnection(ctx context.Context, req *clouddmspb.CreatePrivateConnectionRequest, opts ...gax.CallOption) (*CreatePrivateConnectionOperation, error)
CreatePrivateConnection creates a new private connection in a given project and location.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.CreatePrivateConnectionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#CreatePrivateConnectionRequest. } op, err := c.CreatePrivateConnection(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) CreatePrivateConnectionOperation ¶ added in v1.6.0
func (c *DataMigrationClient) CreatePrivateConnectionOperation(name string) *CreatePrivateConnectionOperation
CreatePrivateConnectionOperation returns a new CreatePrivateConnectionOperation from a given name. The name must be that of a previously created CreatePrivateConnectionOperation, possibly from a different process.
func (*DataMigrationClient) DeleteConnectionProfile ¶
func (c *DataMigrationClient) DeleteConnectionProfile(ctx context.Context, req *clouddmspb.DeleteConnectionProfileRequest, opts ...gax.CallOption) (*DeleteConnectionProfileOperation, error)
DeleteConnectionProfile deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.DeleteConnectionProfileRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#DeleteConnectionProfileRequest. } op, err := c.DeleteConnectionProfile(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*DataMigrationClient) DeleteConnectionProfileOperation ¶
func (c *DataMigrationClient) DeleteConnectionProfileOperation(name string) *DeleteConnectionProfileOperation
DeleteConnectionProfileOperation returns a new DeleteConnectionProfileOperation from a given name. The name must be that of a previously created DeleteConnectionProfileOperation, possibly from a different process.
func (*DataMigrationClient) DeleteConversionWorkspace ¶ added in v1.6.0
func (c *DataMigrationClient) DeleteConversionWorkspace(ctx context.Context, req *clouddmspb.DeleteConversionWorkspaceRequest, opts ...gax.CallOption) (*DeleteConversionWorkspaceOperation, error)
DeleteConversionWorkspace deletes a single conversion workspace.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.DeleteConversionWorkspaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#DeleteConversionWorkspaceRequest. } op, err := c.DeleteConversionWorkspace(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*DataMigrationClient) DeleteConversionWorkspaceOperation ¶ added in v1.6.0
func (c *DataMigrationClient) DeleteConversionWorkspaceOperation(name string) *DeleteConversionWorkspaceOperation
DeleteConversionWorkspaceOperation returns a new DeleteConversionWorkspaceOperation from a given name. The name must be that of a previously created DeleteConversionWorkspaceOperation, possibly from a different process.
func (*DataMigrationClient) DeleteMappingRule ¶ added in v1.7.0
func (c *DataMigrationClient) DeleteMappingRule(ctx context.Context, req *clouddmspb.DeleteMappingRuleRequest, opts ...gax.CallOption) error
DeleteMappingRule deletes a single mapping rule.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.DeleteMappingRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#DeleteMappingRuleRequest. } err = c.DeleteMappingRule(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*DataMigrationClient) DeleteMigrationJob ¶
func (c *DataMigrationClient) DeleteMigrationJob(ctx context.Context, req *clouddmspb.DeleteMigrationJobRequest, opts ...gax.CallOption) (*DeleteMigrationJobOperation, error)
DeleteMigrationJob deletes a single migration job.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.DeleteMigrationJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#DeleteMigrationJobRequest. } op, err := c.DeleteMigrationJob(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*DataMigrationClient) DeleteMigrationJobOperation ¶
func (c *DataMigrationClient) DeleteMigrationJobOperation(name string) *DeleteMigrationJobOperation
DeleteMigrationJobOperation returns a new DeleteMigrationJobOperation from a given name. The name must be that of a previously created DeleteMigrationJobOperation, possibly from a different process.
func (*DataMigrationClient) DeleteOperation ¶ added in v1.6.0
func (c *DataMigrationClient) 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" clouddms "cloud.google.com/go/clouddms/apiv1" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.DeleteOperationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest. } err = c.DeleteOperation(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*DataMigrationClient) DeletePrivateConnection ¶ added in v1.6.0
func (c *DataMigrationClient) DeletePrivateConnection(ctx context.Context, req *clouddmspb.DeletePrivateConnectionRequest, opts ...gax.CallOption) (*DeletePrivateConnectionOperation, error)
DeletePrivateConnection deletes a single Database Migration Service private connection.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.DeletePrivateConnectionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#DeletePrivateConnectionRequest. } op, err := c.DeletePrivateConnection(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*DataMigrationClient) DeletePrivateConnectionOperation ¶ added in v1.6.0
func (c *DataMigrationClient) DeletePrivateConnectionOperation(name string) *DeletePrivateConnectionOperation
DeletePrivateConnectionOperation returns a new DeletePrivateConnectionOperation from a given name. The name must be that of a previously created DeletePrivateConnectionOperation, possibly from a different process.
func (*DataMigrationClient) DescribeConversionWorkspaceRevisions ¶ added in v1.6.0
func (c *DataMigrationClient) DescribeConversionWorkspaceRevisions(ctx context.Context, req *clouddmspb.DescribeConversionWorkspaceRevisionsRequest, opts ...gax.CallOption) (*clouddmspb.DescribeConversionWorkspaceRevisionsResponse, error)
DescribeConversionWorkspaceRevisions retrieves a list of committed revisions of a specific conversion workspace.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.DescribeConversionWorkspaceRevisionsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#DescribeConversionWorkspaceRevisionsRequest. } resp, err := c.DescribeConversionWorkspaceRevisions(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) DescribeDatabaseEntities ¶ added in v1.6.0
func (c *DataMigrationClient) DescribeDatabaseEntities(ctx context.Context, req *clouddmspb.DescribeDatabaseEntitiesRequest, opts ...gax.CallOption) *DatabaseEntityIterator
DescribeDatabaseEntities describes the database entities tree for a specific conversion workspace and a specific tree type.
Database entities are not resources like conversion workspaces or mapping rules, and they can’t be created, updated or deleted. Instead, they are simple data objects describing the structure of the client database.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" "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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.DescribeDatabaseEntitiesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#DescribeDatabaseEntitiesRequest. } it := c.DescribeDatabaseEntities(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.(*clouddmspb.DescribeDatabaseEntitiesResponse) } }
Output:
Example (All) ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.DescribeDatabaseEntitiesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#DescribeDatabaseEntitiesRequest. } for resp, err := range c.DescribeDatabaseEntities(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*DataMigrationClient) FetchStaticIps ¶ added in v1.6.0
func (c *DataMigrationClient) FetchStaticIps(ctx context.Context, req *clouddmspb.FetchStaticIpsRequest, opts ...gax.CallOption) *StringIterator
FetchStaticIps fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" "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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.FetchStaticIpsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#FetchStaticIpsRequest. } it := c.FetchStaticIps(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.(*clouddmspb.FetchStaticIpsResponse) } }
Output:
Example (All) ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.FetchStaticIpsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#FetchStaticIpsRequest. } for resp, err := range c.FetchStaticIps(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*DataMigrationClient) GenerateSshScript ¶
func (c *DataMigrationClient) GenerateSshScript(ctx context.Context, req *clouddmspb.GenerateSshScriptRequest, opts ...gax.CallOption) (*clouddmspb.SshScript, error)
GenerateSshScript generate a SSH configuration script to configure the reverse SSH connectivity.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.GenerateSshScriptRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#GenerateSshScriptRequest. } resp, err := c.GenerateSshScript(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) GenerateTcpProxyScript ¶ added in v1.7.0
func (c *DataMigrationClient) GenerateTcpProxyScript(ctx context.Context, req *clouddmspb.GenerateTcpProxyScriptRequest, opts ...gax.CallOption) (*clouddmspb.TcpProxyScript, error)
GenerateTcpProxyScript generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.GenerateTcpProxyScriptRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#GenerateTcpProxyScriptRequest. } resp, err := c.GenerateTcpProxyScript(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) GetConnectionProfile ¶
func (c *DataMigrationClient) GetConnectionProfile(ctx context.Context, req *clouddmspb.GetConnectionProfileRequest, opts ...gax.CallOption) (*clouddmspb.ConnectionProfile, error)
GetConnectionProfile gets details of a single connection profile.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.GetConnectionProfileRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#GetConnectionProfileRequest. } resp, err := c.GetConnectionProfile(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) GetConversionWorkspace ¶ added in v1.6.0
func (c *DataMigrationClient) GetConversionWorkspace(ctx context.Context, req *clouddmspb.GetConversionWorkspaceRequest, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, error)
GetConversionWorkspace gets details of a single conversion workspace.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.GetConversionWorkspaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#GetConversionWorkspaceRequest. } resp, err := c.GetConversionWorkspace(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) GetIamPolicy ¶ added in v1.6.0
func (c *DataMigrationClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" iampb "cloud.google.com/go/iam/apiv1/iampb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &iampb.GetIamPolicyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest. } resp, err := c.GetIamPolicy(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) GetLocation ¶ added in v1.6.0
func (c *DataMigrationClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &locationpb.GetLocationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. } resp, err := c.GetLocation(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) GetMappingRule ¶ added in v1.7.0
func (c *DataMigrationClient) GetMappingRule(ctx context.Context, req *clouddmspb.GetMappingRuleRequest, opts ...gax.CallOption) (*clouddmspb.MappingRule, error)
GetMappingRule gets the details of a mapping rule.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.GetMappingRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#GetMappingRuleRequest. } resp, err := c.GetMappingRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) GetMigrationJob ¶
func (c *DataMigrationClient) GetMigrationJob(ctx context.Context, req *clouddmspb.GetMigrationJobRequest, opts ...gax.CallOption) (*clouddmspb.MigrationJob, error)
GetMigrationJob gets details of a single migration job.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.GetMigrationJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#GetMigrationJobRequest. } resp, err := c.GetMigrationJob(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) GetOperation ¶ added in v1.6.0
func (c *DataMigrationClient) 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" clouddms "cloud.google.com/go/clouddms/apiv1" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.GetOperationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest. } resp, err := c.GetOperation(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) GetPrivateConnection ¶ added in v1.6.0
func (c *DataMigrationClient) GetPrivateConnection(ctx context.Context, req *clouddmspb.GetPrivateConnectionRequest, opts ...gax.CallOption) (*clouddmspb.PrivateConnection, error)
GetPrivateConnection gets details of a single private connection.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.GetPrivateConnectionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#GetPrivateConnectionRequest. } resp, err := c.GetPrivateConnection(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) ImportMappingRules ¶ added in v1.6.0
func (c *DataMigrationClient) ImportMappingRules(ctx context.Context, req *clouddmspb.ImportMappingRulesRequest, opts ...gax.CallOption) (*ImportMappingRulesOperation, error)
ImportMappingRules imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ImportMappingRulesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ImportMappingRulesRequest. } op, err := c.ImportMappingRules(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) ImportMappingRulesOperation ¶ added in v1.6.0
func (c *DataMigrationClient) ImportMappingRulesOperation(name string) *ImportMappingRulesOperation
ImportMappingRulesOperation returns a new ImportMappingRulesOperation from a given name. The name must be that of a previously created ImportMappingRulesOperation, possibly from a different process.
func (*DataMigrationClient) ListConnectionProfiles ¶
func (c *DataMigrationClient) ListConnectionProfiles(ctx context.Context, req *clouddmspb.ListConnectionProfilesRequest, opts ...gax.CallOption) *ConnectionProfileIterator
ListConnectionProfiles retrieves a list of all connection profiles in a given project and location.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" "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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ListConnectionProfilesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ListConnectionProfilesRequest. } it := c.ListConnectionProfiles(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.(*clouddmspb.ListConnectionProfilesResponse) } }
Output:
Example (All) ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ListConnectionProfilesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ListConnectionProfilesRequest. } for resp, err := range c.ListConnectionProfiles(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*DataMigrationClient) ListConversionWorkspaces ¶ added in v1.6.0
func (c *DataMigrationClient) ListConversionWorkspaces(ctx context.Context, req *clouddmspb.ListConversionWorkspacesRequest, opts ...gax.CallOption) *ConversionWorkspaceIterator
ListConversionWorkspaces lists conversion workspaces in a given project and location.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" "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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ListConversionWorkspacesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ListConversionWorkspacesRequest. } it := c.ListConversionWorkspaces(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.(*clouddmspb.ListConversionWorkspacesResponse) } }
Output:
Example (All) ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ListConversionWorkspacesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ListConversionWorkspacesRequest. } for resp, err := range c.ListConversionWorkspaces(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*DataMigrationClient) ListLocations ¶ added in v1.6.0
func (c *DataMigrationClient) 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" clouddms "cloud.google.com/go/clouddms/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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &locationpb.ListLocationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. } it := c.ListLocations(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*locationpb.ListLocationsResponse) } }
Output:
Example (All) ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &locationpb.ListLocationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. } for resp, err := range c.ListLocations(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*DataMigrationClient) ListMappingRules ¶ added in v1.7.0
func (c *DataMigrationClient) ListMappingRules(ctx context.Context, req *clouddmspb.ListMappingRulesRequest, opts ...gax.CallOption) *MappingRuleIterator
ListMappingRules lists the mapping rules for a specific conversion workspace.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" "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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ListMappingRulesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ListMappingRulesRequest. } it := c.ListMappingRules(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.(*clouddmspb.ListMappingRulesResponse) } }
Output:
Example (All) ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ListMappingRulesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ListMappingRulesRequest. } for resp, err := range c.ListMappingRules(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*DataMigrationClient) ListMigrationJobs ¶
func (c *DataMigrationClient) ListMigrationJobs(ctx context.Context, req *clouddmspb.ListMigrationJobsRequest, opts ...gax.CallOption) *MigrationJobIterator
ListMigrationJobs lists migration jobs in a given project and location.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" "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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ListMigrationJobsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ListMigrationJobsRequest. } it := c.ListMigrationJobs(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.(*clouddmspb.ListMigrationJobsResponse) } }
Output:
Example (All) ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ListMigrationJobsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ListMigrationJobsRequest. } for resp, err := range c.ListMigrationJobs(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*DataMigrationClient) ListOperations ¶ added in v1.6.0
func (c *DataMigrationClient) 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" clouddms "cloud.google.com/go/clouddms/apiv1" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" "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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.ListOperationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest. } it := c.ListOperations(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*longrunningpb.ListOperationsResponse) } }
Output:
Example (All) ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.ListOperationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest. } for resp, err := range c.ListOperations(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*DataMigrationClient) ListPrivateConnections ¶ added in v1.6.0
func (c *DataMigrationClient) ListPrivateConnections(ctx context.Context, req *clouddmspb.ListPrivateConnectionsRequest, opts ...gax.CallOption) *PrivateConnectionIterator
ListPrivateConnections retrieves a list of private connections in a given project and location.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" "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 := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ListPrivateConnectionsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ListPrivateConnectionsRequest. } it := c.ListPrivateConnections(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.(*clouddmspb.ListPrivateConnectionsResponse) } }
Output:
Example (All) ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ListPrivateConnectionsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ListPrivateConnectionsRequest. } for resp, err := range c.ListPrivateConnections(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*DataMigrationClient) PromoteMigrationJob ¶
func (c *DataMigrationClient) PromoteMigrationJob(ctx context.Context, req *clouddmspb.PromoteMigrationJobRequest, opts ...gax.CallOption) (*PromoteMigrationJobOperation, error)
PromoteMigrationJob promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.PromoteMigrationJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#PromoteMigrationJobRequest. } op, err := c.PromoteMigrationJob(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) PromoteMigrationJobOperation ¶
func (c *DataMigrationClient) PromoteMigrationJobOperation(name string) *PromoteMigrationJobOperation
PromoteMigrationJobOperation returns a new PromoteMigrationJobOperation from a given name. The name must be that of a previously created PromoteMigrationJobOperation, possibly from a different process.
func (*DataMigrationClient) RestartMigrationJob ¶
func (c *DataMigrationClient) RestartMigrationJob(ctx context.Context, req *clouddmspb.RestartMigrationJobRequest, opts ...gax.CallOption) (*RestartMigrationJobOperation, error)
RestartMigrationJob restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.RestartMigrationJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#RestartMigrationJobRequest. } op, err := c.RestartMigrationJob(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) RestartMigrationJobOperation ¶
func (c *DataMigrationClient) RestartMigrationJobOperation(name string) *RestartMigrationJobOperation
RestartMigrationJobOperation returns a new RestartMigrationJobOperation from a given name. The name must be that of a previously created RestartMigrationJobOperation, possibly from a different process.
func (*DataMigrationClient) ResumeMigrationJob ¶
func (c *DataMigrationClient) ResumeMigrationJob(ctx context.Context, req *clouddmspb.ResumeMigrationJobRequest, opts ...gax.CallOption) (*ResumeMigrationJobOperation, error)
ResumeMigrationJob resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.ResumeMigrationJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#ResumeMigrationJobRequest. } op, err := c.ResumeMigrationJob(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) ResumeMigrationJobOperation ¶
func (c *DataMigrationClient) ResumeMigrationJobOperation(name string) *ResumeMigrationJobOperation
ResumeMigrationJobOperation returns a new ResumeMigrationJobOperation from a given name. The name must be that of a previously created ResumeMigrationJobOperation, possibly from a different process.
func (*DataMigrationClient) RollbackConversionWorkspace ¶ added in v1.6.0
func (c *DataMigrationClient) RollbackConversionWorkspace(ctx context.Context, req *clouddmspb.RollbackConversionWorkspaceRequest, opts ...gax.CallOption) (*RollbackConversionWorkspaceOperation, error)
RollbackConversionWorkspace rolls back a conversion workspace to the last committed snapshot.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.RollbackConversionWorkspaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#RollbackConversionWorkspaceRequest. } op, err := c.RollbackConversionWorkspace(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) RollbackConversionWorkspaceOperation ¶ added in v1.6.0
func (c *DataMigrationClient) RollbackConversionWorkspaceOperation(name string) *RollbackConversionWorkspaceOperation
RollbackConversionWorkspaceOperation returns a new RollbackConversionWorkspaceOperation from a given name. The name must be that of a previously created RollbackConversionWorkspaceOperation, possibly from a different process.
func (*DataMigrationClient) SearchBackgroundJobs ¶ added in v1.6.0
func (c *DataMigrationClient) SearchBackgroundJobs(ctx context.Context, req *clouddmspb.SearchBackgroundJobsRequest, opts ...gax.CallOption) (*clouddmspb.SearchBackgroundJobsResponse, error)
SearchBackgroundJobs searches/lists the background jobs for a specific conversion workspace.
The background jobs are not resources like conversion workspaces or mapping rules, and they can’t be created, updated or deleted. Instead, they are a way to expose the data plane jobs log.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.SearchBackgroundJobsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#SearchBackgroundJobsRequest. } resp, err := c.SearchBackgroundJobs(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) SeedConversionWorkspace ¶ added in v1.6.0
func (c *DataMigrationClient) SeedConversionWorkspace(ctx context.Context, req *clouddmspb.SeedConversionWorkspaceRequest, opts ...gax.CallOption) (*SeedConversionWorkspaceOperation, error)
SeedConversionWorkspace imports a snapshot of the source database into the conversion workspace.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.SeedConversionWorkspaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#SeedConversionWorkspaceRequest. } op, err := c.SeedConversionWorkspace(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) SeedConversionWorkspaceOperation ¶ added in v1.6.0
func (c *DataMigrationClient) SeedConversionWorkspaceOperation(name string) *SeedConversionWorkspaceOperation
SeedConversionWorkspaceOperation returns a new SeedConversionWorkspaceOperation from a given name. The name must be that of a previously created SeedConversionWorkspaceOperation, possibly from a different process.
func (*DataMigrationClient) SetIamPolicy ¶ added in v1.6.0
func (c *DataMigrationClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" iampb "cloud.google.com/go/iam/apiv1/iampb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &iampb.SetIamPolicyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest. } resp, err := c.SetIamPolicy(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) StartMigrationJob ¶
func (c *DataMigrationClient) StartMigrationJob(ctx context.Context, req *clouddmspb.StartMigrationJobRequest, opts ...gax.CallOption) (*StartMigrationJobOperation, error)
StartMigrationJob start an already created migration job.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.StartMigrationJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#StartMigrationJobRequest. } op, err := c.StartMigrationJob(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) StartMigrationJobOperation ¶
func (c *DataMigrationClient) StartMigrationJobOperation(name string) *StartMigrationJobOperation
StartMigrationJobOperation returns a new StartMigrationJobOperation from a given name. The name must be that of a previously created StartMigrationJobOperation, possibly from a different process.
func (*DataMigrationClient) StopMigrationJob ¶
func (c *DataMigrationClient) StopMigrationJob(ctx context.Context, req *clouddmspb.StopMigrationJobRequest, opts ...gax.CallOption) (*StopMigrationJobOperation, error)
StopMigrationJob stops a running migration job.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.StopMigrationJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#StopMigrationJobRequest. } op, err := c.StopMigrationJob(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) StopMigrationJobOperation ¶
func (c *DataMigrationClient) StopMigrationJobOperation(name string) *StopMigrationJobOperation
StopMigrationJobOperation returns a new StopMigrationJobOperation from a given name. The name must be that of a previously created StopMigrationJobOperation, possibly from a different process.
func (*DataMigrationClient) TestIamPermissions ¶ added in v1.6.0
func (c *DataMigrationClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" iampb "cloud.google.com/go/iam/apiv1/iampb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &iampb.TestIamPermissionsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest. } resp, err := c.TestIamPermissions(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) UpdateConnectionProfile ¶
func (c *DataMigrationClient) UpdateConnectionProfile(ctx context.Context, req *clouddmspb.UpdateConnectionProfileRequest, opts ...gax.CallOption) (*UpdateConnectionProfileOperation, error)
UpdateConnectionProfile update the configuration of a single connection profile.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.UpdateConnectionProfileRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#UpdateConnectionProfileRequest. } op, err := c.UpdateConnectionProfile(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) UpdateConnectionProfileOperation ¶
func (c *DataMigrationClient) UpdateConnectionProfileOperation(name string) *UpdateConnectionProfileOperation
UpdateConnectionProfileOperation returns a new UpdateConnectionProfileOperation from a given name. The name must be that of a previously created UpdateConnectionProfileOperation, possibly from a different process.
func (*DataMigrationClient) UpdateConversionWorkspace ¶ added in v1.6.0
func (c *DataMigrationClient) UpdateConversionWorkspace(ctx context.Context, req *clouddmspb.UpdateConversionWorkspaceRequest, opts ...gax.CallOption) (*UpdateConversionWorkspaceOperation, error)
UpdateConversionWorkspace updates the parameters of a single conversion workspace.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.UpdateConversionWorkspaceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#UpdateConversionWorkspaceRequest. } op, err := c.UpdateConversionWorkspace(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) UpdateConversionWorkspaceOperation ¶ added in v1.6.0
func (c *DataMigrationClient) UpdateConversionWorkspaceOperation(name string) *UpdateConversionWorkspaceOperation
UpdateConversionWorkspaceOperation returns a new UpdateConversionWorkspaceOperation from a given name. The name must be that of a previously created UpdateConversionWorkspaceOperation, possibly from a different process.
func (*DataMigrationClient) UpdateMigrationJob ¶
func (c *DataMigrationClient) UpdateMigrationJob(ctx context.Context, req *clouddmspb.UpdateMigrationJobRequest, opts ...gax.CallOption) (*UpdateMigrationJobOperation, error)
UpdateMigrationJob updates the parameters of a single migration job.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.UpdateMigrationJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#UpdateMigrationJobRequest. } op, err := c.UpdateMigrationJob(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) UpdateMigrationJobOperation ¶
func (c *DataMigrationClient) UpdateMigrationJobOperation(name string) *UpdateMigrationJobOperation
UpdateMigrationJobOperation returns a new UpdateMigrationJobOperation from a given name. The name must be that of a previously created UpdateMigrationJobOperation, possibly from a different process.
func (*DataMigrationClient) VerifyMigrationJob ¶
func (c *DataMigrationClient) VerifyMigrationJob(ctx context.Context, req *clouddmspb.VerifyMigrationJobRequest, opts ...gax.CallOption) (*VerifyMigrationJobOperation, error)
VerifyMigrationJob verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.
Example ¶
package main import ( "context" clouddms "cloud.google.com/go/clouddms/apiv1" clouddmspb "cloud.google.com/go/clouddms/apiv1/clouddmspb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &clouddmspb.VerifyMigrationJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/clouddms/apiv1/clouddmspb#VerifyMigrationJobRequest. } op, err := c.VerifyMigrationJob(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*DataMigrationClient) VerifyMigrationJobOperation ¶
func (c *DataMigrationClient) VerifyMigrationJobOperation(name string) *VerifyMigrationJobOperation
VerifyMigrationJobOperation returns a new VerifyMigrationJobOperation from a given name. The name must be that of a previously created VerifyMigrationJobOperation, possibly from a different process.
type DatabaseEntityIterator ¶ added in v1.6.0
type DatabaseEntityIterator 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 []*clouddmspb.DatabaseEntity, nextPageToken string, err error) // contains filtered or unexported fields }
DatabaseEntityIterator manages a stream of *clouddmspb.DatabaseEntity.
func (*DatabaseEntityIterator) All ¶ added in v1.8.1
func (it *DatabaseEntityIterator) All() iter.Seq2[*clouddmspb.DatabaseEntity, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DatabaseEntityIterator) Next ¶ added in v1.6.0
func (it *DatabaseEntityIterator) Next() (*clouddmspb.DatabaseEntity, 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 (*DatabaseEntityIterator) PageInfo ¶ added in v1.6.0
func (it *DatabaseEntityIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DeleteConnectionProfileOperation ¶
type DeleteConnectionProfileOperation struct {
// contains filtered or unexported fields
}
DeleteConnectionProfileOperation manages a long-running operation from DeleteConnectionProfile.
func (*DeleteConnectionProfileOperation) Done ¶
func (op *DeleteConnectionProfileOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteConnectionProfileOperation) Metadata ¶
func (op *DeleteConnectionProfileOperation) Metadata() (*clouddmspb.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 (*DeleteConnectionProfileOperation) Name ¶
func (op *DeleteConnectionProfileOperation) 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 (*DeleteConnectionProfileOperation) Poll ¶
func (op *DeleteConnectionProfileOperation) 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 (*DeleteConnectionProfileOperation) Wait ¶
func (op *DeleteConnectionProfileOperation) 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 DeleteConversionWorkspaceOperation ¶ added in v1.6.0
type DeleteConversionWorkspaceOperation struct {
// contains filtered or unexported fields
}
DeleteConversionWorkspaceOperation manages a long-running operation from DeleteConversionWorkspace.
func (*DeleteConversionWorkspaceOperation) Done ¶ added in v1.6.0
func (op *DeleteConversionWorkspaceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteConversionWorkspaceOperation) Metadata ¶ added in v1.6.0
func (op *DeleteConversionWorkspaceOperation) Metadata() (*clouddmspb.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 (*DeleteConversionWorkspaceOperation) Name ¶ added in v1.6.0
func (op *DeleteConversionWorkspaceOperation) 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 (*DeleteConversionWorkspaceOperation) Poll ¶ added in v1.6.0
func (op *DeleteConversionWorkspaceOperation) 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 (*DeleteConversionWorkspaceOperation) Wait ¶ added in v1.6.0
func (op *DeleteConversionWorkspaceOperation) 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 DeleteMigrationJobOperation ¶
type DeleteMigrationJobOperation struct {
// contains filtered or unexported fields
}
DeleteMigrationJobOperation manages a long-running operation from DeleteMigrationJob.
func (*DeleteMigrationJobOperation) Done ¶
func (op *DeleteMigrationJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteMigrationJobOperation) Metadata ¶
func (op *DeleteMigrationJobOperation) Metadata() (*clouddmspb.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 (*DeleteMigrationJobOperation) Name ¶
func (op *DeleteMigrationJobOperation) 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 (*DeleteMigrationJobOperation) Poll ¶
func (op *DeleteMigrationJobOperation) 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 (*DeleteMigrationJobOperation) Wait ¶
func (op *DeleteMigrationJobOperation) 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 DeletePrivateConnectionOperation ¶ added in v1.6.0
type DeletePrivateConnectionOperation struct {
// contains filtered or unexported fields
}
DeletePrivateConnectionOperation manages a long-running operation from DeletePrivateConnection.
func (*DeletePrivateConnectionOperation) Done ¶ added in v1.6.0
func (op *DeletePrivateConnectionOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeletePrivateConnectionOperation) Metadata ¶ added in v1.6.0
func (op *DeletePrivateConnectionOperation) Metadata() (*clouddmspb.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 (*DeletePrivateConnectionOperation) Name ¶ added in v1.6.0
func (op *DeletePrivateConnectionOperation) 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 (*DeletePrivateConnectionOperation) Poll ¶ added in v1.6.0
func (op *DeletePrivateConnectionOperation) 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 (*DeletePrivateConnectionOperation) Wait ¶ added in v1.6.0
func (op *DeletePrivateConnectionOperation) 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 ImportMappingRulesOperation ¶ added in v1.6.0
type ImportMappingRulesOperation struct {
// contains filtered or unexported fields
}
ImportMappingRulesOperation manages a long-running operation from ImportMappingRules.
func (*ImportMappingRulesOperation) Done ¶ added in v1.6.0
func (op *ImportMappingRulesOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ImportMappingRulesOperation) Metadata ¶ added in v1.6.0
func (op *ImportMappingRulesOperation) Metadata() (*clouddmspb.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 (*ImportMappingRulesOperation) Name ¶ added in v1.6.0
func (op *ImportMappingRulesOperation) 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 (*ImportMappingRulesOperation) Poll ¶ added in v1.6.0
func (op *ImportMappingRulesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 (*ImportMappingRulesOperation) Wait ¶ added in v1.6.0
func (op *ImportMappingRulesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 LocationIterator ¶ added in v1.6.0
type LocationIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*locationpb.Location, nextPageToken string, err error) // contains filtered or unexported fields }
LocationIterator manages a stream of *locationpb.Location.
func (*LocationIterator) All ¶ added in v1.8.1
func (it *LocationIterator) All() iter.Seq2[*locationpb.Location, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*LocationIterator) Next ¶ added in v1.6.0
func (it *LocationIterator) Next() (*locationpb.Location, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*LocationIterator) PageInfo ¶ added in v1.6.0
func (it *LocationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type MappingRuleIterator ¶ added in v1.7.0
type MappingRuleIterator 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 []*clouddmspb.MappingRule, nextPageToken string, err error) // contains filtered or unexported fields }
MappingRuleIterator manages a stream of *clouddmspb.MappingRule.
func (*MappingRuleIterator) All ¶ added in v1.8.1
func (it *MappingRuleIterator) All() iter.Seq2[*clouddmspb.MappingRule, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*MappingRuleIterator) Next ¶ added in v1.7.0
func (it *MappingRuleIterator) Next() (*clouddmspb.MappingRule, 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 (*MappingRuleIterator) PageInfo ¶ added in v1.7.0
func (it *MappingRuleIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type MigrationJobIterator ¶
type MigrationJobIterator 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 []*clouddmspb.MigrationJob, nextPageToken string, err error) // contains filtered or unexported fields }
MigrationJobIterator manages a stream of *clouddmspb.MigrationJob.
func (*MigrationJobIterator) All ¶ added in v1.8.1
func (it *MigrationJobIterator) All() iter.Seq2[*clouddmspb.MigrationJob, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*MigrationJobIterator) Next ¶
func (it *MigrationJobIterator) Next() (*clouddmspb.MigrationJob, 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 (*MigrationJobIterator) PageInfo ¶
func (it *MigrationJobIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type OperationIterator ¶ added in v1.6.0
type OperationIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error) // contains filtered or unexported fields }
OperationIterator manages a stream of *longrunningpb.Operation.
func (*OperationIterator) All ¶ added in v1.8.1
func (it *OperationIterator) All() iter.Seq2[*longrunningpb.Operation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*OperationIterator) Next ¶ added in v1.6.0
func (it *OperationIterator) Next() (*longrunningpb.Operation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*OperationIterator) PageInfo ¶ added in v1.6.0
func (it *OperationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type PrivateConnectionIterator ¶ added in v1.6.0
type PrivateConnectionIterator 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 []*clouddmspb.PrivateConnection, nextPageToken string, err error) // contains filtered or unexported fields }
PrivateConnectionIterator manages a stream of *clouddmspb.PrivateConnection.
func (*PrivateConnectionIterator) All ¶ added in v1.8.1
func (it *PrivateConnectionIterator) All() iter.Seq2[*clouddmspb.PrivateConnection, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*PrivateConnectionIterator) Next ¶ added in v1.6.0
func (it *PrivateConnectionIterator) Next() (*clouddmspb.PrivateConnection, 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 (*PrivateConnectionIterator) PageInfo ¶ added in v1.6.0
func (it *PrivateConnectionIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type PromoteMigrationJobOperation ¶
type PromoteMigrationJobOperation struct {
// contains filtered or unexported fields
}
PromoteMigrationJobOperation manages a long-running operation from PromoteMigrationJob.
func (*PromoteMigrationJobOperation) Done ¶
func (op *PromoteMigrationJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*PromoteMigrationJobOperation) Metadata ¶
func (op *PromoteMigrationJobOperation) Metadata() (*clouddmspb.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 (*PromoteMigrationJobOperation) Name ¶
func (op *PromoteMigrationJobOperation) 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 (*PromoteMigrationJobOperation) Poll ¶
func (op *PromoteMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 (*PromoteMigrationJobOperation) Wait ¶
func (op *PromoteMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 RestartMigrationJobOperation ¶
type RestartMigrationJobOperation struct {
// contains filtered or unexported fields
}
RestartMigrationJobOperation manages a long-running operation from RestartMigrationJob.
func (*RestartMigrationJobOperation) Done ¶
func (op *RestartMigrationJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*RestartMigrationJobOperation) Metadata ¶
func (op *RestartMigrationJobOperation) Metadata() (*clouddmspb.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 (*RestartMigrationJobOperation) Name ¶
func (op *RestartMigrationJobOperation) 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 (*RestartMigrationJobOperation) Poll ¶
func (op *RestartMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 (*RestartMigrationJobOperation) Wait ¶
func (op *RestartMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 ResumeMigrationJobOperation ¶
type ResumeMigrationJobOperation struct {
// contains filtered or unexported fields
}
ResumeMigrationJobOperation manages a long-running operation from ResumeMigrationJob.
func (*ResumeMigrationJobOperation) Done ¶
func (op *ResumeMigrationJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ResumeMigrationJobOperation) Metadata ¶
func (op *ResumeMigrationJobOperation) Metadata() (*clouddmspb.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 (*ResumeMigrationJobOperation) Name ¶
func (op *ResumeMigrationJobOperation) 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 (*ResumeMigrationJobOperation) Poll ¶
func (op *ResumeMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 (*ResumeMigrationJobOperation) Wait ¶
func (op *ResumeMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 RollbackConversionWorkspaceOperation ¶ added in v1.6.0
type RollbackConversionWorkspaceOperation struct {
// contains filtered or unexported fields
}
RollbackConversionWorkspaceOperation manages a long-running operation from RollbackConversionWorkspace.
func (*RollbackConversionWorkspaceOperation) Done ¶ added in v1.6.0
func (op *RollbackConversionWorkspaceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*RollbackConversionWorkspaceOperation) Metadata ¶ added in v1.6.0
func (op *RollbackConversionWorkspaceOperation) Metadata() (*clouddmspb.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 (*RollbackConversionWorkspaceOperation) Name ¶ added in v1.6.0
func (op *RollbackConversionWorkspaceOperation) 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 (*RollbackConversionWorkspaceOperation) Poll ¶ added in v1.6.0
func (op *RollbackConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 (*RollbackConversionWorkspaceOperation) Wait ¶ added in v1.6.0
func (op *RollbackConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 SeedConversionWorkspaceOperation ¶ added in v1.6.0
type SeedConversionWorkspaceOperation struct {
// contains filtered or unexported fields
}
SeedConversionWorkspaceOperation manages a long-running operation from SeedConversionWorkspace.
func (*SeedConversionWorkspaceOperation) Done ¶ added in v1.6.0
func (op *SeedConversionWorkspaceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*SeedConversionWorkspaceOperation) Metadata ¶ added in v1.6.0
func (op *SeedConversionWorkspaceOperation) Metadata() (*clouddmspb.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 (*SeedConversionWorkspaceOperation) Name ¶ added in v1.6.0
func (op *SeedConversionWorkspaceOperation) 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 (*SeedConversionWorkspaceOperation) Poll ¶ added in v1.6.0
func (op *SeedConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 (*SeedConversionWorkspaceOperation) Wait ¶ added in v1.6.0
func (op *SeedConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 StartMigrationJobOperation ¶
type StartMigrationJobOperation struct {
// contains filtered or unexported fields
}
StartMigrationJobOperation manages a long-running operation from StartMigrationJob.
func (*StartMigrationJobOperation) Done ¶
func (op *StartMigrationJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*StartMigrationJobOperation) Metadata ¶
func (op *StartMigrationJobOperation) Metadata() (*clouddmspb.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 (*StartMigrationJobOperation) Name ¶
func (op *StartMigrationJobOperation) 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 (*StartMigrationJobOperation) Poll ¶
func (op *StartMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 (*StartMigrationJobOperation) Wait ¶
func (op *StartMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 StopMigrationJobOperation ¶
type StopMigrationJobOperation struct {
// contains filtered or unexported fields
}
StopMigrationJobOperation manages a long-running operation from StopMigrationJob.
func (*StopMigrationJobOperation) Done ¶
func (op *StopMigrationJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*StopMigrationJobOperation) Metadata ¶
func (op *StopMigrationJobOperation) Metadata() (*clouddmspb.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 (*StopMigrationJobOperation) Name ¶
func (op *StopMigrationJobOperation) 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 (*StopMigrationJobOperation) Poll ¶
func (op *StopMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 (*StopMigrationJobOperation) Wait ¶
func (op *StopMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 StringIterator ¶ added in v1.6.0
type StringIterator 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 []string, nextPageToken string, err error) // contains filtered or unexported fields }
StringIterator manages a stream of string.
func (*StringIterator) All ¶ added in v1.8.1
func (it *StringIterator) All() iter.Seq2[string, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*StringIterator) Next ¶ added in v1.6.0
func (it *StringIterator) Next() (string, 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 (*StringIterator) PageInfo ¶ added in v1.6.0
func (it *StringIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type UpdateConnectionProfileOperation ¶
type UpdateConnectionProfileOperation struct {
// contains filtered or unexported fields
}
UpdateConnectionProfileOperation manages a long-running operation from UpdateConnectionProfile.
func (*UpdateConnectionProfileOperation) Done ¶
func (op *UpdateConnectionProfileOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateConnectionProfileOperation) Metadata ¶
func (op *UpdateConnectionProfileOperation) Metadata() (*clouddmspb.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 (*UpdateConnectionProfileOperation) Name ¶
func (op *UpdateConnectionProfileOperation) 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 (*UpdateConnectionProfileOperation) Poll ¶
func (op *UpdateConnectionProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConnectionProfile, 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 (*UpdateConnectionProfileOperation) Wait ¶
func (op *UpdateConnectionProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConnectionProfile, 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 UpdateConversionWorkspaceOperation ¶ added in v1.6.0
type UpdateConversionWorkspaceOperation struct {
// contains filtered or unexported fields
}
UpdateConversionWorkspaceOperation manages a long-running operation from UpdateConversionWorkspace.
func (*UpdateConversionWorkspaceOperation) Done ¶ added in v1.6.0
func (op *UpdateConversionWorkspaceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateConversionWorkspaceOperation) Metadata ¶ added in v1.6.0
func (op *UpdateConversionWorkspaceOperation) Metadata() (*clouddmspb.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 (*UpdateConversionWorkspaceOperation) Name ¶ added in v1.6.0
func (op *UpdateConversionWorkspaceOperation) 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 (*UpdateConversionWorkspaceOperation) Poll ¶ added in v1.6.0
func (op *UpdateConversionWorkspaceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 (*UpdateConversionWorkspaceOperation) Wait ¶ added in v1.6.0
func (op *UpdateConversionWorkspaceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.ConversionWorkspace, 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 UpdateMigrationJobOperation ¶
type UpdateMigrationJobOperation struct {
// contains filtered or unexported fields
}
UpdateMigrationJobOperation manages a long-running operation from UpdateMigrationJob.
func (*UpdateMigrationJobOperation) Done ¶
func (op *UpdateMigrationJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateMigrationJobOperation) Metadata ¶
func (op *UpdateMigrationJobOperation) Metadata() (*clouddmspb.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 (*UpdateMigrationJobOperation) Name ¶
func (op *UpdateMigrationJobOperation) 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 (*UpdateMigrationJobOperation) Poll ¶
func (op *UpdateMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 (*UpdateMigrationJobOperation) Wait ¶
func (op *UpdateMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 VerifyMigrationJobOperation ¶
type VerifyMigrationJobOperation struct {
// contains filtered or unexported fields
}
VerifyMigrationJobOperation manages a long-running operation from VerifyMigrationJob.
func (*VerifyMigrationJobOperation) Done ¶
func (op *VerifyMigrationJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*VerifyMigrationJobOperation) Metadata ¶
func (op *VerifyMigrationJobOperation) Metadata() (*clouddmspb.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 (*VerifyMigrationJobOperation) Name ¶
func (op *VerifyMigrationJobOperation) 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 (*VerifyMigrationJobOperation) Poll ¶
func (op *VerifyMigrationJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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 (*VerifyMigrationJobOperation) Wait ¶
func (op *VerifyMigrationJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*clouddmspb.MigrationJob, 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.