class Google::Apis::DatamigrationV1beta1::MigrationJob

Represents a Database Migration Service migration job object.

Attributes

create_time[RW]

Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “ 2014-10-02T15:01:23.045123456Z”. Corresponds to the JSON property `createTime` @return [String]

destination[RW]

Required. The resource name (URI) of the destination connection profile. Corresponds to the JSON property `destination` @return [String]

destination_database[RW]

A message defining the database engine and provider. Corresponds to the JSON property `destinationDatabase` @return [Google::Apis::DatamigrationV1beta1::DatabaseType]

display_name[RW]

The migration job display name. Corresponds to the JSON property `displayName` @return [String]

dump_path[RW]

The path to the dump file in Google Cloud Storage, in the format: (gs://[ BUCKET_NAME]/). Corresponds to the JSON property `dumpPath` @return [String]

duration[RW]

Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: “3.5s”. Corresponds to the JSON property `duration` @return [String]

end_time[RW]

Output only. If the migration job is completed, the time when it was completed. Corresponds to the JSON property `endTime` @return [String]

error[RW]

The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [ gRPC](github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https: //cloud.google.com/apis/design/errors). Corresponds to the JSON property `error` @return [Google::Apis::DatamigrationV1beta1::Status]

labels[RW]

The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of “key”: “value” pairs. Example: “ “name”: “wrench”, “mass”: “1.3kg”, “count” : “3” “. Corresponds to the JSON property `labels` @return [Hash<String,String>]

name[RW]

The name (URI) of this migration job resource, in the form of: projects/` project`/locations/`location`/instances/`instance`. Corresponds to the JSON property `name` @return [String]

phase[RW]

Output only. The current migration job phase. Corresponds to the JSON property `phase` @return [String]

reverse_ssh_connectivity[RW]

The details needed to configure a reverse SSH tunnel between the source and destination databases. These details will be used when calling the generateSshScript method (see cloud.google.com/database-migration/docs/ reference/rest/v1beta1/projects.locations.migrationJobs/generateSshScript) to produce the script that will help set up the reverse SSH tunnel, and to set up the VPC peering between the Cloud SQL private network and the VPC. Corresponds to the JSON property `reverseSshConnectivity` @return [Google::Apis::DatamigrationV1beta1::ReverseSshConnectivity]

source[RW]

Required. The resource name (URI) of the source connection profile. Corresponds to the JSON property `source` @return [String]

source_database[RW]

A message defining the database engine and provider. Corresponds to the JSON property `sourceDatabase` @return [Google::Apis::DatamigrationV1beta1::DatabaseType]

state[RW]

The current migration job state. Corresponds to the JSON property `state` @return [String]

static_ip_connectivity[RW]

The source database will allow incoming connections from the destination database's public IP. You can retrieve the Cloud SQL instance's public IP from the Cloud SQL console or using Cloud SQL APIs. No additional configuration is required. Corresponds to the JSON property `staticIpConnectivity` @return [Google::Apis::DatamigrationV1beta1::StaticIpConnectivity]

type[RW]

Required. The migration job type. Corresponds to the JSON property `type` @return [String]

update_time[RW]

Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “ 2014-10-02T15:01:23.045123456Z”. Corresponds to the JSON property `updateTime` @return [String]

vpc_peering_connectivity[RW]

The details of the VPC where the source database is located in Google Cloud. We will use this information to set up the VPC peering connection between Cloud SQL and this VPC. Corresponds to the JSON property `vpcPeeringConnectivity` @return [Google::Apis::DatamigrationV1beta1::VpcPeeringConnectivity]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datamigration_v1beta1/classes.rb, line 902
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datamigration_v1beta1/classes.rb, line 907
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @destination = args[:destination] if args.key?(:destination)
  @destination_database = args[:destination_database] if args.key?(:destination_database)
  @display_name = args[:display_name] if args.key?(:display_name)
  @dump_path = args[:dump_path] if args.key?(:dump_path)
  @duration = args[:duration] if args.key?(:duration)
  @end_time = args[:end_time] if args.key?(:end_time)
  @error = args[:error] if args.key?(:error)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @phase = args[:phase] if args.key?(:phase)
  @reverse_ssh_connectivity = args[:reverse_ssh_connectivity] if args.key?(:reverse_ssh_connectivity)
  @source = args[:source] if args.key?(:source)
  @source_database = args[:source_database] if args.key?(:source_database)
  @state = args[:state] if args.key?(:state)
  @static_ip_connectivity = args[:static_ip_connectivity] if args.key?(:static_ip_connectivity)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
  @vpc_peering_connectivity = args[:vpc_peering_connectivity] if args.key?(:vpc_peering_connectivity)
end