Documentation ¶
Overview ¶
Package migrationcenter is an auto-generated package for the Migration Center API.
A unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud.
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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed. The methods of Client are safe for concurrent use by multiple goroutines. The returned client must be Closed when it is done being used.
Using the Client ¶
The following is an example of making an API call with the newly created client.
ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.AddAssetsToGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#AddAssetsToGroupRequest. } op, err := c.AddAssetsToGroup(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp
Use of Context ¶
The ctx passed to NewClient is used for authentication requests and for creating the underlying connection, but is not used for subsequent calls. Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Index ¶
- func DefaultAuthScopes() []string
- type AddAssetsToGroupOperation
- func (op *AddAssetsToGroupOperation) Done() bool
- func (op *AddAssetsToGroupOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *AddAssetsToGroupOperation) Name() string
- func (op *AddAssetsToGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, error)
- func (op *AddAssetsToGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, error)
- type AssetIterator
- type CallOptions
- type Client
- func (c *Client) AddAssetsToGroup(ctx context.Context, req *migrationcenterpb.AddAssetsToGroupRequest, ...) (*AddAssetsToGroupOperation, error)
- func (c *Client) AddAssetsToGroupOperation(name string) *AddAssetsToGroupOperation
- func (c *Client) AggregateAssetsValues(ctx context.Context, req *migrationcenterpb.AggregateAssetsValuesRequest, ...) (*migrationcenterpb.AggregateAssetsValuesResponse, error)
- func (c *Client) BatchDeleteAssets(ctx context.Context, req *migrationcenterpb.BatchDeleteAssetsRequest, ...) error
- func (c *Client) BatchUpdateAssets(ctx context.Context, req *migrationcenterpb.BatchUpdateAssetsRequest, ...) (*migrationcenterpb.BatchUpdateAssetsResponse, error)
- func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *Client) Close() error
- func (c *Client) Connection() *grpc.ClientConndeprecated
- func (c *Client) CreateGroup(ctx context.Context, req *migrationcenterpb.CreateGroupRequest, ...) (*CreateGroupOperation, error)
- func (c *Client) CreateGroupOperation(name string) *CreateGroupOperation
- func (c *Client) CreateImportDataFile(ctx context.Context, req *migrationcenterpb.CreateImportDataFileRequest, ...) (*CreateImportDataFileOperation, error)
- func (c *Client) CreateImportDataFileOperation(name string) *CreateImportDataFileOperation
- func (c *Client) CreateImportJob(ctx context.Context, req *migrationcenterpb.CreateImportJobRequest, ...) (*CreateImportJobOperation, error)
- func (c *Client) CreateImportJobOperation(name string) *CreateImportJobOperation
- func (c *Client) CreatePreferenceSet(ctx context.Context, req *migrationcenterpb.CreatePreferenceSetRequest, ...) (*CreatePreferenceSetOperation, error)
- func (c *Client) CreatePreferenceSetOperation(name string) *CreatePreferenceSetOperation
- func (c *Client) CreateReport(ctx context.Context, req *migrationcenterpb.CreateReportRequest, ...) (*CreateReportOperation, error)
- func (c *Client) CreateReportConfig(ctx context.Context, req *migrationcenterpb.CreateReportConfigRequest, ...) (*CreateReportConfigOperation, error)
- func (c *Client) CreateReportConfigOperation(name string) *CreateReportConfigOperation
- func (c *Client) CreateReportOperation(name string) *CreateReportOperation
- func (c *Client) CreateSource(ctx context.Context, req *migrationcenterpb.CreateSourceRequest, ...) (*CreateSourceOperation, error)
- func (c *Client) CreateSourceOperation(name string) *CreateSourceOperation
- func (c *Client) DeleteAsset(ctx context.Context, req *migrationcenterpb.DeleteAssetRequest, ...) error
- func (c *Client) DeleteGroup(ctx context.Context, req *migrationcenterpb.DeleteGroupRequest, ...) (*DeleteGroupOperation, error)
- func (c *Client) DeleteGroupOperation(name string) *DeleteGroupOperation
- func (c *Client) DeleteImportDataFile(ctx context.Context, req *migrationcenterpb.DeleteImportDataFileRequest, ...) (*DeleteImportDataFileOperation, error)
- func (c *Client) DeleteImportDataFileOperation(name string) *DeleteImportDataFileOperation
- func (c *Client) DeleteImportJob(ctx context.Context, req *migrationcenterpb.DeleteImportJobRequest, ...) (*DeleteImportJobOperation, error)
- func (c *Client) DeleteImportJobOperation(name string) *DeleteImportJobOperation
- func (c *Client) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *Client) DeletePreferenceSet(ctx context.Context, req *migrationcenterpb.DeletePreferenceSetRequest, ...) (*DeletePreferenceSetOperation, error)
- func (c *Client) DeletePreferenceSetOperation(name string) *DeletePreferenceSetOperation
- func (c *Client) DeleteReport(ctx context.Context, req *migrationcenterpb.DeleteReportRequest, ...) (*DeleteReportOperation, error)
- func (c *Client) DeleteReportConfig(ctx context.Context, req *migrationcenterpb.DeleteReportConfigRequest, ...) (*DeleteReportConfigOperation, error)
- func (c *Client) DeleteReportConfigOperation(name string) *DeleteReportConfigOperation
- func (c *Client) DeleteReportOperation(name string) *DeleteReportOperation
- func (c *Client) DeleteSource(ctx context.Context, req *migrationcenterpb.DeleteSourceRequest, ...) (*DeleteSourceOperation, error)
- func (c *Client) DeleteSourceOperation(name string) *DeleteSourceOperation
- func (c *Client) GetAsset(ctx context.Context, req *migrationcenterpb.GetAssetRequest, ...) (*migrationcenterpb.Asset, error)
- func (c *Client) GetErrorFrame(ctx context.Context, req *migrationcenterpb.GetErrorFrameRequest, ...) (*migrationcenterpb.ErrorFrame, error)
- func (c *Client) GetGroup(ctx context.Context, req *migrationcenterpb.GetGroupRequest, ...) (*migrationcenterpb.Group, error)
- func (c *Client) GetImportDataFile(ctx context.Context, req *migrationcenterpb.GetImportDataFileRequest, ...) (*migrationcenterpb.ImportDataFile, error)
- func (c *Client) GetImportJob(ctx context.Context, req *migrationcenterpb.GetImportJobRequest, ...) (*migrationcenterpb.ImportJob, error)
- func (c *Client) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *Client) GetPreferenceSet(ctx context.Context, req *migrationcenterpb.GetPreferenceSetRequest, ...) (*migrationcenterpb.PreferenceSet, error)
- func (c *Client) GetReport(ctx context.Context, req *migrationcenterpb.GetReportRequest, ...) (*migrationcenterpb.Report, error)
- func (c *Client) GetReportConfig(ctx context.Context, req *migrationcenterpb.GetReportConfigRequest, ...) (*migrationcenterpb.ReportConfig, error)
- func (c *Client) GetSettings(ctx context.Context, req *migrationcenterpb.GetSettingsRequest, ...) (*migrationcenterpb.Settings, error)
- func (c *Client) GetSource(ctx context.Context, req *migrationcenterpb.GetSourceRequest, ...) (*migrationcenterpb.Source, error)
- func (c *Client) ListAssets(ctx context.Context, req *migrationcenterpb.ListAssetsRequest, ...) *AssetIterator
- func (c *Client) ListErrorFrames(ctx context.Context, req *migrationcenterpb.ListErrorFramesRequest, ...) *ErrorFrameIterator
- func (c *Client) ListGroups(ctx context.Context, req *migrationcenterpb.ListGroupsRequest, ...) *GroupIterator
- func (c *Client) ListImportDataFiles(ctx context.Context, req *migrationcenterpb.ListImportDataFilesRequest, ...) *ImportDataFileIterator
- func (c *Client) ListImportJobs(ctx context.Context, req *migrationcenterpb.ListImportJobsRequest, ...) *ImportJobIterator
- func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *Client) ListPreferenceSets(ctx context.Context, req *migrationcenterpb.ListPreferenceSetsRequest, ...) *PreferenceSetIterator
- func (c *Client) ListReportConfigs(ctx context.Context, req *migrationcenterpb.ListReportConfigsRequest, ...) *ReportConfigIterator
- func (c *Client) ListReports(ctx context.Context, req *migrationcenterpb.ListReportsRequest, ...) *ReportIterator
- func (c *Client) ListSources(ctx context.Context, req *migrationcenterpb.ListSourcesRequest, ...) *SourceIterator
- func (c *Client) RemoveAssetsFromGroup(ctx context.Context, req *migrationcenterpb.RemoveAssetsFromGroupRequest, ...) (*RemoveAssetsFromGroupOperation, error)
- func (c *Client) RemoveAssetsFromGroupOperation(name string) *RemoveAssetsFromGroupOperation
- func (c *Client) ReportAssetFrames(ctx context.Context, req *migrationcenterpb.ReportAssetFramesRequest, ...) (*migrationcenterpb.ReportAssetFramesResponse, error)
- func (c *Client) RunImportJob(ctx context.Context, req *migrationcenterpb.RunImportJobRequest, ...) (*RunImportJobOperation, error)
- func (c *Client) RunImportJobOperation(name string) *RunImportJobOperation
- func (c *Client) UpdateAsset(ctx context.Context, req *migrationcenterpb.UpdateAssetRequest, ...) (*migrationcenterpb.Asset, error)
- func (c *Client) UpdateGroup(ctx context.Context, req *migrationcenterpb.UpdateGroupRequest, ...) (*UpdateGroupOperation, error)
- func (c *Client) UpdateGroupOperation(name string) *UpdateGroupOperation
- func (c *Client) UpdateImportJob(ctx context.Context, req *migrationcenterpb.UpdateImportJobRequest, ...) (*UpdateImportJobOperation, error)
- func (c *Client) UpdateImportJobOperation(name string) *UpdateImportJobOperation
- func (c *Client) UpdatePreferenceSet(ctx context.Context, req *migrationcenterpb.UpdatePreferenceSetRequest, ...) (*UpdatePreferenceSetOperation, error)
- func (c *Client) UpdatePreferenceSetOperation(name string) *UpdatePreferenceSetOperation
- func (c *Client) UpdateSettings(ctx context.Context, req *migrationcenterpb.UpdateSettingsRequest, ...) (*UpdateSettingsOperation, error)
- func (c *Client) UpdateSettingsOperation(name string) *UpdateSettingsOperation
- func (c *Client) UpdateSource(ctx context.Context, req *migrationcenterpb.UpdateSourceRequest, ...) (*UpdateSourceOperation, error)
- func (c *Client) UpdateSourceOperation(name string) *UpdateSourceOperation
- func (c *Client) ValidateImportJob(ctx context.Context, req *migrationcenterpb.ValidateImportJobRequest, ...) (*ValidateImportJobOperation, error)
- func (c *Client) ValidateImportJobOperation(name string) *ValidateImportJobOperation
- type CreateGroupOperation
- func (op *CreateGroupOperation) Done() bool
- func (op *CreateGroupOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *CreateGroupOperation) Name() string
- func (op *CreateGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, error)
- func (op *CreateGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, error)
- type CreateImportDataFileOperation
- func (op *CreateImportDataFileOperation) Done() bool
- func (op *CreateImportDataFileOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *CreateImportDataFileOperation) Name() string
- func (op *CreateImportDataFileOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportDataFile, error)
- func (op *CreateImportDataFileOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportDataFile, error)
- type CreateImportJobOperation
- func (op *CreateImportJobOperation) Done() bool
- func (op *CreateImportJobOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *CreateImportJobOperation) Name() string
- func (op *CreateImportJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportJob, error)
- func (op *CreateImportJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportJob, error)
- type CreatePreferenceSetOperation
- func (op *CreatePreferenceSetOperation) Done() bool
- func (op *CreatePreferenceSetOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *CreatePreferenceSetOperation) Name() string
- func (op *CreatePreferenceSetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.PreferenceSet, error)
- func (op *CreatePreferenceSetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.PreferenceSet, error)
- type CreateReportConfigOperation
- func (op *CreateReportConfigOperation) Done() bool
- func (op *CreateReportConfigOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *CreateReportConfigOperation) Name() string
- func (op *CreateReportConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ReportConfig, error)
- func (op *CreateReportConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ReportConfig, error)
- type CreateReportOperation
- func (op *CreateReportOperation) Done() bool
- func (op *CreateReportOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *CreateReportOperation) Name() string
- func (op *CreateReportOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Report, error)
- func (op *CreateReportOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Report, error)
- type CreateSourceOperation
- func (op *CreateSourceOperation) Done() bool
- func (op *CreateSourceOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *CreateSourceOperation) Name() string
- func (op *CreateSourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Source, error)
- func (op *CreateSourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Source, error)
- type DeleteGroupOperation
- func (op *DeleteGroupOperation) Done() bool
- func (op *DeleteGroupOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *DeleteGroupOperation) Name() string
- func (op *DeleteGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteImportDataFileOperation
- func (op *DeleteImportDataFileOperation) Done() bool
- func (op *DeleteImportDataFileOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *DeleteImportDataFileOperation) Name() string
- func (op *DeleteImportDataFileOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteImportDataFileOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteImportJobOperation
- func (op *DeleteImportJobOperation) Done() bool
- func (op *DeleteImportJobOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *DeleteImportJobOperation) Name() string
- func (op *DeleteImportJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteImportJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeletePreferenceSetOperation
- func (op *DeletePreferenceSetOperation) Done() bool
- func (op *DeletePreferenceSetOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *DeletePreferenceSetOperation) Name() string
- func (op *DeletePreferenceSetOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeletePreferenceSetOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteReportConfigOperation
- func (op *DeleteReportConfigOperation) Done() bool
- func (op *DeleteReportConfigOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *DeleteReportConfigOperation) Name() string
- func (op *DeleteReportConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteReportConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteReportOperation
- func (op *DeleteReportOperation) Done() bool
- func (op *DeleteReportOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *DeleteReportOperation) Name() string
- func (op *DeleteReportOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteReportOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteSourceOperation
- func (op *DeleteSourceOperation) Done() bool
- func (op *DeleteSourceOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *DeleteSourceOperation) Name() string
- func (op *DeleteSourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteSourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type ErrorFrameIterator
- type GroupIterator
- type ImportDataFileIterator
- type ImportJobIterator
- type LocationIterator
- type OperationIterator
- type PreferenceSetIterator
- type RemoveAssetsFromGroupOperation
- func (op *RemoveAssetsFromGroupOperation) Done() bool
- func (op *RemoveAssetsFromGroupOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *RemoveAssetsFromGroupOperation) Name() string
- func (op *RemoveAssetsFromGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, error)
- func (op *RemoveAssetsFromGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, error)
- type ReportConfigIterator
- type ReportIterator
- type RunImportJobOperation
- func (op *RunImportJobOperation) Done() bool
- func (op *RunImportJobOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *RunImportJobOperation) Name() string
- func (op *RunImportJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *RunImportJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type SourceIterator
- type UpdateGroupOperation
- func (op *UpdateGroupOperation) Done() bool
- func (op *UpdateGroupOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *UpdateGroupOperation) Name() string
- func (op *UpdateGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, error)
- func (op *UpdateGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, error)
- type UpdateImportJobOperation
- func (op *UpdateImportJobOperation) Done() bool
- func (op *UpdateImportJobOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *UpdateImportJobOperation) Name() string
- func (op *UpdateImportJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportJob, error)
- func (op *UpdateImportJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportJob, error)
- type UpdatePreferenceSetOperation
- func (op *UpdatePreferenceSetOperation) Done() bool
- func (op *UpdatePreferenceSetOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *UpdatePreferenceSetOperation) Name() string
- func (op *UpdatePreferenceSetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.PreferenceSet, error)
- func (op *UpdatePreferenceSetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.PreferenceSet, error)
- type UpdateSettingsOperation
- func (op *UpdateSettingsOperation) Done() bool
- func (op *UpdateSettingsOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *UpdateSettingsOperation) Name() string
- func (op *UpdateSettingsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Settings, error)
- func (op *UpdateSettingsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Settings, error)
- type UpdateSourceOperation
- func (op *UpdateSourceOperation) Done() bool
- func (op *UpdateSourceOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *UpdateSourceOperation) Name() string
- func (op *UpdateSourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Source, error)
- func (op *UpdateSourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Source, error)
- type ValidateImportJobOperation
- func (op *ValidateImportJobOperation) Done() bool
- func (op *ValidateImportJobOperation) Metadata() (*migrationcenterpb.OperationMetadata, error)
- func (op *ValidateImportJobOperation) Name() string
- func (op *ValidateImportJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *ValidateImportJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Examples ¶
- Client.AddAssetsToGroup
- Client.AggregateAssetsValues
- Client.BatchDeleteAssets
- Client.BatchUpdateAssets
- Client.CancelOperation
- Client.CreateGroup
- Client.CreateImportDataFile
- Client.CreateImportJob
- Client.CreatePreferenceSet
- Client.CreateReport
- Client.CreateReportConfig
- Client.CreateSource
- Client.DeleteAsset
- Client.DeleteGroup
- Client.DeleteImportDataFile
- Client.DeleteImportJob
- Client.DeleteOperation
- Client.DeletePreferenceSet
- Client.DeleteReport
- Client.DeleteReportConfig
- Client.DeleteSource
- Client.GetAsset
- Client.GetErrorFrame
- Client.GetGroup
- Client.GetImportDataFile
- Client.GetImportJob
- Client.GetLocation
- Client.GetOperation
- Client.GetPreferenceSet
- Client.GetReport
- Client.GetReportConfig
- Client.GetSettings
- Client.GetSource
- Client.ListAssets
- Client.ListAssets (All)
- Client.ListErrorFrames
- Client.ListErrorFrames (All)
- Client.ListGroups
- Client.ListGroups (All)
- Client.ListImportDataFiles
- Client.ListImportDataFiles (All)
- Client.ListImportJobs
- Client.ListImportJobs (All)
- Client.ListLocations
- Client.ListLocations (All)
- Client.ListOperations
- Client.ListOperations (All)
- Client.ListPreferenceSets
- Client.ListPreferenceSets (All)
- Client.ListReportConfigs
- Client.ListReportConfigs (All)
- Client.ListReports
- Client.ListReports (All)
- Client.ListSources
- Client.ListSources (All)
- Client.RemoveAssetsFromGroup
- Client.ReportAssetFrames
- Client.RunImportJob
- Client.UpdateAsset
- Client.UpdateGroup
- Client.UpdateImportJob
- Client.UpdatePreferenceSet
- Client.UpdateSettings
- Client.UpdateSource
- Client.ValidateImportJob
- NewClient
- NewRESTClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Types ¶
type AddAssetsToGroupOperation ¶
type AddAssetsToGroupOperation struct {
// contains filtered or unexported fields
}
AddAssetsToGroupOperation manages a long-running operation from AddAssetsToGroup.
func (*AddAssetsToGroupOperation) Done ¶
func (op *AddAssetsToGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*AddAssetsToGroupOperation) Metadata ¶
func (op *AddAssetsToGroupOperation) Metadata() (*migrationcenterpb.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 (*AddAssetsToGroupOperation) Name ¶
func (op *AddAssetsToGroupOperation) 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 (*AddAssetsToGroupOperation) Poll ¶
func (op *AddAssetsToGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, 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 (*AddAssetsToGroupOperation) Wait ¶
func (op *AddAssetsToGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, 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 AssetIterator ¶
type AssetIterator 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 []*migrationcenterpb.Asset, nextPageToken string, err error) // contains filtered or unexported fields }
AssetIterator manages a stream of *migrationcenterpb.Asset.
func (*AssetIterator) All ¶ added in v1.1.0
func (it *AssetIterator) All() iter.Seq2[*migrationcenterpb.Asset, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AssetIterator) Next ¶
func (it *AssetIterator) Next() (*migrationcenterpb.Asset, 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 (*AssetIterator) PageInfo ¶
func (it *AssetIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CallOptions ¶
type CallOptions struct { ListAssets []gax.CallOption GetAsset []gax.CallOption UpdateAsset []gax.CallOption BatchUpdateAssets []gax.CallOption DeleteAsset []gax.CallOption BatchDeleteAssets []gax.CallOption ReportAssetFrames []gax.CallOption AggregateAssetsValues []gax.CallOption CreateImportJob []gax.CallOption ListImportJobs []gax.CallOption GetImportJob []gax.CallOption DeleteImportJob []gax.CallOption UpdateImportJob []gax.CallOption ValidateImportJob []gax.CallOption RunImportJob []gax.CallOption GetImportDataFile []gax.CallOption ListImportDataFiles []gax.CallOption CreateImportDataFile []gax.CallOption DeleteImportDataFile []gax.CallOption ListGroups []gax.CallOption GetGroup []gax.CallOption CreateGroup []gax.CallOption UpdateGroup []gax.CallOption DeleteGroup []gax.CallOption AddAssetsToGroup []gax.CallOption RemoveAssetsFromGroup []gax.CallOption ListErrorFrames []gax.CallOption GetErrorFrame []gax.CallOption ListSources []gax.CallOption GetSource []gax.CallOption CreateSource []gax.CallOption UpdateSource []gax.CallOption DeleteSource []gax.CallOption ListPreferenceSets []gax.CallOption GetPreferenceSet []gax.CallOption CreatePreferenceSet []gax.CallOption UpdatePreferenceSet []gax.CallOption DeletePreferenceSet []gax.CallOption GetSettings []gax.CallOption UpdateSettings []gax.CallOption CreateReportConfig []gax.CallOption GetReportConfig []gax.CallOption ListReportConfigs []gax.CallOption DeleteReportConfig []gax.CallOption CreateReport []gax.CallOption GetReport []gax.CallOption ListReports []gax.CallOption DeleteReport []gax.CallOption GetLocation []gax.CallOption ListLocations []gax.CallOption CancelOperation []gax.CallOption DeleteOperation []gax.CallOption GetOperation []gax.CallOption ListOperations []gax.CallOption }
CallOptions contains the retry settings for each method of Client.
type Client ¶
type Client struct { // The call options for this service. CallOptions *CallOptions // LROClient is used internally to handle long-running operations. // It is exposed so that its CallOptions can be modified if required. // Users should not Close this client. LROClient *lroauto.OperationsClient // contains filtered or unexported fields }
Client is a client for interacting with Migration Center API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Service describing handlers for resources.
func NewClient ¶
NewClient creates a new migration center client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Service describing handlers for resources.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func NewRESTClient ¶
NewRESTClient creates a new migration center rest client.
Service describing handlers for resources.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/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 := migrationcenter.NewRESTClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func (*Client) AddAssetsToGroup ¶
func (c *Client) AddAssetsToGroup(ctx context.Context, req *migrationcenterpb.AddAssetsToGroupRequest, opts ...gax.CallOption) (*AddAssetsToGroupOperation, error)
AddAssetsToGroup adds assets to a group.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.AddAssetsToGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#AddAssetsToGroupRequest. } op, err := c.AddAssetsToGroup(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) AddAssetsToGroupOperation ¶
func (c *Client) AddAssetsToGroupOperation(name string) *AddAssetsToGroupOperation
AddAssetsToGroupOperation returns a new AddAssetsToGroupOperation from a given name. The name must be that of a previously created AddAssetsToGroupOperation, possibly from a different process.
func (*Client) AggregateAssetsValues ¶
func (c *Client) AggregateAssetsValues(ctx context.Context, req *migrationcenterpb.AggregateAssetsValuesRequest, opts ...gax.CallOption) (*migrationcenterpb.AggregateAssetsValuesResponse, error)
AggregateAssetsValues aggregates the requested fields based on provided function.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.AggregateAssetsValuesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#AggregateAssetsValuesRequest. } resp, err := c.AggregateAssetsValues(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) BatchDeleteAssets ¶
func (c *Client) BatchDeleteAssets(ctx context.Context, req *migrationcenterpb.BatchDeleteAssetsRequest, opts ...gax.CallOption) error
BatchDeleteAssets deletes list of Assets.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.BatchDeleteAssetsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#BatchDeleteAssetsRequest. } err = c.BatchDeleteAssets(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) BatchUpdateAssets ¶
func (c *Client) BatchUpdateAssets(ctx context.Context, req *migrationcenterpb.BatchUpdateAssetsRequest, opts ...gax.CallOption) (*migrationcenterpb.BatchUpdateAssetsResponse, error)
BatchUpdateAssets updates the parameters of a list of assets.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.BatchUpdateAssetsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#BatchUpdateAssetsRequest. } resp, err := c.BatchUpdateAssets(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CancelOperation ¶
func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" migrationcenter "cloud.google.com/go/migrationcenter/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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.CancelOperationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest. } err = c.CancelOperation(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) Close ¶
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*Client) Connection
deprecated
func (c *Client) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*Client) CreateGroup ¶
func (c *Client) CreateGroup(ctx context.Context, req *migrationcenterpb.CreateGroupRequest, opts ...gax.CallOption) (*CreateGroupOperation, error)
CreateGroup creates a new group in a given project and location.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.CreateGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#CreateGroupRequest. } op, err := c.CreateGroup(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CreateGroupOperation ¶
func (c *Client) CreateGroupOperation(name string) *CreateGroupOperation
CreateGroupOperation returns a new CreateGroupOperation from a given name. The name must be that of a previously created CreateGroupOperation, possibly from a different process.
func (*Client) CreateImportDataFile ¶
func (c *Client) CreateImportDataFile(ctx context.Context, req *migrationcenterpb.CreateImportDataFileRequest, opts ...gax.CallOption) (*CreateImportDataFileOperation, error)
CreateImportDataFile creates an import data file.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.CreateImportDataFileRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#CreateImportDataFileRequest. } op, err := c.CreateImportDataFile(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CreateImportDataFileOperation ¶
func (c *Client) CreateImportDataFileOperation(name string) *CreateImportDataFileOperation
CreateImportDataFileOperation returns a new CreateImportDataFileOperation from a given name. The name must be that of a previously created CreateImportDataFileOperation, possibly from a different process.
func (*Client) CreateImportJob ¶
func (c *Client) CreateImportJob(ctx context.Context, req *migrationcenterpb.CreateImportJobRequest, opts ...gax.CallOption) (*CreateImportJobOperation, error)
CreateImportJob creates an import job.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.CreateImportJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#CreateImportJobRequest. } op, err := c.CreateImportJob(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CreateImportJobOperation ¶
func (c *Client) CreateImportJobOperation(name string) *CreateImportJobOperation
CreateImportJobOperation returns a new CreateImportJobOperation from a given name. The name must be that of a previously created CreateImportJobOperation, possibly from a different process.
func (*Client) CreatePreferenceSet ¶
func (c *Client) CreatePreferenceSet(ctx context.Context, req *migrationcenterpb.CreatePreferenceSetRequest, opts ...gax.CallOption) (*CreatePreferenceSetOperation, error)
CreatePreferenceSet creates a new preference set in a given project and location.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.CreatePreferenceSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#CreatePreferenceSetRequest. } op, err := c.CreatePreferenceSet(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CreatePreferenceSetOperation ¶
func (c *Client) CreatePreferenceSetOperation(name string) *CreatePreferenceSetOperation
CreatePreferenceSetOperation returns a new CreatePreferenceSetOperation from a given name. The name must be that of a previously created CreatePreferenceSetOperation, possibly from a different process.
func (*Client) CreateReport ¶
func (c *Client) CreateReport(ctx context.Context, req *migrationcenterpb.CreateReportRequest, opts ...gax.CallOption) (*CreateReportOperation, error)
CreateReport creates a report.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.CreateReportRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#CreateReportRequest. } op, err := c.CreateReport(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CreateReportConfig ¶
func (c *Client) CreateReportConfig(ctx context.Context, req *migrationcenterpb.CreateReportConfigRequest, opts ...gax.CallOption) (*CreateReportConfigOperation, error)
CreateReportConfig creates a report configuration.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.CreateReportConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#CreateReportConfigRequest. } op, err := c.CreateReportConfig(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CreateReportConfigOperation ¶
func (c *Client) CreateReportConfigOperation(name string) *CreateReportConfigOperation
CreateReportConfigOperation returns a new CreateReportConfigOperation from a given name. The name must be that of a previously created CreateReportConfigOperation, possibly from a different process.
func (*Client) CreateReportOperation ¶
func (c *Client) CreateReportOperation(name string) *CreateReportOperation
CreateReportOperation returns a new CreateReportOperation from a given name. The name must be that of a previously created CreateReportOperation, possibly from a different process.
func (*Client) CreateSource ¶
func (c *Client) CreateSource(ctx context.Context, req *migrationcenterpb.CreateSourceRequest, opts ...gax.CallOption) (*CreateSourceOperation, error)
CreateSource creates a new source in a given project and location.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.CreateSourceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#CreateSourceRequest. } op, err := c.CreateSource(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) CreateSourceOperation ¶
func (c *Client) CreateSourceOperation(name string) *CreateSourceOperation
CreateSourceOperation returns a new CreateSourceOperation from a given name. The name must be that of a previously created CreateSourceOperation, possibly from a different process.
func (*Client) DeleteAsset ¶
func (c *Client) DeleteAsset(ctx context.Context, req *migrationcenterpb.DeleteAssetRequest, opts ...gax.CallOption) error
DeleteAsset deletes an asset.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.DeleteAssetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#DeleteAssetRequest. } err = c.DeleteAsset(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeleteGroup ¶
func (c *Client) DeleteGroup(ctx context.Context, req *migrationcenterpb.DeleteGroupRequest, opts ...gax.CallOption) (*DeleteGroupOperation, error)
DeleteGroup deletes a group.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.DeleteGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#DeleteGroupRequest. } op, err := c.DeleteGroup(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeleteGroupOperation ¶
func (c *Client) DeleteGroupOperation(name string) *DeleteGroupOperation
DeleteGroupOperation returns a new DeleteGroupOperation from a given name. The name must be that of a previously created DeleteGroupOperation, possibly from a different process.
func (*Client) DeleteImportDataFile ¶
func (c *Client) DeleteImportDataFile(ctx context.Context, req *migrationcenterpb.DeleteImportDataFileRequest, opts ...gax.CallOption) (*DeleteImportDataFileOperation, error)
DeleteImportDataFile delete an import data file.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.DeleteImportDataFileRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#DeleteImportDataFileRequest. } op, err := c.DeleteImportDataFile(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeleteImportDataFileOperation ¶
func (c *Client) DeleteImportDataFileOperation(name string) *DeleteImportDataFileOperation
DeleteImportDataFileOperation returns a new DeleteImportDataFileOperation from a given name. The name must be that of a previously created DeleteImportDataFileOperation, possibly from a different process.
func (*Client) DeleteImportJob ¶
func (c *Client) DeleteImportJob(ctx context.Context, req *migrationcenterpb.DeleteImportJobRequest, opts ...gax.CallOption) (*DeleteImportJobOperation, error)
DeleteImportJob deletes an import job.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.DeleteImportJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#DeleteImportJobRequest. } op, err := c.DeleteImportJob(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeleteImportJobOperation ¶
func (c *Client) DeleteImportJobOperation(name string) *DeleteImportJobOperation
DeleteImportJobOperation returns a new DeleteImportJobOperation from a given name. The name must be that of a previously created DeleteImportJobOperation, possibly from a different process.
func (*Client) DeleteOperation ¶
func (c *Client) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" migrationcenter "cloud.google.com/go/migrationcenter/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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.DeleteOperationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest. } err = c.DeleteOperation(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeletePreferenceSet ¶
func (c *Client) DeletePreferenceSet(ctx context.Context, req *migrationcenterpb.DeletePreferenceSetRequest, opts ...gax.CallOption) (*DeletePreferenceSetOperation, error)
DeletePreferenceSet deletes a preference set.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.DeletePreferenceSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#DeletePreferenceSetRequest. } op, err := c.DeletePreferenceSet(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeletePreferenceSetOperation ¶
func (c *Client) DeletePreferenceSetOperation(name string) *DeletePreferenceSetOperation
DeletePreferenceSetOperation returns a new DeletePreferenceSetOperation from a given name. The name must be that of a previously created DeletePreferenceSetOperation, possibly from a different process.
func (*Client) DeleteReport ¶
func (c *Client) DeleteReport(ctx context.Context, req *migrationcenterpb.DeleteReportRequest, opts ...gax.CallOption) (*DeleteReportOperation, error)
DeleteReport deletes a Report.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.DeleteReportRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#DeleteReportRequest. } op, err := c.DeleteReport(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeleteReportConfig ¶
func (c *Client) DeleteReportConfig(ctx context.Context, req *migrationcenterpb.DeleteReportConfigRequest, opts ...gax.CallOption) (*DeleteReportConfigOperation, error)
DeleteReportConfig deletes a ReportConfig.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.DeleteReportConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#DeleteReportConfigRequest. } op, err := c.DeleteReportConfig(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeleteReportConfigOperation ¶
func (c *Client) DeleteReportConfigOperation(name string) *DeleteReportConfigOperation
DeleteReportConfigOperation returns a new DeleteReportConfigOperation from a given name. The name must be that of a previously created DeleteReportConfigOperation, possibly from a different process.
func (*Client) DeleteReportOperation ¶
func (c *Client) DeleteReportOperation(name string) *DeleteReportOperation
DeleteReportOperation returns a new DeleteReportOperation from a given name. The name must be that of a previously created DeleteReportOperation, possibly from a different process.
func (*Client) DeleteSource ¶
func (c *Client) DeleteSource(ctx context.Context, req *migrationcenterpb.DeleteSourceRequest, opts ...gax.CallOption) (*DeleteSourceOperation, error)
DeleteSource deletes a source.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.DeleteSourceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#DeleteSourceRequest. } op, err := c.DeleteSource(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) DeleteSourceOperation ¶
func (c *Client) DeleteSourceOperation(name string) *DeleteSourceOperation
DeleteSourceOperation returns a new DeleteSourceOperation from a given name. The name must be that of a previously created DeleteSourceOperation, possibly from a different process.
func (*Client) GetAsset ¶
func (c *Client) GetAsset(ctx context.Context, req *migrationcenterpb.GetAssetRequest, opts ...gax.CallOption) (*migrationcenterpb.Asset, error)
GetAsset gets the details of an asset.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.GetAssetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#GetAssetRequest. } resp, err := c.GetAsset(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetErrorFrame ¶
func (c *Client) GetErrorFrame(ctx context.Context, req *migrationcenterpb.GetErrorFrameRequest, opts ...gax.CallOption) (*migrationcenterpb.ErrorFrame, error)
GetErrorFrame gets the details of an error frame.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.GetErrorFrameRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#GetErrorFrameRequest. } resp, err := c.GetErrorFrame(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetGroup ¶
func (c *Client) GetGroup(ctx context.Context, req *migrationcenterpb.GetGroupRequest, opts ...gax.CallOption) (*migrationcenterpb.Group, error)
GetGroup gets the details of a group.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.GetGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#GetGroupRequest. } resp, err := c.GetGroup(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetImportDataFile ¶
func (c *Client) GetImportDataFile(ctx context.Context, req *migrationcenterpb.GetImportDataFileRequest, opts ...gax.CallOption) (*migrationcenterpb.ImportDataFile, error)
GetImportDataFile gets an import data file.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.GetImportDataFileRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#GetImportDataFileRequest. } resp, err := c.GetImportDataFile(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetImportJob ¶
func (c *Client) GetImportJob(ctx context.Context, req *migrationcenterpb.GetImportJobRequest, opts ...gax.CallOption) (*migrationcenterpb.ImportJob, error)
GetImportJob gets the details of an import job.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.GetImportJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#GetImportJobRequest. } resp, err := c.GetImportJob(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetLocation ¶
func (c *Client) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &locationpb.GetLocationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. } resp, err := c.GetLocation(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetOperation ¶
func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" migrationcenter "cloud.google.com/go/migrationcenter/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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.GetOperationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest. } resp, err := c.GetOperation(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetPreferenceSet ¶
func (c *Client) GetPreferenceSet(ctx context.Context, req *migrationcenterpb.GetPreferenceSetRequest, opts ...gax.CallOption) (*migrationcenterpb.PreferenceSet, error)
GetPreferenceSet gets the details of a preference set.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.GetPreferenceSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#GetPreferenceSetRequest. } resp, err := c.GetPreferenceSet(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetReport ¶
func (c *Client) GetReport(ctx context.Context, req *migrationcenterpb.GetReportRequest, opts ...gax.CallOption) (*migrationcenterpb.Report, error)
GetReport gets details of a single Report.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.GetReportRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#GetReportRequest. } resp, err := c.GetReport(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetReportConfig ¶
func (c *Client) GetReportConfig(ctx context.Context, req *migrationcenterpb.GetReportConfigRequest, opts ...gax.CallOption) (*migrationcenterpb.ReportConfig, error)
GetReportConfig gets details of a single ReportConfig.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.GetReportConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#GetReportConfigRequest. } resp, err := c.GetReportConfig(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetSettings ¶
func (c *Client) GetSettings(ctx context.Context, req *migrationcenterpb.GetSettingsRequest, opts ...gax.CallOption) (*migrationcenterpb.Settings, error)
GetSettings gets the details of regional settings.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.GetSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#GetSettingsRequest. } resp, err := c.GetSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) GetSource ¶
func (c *Client) GetSource(ctx context.Context, req *migrationcenterpb.GetSourceRequest, opts ...gax.CallOption) (*migrationcenterpb.Source, error)
GetSource gets the details of a source.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.GetSourceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#GetSourceRequest. } resp, err := c.GetSource(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) ListAssets ¶
func (c *Client) ListAssets(ctx context.Context, req *migrationcenterpb.ListAssetsRequest, opts ...gax.CallOption) *AssetIterator
ListAssets lists all the assets in a given project and location.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" "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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListAssetsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListAssetsRequest. } it := c.ListAssets(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.(*migrationcenterpb.ListAssetsResponse) } }
Output:
Example (All) ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListAssetsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListAssetsRequest. } for resp, err := range c.ListAssets(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListErrorFrames ¶
func (c *Client) ListErrorFrames(ctx context.Context, req *migrationcenterpb.ListErrorFramesRequest, opts ...gax.CallOption) *ErrorFrameIterator
ListErrorFrames lists all error frames in a given source and location.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" "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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListErrorFramesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListErrorFramesRequest. } it := c.ListErrorFrames(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.(*migrationcenterpb.ListErrorFramesResponse) } }
Output:
Example (All) ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListErrorFramesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListErrorFramesRequest. } for resp, err := range c.ListErrorFrames(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListGroups ¶
func (c *Client) ListGroups(ctx context.Context, req *migrationcenterpb.ListGroupsRequest, opts ...gax.CallOption) *GroupIterator
ListGroups lists all groups in a given project and location.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" "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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListGroupsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListGroupsRequest. } it := c.ListGroups(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.(*migrationcenterpb.ListGroupsResponse) } }
Output:
Example (All) ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListGroupsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListGroupsRequest. } for resp, err := range c.ListGroups(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListImportDataFiles ¶
func (c *Client) ListImportDataFiles(ctx context.Context, req *migrationcenterpb.ListImportDataFilesRequest, opts ...gax.CallOption) *ImportDataFileIterator
ListImportDataFiles list import data files.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" "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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListImportDataFilesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListImportDataFilesRequest. } it := c.ListImportDataFiles(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.(*migrationcenterpb.ListImportDataFilesResponse) } }
Output:
Example (All) ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListImportDataFilesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListImportDataFilesRequest. } for resp, err := range c.ListImportDataFiles(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListImportJobs ¶
func (c *Client) ListImportJobs(ctx context.Context, req *migrationcenterpb.ListImportJobsRequest, opts ...gax.CallOption) *ImportJobIterator
ListImportJobs lists all import jobs.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" "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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListImportJobsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListImportJobsRequest. } it := c.ListImportJobs(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.(*migrationcenterpb.ListImportJobsResponse) } }
Output:
Example (All) ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListImportJobsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListImportJobsRequest. } for resp, err := range c.ListImportJobs(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListLocations ¶
func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &locationpb.ListLocationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. } it := c.ListLocations(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*locationpb.ListLocationsResponse) } }
Output:
Example (All) ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &locationpb.ListLocationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. } for resp, err := range c.ListLocations(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListOperations ¶
func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.ListOperationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest. } it := c.ListOperations(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*longrunningpb.ListOperationsResponse) } }
Output:
Example (All) ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" migrationcenter "cloud.google.com/go/migrationcenter/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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.ListOperationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest. } for resp, err := range c.ListOperations(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListPreferenceSets ¶
func (c *Client) ListPreferenceSets(ctx context.Context, req *migrationcenterpb.ListPreferenceSetsRequest, opts ...gax.CallOption) *PreferenceSetIterator
ListPreferenceSets lists all the preference sets in a given project and location.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" "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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListPreferenceSetsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListPreferenceSetsRequest. } it := c.ListPreferenceSets(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.(*migrationcenterpb.ListPreferenceSetsResponse) } }
Output:
Example (All) ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListPreferenceSetsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListPreferenceSetsRequest. } for resp, err := range c.ListPreferenceSets(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListReportConfigs ¶
func (c *Client) ListReportConfigs(ctx context.Context, req *migrationcenterpb.ListReportConfigsRequest, opts ...gax.CallOption) *ReportConfigIterator
ListReportConfigs lists ReportConfigs in a given project and location.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" "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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListReportConfigsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListReportConfigsRequest. } it := c.ListReportConfigs(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.(*migrationcenterpb.ListReportConfigsResponse) } }
Output:
Example (All) ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListReportConfigsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListReportConfigsRequest. } for resp, err := range c.ListReportConfigs(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListReports ¶
func (c *Client) ListReports(ctx context.Context, req *migrationcenterpb.ListReportsRequest, opts ...gax.CallOption) *ReportIterator
ListReports lists Reports in a given ReportConfig.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" "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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListReportsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListReportsRequest. } it := c.ListReports(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.(*migrationcenterpb.ListReportsResponse) } }
Output:
Example (All) ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListReportsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListReportsRequest. } for resp, err := range c.ListReports(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) ListSources ¶
func (c *Client) ListSources(ctx context.Context, req *migrationcenterpb.ListSourcesRequest, opts ...gax.CallOption) *SourceIterator
ListSources lists all the sources in a given project and location.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" "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 := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListSourcesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListSourcesRequest. } it := c.ListSources(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.(*migrationcenterpb.ListSourcesResponse) } }
Output:
Example (All) ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ListSourcesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ListSourcesRequest. } for resp, err := range c.ListSources(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*Client) RemoveAssetsFromGroup ¶
func (c *Client) RemoveAssetsFromGroup(ctx context.Context, req *migrationcenterpb.RemoveAssetsFromGroupRequest, opts ...gax.CallOption) (*RemoveAssetsFromGroupOperation, error)
RemoveAssetsFromGroup removes assets from a group.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.RemoveAssetsFromGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#RemoveAssetsFromGroupRequest. } op, err := c.RemoveAssetsFromGroup(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) RemoveAssetsFromGroupOperation ¶
func (c *Client) RemoveAssetsFromGroupOperation(name string) *RemoveAssetsFromGroupOperation
RemoveAssetsFromGroupOperation returns a new RemoveAssetsFromGroupOperation from a given name. The name must be that of a previously created RemoveAssetsFromGroupOperation, possibly from a different process.
func (*Client) ReportAssetFrames ¶
func (c *Client) ReportAssetFrames(ctx context.Context, req *migrationcenterpb.ReportAssetFramesRequest, opts ...gax.CallOption) (*migrationcenterpb.ReportAssetFramesResponse, error)
ReportAssetFrames reports a set of frames.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ReportAssetFramesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ReportAssetFramesRequest. } resp, err := c.ReportAssetFrames(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) RunImportJob ¶
func (c *Client) RunImportJob(ctx context.Context, req *migrationcenterpb.RunImportJobRequest, opts ...gax.CallOption) (*RunImportJobOperation, error)
RunImportJob runs an import job.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.RunImportJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#RunImportJobRequest. } op, err := c.RunImportJob(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) RunImportJobOperation ¶
func (c *Client) RunImportJobOperation(name string) *RunImportJobOperation
RunImportJobOperation returns a new RunImportJobOperation from a given name. The name must be that of a previously created RunImportJobOperation, possibly from a different process.
func (*Client) UpdateAsset ¶
func (c *Client) UpdateAsset(ctx context.Context, req *migrationcenterpb.UpdateAssetRequest, opts ...gax.CallOption) (*migrationcenterpb.Asset, error)
UpdateAsset updates the parameters of an asset.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.UpdateAssetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#UpdateAssetRequest. } resp, err := c.UpdateAsset(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) UpdateGroup ¶
func (c *Client) UpdateGroup(ctx context.Context, req *migrationcenterpb.UpdateGroupRequest, opts ...gax.CallOption) (*UpdateGroupOperation, error)
UpdateGroup updates the parameters of a group.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.UpdateGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#UpdateGroupRequest. } op, err := c.UpdateGroup(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) UpdateGroupOperation ¶
func (c *Client) UpdateGroupOperation(name string) *UpdateGroupOperation
UpdateGroupOperation returns a new UpdateGroupOperation from a given name. The name must be that of a previously created UpdateGroupOperation, possibly from a different process.
func (*Client) UpdateImportJob ¶
func (c *Client) UpdateImportJob(ctx context.Context, req *migrationcenterpb.UpdateImportJobRequest, opts ...gax.CallOption) (*UpdateImportJobOperation, error)
UpdateImportJob updates an import job.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.UpdateImportJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#UpdateImportJobRequest. } op, err := c.UpdateImportJob(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) UpdateImportJobOperation ¶
func (c *Client) UpdateImportJobOperation(name string) *UpdateImportJobOperation
UpdateImportJobOperation returns a new UpdateImportJobOperation from a given name. The name must be that of a previously created UpdateImportJobOperation, possibly from a different process.
func (*Client) UpdatePreferenceSet ¶
func (c *Client) UpdatePreferenceSet(ctx context.Context, req *migrationcenterpb.UpdatePreferenceSetRequest, opts ...gax.CallOption) (*UpdatePreferenceSetOperation, error)
UpdatePreferenceSet updates the parameters of a preference set.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.UpdatePreferenceSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#UpdatePreferenceSetRequest. } op, err := c.UpdatePreferenceSet(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) UpdatePreferenceSetOperation ¶
func (c *Client) UpdatePreferenceSetOperation(name string) *UpdatePreferenceSetOperation
UpdatePreferenceSetOperation returns a new UpdatePreferenceSetOperation from a given name. The name must be that of a previously created UpdatePreferenceSetOperation, possibly from a different process.
func (*Client) UpdateSettings ¶
func (c *Client) UpdateSettings(ctx context.Context, req *migrationcenterpb.UpdateSettingsRequest, opts ...gax.CallOption) (*UpdateSettingsOperation, error)
UpdateSettings updates the regional-level project settings.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.UpdateSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#UpdateSettingsRequest. } op, err := c.UpdateSettings(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) UpdateSettingsOperation ¶
func (c *Client) UpdateSettingsOperation(name string) *UpdateSettingsOperation
UpdateSettingsOperation returns a new UpdateSettingsOperation from a given name. The name must be that of a previously created UpdateSettingsOperation, possibly from a different process.
func (*Client) UpdateSource ¶
func (c *Client) UpdateSource(ctx context.Context, req *migrationcenterpb.UpdateSourceRequest, opts ...gax.CallOption) (*UpdateSourceOperation, error)
UpdateSource updates the parameters of a source.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.UpdateSourceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#UpdateSourceRequest. } op, err := c.UpdateSource(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*Client) UpdateSourceOperation ¶
func (c *Client) UpdateSourceOperation(name string) *UpdateSourceOperation
UpdateSourceOperation returns a new UpdateSourceOperation from a given name. The name must be that of a previously created UpdateSourceOperation, possibly from a different process.
func (*Client) ValidateImportJob ¶
func (c *Client) ValidateImportJob(ctx context.Context, req *migrationcenterpb.ValidateImportJobRequest, opts ...gax.CallOption) (*ValidateImportJobOperation, error)
ValidateImportJob validates an import job.
Example ¶
package main import ( "context" migrationcenter "cloud.google.com/go/migrationcenter/apiv1" migrationcenterpb "cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migrationcenter.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &migrationcenterpb.ValidateImportJobRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/migrationcenter/apiv1/migrationcenterpb#ValidateImportJobRequest. } op, err := c.ValidateImportJob(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*Client) ValidateImportJobOperation ¶
func (c *Client) ValidateImportJobOperation(name string) *ValidateImportJobOperation
ValidateImportJobOperation returns a new ValidateImportJobOperation from a given name. The name must be that of a previously created ValidateImportJobOperation, possibly from a different process.
type CreateGroupOperation ¶
type CreateGroupOperation struct {
// contains filtered or unexported fields
}
CreateGroupOperation manages a long-running operation from CreateGroup.
func (*CreateGroupOperation) Done ¶
func (op *CreateGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateGroupOperation) Metadata ¶
func (op *CreateGroupOperation) Metadata() (*migrationcenterpb.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 (*CreateGroupOperation) Name ¶
func (op *CreateGroupOperation) 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 (*CreateGroupOperation) Poll ¶
func (op *CreateGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, 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 (*CreateGroupOperation) Wait ¶
func (op *CreateGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, 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 CreateImportDataFileOperation ¶
type CreateImportDataFileOperation struct {
// contains filtered or unexported fields
}
CreateImportDataFileOperation manages a long-running operation from CreateImportDataFile.
func (*CreateImportDataFileOperation) Done ¶
func (op *CreateImportDataFileOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateImportDataFileOperation) Metadata ¶
func (op *CreateImportDataFileOperation) Metadata() (*migrationcenterpb.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 (*CreateImportDataFileOperation) Name ¶
func (op *CreateImportDataFileOperation) 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 (*CreateImportDataFileOperation) Poll ¶
func (op *CreateImportDataFileOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportDataFile, 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 (*CreateImportDataFileOperation) Wait ¶
func (op *CreateImportDataFileOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportDataFile, 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 CreateImportJobOperation ¶
type CreateImportJobOperation struct {
// contains filtered or unexported fields
}
CreateImportJobOperation manages a long-running operation from CreateImportJob.
func (*CreateImportJobOperation) Done ¶
func (op *CreateImportJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateImportJobOperation) Metadata ¶
func (op *CreateImportJobOperation) Metadata() (*migrationcenterpb.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 (*CreateImportJobOperation) Name ¶
func (op *CreateImportJobOperation) 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 (*CreateImportJobOperation) Poll ¶
func (op *CreateImportJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportJob, 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 (*CreateImportJobOperation) Wait ¶
func (op *CreateImportJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportJob, 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 CreatePreferenceSetOperation ¶
type CreatePreferenceSetOperation struct {
// contains filtered or unexported fields
}
CreatePreferenceSetOperation manages a long-running operation from CreatePreferenceSet.
func (*CreatePreferenceSetOperation) Done ¶
func (op *CreatePreferenceSetOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreatePreferenceSetOperation) Metadata ¶
func (op *CreatePreferenceSetOperation) Metadata() (*migrationcenterpb.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 (*CreatePreferenceSetOperation) Name ¶
func (op *CreatePreferenceSetOperation) 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 (*CreatePreferenceSetOperation) Poll ¶
func (op *CreatePreferenceSetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.PreferenceSet, 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 (*CreatePreferenceSetOperation) Wait ¶
func (op *CreatePreferenceSetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.PreferenceSet, 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 CreateReportConfigOperation ¶
type CreateReportConfigOperation struct {
// contains filtered or unexported fields
}
CreateReportConfigOperation manages a long-running operation from CreateReportConfig.
func (*CreateReportConfigOperation) Done ¶
func (op *CreateReportConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateReportConfigOperation) Metadata ¶
func (op *CreateReportConfigOperation) Metadata() (*migrationcenterpb.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 (*CreateReportConfigOperation) Name ¶
func (op *CreateReportConfigOperation) 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 (*CreateReportConfigOperation) Poll ¶
func (op *CreateReportConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ReportConfig, 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 (*CreateReportConfigOperation) Wait ¶
func (op *CreateReportConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ReportConfig, 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 CreateReportOperation ¶
type CreateReportOperation struct {
// contains filtered or unexported fields
}
CreateReportOperation manages a long-running operation from CreateReport.
func (*CreateReportOperation) Done ¶
func (op *CreateReportOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateReportOperation) Metadata ¶
func (op *CreateReportOperation) Metadata() (*migrationcenterpb.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 (*CreateReportOperation) Name ¶
func (op *CreateReportOperation) 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 (*CreateReportOperation) Poll ¶
func (op *CreateReportOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Report, 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 (*CreateReportOperation) Wait ¶
func (op *CreateReportOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Report, 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 CreateSourceOperation ¶
type CreateSourceOperation struct {
// contains filtered or unexported fields
}
CreateSourceOperation manages a long-running operation from CreateSource.
func (*CreateSourceOperation) Done ¶
func (op *CreateSourceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateSourceOperation) Metadata ¶
func (op *CreateSourceOperation) Metadata() (*migrationcenterpb.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 (*CreateSourceOperation) Name ¶
func (op *CreateSourceOperation) 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 (*CreateSourceOperation) Poll ¶
func (op *CreateSourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Source, 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 (*CreateSourceOperation) Wait ¶
func (op *CreateSourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Source, 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 DeleteGroupOperation ¶
type DeleteGroupOperation struct {
// contains filtered or unexported fields
}
DeleteGroupOperation manages a long-running operation from DeleteGroup.
func (*DeleteGroupOperation) Done ¶
func (op *DeleteGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteGroupOperation) Metadata ¶
func (op *DeleteGroupOperation) Metadata() (*migrationcenterpb.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 (*DeleteGroupOperation) Name ¶
func (op *DeleteGroupOperation) 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 (*DeleteGroupOperation) Poll ¶
func (op *DeleteGroupOperation) 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 (*DeleteGroupOperation) Wait ¶
func (op *DeleteGroupOperation) 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 DeleteImportDataFileOperation ¶
type DeleteImportDataFileOperation struct {
// contains filtered or unexported fields
}
DeleteImportDataFileOperation manages a long-running operation from DeleteImportDataFile.
func (*DeleteImportDataFileOperation) Done ¶
func (op *DeleteImportDataFileOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteImportDataFileOperation) Metadata ¶
func (op *DeleteImportDataFileOperation) Metadata() (*migrationcenterpb.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 (*DeleteImportDataFileOperation) Name ¶
func (op *DeleteImportDataFileOperation) 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 (*DeleteImportDataFileOperation) Poll ¶
func (op *DeleteImportDataFileOperation) 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 (*DeleteImportDataFileOperation) Wait ¶
func (op *DeleteImportDataFileOperation) 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 DeleteImportJobOperation ¶
type DeleteImportJobOperation struct {
// contains filtered or unexported fields
}
DeleteImportJobOperation manages a long-running operation from DeleteImportJob.
func (*DeleteImportJobOperation) Done ¶
func (op *DeleteImportJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteImportJobOperation) Metadata ¶
func (op *DeleteImportJobOperation) Metadata() (*migrationcenterpb.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 (*DeleteImportJobOperation) Name ¶
func (op *DeleteImportJobOperation) 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 (*DeleteImportJobOperation) Poll ¶
func (op *DeleteImportJobOperation) 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 (*DeleteImportJobOperation) Wait ¶
func (op *DeleteImportJobOperation) 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 DeletePreferenceSetOperation ¶
type DeletePreferenceSetOperation struct {
// contains filtered or unexported fields
}
DeletePreferenceSetOperation manages a long-running operation from DeletePreferenceSet.
func (*DeletePreferenceSetOperation) Done ¶
func (op *DeletePreferenceSetOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeletePreferenceSetOperation) Metadata ¶
func (op *DeletePreferenceSetOperation) Metadata() (*migrationcenterpb.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 (*DeletePreferenceSetOperation) Name ¶
func (op *DeletePreferenceSetOperation) 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 (*DeletePreferenceSetOperation) Poll ¶
func (op *DeletePreferenceSetOperation) 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 (*DeletePreferenceSetOperation) Wait ¶
func (op *DeletePreferenceSetOperation) 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 DeleteReportConfigOperation ¶
type DeleteReportConfigOperation struct {
// contains filtered or unexported fields
}
DeleteReportConfigOperation manages a long-running operation from DeleteReportConfig.
func (*DeleteReportConfigOperation) Done ¶
func (op *DeleteReportConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteReportConfigOperation) Metadata ¶
func (op *DeleteReportConfigOperation) Metadata() (*migrationcenterpb.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 (*DeleteReportConfigOperation) Name ¶
func (op *DeleteReportConfigOperation) 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 (*DeleteReportConfigOperation) Poll ¶
func (op *DeleteReportConfigOperation) 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 (*DeleteReportConfigOperation) Wait ¶
func (op *DeleteReportConfigOperation) 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 DeleteReportOperation ¶
type DeleteReportOperation struct {
// contains filtered or unexported fields
}
DeleteReportOperation manages a long-running operation from DeleteReport.
func (*DeleteReportOperation) Done ¶
func (op *DeleteReportOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteReportOperation) Metadata ¶
func (op *DeleteReportOperation) Metadata() (*migrationcenterpb.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 (*DeleteReportOperation) Name ¶
func (op *DeleteReportOperation) 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 (*DeleteReportOperation) Poll ¶
func (op *DeleteReportOperation) 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 (*DeleteReportOperation) Wait ¶
func (op *DeleteReportOperation) 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 DeleteSourceOperation ¶
type DeleteSourceOperation struct {
// contains filtered or unexported fields
}
DeleteSourceOperation manages a long-running operation from DeleteSource.
func (*DeleteSourceOperation) Done ¶
func (op *DeleteSourceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteSourceOperation) Metadata ¶
func (op *DeleteSourceOperation) Metadata() (*migrationcenterpb.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 (*DeleteSourceOperation) Name ¶
func (op *DeleteSourceOperation) 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 (*DeleteSourceOperation) Poll ¶
func (op *DeleteSourceOperation) 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 (*DeleteSourceOperation) Wait ¶
func (op *DeleteSourceOperation) 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 ErrorFrameIterator ¶
type ErrorFrameIterator 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 []*migrationcenterpb.ErrorFrame, nextPageToken string, err error) // contains filtered or unexported fields }
ErrorFrameIterator manages a stream of *migrationcenterpb.ErrorFrame.
func (*ErrorFrameIterator) All ¶ added in v1.1.0
func (it *ErrorFrameIterator) All() iter.Seq2[*migrationcenterpb.ErrorFrame, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ErrorFrameIterator) Next ¶
func (it *ErrorFrameIterator) Next() (*migrationcenterpb.ErrorFrame, 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 (*ErrorFrameIterator) PageInfo ¶
func (it *ErrorFrameIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type GroupIterator ¶
type GroupIterator 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 []*migrationcenterpb.Group, nextPageToken string, err error) // contains filtered or unexported fields }
GroupIterator manages a stream of *migrationcenterpb.Group.
func (*GroupIterator) All ¶ added in v1.1.0
func (it *GroupIterator) All() iter.Seq2[*migrationcenterpb.Group, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*GroupIterator) Next ¶
func (it *GroupIterator) Next() (*migrationcenterpb.Group, 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 (*GroupIterator) PageInfo ¶
func (it *GroupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ImportDataFileIterator ¶
type ImportDataFileIterator 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 []*migrationcenterpb.ImportDataFile, nextPageToken string, err error) // contains filtered or unexported fields }
ImportDataFileIterator manages a stream of *migrationcenterpb.ImportDataFile.
func (*ImportDataFileIterator) All ¶ added in v1.1.0
func (it *ImportDataFileIterator) All() iter.Seq2[*migrationcenterpb.ImportDataFile, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ImportDataFileIterator) Next ¶
func (it *ImportDataFileIterator) Next() (*migrationcenterpb.ImportDataFile, 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 (*ImportDataFileIterator) PageInfo ¶
func (it *ImportDataFileIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ImportJobIterator ¶
type ImportJobIterator 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 []*migrationcenterpb.ImportJob, nextPageToken string, err error) // contains filtered or unexported fields }
ImportJobIterator manages a stream of *migrationcenterpb.ImportJob.
func (*ImportJobIterator) All ¶ added in v1.1.0
func (it *ImportJobIterator) All() iter.Seq2[*migrationcenterpb.ImportJob, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ImportJobIterator) Next ¶
func (it *ImportJobIterator) Next() (*migrationcenterpb.ImportJob, 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 (*ImportJobIterator) PageInfo ¶
func (it *ImportJobIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type LocationIterator ¶
type LocationIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*locationpb.Location, nextPageToken string, err error) // contains filtered or unexported fields }
LocationIterator manages a stream of *locationpb.Location.
func (*LocationIterator) All ¶ added in v1.1.0
func (it *LocationIterator) All() iter.Seq2[*locationpb.Location, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*LocationIterator) Next ¶
func (it *LocationIterator) Next() (*locationpb.Location, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*LocationIterator) PageInfo ¶
func (it *LocationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type OperationIterator ¶
type OperationIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error) // contains filtered or unexported fields }
OperationIterator manages a stream of *longrunningpb.Operation.
func (*OperationIterator) All ¶ added in v1.1.0
func (it *OperationIterator) All() iter.Seq2[*longrunningpb.Operation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*OperationIterator) Next ¶
func (it *OperationIterator) Next() (*longrunningpb.Operation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*OperationIterator) PageInfo ¶
func (it *OperationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type PreferenceSetIterator ¶
type PreferenceSetIterator 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 []*migrationcenterpb.PreferenceSet, nextPageToken string, err error) // contains filtered or unexported fields }
PreferenceSetIterator manages a stream of *migrationcenterpb.PreferenceSet.
func (*PreferenceSetIterator) All ¶ added in v1.1.0
func (it *PreferenceSetIterator) All() iter.Seq2[*migrationcenterpb.PreferenceSet, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*PreferenceSetIterator) Next ¶
func (it *PreferenceSetIterator) Next() (*migrationcenterpb.PreferenceSet, 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 (*PreferenceSetIterator) PageInfo ¶
func (it *PreferenceSetIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type RemoveAssetsFromGroupOperation ¶
type RemoveAssetsFromGroupOperation struct {
// contains filtered or unexported fields
}
RemoveAssetsFromGroupOperation manages a long-running operation from RemoveAssetsFromGroup.
func (*RemoveAssetsFromGroupOperation) Done ¶
func (op *RemoveAssetsFromGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*RemoveAssetsFromGroupOperation) Metadata ¶
func (op *RemoveAssetsFromGroupOperation) Metadata() (*migrationcenterpb.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 (*RemoveAssetsFromGroupOperation) Name ¶
func (op *RemoveAssetsFromGroupOperation) 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 (*RemoveAssetsFromGroupOperation) Poll ¶
func (op *RemoveAssetsFromGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, 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 (*RemoveAssetsFromGroupOperation) Wait ¶
func (op *RemoveAssetsFromGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, 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 ReportConfigIterator ¶
type ReportConfigIterator 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 []*migrationcenterpb.ReportConfig, nextPageToken string, err error) // contains filtered or unexported fields }
ReportConfigIterator manages a stream of *migrationcenterpb.ReportConfig.
func (*ReportConfigIterator) All ¶ added in v1.1.0
func (it *ReportConfigIterator) All() iter.Seq2[*migrationcenterpb.ReportConfig, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ReportConfigIterator) Next ¶
func (it *ReportConfigIterator) Next() (*migrationcenterpb.ReportConfig, 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 (*ReportConfigIterator) PageInfo ¶
func (it *ReportConfigIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ReportIterator ¶
type ReportIterator 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 []*migrationcenterpb.Report, nextPageToken string, err error) // contains filtered or unexported fields }
ReportIterator manages a stream of *migrationcenterpb.Report.
func (*ReportIterator) All ¶ added in v1.1.0
func (it *ReportIterator) All() iter.Seq2[*migrationcenterpb.Report, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ReportIterator) Next ¶
func (it *ReportIterator) Next() (*migrationcenterpb.Report, 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 (*ReportIterator) PageInfo ¶
func (it *ReportIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type RunImportJobOperation ¶
type RunImportJobOperation struct {
// contains filtered or unexported fields
}
RunImportJobOperation manages a long-running operation from RunImportJob.
func (*RunImportJobOperation) Done ¶
func (op *RunImportJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*RunImportJobOperation) Metadata ¶
func (op *RunImportJobOperation) Metadata() (*migrationcenterpb.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 (*RunImportJobOperation) Name ¶
func (op *RunImportJobOperation) 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 (*RunImportJobOperation) Poll ¶
func (op *RunImportJobOperation) 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 (*RunImportJobOperation) Wait ¶
func (op *RunImportJobOperation) 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 SourceIterator ¶
type SourceIterator 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 []*migrationcenterpb.Source, nextPageToken string, err error) // contains filtered or unexported fields }
SourceIterator manages a stream of *migrationcenterpb.Source.
func (*SourceIterator) All ¶ added in v1.1.0
func (it *SourceIterator) All() iter.Seq2[*migrationcenterpb.Source, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SourceIterator) Next ¶
func (it *SourceIterator) Next() (*migrationcenterpb.Source, 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 (*SourceIterator) PageInfo ¶
func (it *SourceIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type UpdateGroupOperation ¶
type UpdateGroupOperation struct {
// contains filtered or unexported fields
}
UpdateGroupOperation manages a long-running operation from UpdateGroup.
func (*UpdateGroupOperation) Done ¶
func (op *UpdateGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateGroupOperation) Metadata ¶
func (op *UpdateGroupOperation) Metadata() (*migrationcenterpb.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 (*UpdateGroupOperation) Name ¶
func (op *UpdateGroupOperation) 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 (*UpdateGroupOperation) Poll ¶
func (op *UpdateGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, 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 (*UpdateGroupOperation) Wait ¶
func (op *UpdateGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Group, 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 UpdateImportJobOperation ¶
type UpdateImportJobOperation struct {
// contains filtered or unexported fields
}
UpdateImportJobOperation manages a long-running operation from UpdateImportJob.
func (*UpdateImportJobOperation) Done ¶
func (op *UpdateImportJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateImportJobOperation) Metadata ¶
func (op *UpdateImportJobOperation) Metadata() (*migrationcenterpb.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 (*UpdateImportJobOperation) Name ¶
func (op *UpdateImportJobOperation) 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 (*UpdateImportJobOperation) Poll ¶
func (op *UpdateImportJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportJob, 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 (*UpdateImportJobOperation) Wait ¶
func (op *UpdateImportJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.ImportJob, 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 UpdatePreferenceSetOperation ¶
type UpdatePreferenceSetOperation struct {
// contains filtered or unexported fields
}
UpdatePreferenceSetOperation manages a long-running operation from UpdatePreferenceSet.
func (*UpdatePreferenceSetOperation) Done ¶
func (op *UpdatePreferenceSetOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdatePreferenceSetOperation) Metadata ¶
func (op *UpdatePreferenceSetOperation) Metadata() (*migrationcenterpb.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 (*UpdatePreferenceSetOperation) Name ¶
func (op *UpdatePreferenceSetOperation) 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 (*UpdatePreferenceSetOperation) Poll ¶
func (op *UpdatePreferenceSetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.PreferenceSet, 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 (*UpdatePreferenceSetOperation) Wait ¶
func (op *UpdatePreferenceSetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.PreferenceSet, 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 UpdateSettingsOperation ¶
type UpdateSettingsOperation struct {
// contains filtered or unexported fields
}
UpdateSettingsOperation manages a long-running operation from UpdateSettings.
func (*UpdateSettingsOperation) Done ¶
func (op *UpdateSettingsOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateSettingsOperation) Metadata ¶
func (op *UpdateSettingsOperation) Metadata() (*migrationcenterpb.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 (*UpdateSettingsOperation) Name ¶
func (op *UpdateSettingsOperation) 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 (*UpdateSettingsOperation) Poll ¶
func (op *UpdateSettingsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Settings, 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 (*UpdateSettingsOperation) Wait ¶
func (op *UpdateSettingsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Settings, 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 UpdateSourceOperation ¶
type UpdateSourceOperation struct {
// contains filtered or unexported fields
}
UpdateSourceOperation manages a long-running operation from UpdateSource.
func (*UpdateSourceOperation) Done ¶
func (op *UpdateSourceOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateSourceOperation) Metadata ¶
func (op *UpdateSourceOperation) Metadata() (*migrationcenterpb.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 (*UpdateSourceOperation) Name ¶
func (op *UpdateSourceOperation) 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 (*UpdateSourceOperation) Poll ¶
func (op *UpdateSourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Source, 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 (*UpdateSourceOperation) Wait ¶
func (op *UpdateSourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*migrationcenterpb.Source, 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 ValidateImportJobOperation ¶
type ValidateImportJobOperation struct {
// contains filtered or unexported fields
}
ValidateImportJobOperation manages a long-running operation from ValidateImportJob.
func (*ValidateImportJobOperation) Done ¶
func (op *ValidateImportJobOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ValidateImportJobOperation) Metadata ¶
func (op *ValidateImportJobOperation) Metadata() (*migrationcenterpb.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 (*ValidateImportJobOperation) Name ¶
func (op *ValidateImportJobOperation) 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 (*ValidateImportJobOperation) Poll ¶
func (op *ValidateImportJobOperation) 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 (*ValidateImportJobOperation) Wait ¶
func (op *ValidateImportJobOperation) 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.