migration

package
v0.0.0-...-6cb3ea0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MigrationWorkflow_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "DRAFT",
		2: "RUNNING",
		3: "PAUSED",
		4: "COMPLETED",
	}
	MigrationWorkflow_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"DRAFT":             1,
		"RUNNING":           2,
		"PAUSED":            3,
		"COMPLETED":         4,
	}
)

Enum value maps for MigrationWorkflow_State.

View Source
var (
	MigrationTask_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "PENDING",
		2: "ORCHESTRATING",
		3: "RUNNING",
		4: "PAUSED",
		5: "SUCCEEDED",
		6: "FAILED",
	}
	MigrationTask_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"PENDING":           1,
		"ORCHESTRATING":     2,
		"RUNNING":           3,
		"PAUSED":            4,
		"SUCCEEDED":         5,
		"FAILED":            6,
	}
)

Enum value maps for MigrationTask_State.

View Source
var (
	MigrationSubtask_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "RUNNING",
		3: "SUCCEEDED",
		4: "FAILED",
	}
	MigrationSubtask_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"ACTIVE":            1,
		"RUNNING":           2,
		"SUCCEEDED":         3,
		"FAILED":            4,
	}
)

Enum value maps for MigrationSubtask_State.

View Source
var File_google_cloud_bigquery_migration_v2alpha_migration_entities_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_bigquery_migration_v2alpha_migration_error_details_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_bigquery_migration_v2alpha_migration_metrics_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_bigquery_migration_v2alpha_migration_service_proto protoreflect.FileDescriptor

Functions

func RegisterMigrationServiceServer

func RegisterMigrationServiceServer(s *grpc.Server, srv MigrationServiceServer)

Types

type CreateMigrationWorkflowRequest

type CreateMigrationWorkflowRequest struct {

	// Required. The name of the project to which this migration workflow belongs.
	// Example: `projects/foo/locations/bar`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The migration workflow to create.
	MigrationWorkflow *MigrationWorkflow `protobuf:"bytes,2,opt,name=migration_workflow,json=migrationWorkflow,proto3" json:"migration_workflow,omitempty"`
	// contains filtered or unexported fields
}

Request to create a migration workflow resource.

func (*CreateMigrationWorkflowRequest) Descriptor deprecated

func (*CreateMigrationWorkflowRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateMigrationWorkflowRequest.ProtoReflect.Descriptor instead.

func (*CreateMigrationWorkflowRequest) GetMigrationWorkflow

func (x *CreateMigrationWorkflowRequest) GetMigrationWorkflow() *MigrationWorkflow

func (*CreateMigrationWorkflowRequest) GetParent

func (x *CreateMigrationWorkflowRequest) GetParent() string

func (*CreateMigrationWorkflowRequest) ProtoMessage

func (*CreateMigrationWorkflowRequest) ProtoMessage()

func (*CreateMigrationWorkflowRequest) ProtoReflect

func (*CreateMigrationWorkflowRequest) Reset

func (x *CreateMigrationWorkflowRequest) Reset()

func (*CreateMigrationWorkflowRequest) String

type DeleteMigrationWorkflowRequest

type DeleteMigrationWorkflowRequest struct {

	// Required. The unique identifier for the migration workflow.
	// Example: `projects/123/locations/us/workflows/1234`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request to delete a previously created migration workflow.

func (*DeleteMigrationWorkflowRequest) Descriptor deprecated

func (*DeleteMigrationWorkflowRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteMigrationWorkflowRequest.ProtoReflect.Descriptor instead.

func (*DeleteMigrationWorkflowRequest) GetName

func (*DeleteMigrationWorkflowRequest) ProtoMessage

func (*DeleteMigrationWorkflowRequest) ProtoMessage()

func (*DeleteMigrationWorkflowRequest) ProtoReflect

func (*DeleteMigrationWorkflowRequest) Reset

func (x *DeleteMigrationWorkflowRequest) Reset()

func (*DeleteMigrationWorkflowRequest) String

type ErrorDetail

type ErrorDetail struct {

	// Optional. The exact location within the resource (if applicable).
	Location *ErrorLocation `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// Required. Describes the cause of the error with structured detail.
	ErrorInfo *errdetails.ErrorInfo `protobuf:"bytes,2,opt,name=error_info,json=errorInfo,proto3" json:"error_info,omitempty"`
	// contains filtered or unexported fields
}

Provides details for errors, e.g. issues that where encountered when processing a subtask.

func (*ErrorDetail) Descriptor deprecated

func (*ErrorDetail) Descriptor() ([]byte, []int)

Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead.

func (*ErrorDetail) GetErrorInfo

func (x *ErrorDetail) GetErrorInfo() *errdetails.ErrorInfo

func (*ErrorDetail) GetLocation

func (x *ErrorDetail) GetLocation() *ErrorLocation

func (*ErrorDetail) ProtoMessage

func (*ErrorDetail) ProtoMessage()

func (*ErrorDetail) ProtoReflect

func (x *ErrorDetail) ProtoReflect() protoreflect.Message

func (*ErrorDetail) Reset

func (x *ErrorDetail) Reset()

func (*ErrorDetail) String

func (x *ErrorDetail) String() string

type ErrorLocation

type ErrorLocation struct {

	// Optional. If applicable, denotes the line where the error occurred. A zero value
	// means that there is no line information.
	Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`
	// Optional. If applicable, denotes the column where the error occurred. A zero value
	// means that there is no columns information.
	Column int32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`
	// contains filtered or unexported fields
}

Holds information about where the error is located.

func (*ErrorLocation) Descriptor deprecated

func (*ErrorLocation) Descriptor() ([]byte, []int)

Deprecated: Use ErrorLocation.ProtoReflect.Descriptor instead.

func (*ErrorLocation) GetColumn

func (x *ErrorLocation) GetColumn() int32

func (*ErrorLocation) GetLine

func (x *ErrorLocation) GetLine() int32

func (*ErrorLocation) ProtoMessage

func (*ErrorLocation) ProtoMessage()

func (*ErrorLocation) ProtoReflect

func (x *ErrorLocation) ProtoReflect() protoreflect.Message

func (*ErrorLocation) Reset

func (x *ErrorLocation) Reset()

func (*ErrorLocation) String

func (x *ErrorLocation) String() string

type GetMigrationSubtaskRequest

type GetMigrationSubtaskRequest struct {

	// Required. The unique identifier for the migration subtask.
	// Example: `projects/123/locations/us/workflows/1234/subtasks/543`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. The list of fields to be retrieved.
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// contains filtered or unexported fields
}

A request to get a previously created migration subtasks.

func (*GetMigrationSubtaskRequest) Descriptor deprecated

func (*GetMigrationSubtaskRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMigrationSubtaskRequest.ProtoReflect.Descriptor instead.

func (*GetMigrationSubtaskRequest) GetName

func (x *GetMigrationSubtaskRequest) GetName() string

func (*GetMigrationSubtaskRequest) GetReadMask

func (*GetMigrationSubtaskRequest) ProtoMessage

func (*GetMigrationSubtaskRequest) ProtoMessage()

func (*GetMigrationSubtaskRequest) ProtoReflect

func (*GetMigrationSubtaskRequest) Reset

func (x *GetMigrationSubtaskRequest) Reset()

func (*GetMigrationSubtaskRequest) String

func (x *GetMigrationSubtaskRequest) String() string

type GetMigrationWorkflowRequest

type GetMigrationWorkflowRequest struct {

	// Required. The unique identifier for the migration workflow.
	// Example: `projects/123/locations/us/workflows/1234`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The list of fields to be retrieved.
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// contains filtered or unexported fields
}

A request to get a previously created migration workflow.

func (*GetMigrationWorkflowRequest) Descriptor deprecated

func (*GetMigrationWorkflowRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMigrationWorkflowRequest.ProtoReflect.Descriptor instead.

func (*GetMigrationWorkflowRequest) GetName

func (x *GetMigrationWorkflowRequest) GetName() string

func (*GetMigrationWorkflowRequest) GetReadMask

func (*GetMigrationWorkflowRequest) ProtoMessage

func (*GetMigrationWorkflowRequest) ProtoMessage()

func (*GetMigrationWorkflowRequest) ProtoReflect

func (*GetMigrationWorkflowRequest) Reset

func (x *GetMigrationWorkflowRequest) Reset()

func (*GetMigrationWorkflowRequest) String

func (x *GetMigrationWorkflowRequest) String() string

type ListMigrationSubtasksRequest

type ListMigrationSubtasksRequest struct {

	// Required. The migration task of the subtasks to list.
	// Example: `projects/123/locations/us/workflows/1234`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The list of fields to be retrieved.
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// Optional. The maximum number of migration tasks to return. The service may return
	// fewer than this number.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from previous `ListMigrationSubtasks` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListMigrationSubtasks`
	// must match the call that provided the page token.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. The filter to apply. This can be used to get the subtasks of a specific
	// tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
	// task ID (not the name in the named map).
	Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

A request to list previously created migration subtasks.

func (*ListMigrationSubtasksRequest) Descriptor deprecated

func (*ListMigrationSubtasksRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListMigrationSubtasksRequest.ProtoReflect.Descriptor instead.

func (*ListMigrationSubtasksRequest) GetFilter

func (x *ListMigrationSubtasksRequest) GetFilter() string

func (*ListMigrationSubtasksRequest) GetPageSize

func (x *ListMigrationSubtasksRequest) GetPageSize() int32

func (*ListMigrationSubtasksRequest) GetPageToken

func (x *ListMigrationSubtasksRequest) GetPageToken() string

func (*ListMigrationSubtasksRequest) GetParent

func (x *ListMigrationSubtasksRequest) GetParent() string

func (*ListMigrationSubtasksRequest) GetReadMask

func (*ListMigrationSubtasksRequest) ProtoMessage

func (*ListMigrationSubtasksRequest) ProtoMessage()

func (*ListMigrationSubtasksRequest) ProtoReflect

func (*ListMigrationSubtasksRequest) Reset

func (x *ListMigrationSubtasksRequest) Reset()

func (*ListMigrationSubtasksRequest) String

type ListMigrationSubtasksResponse

type ListMigrationSubtasksResponse struct {

	// The migration subtasks for the specified task.
	MigrationSubtasks []*MigrationSubtask `protobuf:"bytes,1,rep,name=migration_subtasks,json=migrationSubtasks,proto3" json:"migration_subtasks,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response object for a `ListMigrationSubtasks` call.

func (*ListMigrationSubtasksResponse) Descriptor deprecated

func (*ListMigrationSubtasksResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListMigrationSubtasksResponse.ProtoReflect.Descriptor instead.

func (*ListMigrationSubtasksResponse) GetMigrationSubtasks

func (x *ListMigrationSubtasksResponse) GetMigrationSubtasks() []*MigrationSubtask

func (*ListMigrationSubtasksResponse) GetNextPageToken

func (x *ListMigrationSubtasksResponse) GetNextPageToken() string

func (*ListMigrationSubtasksResponse) ProtoMessage

func (*ListMigrationSubtasksResponse) ProtoMessage()

func (*ListMigrationSubtasksResponse) ProtoReflect

func (*ListMigrationSubtasksResponse) Reset

func (x *ListMigrationSubtasksResponse) Reset()

func (*ListMigrationSubtasksResponse) String

type ListMigrationWorkflowsRequest

type ListMigrationWorkflowsRequest struct {

	// Required. The project and location of the migration workflows to list.
	// Example: `projects/123/locations/us`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The list of fields to be retrieved.
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"`
	// The maximum number of migration workflows to return. The service may return
	// fewer than this number.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from previous `ListMigrationWorkflows` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListMigrationWorkflows`
	// must match the call that provided the page token.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

A request to list previously created migration workflows.

func (*ListMigrationWorkflowsRequest) Descriptor deprecated

func (*ListMigrationWorkflowsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListMigrationWorkflowsRequest.ProtoReflect.Descriptor instead.

func (*ListMigrationWorkflowsRequest) GetPageSize

func (x *ListMigrationWorkflowsRequest) GetPageSize() int32

func (*ListMigrationWorkflowsRequest) GetPageToken

func (x *ListMigrationWorkflowsRequest) GetPageToken() string

func (*ListMigrationWorkflowsRequest) GetParent

func (x *ListMigrationWorkflowsRequest) GetParent() string

func (*ListMigrationWorkflowsRequest) GetReadMask

func (*ListMigrationWorkflowsRequest) ProtoMessage

func (*ListMigrationWorkflowsRequest) ProtoMessage()

func (*ListMigrationWorkflowsRequest) ProtoReflect

func (*ListMigrationWorkflowsRequest) Reset

func (x *ListMigrationWorkflowsRequest) Reset()

func (*ListMigrationWorkflowsRequest) String

type ListMigrationWorkflowsResponse

type ListMigrationWorkflowsResponse struct {

	// The migration workflows for the specified project / location.
	MigrationWorkflows []*MigrationWorkflow `protobuf:"bytes,1,rep,name=migration_workflows,json=migrationWorkflows,proto3" json:"migration_workflows,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response object for a `ListMigrationWorkflows` call.

func (*ListMigrationWorkflowsResponse) Descriptor deprecated

func (*ListMigrationWorkflowsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListMigrationWorkflowsResponse.ProtoReflect.Descriptor instead.

func (*ListMigrationWorkflowsResponse) GetMigrationWorkflows

func (x *ListMigrationWorkflowsResponse) GetMigrationWorkflows() []*MigrationWorkflow

func (*ListMigrationWorkflowsResponse) GetNextPageToken

func (x *ListMigrationWorkflowsResponse) GetNextPageToken() string

func (*ListMigrationWorkflowsResponse) ProtoMessage

func (*ListMigrationWorkflowsResponse) ProtoMessage()

func (*ListMigrationWorkflowsResponse) ProtoReflect

func (*ListMigrationWorkflowsResponse) Reset

func (x *ListMigrationWorkflowsResponse) Reset()

func (*ListMigrationWorkflowsResponse) String

type MigrationServiceClient

type MigrationServiceClient interface {
	// Creates a migration workflow.
	CreateMigrationWorkflow(ctx context.Context, in *CreateMigrationWorkflowRequest, opts ...grpc.CallOption) (*MigrationWorkflow, error)
	// Gets a previously created migration workflow.
	GetMigrationWorkflow(ctx context.Context, in *GetMigrationWorkflowRequest, opts ...grpc.CallOption) (*MigrationWorkflow, error)
	// Lists previously created migration workflow.
	ListMigrationWorkflows(ctx context.Context, in *ListMigrationWorkflowsRequest, opts ...grpc.CallOption) (*ListMigrationWorkflowsResponse, error)
	// Deletes a migration workflow by name.
	DeleteMigrationWorkflow(ctx context.Context, in *DeleteMigrationWorkflowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Starts a previously created migration workflow. I.e., the state transitions
	// from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
	// An error will be signaled if the state is anything other than DRAFT or
	// RUNNING.
	StartMigrationWorkflow(ctx context.Context, in *StartMigrationWorkflowRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Gets a previously created migration subtask.
	GetMigrationSubtask(ctx context.Context, in *GetMigrationSubtaskRequest, opts ...grpc.CallOption) (*MigrationSubtask, error)
	// Lists previously created migration subtasks.
	ListMigrationSubtasks(ctx context.Context, in *ListMigrationSubtasksRequest, opts ...grpc.CallOption) (*ListMigrationSubtasksResponse, error)
}

MigrationServiceClient is the client API for MigrationService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MigrationServiceServer

type MigrationServiceServer interface {
	// Creates a migration workflow.
	CreateMigrationWorkflow(context.Context, *CreateMigrationWorkflowRequest) (*MigrationWorkflow, error)
	// Gets a previously created migration workflow.
	GetMigrationWorkflow(context.Context, *GetMigrationWorkflowRequest) (*MigrationWorkflow, error)
	// Lists previously created migration workflow.
	ListMigrationWorkflows(context.Context, *ListMigrationWorkflowsRequest) (*ListMigrationWorkflowsResponse, error)
	// Deletes a migration workflow by name.
	DeleteMigrationWorkflow(context.Context, *DeleteMigrationWorkflowRequest) (*emptypb.Empty, error)
	// Starts a previously created migration workflow. I.e., the state transitions
	// from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
	// An error will be signaled if the state is anything other than DRAFT or
	// RUNNING.
	StartMigrationWorkflow(context.Context, *StartMigrationWorkflowRequest) (*emptypb.Empty, error)
	// Gets a previously created migration subtask.
	GetMigrationSubtask(context.Context, *GetMigrationSubtaskRequest) (*MigrationSubtask, error)
	// Lists previously created migration subtasks.
	ListMigrationSubtasks(context.Context, *ListMigrationSubtasksRequest) (*ListMigrationSubtasksResponse, error)
}

MigrationServiceServer is the server API for MigrationService service.

type MigrationSubtask

type MigrationSubtask struct {

	// Output only. Immutable. The resource name for the migration subtask. The ID is
	// server-generated.
	//
	// Example: `projects/123/locations/us/workflows/345/subtasks/678`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The unique ID of the task to which this subtask belongs.
	TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// The type of the Subtask. The migration service does not check whether this
	// is a known type. It is up to the task creator (i.e. orchestrator or worker)
	// to ensure it only creates subtasks for which there are compatible workers
	// polling for Subtasks.
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// Output only. The current state of the subtask.
	State MigrationSubtask_State `` /* 132-byte string literal not displayed */
	// Output only. An explanation that may be populated when the task is in FAILED state.
	ProcessingError *errdetails.ErrorInfo `protobuf:"bytes,6,opt,name=processing_error,json=processingError,proto3" json:"processing_error,omitempty"`
	// Output only. Provides details to errors and issues encountered while processing the
	// subtask. Presence of error details does not mean that the subtask failed.
	ResourceErrorDetails []*ResourceErrorDetail `protobuf:"bytes,12,rep,name=resource_error_details,json=resourceErrorDetails,proto3" json:"resource_error_details,omitempty"`
	// The number or resources with errors. Note: This is not the total
	// number of errors as each resource can have more than one error.
	// This is used to indicate truncation by having a `resource_error_count`
	// that is higher than the size of `resource_error_details`.
	ResourceErrorCount int32 `protobuf:"varint,13,opt,name=resource_error_count,json=resourceErrorCount,proto3" json:"resource_error_count,omitempty"`
	// Time when the subtask was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time when the subtask was last updated.
	LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
	// The metrics for the subtask.
	Metrics []*TimeSeries `protobuf:"bytes,11,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

A subtask for a migration which carries details about the configuration of the subtask. The content of the details should not matter to the end user, but is a contract between the subtask creator and subtask worker.

func (*MigrationSubtask) Descriptor deprecated

func (*MigrationSubtask) Descriptor() ([]byte, []int)

Deprecated: Use MigrationSubtask.ProtoReflect.Descriptor instead.

func (*MigrationSubtask) GetCreateTime

func (x *MigrationSubtask) GetCreateTime() *timestamppb.Timestamp

func (*MigrationSubtask) GetLastUpdateTime

func (x *MigrationSubtask) GetLastUpdateTime() *timestamppb.Timestamp

func (*MigrationSubtask) GetMetrics

func (x *MigrationSubtask) GetMetrics() []*TimeSeries

func (*MigrationSubtask) GetName

func (x *MigrationSubtask) GetName() string

func (*MigrationSubtask) GetProcessingError

func (x *MigrationSubtask) GetProcessingError() *errdetails.ErrorInfo

func (*MigrationSubtask) GetResourceErrorCount

func (x *MigrationSubtask) GetResourceErrorCount() int32

func (*MigrationSubtask) GetResourceErrorDetails

func (x *MigrationSubtask) GetResourceErrorDetails() []*ResourceErrorDetail

func (*MigrationSubtask) GetState

func (*MigrationSubtask) GetTaskId

func (x *MigrationSubtask) GetTaskId() string

func (*MigrationSubtask) GetType

func (x *MigrationSubtask) GetType() string

func (*MigrationSubtask) ProtoMessage

func (*MigrationSubtask) ProtoMessage()

func (*MigrationSubtask) ProtoReflect

func (x *MigrationSubtask) ProtoReflect() protoreflect.Message

func (*MigrationSubtask) Reset

func (x *MigrationSubtask) Reset()

func (*MigrationSubtask) String

func (x *MigrationSubtask) String() string

type MigrationSubtask_State

type MigrationSubtask_State int32

Possible states of a migration subtask.

const (
	// The state is unspecified.
	MigrationSubtask_STATE_UNSPECIFIED MigrationSubtask_State = 0
	// The subtask is ready, i.e. it is ready for execution.
	MigrationSubtask_ACTIVE MigrationSubtask_State = 1
	// The subtask is running, i.e. it is assigned to a worker for execution.
	MigrationSubtask_RUNNING MigrationSubtask_State = 2
	// The subtask finished successfully.
	MigrationSubtask_SUCCEEDED MigrationSubtask_State = 3
	// The subtask finished unsuccessfully.
	MigrationSubtask_FAILED MigrationSubtask_State = 4
)

func (MigrationSubtask_State) Descriptor

func (MigrationSubtask_State) Enum

func (MigrationSubtask_State) EnumDescriptor deprecated

func (MigrationSubtask_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use MigrationSubtask_State.Descriptor instead.

func (MigrationSubtask_State) Number

func (MigrationSubtask_State) String

func (x MigrationSubtask_State) String() string

func (MigrationSubtask_State) Type

type MigrationTask

type MigrationTask struct {

	// Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The type of the task. This must be a supported task type.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// The details of the task. The type URL must be one of the supported task
	// details messages and correspond to the Task's type.
	Details *anypb.Any `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	// Output only. The current state of the task.
	State MigrationTask_State `` /* 129-byte string literal not displayed */
	// Output only. An explanation that may be populated when the task is in FAILED state.
	ProcessingError *errdetails.ErrorInfo `protobuf:"bytes,5,opt,name=processing_error,json=processingError,proto3" json:"processing_error,omitempty"`
	// Time when the task was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time when the task was last updated.
	LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
	// contains filtered or unexported fields
}

A single task for a migration which has details about the configuration of the task.

func (*MigrationTask) Descriptor deprecated

func (*MigrationTask) Descriptor() ([]byte, []int)

Deprecated: Use MigrationTask.ProtoReflect.Descriptor instead.

func (*MigrationTask) GetCreateTime

func (x *MigrationTask) GetCreateTime() *timestamppb.Timestamp

func (*MigrationTask) GetDetails

func (x *MigrationTask) GetDetails() *anypb.Any

func (*MigrationTask) GetId

func (x *MigrationTask) GetId() string

func (*MigrationTask) GetLastUpdateTime

func (x *MigrationTask) GetLastUpdateTime() *timestamppb.Timestamp

func (*MigrationTask) GetProcessingError

func (x *MigrationTask) GetProcessingError() *errdetails.ErrorInfo

func (*MigrationTask) GetState

func (x *MigrationTask) GetState() MigrationTask_State

func (*MigrationTask) GetType

func (x *MigrationTask) GetType() string

func (*MigrationTask) ProtoMessage

func (*MigrationTask) ProtoMessage()

func (*MigrationTask) ProtoReflect

func (x *MigrationTask) ProtoReflect() protoreflect.Message

func (*MigrationTask) Reset

func (x *MigrationTask) Reset()

func (*MigrationTask) String

func (x *MigrationTask) String() string

type MigrationTask_State

type MigrationTask_State int32

Possible states of a migration task.

const (
	// The state is unspecified.
	MigrationTask_STATE_UNSPECIFIED MigrationTask_State = 0
	// The task is waiting for orchestration.
	MigrationTask_PENDING MigrationTask_State = 1
	// The task is assigned to an orchestrator.
	MigrationTask_ORCHESTRATING MigrationTask_State = 2
	// The task is running, i.e. its subtasks are ready for execution.
	MigrationTask_RUNNING MigrationTask_State = 3
	// Tha task is paused. Assigned subtasks can continue, but no new subtasks
	// will be scheduled.
	MigrationTask_PAUSED MigrationTask_State = 4
	// The task finished successfully.
	MigrationTask_SUCCEEDED MigrationTask_State = 5
	// The task finished unsuccessfully.
	MigrationTask_FAILED MigrationTask_State = 6
)

func (MigrationTask_State) Descriptor

func (MigrationTask_State) Enum

func (MigrationTask_State) EnumDescriptor deprecated

func (MigrationTask_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use MigrationTask_State.Descriptor instead.

func (MigrationTask_State) Number

func (MigrationTask_State) String

func (x MigrationTask_State) String() string

func (MigrationTask_State) Type

type MigrationWorkflow

type MigrationWorkflow struct {

	// Output only. Immutable. The unique identifier for the migration workflow. The ID is
	// server-generated.
	//
	// Example: `projects/123/locations/us/workflows/345`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The display name of the workflow. This can be set to give a workflow
	// a descriptive name. There is no guarantee or enforcement of uniqueness.
	DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The tasks in a workflow in a named map. The name (i.e. key) has no
	// meaning and is merely a convenient way to address a specific task
	// in a workflow.
	Tasks map[string]*MigrationTask `` /* 151-byte string literal not displayed */
	// Output only. That status of the workflow.
	State MigrationWorkflow_State `` /* 133-byte string literal not displayed */
	// Time when the workflow was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time when the workflow was last updated.
	LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
	// contains filtered or unexported fields
}

A migration workflow which specifies what needs to be done for an EDW migration.

func (*MigrationWorkflow) Descriptor deprecated

func (*MigrationWorkflow) Descriptor() ([]byte, []int)

Deprecated: Use MigrationWorkflow.ProtoReflect.Descriptor instead.

func (*MigrationWorkflow) GetCreateTime

func (x *MigrationWorkflow) GetCreateTime() *timestamppb.Timestamp

func (*MigrationWorkflow) GetDisplayName

func (x *MigrationWorkflow) GetDisplayName() string

func (*MigrationWorkflow) GetLastUpdateTime

func (x *MigrationWorkflow) GetLastUpdateTime() *timestamppb.Timestamp

func (*MigrationWorkflow) GetName

func (x *MigrationWorkflow) GetName() string

func (*MigrationWorkflow) GetState

func (*MigrationWorkflow) GetTasks

func (x *MigrationWorkflow) GetTasks() map[string]*MigrationTask

func (*MigrationWorkflow) ProtoMessage

func (*MigrationWorkflow) ProtoMessage()

func (*MigrationWorkflow) ProtoReflect

func (x *MigrationWorkflow) ProtoReflect() protoreflect.Message

func (*MigrationWorkflow) Reset

func (x *MigrationWorkflow) Reset()

func (*MigrationWorkflow) String

func (x *MigrationWorkflow) String() string

type MigrationWorkflow_State

type MigrationWorkflow_State int32

Possible migration workflow states.

const (
	// Workflow state is unspecified.
	MigrationWorkflow_STATE_UNSPECIFIED MigrationWorkflow_State = 0
	// Workflow is in draft status, i.e. tasks are not yet eligible for
	// execution.
	MigrationWorkflow_DRAFT MigrationWorkflow_State = 1
	// Workflow is running (i.e. tasks are eligible for execution).
	MigrationWorkflow_RUNNING MigrationWorkflow_State = 2
	// Workflow is paused. Tasks currently in progress may continue, but no
	// further tasks will be scheduled.
	MigrationWorkflow_PAUSED MigrationWorkflow_State = 3
	// Workflow is complete. There should not be any task in a non-terminal
	// state, but if they are (e.g. forced termination), they will not be
	// scheduled.
	MigrationWorkflow_COMPLETED MigrationWorkflow_State = 4
)

func (MigrationWorkflow_State) Descriptor

func (MigrationWorkflow_State) Enum

func (MigrationWorkflow_State) EnumDescriptor deprecated

func (MigrationWorkflow_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use MigrationWorkflow_State.Descriptor instead.

func (MigrationWorkflow_State) Number

func (MigrationWorkflow_State) String

func (x MigrationWorkflow_State) String() string

func (MigrationWorkflow_State) Type

type Point

type Point struct {

	// The time interval to which the data point applies.  For `GAUGE` metrics,
	// the start time does not need to be supplied, but if it is supplied, it must
	// equal the end time.  For `DELTA` metrics, the start and end time should
	// specify a non-zero interval, with subsequent points specifying contiguous
	// and non-overlapping intervals.  For `CUMULATIVE` metrics, the start and end
	// time should specify a non-zero interval, with subsequent points specifying
	// the same start time and increasing end times, until an event resets the
	// cumulative value to zero and sets a new start time for the following
	// points.
	Interval *TimeInterval `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"`
	// The value of the data point.
	Value *TypedValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A single data point in a time series.

func (*Point) Descriptor deprecated

func (*Point) Descriptor() ([]byte, []int)

Deprecated: Use Point.ProtoReflect.Descriptor instead.

func (*Point) GetInterval

func (x *Point) GetInterval() *TimeInterval

func (*Point) GetValue

func (x *Point) GetValue() *TypedValue

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) ProtoReflect

func (x *Point) ProtoReflect() protoreflect.Message

func (*Point) Reset

func (x *Point) Reset()

func (*Point) String

func (x *Point) String() string

type ResourceErrorDetail

type ResourceErrorDetail struct {

	// Required. Information about the resource where the error is located.
	ResourceInfo *errdetails.ResourceInfo `protobuf:"bytes,1,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"`
	// Required. The error details for the resource.
	ErrorDetails []*ErrorDetail `protobuf:"bytes,2,rep,name=error_details,json=errorDetails,proto3" json:"error_details,omitempty"`
	// Required. How many errors there are in total for the resource. Truncation can be
	// indicated by having an `error_count` that is higher than the size of
	// `error_details`.
	ErrorCount int32 `protobuf:"varint,3,opt,name=error_count,json=errorCount,proto3" json:"error_count,omitempty"`
	// contains filtered or unexported fields
}

Provides details for errors and the corresponding resources.

func (*ResourceErrorDetail) Descriptor deprecated

func (*ResourceErrorDetail) Descriptor() ([]byte, []int)

Deprecated: Use ResourceErrorDetail.ProtoReflect.Descriptor instead.

func (*ResourceErrorDetail) GetErrorCount

func (x *ResourceErrorDetail) GetErrorCount() int32

func (*ResourceErrorDetail) GetErrorDetails

func (x *ResourceErrorDetail) GetErrorDetails() []*ErrorDetail

func (*ResourceErrorDetail) GetResourceInfo

func (x *ResourceErrorDetail) GetResourceInfo() *errdetails.ResourceInfo

func (*ResourceErrorDetail) ProtoMessage

func (*ResourceErrorDetail) ProtoMessage()

func (*ResourceErrorDetail) ProtoReflect

func (x *ResourceErrorDetail) ProtoReflect() protoreflect.Message

func (*ResourceErrorDetail) Reset

func (x *ResourceErrorDetail) Reset()

func (*ResourceErrorDetail) String

func (x *ResourceErrorDetail) String() string

type StartMigrationWorkflowRequest

type StartMigrationWorkflowRequest struct {

	// Required. The unique identifier for the migration workflow.
	// Example: `projects/123/locations/us/workflows/1234`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request to start a previously created migration workflow.

func (*StartMigrationWorkflowRequest) Descriptor deprecated

func (*StartMigrationWorkflowRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartMigrationWorkflowRequest.ProtoReflect.Descriptor instead.

func (*StartMigrationWorkflowRequest) GetName

func (*StartMigrationWorkflowRequest) ProtoMessage

func (*StartMigrationWorkflowRequest) ProtoMessage()

func (*StartMigrationWorkflowRequest) ProtoReflect

func (*StartMigrationWorkflowRequest) Reset

func (x *StartMigrationWorkflowRequest) Reset()

func (*StartMigrationWorkflowRequest) String

type TimeInterval

type TimeInterval struct {

	// Optional. The beginning of the time interval.  The default value
	// for the start time is the end time. The start time must not be
	// later than the end time.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Required. The end of the time interval.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.

func (*TimeInterval) Descriptor deprecated

func (*TimeInterval) Descriptor() ([]byte, []int)

Deprecated: Use TimeInterval.ProtoReflect.Descriptor instead.

func (*TimeInterval) GetEndTime

func (x *TimeInterval) GetEndTime() *timestamppb.Timestamp

func (*TimeInterval) GetStartTime

func (x *TimeInterval) GetStartTime() *timestamppb.Timestamp

func (*TimeInterval) ProtoMessage

func (*TimeInterval) ProtoMessage()

func (*TimeInterval) ProtoReflect

func (x *TimeInterval) ProtoReflect() protoreflect.Message

func (*TimeInterval) Reset

func (x *TimeInterval) Reset()

func (*TimeInterval) String

func (x *TimeInterval) String() string

type TimeSeries

type TimeSeries struct {

	// Required. The name of the metric.
	//
	// If the metric is not known by the service yet, it will be auto-created.
	Metric string `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
	// Required. The value type of the time series.
	ValueType metric.MetricDescriptor_ValueType `` /* 132-byte string literal not displayed */
	// Optional. The metric kind of the time series.
	//
	// If present, it must be the same as the metric kind of the associated
	// metric. If the associated metric's descriptor must be auto-created, then
	// this field specifies the metric kind of the new descriptor and must be
	// either `GAUGE` (the default) or `CUMULATIVE`.
	MetricKind metric.MetricDescriptor_MetricKind `` /* 136-byte string literal not displayed */
	// Required. The data points of this time series. When listing time series, points are
	// returned in reverse time order.
	//
	// When creating a time series, this field must contain exactly one point and
	// the point's type must be the same as the value type of the associated
	// metric. If the associated metric's descriptor must be auto-created, then
	// the value type of the descriptor is determined by the point's type, which
	// must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
	Points []*Point `protobuf:"bytes,4,rep,name=points,proto3" json:"points,omitempty"`
	// contains filtered or unexported fields
}

The metrics object for a SubTask.

func (*TimeSeries) Descriptor deprecated

func (*TimeSeries) Descriptor() ([]byte, []int)

Deprecated: Use TimeSeries.ProtoReflect.Descriptor instead.

func (*TimeSeries) GetMetric

func (x *TimeSeries) GetMetric() string

func (*TimeSeries) GetMetricKind

func (x *TimeSeries) GetMetricKind() metric.MetricDescriptor_MetricKind

func (*TimeSeries) GetPoints

func (x *TimeSeries) GetPoints() []*Point

func (*TimeSeries) GetValueType

func (x *TimeSeries) GetValueType() metric.MetricDescriptor_ValueType

func (*TimeSeries) ProtoMessage

func (*TimeSeries) ProtoMessage()

func (*TimeSeries) ProtoReflect

func (x *TimeSeries) ProtoReflect() protoreflect.Message

func (*TimeSeries) Reset

func (x *TimeSeries) Reset()

func (*TimeSeries) String

func (x *TimeSeries) String() string

type TypedValue

type TypedValue struct {

	// The typed value field.
	//
	// Types that are assignable to Value:
	//	*TypedValue_BoolValue
	//	*TypedValue_Int64Value
	//	*TypedValue_DoubleValue
	//	*TypedValue_StringValue
	//	*TypedValue_DistributionValue
	Value isTypedValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A single strongly-typed value.

func (*TypedValue) Descriptor deprecated

func (*TypedValue) Descriptor() ([]byte, []int)

Deprecated: Use TypedValue.ProtoReflect.Descriptor instead.

func (*TypedValue) GetBoolValue

func (x *TypedValue) GetBoolValue() bool

func (*TypedValue) GetDistributionValue

func (x *TypedValue) GetDistributionValue() *distribution.Distribution

func (*TypedValue) GetDoubleValue

func (x *TypedValue) GetDoubleValue() float64

func (*TypedValue) GetInt64Value

func (x *TypedValue) GetInt64Value() int64

func (*TypedValue) GetStringValue

func (x *TypedValue) GetStringValue() string

func (*TypedValue) GetValue

func (m *TypedValue) GetValue() isTypedValue_Value

func (*TypedValue) ProtoMessage

func (*TypedValue) ProtoMessage()

func (*TypedValue) ProtoReflect

func (x *TypedValue) ProtoReflect() protoreflect.Message

func (*TypedValue) Reset

func (x *TypedValue) Reset()

func (*TypedValue) String

func (x *TypedValue) String() string

type TypedValue_BoolValue

type TypedValue_BoolValue struct {
	// A Boolean value: `true` or `false`.
	BoolValue bool `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type TypedValue_DistributionValue

type TypedValue_DistributionValue struct {
	// A distribution value.
	DistributionValue *distribution.Distribution `protobuf:"bytes,5,opt,name=distribution_value,json=distributionValue,proto3,oneof"`
}

type TypedValue_DoubleValue

type TypedValue_DoubleValue struct {
	// A 64-bit double-precision floating-point number. Its magnitude
	// is approximately +/-10^(+/-300) and it has 16 significant digits of
	// precision.
	DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type TypedValue_Int64Value

type TypedValue_Int64Value struct {
	// A 64-bit integer. Its range is approximately +/-9.2x10^18.
	Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,proto3,oneof"`
}

type TypedValue_StringValue

type TypedValue_StringValue struct {
	// A variable-length string value.
	StringValue string `protobuf:"bytes,4,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type UnimplementedMigrationServiceServer

type UnimplementedMigrationServiceServer struct {
}

UnimplementedMigrationServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMigrationServiceServer) CreateMigrationWorkflow

func (*UnimplementedMigrationServiceServer) DeleteMigrationWorkflow

func (*UnimplementedMigrationServiceServer) GetMigrationSubtask

func (*UnimplementedMigrationServiceServer) GetMigrationWorkflow

func (*UnimplementedMigrationServiceServer) ListMigrationSubtasks

func (*UnimplementedMigrationServiceServer) StartMigrationWorkflow

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL