Class: Google::Apis::DatamigrationV1::MigrationJob
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatamigrationV1::MigrationJob
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamigration_v1/classes.rb,
 lib/google/apis/datamigration_v1/representations.rb,
 lib/google/apis/datamigration_v1/representations.rb
Overview
Represents a Database Migration Service migration job object.
Instance Attribute Summary collapse
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #destination  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #destination_database  ⇒ Google::Apis::DatamigrationV1::DatabaseType 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A message defining the database engine and provider. 
- 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The migration job display name. 
- 
  
    
      #dump_flags  ⇒ Google::Apis::DatamigrationV1::DumpFlags 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Dump flags definition. 
- 
  
    
      #dump_path  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The path to the dump file in Google Cloud Storage, in the format: (gs://[ BUCKET_NAME]/[OBJECT_NAME]). 
- 
  
    
      #duration  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #end_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #error  ⇒ Google::Apis::DatamigrationV1::Status 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Statustype defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
- 
  
    
      #labels  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name (URI) of this migration job resource, in the form of: projects/ project/locations/location/migrationJobs/migrationJob.
- 
  
    
      #phase  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #reverse_ssh_connectivity  ⇒ Google::Apis::DatamigrationV1::ReverseSshConnectivity 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The details needed to configure a reverse SSH tunnel between the source and destination databases. 
- 
  
    
      #source  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #source_database  ⇒ Google::Apis::DatamigrationV1::DatabaseType 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A message defining the database engine and provider. 
- 
  
    
      #state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The current migration job state. 
- 
  
    
      #static_ip_connectivity  ⇒ Google::Apis::DatamigrationV1::StaticIpConnectivity 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The source database will allow incoming connections from the destination database's public IP. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #update_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #vpc_peering_connectivity  ⇒ Google::Apis::DatamigrationV1::VpcPeeringConnectivity 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The details of the VPC where the source database is located in Google Cloud. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MigrationJob 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of MigrationJob. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ MigrationJob
Returns a new instance of MigrationJob.
| 970 971 972 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 970 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#create_time ⇒ String
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
| 849 850 851 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 849 def create_time @create_time end | 
#destination ⇒ String
Required. The resource name (URI) of the destination connection profile.
Corresponds to the JSON property destination
| 854 855 856 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 854 def destination @destination end | 
#destination_database ⇒ Google::Apis::DatamigrationV1::DatabaseType
A message defining the database engine and provider.
Corresponds to the JSON property destinationDatabase
| 859 860 861 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 859 def destination_database @destination_database end | 
#display_name ⇒ String
The migration job display name.
Corresponds to the JSON property displayName
| 864 865 866 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 864 def display_name @display_name end | 
#dump_flags ⇒ Google::Apis::DatamigrationV1::DumpFlags
Dump flags definition.
Corresponds to the JSON property dumpFlags
| 869 870 871 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 869 def dump_flags @dump_flags end | 
#dump_path ⇒ String
The path to the dump file in Google Cloud Storage, in the format: (gs://[
BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are
mutually exclusive.
Corresponds to the JSON property dumpPath
| 876 877 878 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 876 def dump_path @dump_path end | 
#duration ⇒ String
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
| 882 883 884 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 882 def duration @duration end | 
#end_time ⇒ String
Output only. If the migration job is completed, the time when it was completed.
Corresponds to the JSON property endTime
| 887 888 889 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 887 def end_time @end_time end | 
#error ⇒ Google::Apis::DatamigrationV1::Status
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. 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.
Corresponds to the JSON property error
| 897 898 899 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 897 def error @error end | 
#labels ⇒ Hash<String,String>
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
| 905 906 907 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 905 def labels @labels end | 
#name ⇒ String
The name (URI) of this migration job resource, in the form of: projects/
project/locations/location/migrationJobs/migrationJob.
Corresponds to the JSON property name
| 911 912 913 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 911 def name @name end | 
#phase ⇒ String
Output only. The current migration job phase.
Corresponds to the JSON property phase
| 916 917 918 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 916 def phase @phase end | 
#reverse_ssh_connectivity ⇒ Google::Apis::DatamigrationV1::ReverseSshConnectivity
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 https://cloud.google.com/database-migration/docs/
reference/rest/v1/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
| 926 927 928 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 926 def reverse_ssh_connectivity @reverse_ssh_connectivity end | 
#source ⇒ String
Required. The resource name (URI) of the source connection profile.
Corresponds to the JSON property source
| 931 932 933 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 931 def source @source end | 
#source_database ⇒ Google::Apis::DatamigrationV1::DatabaseType
A message defining the database engine and provider.
Corresponds to the JSON property sourceDatabase
| 936 937 938 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 936 def source_database @source_database end | 
#state ⇒ String
The current migration job state.
Corresponds to the JSON property state
| 941 942 943 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 941 def state @state end | 
#static_ip_connectivity ⇒ Google::Apis::DatamigrationV1::StaticIpConnectivity
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
| 949 950 951 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 949 def static_ip_connectivity @static_ip_connectivity end | 
#type ⇒ String
Required. The migration job type.
Corresponds to the JSON property type
| 954 955 956 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 954 def type @type end | 
#update_time ⇒ String
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
| 961 962 963 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 961 def update_time @update_time end | 
#vpc_peering_connectivity ⇒ Google::Apis::DatamigrationV1::VpcPeeringConnectivity
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
| 968 969 970 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 968 def vpc_peering_connectivity @vpc_peering_connectivity end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 975 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_flags = args[:dump_flags] if args.key?(:dump_flags) @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 |