You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pre>Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.
92
+
93
+
Args:
94
+
parent: string, Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}. (required)
95
+
body: object, The request body.
96
+
The object takes the form of:
97
+
98
+
{ # Request message for 'ImportMappingRules' request.
99
+
"autoCommit": True or False, # Should the conversion workspace be committed automatically after the import operation.
100
+
"rulesFiles": [ # One or more rules files
101
+
{ # Details of a single rules file
102
+
"rulesContent": "A String", # The text content of the rules that needs to be converted
103
+
"rulesSourceFilename": "A String", # The filename of the rules that needs to be converted. This is used mainly so future logs of the import rules job will contain this detail and can therefore be searched by it later
104
+
},
105
+
],
106
+
"rulesFormat": "A String", # The format of the rules content file.
107
+
}
108
+
109
+
x__xgafv: string, V1 error format.
110
+
Allowed values
111
+
1 - v1 error format
112
+
2 - v2 error format
113
+
114
+
Returns:
115
+
An object of the form:
116
+
117
+
{ # This resource represents a long-running operation that is the result of a network API call.
118
+
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
119
+
"error": { # 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](https://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). # The error result of the operation in case of failure or cancellation.
120
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
121
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
122
+
{
123
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
124
+
},
125
+
],
126
+
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
127
+
},
128
+
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
129
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
130
+
},
131
+
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
132
+
"response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
133
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
Copy file name to clipboardexpand all lines: docs/dyn/datamigration_v1.projects.locations.migrationJobs.html
+20
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,10 @@ <h3>Method Details</h3>
141
141
The object takes the form of:
142
142
143
143
{ # Represents a Database Migration Service migration job object.
144
+
"conversionWorkspace": { # A conversion workspace's version. # The conversion workspace used by the migration.
145
+
"commitId": "A String", # The commit ID of the conversion workspace.
146
+
"name": "A String", # The resource name (URI) of the conversion workspace.
147
+
},
144
148
"createTime": "A 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".
145
149
"destination": "A String", # Required. The resource name (URI) of the destination connection profile.
146
150
"destinationDatabase": { # A message defining the database engine and provider. # The database engine type and provider of the destination.
@@ -168,6 +172,7 @@ <h3>Method Details</h3>
168
172
],
169
173
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
170
174
},
175
+
"filter": "A String", # This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.
171
176
"labels": { # 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" }`.
172
177
"a_key": "A String",
173
178
},
@@ -312,6 +317,10 @@ <h3>Method Details</h3>
312
317
An object of the form:
313
318
314
319
{ # Represents a Database Migration Service migration job object.
320
+
"conversionWorkspace": { # A conversion workspace's version. # The conversion workspace used by the migration.
321
+
"commitId": "A String", # The commit ID of the conversion workspace.
322
+
"name": "A String", # The resource name (URI) of the conversion workspace.
323
+
},
315
324
"createTime": "A 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".
316
325
"destination": "A String", # Required. The resource name (URI) of the destination connection profile.
317
326
"destinationDatabase": { # A message defining the database engine and provider. # The database engine type and provider of the destination.
@@ -339,6 +348,7 @@ <h3>Method Details</h3>
339
348
],
340
349
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
341
350
},
351
+
"filter": "A String", # This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.
342
352
"labels": { # 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" }`.
343
353
"a_key": "A String",
344
354
},
@@ -435,6 +445,10 @@ <h3>Method Details</h3>
435
445
{ # Response message for 'ListMigrationJobs' request.
436
446
"migrationJobs": [ # The list of migration jobs objects.
437
447
{ # Represents a Database Migration Service migration job object.
448
+
"conversionWorkspace": { # A conversion workspace's version. # The conversion workspace used by the migration.
449
+
"commitId": "A String", # The commit ID of the conversion workspace.
450
+
"name": "A String", # The resource name (URI) of the conversion workspace.
451
+
},
438
452
"createTime": "A 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".
439
453
"destination": "A String", # Required. The resource name (URI) of the destination connection profile.
440
454
"destinationDatabase": { # A message defining the database engine and provider. # The database engine type and provider of the destination.
@@ -462,6 +476,7 @@ <h3>Method Details</h3>
462
476
],
463
477
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
464
478
},
479
+
"filter": "A String", # This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.
465
480
"labels": { # 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" }`.
466
481
"a_key": "A String",
467
482
},
@@ -519,6 +534,10 @@ <h3>Method Details</h3>
519
534
The object takes the form of:
520
535
521
536
{ # Represents a Database Migration Service migration job object.
537
+
"conversionWorkspace": { # A conversion workspace's version. # The conversion workspace used by the migration.
538
+
"commitId": "A String", # The commit ID of the conversion workspace.
539
+
"name": "A String", # The resource name (URI) of the conversion workspace.
540
+
},
522
541
"createTime": "A 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".
523
542
"destination": "A String", # Required. The resource name (URI) of the destination connection profile.
524
543
"destinationDatabase": { # A message defining the database engine and provider. # The database engine type and provider of the destination.
@@ -546,6 +565,7 @@ <h3>Method Details</h3>
546
565
],
547
566
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
548
567
},
568
+
"filter": "A String", # This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.
549
569
"labels": { # 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" }`.
0 commit comments