@google-cloud/dms 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.2.0](https://github.com/googleapis/google-cloud-node/compare/dms-v3.1.0...dms-v3.2.0) (2024-02-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * Support for Trusted Private Cloud ([895830a](https://github.com/googleapis/google-cloud-node/commit/895830a3ef91666c30a96a7f68bd4cd1f582d58d))
9
+
10
+ ## [3.1.0](https://github.com/googleapis/google-cloud-node/compare/dms-v3.0.0...dms-v3.1.0) (2023-09-06)
11
+
12
+
13
+ ### Features
14
+
15
+ * [clouddms] Adding GenerateTcpProxyScript API ([#4610](https://github.com/googleapis/google-cloud-node/issues/4610)) ([1a79bf7](https://github.com/googleapis/google-cloud-node/commit/1a79bf704f9cae5b58df19778f52496aeaf9bc06))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * [Many APIs] simplify logic for HTTP/1.1 REST fallback option ([#4584](https://github.com/googleapis/google-cloud-node/issues/4584)) ([13537fc](https://github.com/googleapis/google-cloud-node/commit/13537fcd6e3c552199d5057daf3b00c24033c908))
21
+
3
22
  ## [3.0.0](https://github.com/googleapis/google-cloud-node/compare/dms-v2.3.0...dms-v3.0.0) (2023-08-06)
4
23
 
5
24
 
package/README.md CHANGED
@@ -88,23 +88,28 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
88
88
  | Data_migration_service.convert_conversion_workspace | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.convert_conversion_workspace.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.convert_conversion_workspace.js,packages/google-cloud-clouddms/samples/README.md) |
89
89
  | Data_migration_service.create_connection_profile | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.create_connection_profile.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.create_connection_profile.js,packages/google-cloud-clouddms/samples/README.md) |
90
90
  | Data_migration_service.create_conversion_workspace | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.create_conversion_workspace.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.create_conversion_workspace.js,packages/google-cloud-clouddms/samples/README.md) |
91
+ | Data_migration_service.create_mapping_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.create_mapping_rule.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.create_mapping_rule.js,packages/google-cloud-clouddms/samples/README.md) |
91
92
  | Data_migration_service.create_migration_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.create_migration_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.create_migration_job.js,packages/google-cloud-clouddms/samples/README.md) |
92
93
  | Data_migration_service.create_private_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.create_private_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.create_private_connection.js,packages/google-cloud-clouddms/samples/README.md) |
93
94
  | Data_migration_service.delete_connection_profile | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.delete_connection_profile.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.delete_connection_profile.js,packages/google-cloud-clouddms/samples/README.md) |
94
95
  | Data_migration_service.delete_conversion_workspace | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.delete_conversion_workspace.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.delete_conversion_workspace.js,packages/google-cloud-clouddms/samples/README.md) |
96
+ | Data_migration_service.delete_mapping_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.delete_mapping_rule.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.delete_mapping_rule.js,packages/google-cloud-clouddms/samples/README.md) |
95
97
  | Data_migration_service.delete_migration_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.delete_migration_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.delete_migration_job.js,packages/google-cloud-clouddms/samples/README.md) |
96
98
  | Data_migration_service.delete_private_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.delete_private_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.delete_private_connection.js,packages/google-cloud-clouddms/samples/README.md) |
97
99
  | Data_migration_service.describe_conversion_workspace_revisions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.describe_conversion_workspace_revisions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.describe_conversion_workspace_revisions.js,packages/google-cloud-clouddms/samples/README.md) |
98
100
  | Data_migration_service.describe_database_entities | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.describe_database_entities.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.describe_database_entities.js,packages/google-cloud-clouddms/samples/README.md) |
99
101
  | Data_migration_service.fetch_static_ips | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.fetch_static_ips.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.fetch_static_ips.js,packages/google-cloud-clouddms/samples/README.md) |
100
102
  | Data_migration_service.generate_ssh_script | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.generate_ssh_script.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.generate_ssh_script.js,packages/google-cloud-clouddms/samples/README.md) |
103
+ | Data_migration_service.generate_tcp_proxy_script | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.generate_tcp_proxy_script.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.generate_tcp_proxy_script.js,packages/google-cloud-clouddms/samples/README.md) |
101
104
  | Data_migration_service.get_connection_profile | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.get_connection_profile.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.get_connection_profile.js,packages/google-cloud-clouddms/samples/README.md) |
102
105
  | Data_migration_service.get_conversion_workspace | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.get_conversion_workspace.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.get_conversion_workspace.js,packages/google-cloud-clouddms/samples/README.md) |
106
+ | Data_migration_service.get_mapping_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.get_mapping_rule.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.get_mapping_rule.js,packages/google-cloud-clouddms/samples/README.md) |
103
107
  | Data_migration_service.get_migration_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.get_migration_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.get_migration_job.js,packages/google-cloud-clouddms/samples/README.md) |
104
108
  | Data_migration_service.get_private_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.get_private_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.get_private_connection.js,packages/google-cloud-clouddms/samples/README.md) |
105
109
  | Data_migration_service.import_mapping_rules | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.import_mapping_rules.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.import_mapping_rules.js,packages/google-cloud-clouddms/samples/README.md) |
106
110
  | Data_migration_service.list_connection_profiles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.list_connection_profiles.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.list_connection_profiles.js,packages/google-cloud-clouddms/samples/README.md) |
107
111
  | Data_migration_service.list_conversion_workspaces | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.list_conversion_workspaces.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.list_conversion_workspaces.js,packages/google-cloud-clouddms/samples/README.md) |
112
+ | Data_migration_service.list_mapping_rules | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.list_mapping_rules.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.list_mapping_rules.js,packages/google-cloud-clouddms/samples/README.md) |
108
113
  | Data_migration_service.list_migration_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.list_migration_jobs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.list_migration_jobs.js,packages/google-cloud-clouddms/samples/README.md) |
109
114
  | Data_migration_service.list_private_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.list_private_connections.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.list_private_connections.js,packages/google-cloud-clouddms/samples/README.md) |
110
115
  | Data_migration_service.promote_migration_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.promote_migration_job.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-clouddms/samples/generated/v1/data_migration_service.promote_migration_job.js,packages/google-cloud-clouddms/samples/README.md) |
@@ -128,7 +133,7 @@ also contains samples.
128
133
 
129
134
  ## Supported Node.js Versions
130
135
 
131
- Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).
136
+ Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
132
137
  Libraries are compatible with all current _active_ and _maintenance_ versions of
133
138
  Node.js.
134
139
  If you are using an end-of-life version of Node.js, we recommend that you update
@@ -23,6 +23,7 @@ import "google/api/resource.proto";
23
23
  import "google/cloud/clouddms/v1/clouddms_resources.proto";
24
24
  import "google/cloud/clouddms/v1/conversionworkspace_resources.proto";
25
25
  import "google/longrunning/operations.proto";
26
+ import "google/protobuf/empty.proto";
26
27
  import "google/protobuf/field_mask.proto";
27
28
  import "google/protobuf/timestamp.proto";
28
29
 
@@ -191,6 +192,16 @@ service DataMigrationService {
191
192
  };
192
193
  }
193
194
 
195
+ // Generate a TCP Proxy configuration script to configure a cloud-hosted VM
196
+ // running a TCP Proxy.
197
+ rpc GenerateTcpProxyScript(GenerateTcpProxyScriptRequest)
198
+ returns (TcpProxyScript) {
199
+ option (google.api.http) = {
200
+ post: "/v1/{migration_job=projects/*/locations/*/migrationJobs/*}:generateTcpProxyScript"
201
+ body: "*"
202
+ };
203
+ }
204
+
194
205
  // Retrieves a list of all connection profiles in a given project and
195
206
  // location.
196
207
  rpc ListConnectionProfiles(ListConnectionProfilesRequest)
@@ -360,6 +371,42 @@ service DataMigrationService {
360
371
  };
361
372
  }
362
373
 
374
+ // Creates a new mapping rule for a given conversion workspace.
375
+ rpc CreateMappingRule(CreateMappingRuleRequest) returns (MappingRule) {
376
+ option (google.api.http) = {
377
+ post: "/v1/{parent=projects/*/locations/*/conversionWorkspaces/*}/mappingRules"
378
+ body: "mapping_rule"
379
+ };
380
+ option (google.api.method_signature) =
381
+ "parent,mapping_rule,mapping_rule_id";
382
+ }
383
+
384
+ // Deletes a single mapping rule.
385
+ rpc DeleteMappingRule(DeleteMappingRuleRequest)
386
+ returns (google.protobuf.Empty) {
387
+ option (google.api.http) = {
388
+ delete: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*/mappingRules/*}"
389
+ };
390
+ option (google.api.method_signature) = "name";
391
+ }
392
+
393
+ // Lists the mapping rules for a specific conversion workspace.
394
+ rpc ListMappingRules(ListMappingRulesRequest)
395
+ returns (ListMappingRulesResponse) {
396
+ option (google.api.http) = {
397
+ get: "/v1/{parent=projects/*/locations/*/conversionWorkspaces/*}/mappingRules"
398
+ };
399
+ option (google.api.method_signature) = "parent";
400
+ }
401
+
402
+ // Gets the details of a mapping rule.
403
+ rpc GetMappingRule(GetMappingRuleRequest) returns (MappingRule) {
404
+ option (google.api.http) = {
405
+ get: "/v1/{name=projects/*/locations/*/conversionWorkspaces/*/mappingRules/*}"
406
+ };
407
+ option (google.api.method_signature) = "name";
408
+ }
409
+
363
410
  // Imports a snapshot of the source database into the
364
411
  // conversion workspace.
365
412
  rpc SeedConversionWorkspace(SeedConversionWorkspaceRequest)
@@ -568,14 +615,14 @@ message CreateMigrationJobRequest {
568
615
  // object.
569
616
  MigrationJob migration_job = 3 [(google.api.field_behavior) = REQUIRED];
570
617
 
571
- // A unique ID used to identify the request. If the server receives two
572
- // requests with the same ID, then the second request is ignored.
618
+ // Optional. A unique ID used to identify the request. If the server receives
619
+ // two requests with the same ID, then the second request is ignored.
573
620
  //
574
621
  // It is recommended to always set this value to a UUID.
575
622
  //
576
623
  // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
577
624
  // (_), and hyphens (-). The maximum length is 40 characters.
578
- string request_id = 4;
625
+ string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
579
626
  }
580
627
 
581
628
  // Request message for 'UpdateMigrationJob' request.
@@ -629,6 +676,10 @@ message StartMigrationJobRequest {
629
676
  string name = 1 [(google.api.resource_reference) = {
630
677
  type: "datamigration.googleapis.com/MigrationJob"
631
678
  }];
679
+
680
+ // Optional. Start the migration job without running prior configuration
681
+ // verification. Defaults to `false`.
682
+ bool skip_validation = 2 [(google.api.field_behavior) = OPTIONAL];
632
683
  }
633
684
 
634
685
  // Request message for 'StopMigrationJob' request.
@@ -661,6 +712,15 @@ message VerifyMigrationJobRequest {
661
712
  string name = 1 [(google.api.resource_reference) = {
662
713
  type: "datamigration.googleapis.com/MigrationJob"
663
714
  }];
715
+
716
+ // Optional. Field mask is used to specify the changed fields to be verified.
717
+ // It will not update the migration job.
718
+ google.protobuf.FieldMask update_mask = 2
719
+ [(google.api.field_behavior) = OPTIONAL];
720
+
721
+ // Optional. The changed migration job parameters to verify.
722
+ // It will not update the migration job.
723
+ MigrationJob migration_job = 3 [(google.api.field_behavior) = OPTIONAL];
664
724
  }
665
725
 
666
726
  // Request message for 'RestartMigrationJob' request.
@@ -669,6 +729,10 @@ message RestartMigrationJobRequest {
669
729
  string name = 1 [(google.api.resource_reference) = {
670
730
  type: "datamigration.googleapis.com/MigrationJob"
671
731
  }];
732
+
733
+ // Optional. Restart the migration job without running prior configuration
734
+ // verification. Defaults to `false`.
735
+ bool skip_validation = 2 [(google.api.field_behavior) = OPTIONAL];
672
736
  }
673
737
 
674
738
  // Request message for 'GenerateSshScript' request.
@@ -718,6 +782,38 @@ message SshScript {
718
782
  string script = 1;
719
783
  }
720
784
 
785
+ // Request message for 'GenerateTcpProxyScript' request.
786
+ message GenerateTcpProxyScriptRequest {
787
+ // Name of the migration job resource to generate the TCP Proxy script.
788
+ string migration_job = 1 [(google.api.resource_reference) = {
789
+ type: "datamigration.googleapis.com/MigrationJob"
790
+ }];
791
+
792
+ // Required. The name of the Compute instance that will host the proxy.
793
+ string vm_name = 2 [(google.api.field_behavior) = REQUIRED];
794
+
795
+ // Required. The type of the Compute instance that will host the proxy.
796
+ string vm_machine_type = 3 [(google.api.field_behavior) = REQUIRED];
797
+
798
+ // Optional. The Google Cloud Platform zone to create the VM in. The fully
799
+ // qualified name of the zone must be specified, including the region name,
800
+ // for example "us-central1-b". If not specified, uses the "-b" zone of the
801
+ // destination Connection Profile's region.
802
+ string vm_zone = 4 [(google.api.field_behavior) = OPTIONAL];
803
+
804
+ // Required. The name of the subnet the Compute instance will use for private
805
+ // connectivity. Must be supplied in the form of
806
+ // projects/{project}/regions/{region}/subnetworks/{subnetwork}.
807
+ // Note: the region for the subnet must match the Compute instance region.
808
+ string vm_subnet = 5 [(google.api.field_behavior) = REQUIRED];
809
+ }
810
+
811
+ // Response message for 'GenerateTcpProxyScript' request.
812
+ message TcpProxyScript {
813
+ // The TCP Proxy configuration script.
814
+ string script = 1;
815
+ }
816
+
721
817
  // Request message for 'ListConnectionProfiles' request.
722
818
  message ListConnectionProfilesRequest {
723
819
  // Required. The parent which owns this collection of connection profiles.
@@ -786,7 +882,7 @@ message CreateConnectionProfileRequest {
786
882
  string parent = 1 [
787
883
  (google.api.field_behavior) = REQUIRED,
788
884
  (google.api.resource_reference) = {
789
- type: "datamigration.googleapis.com/ConnectionProfile"
885
+ child_type: "datamigration.googleapis.com/ConnectionProfile"
790
886
  }
791
887
  ];
792
888
 
@@ -1137,6 +1233,10 @@ message DeleteConversionWorkspaceRequest {
1137
1233
  // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
1138
1234
  // (_), and hyphens (-). The maximum length is 40 characters.
1139
1235
  string request_id = 2;
1236
+
1237
+ // Force delete the conversion workspace, even if there's a running migration
1238
+ // that is using the workspace.
1239
+ bool force = 3;
1140
1240
  }
1141
1241
 
1142
1242
  // Request message for 'CommitConversionWorkspace' request.
@@ -1180,13 +1280,74 @@ message ApplyConversionWorkspaceRequest {
1180
1280
  // the entities. Supports Google AIP 160 based filtering.
1181
1281
  string filter = 2;
1182
1282
 
1283
+ // Optional. Only validates the apply process, but doesn't change the
1284
+ // destination database. Only works for PostgreSQL destination connection
1285
+ // profile.
1286
+ bool dry_run = 3 [(google.api.field_behavior) = OPTIONAL];
1287
+
1288
+ // Optional. Specifies whether the conversion workspace is to be committed
1289
+ // automatically after the apply.
1290
+ bool auto_commit = 4 [(google.api.field_behavior) = OPTIONAL];
1291
+
1183
1292
  // Which destination to use when applying the conversion workspace.
1184
1293
  oneof destination {
1185
- // Fully qualified (Uri) name of the destination connection profile.
1186
- string connection_profile = 100;
1294
+ // Optional. Fully qualified (Uri) name of the destination connection
1295
+ // profile.
1296
+ string connection_profile = 100 [(google.api.field_behavior) = OPTIONAL];
1187
1297
  }
1188
1298
  }
1189
1299
 
1300
+ // Retrieve a list of all mapping rules in a given conversion workspace.
1301
+ message ListMappingRulesRequest {
1302
+ // Required. Name of the conversion workspace resource whose mapping rules are
1303
+ // listed in the form of:
1304
+ // projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1305
+ string parent = 1 [
1306
+ (google.api.field_behavior) = REQUIRED,
1307
+ (google.api.resource_reference) = {
1308
+ type: "datamigration.googleapis.com/ConversionWorkspace"
1309
+ }
1310
+ ];
1311
+
1312
+ // The maximum number of rules to return. The service may return
1313
+ // fewer than this value.
1314
+ int32 page_size = 2;
1315
+
1316
+ // The nextPageToken value received in the previous call to
1317
+ // mappingRules.list, used in the subsequent request to retrieve the next
1318
+ // page of results. On first call this should be left blank. When paginating,
1319
+ // all other parameters provided to mappingRules.list must match the call
1320
+ // that provided the page token.
1321
+ string page_token = 3;
1322
+ }
1323
+
1324
+ // Response message for 'ListMappingRulesRequest' request.
1325
+ message ListMappingRulesResponse {
1326
+ // The list of conversion workspace mapping rules.
1327
+ repeated MappingRule mapping_rules = 1;
1328
+
1329
+ // A token which can be sent as `page_token` to retrieve the next page.
1330
+ // If this field is omitted, there are no subsequent pages.
1331
+ string next_page_token = 2;
1332
+ }
1333
+
1334
+ // Request message for 'GetMappingRule' request.
1335
+ message GetMappingRuleRequest {
1336
+ // Required. Name of the mapping rule resource to get.
1337
+ // Example: conversionWorkspaces/123/mappingRules/rule123
1338
+ //
1339
+ // In order to retrieve a previous revision of the mapping rule, also provide
1340
+ // the revision ID.
1341
+ // Example:
1342
+ // conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
1343
+ string name = 1 [
1344
+ (google.api.field_behavior) = REQUIRED,
1345
+ (google.api.resource_reference) = {
1346
+ type: "datamigration.googleapis.com/MappingRule"
1347
+ }
1348
+ ];
1349
+ }
1350
+
1190
1351
  // Request message for 'SeedConversionWorkspace' request.
1191
1352
  message SeedConversionWorkspaceRequest {
1192
1353
  // Name of the conversion workspace resource to seed with new database
@@ -1204,11 +1365,14 @@ message SeedConversionWorkspaceRequest {
1204
1365
  // either be from the source or destination databases and it can be provided
1205
1366
  // through a connection profile or a DDL file.
1206
1367
  oneof seed_from {
1207
- // Fully qualified (Uri) name of the source connection profile.
1208
- string source_connection_profile = 100;
1209
-
1210
- // Fully qualified (Uri) name of the destination connection profile.
1211
- string destination_connection_profile = 101;
1368
+ // Optional. Fully qualified (Uri) name of the source connection profile.
1369
+ string source_connection_profile = 100
1370
+ [(google.api.field_behavior) = OPTIONAL];
1371
+
1372
+ // Optional. Fully qualified (Uri) name of the destination connection
1373
+ // profile.
1374
+ string destination_connection_profile = 101
1375
+ [(google.api.field_behavior) = OPTIONAL];
1212
1376
  }
1213
1377
  }
1214
1378
 
@@ -1220,26 +1384,31 @@ message ConvertConversionWorkspaceRequest {
1220
1384
  type: "datamigration.googleapis.com/ConversionWorkspace"
1221
1385
  }];
1222
1386
 
1223
- // Specifies whether the conversion workspace is to be committed automatically
1224
- // after the conversion.
1225
- bool auto_commit = 4;
1387
+ // Optional. Specifies whether the conversion workspace is to be committed
1388
+ // automatically after the conversion.
1389
+ bool auto_commit = 4 [(google.api.field_behavior) = OPTIONAL];
1390
+
1391
+ // Optional. Filter the entities to convert. Leaving this field empty will
1392
+ // convert all of the entities. Supports Google AIP-160 style filtering.
1393
+ string filter = 5 [(google.api.field_behavior) = OPTIONAL];
1226
1394
 
1227
- // Filter the entities to convert. Leaving this field empty will convert all
1228
- // of the entities. Supports Google AIP-160 style filtering.
1229
- string filter = 5;
1395
+ // Optional. Automatically convert the full entity path for each entity
1396
+ // specified by the filter. For example, if the filter specifies a table, that
1397
+ // table schema (and database if there is one) will also be converted.
1398
+ bool convert_full_path = 6 [(google.api.field_behavior) = OPTIONAL];
1230
1399
  }
1231
1400
 
1232
1401
  // Request message for 'ImportMappingRules' request.
1233
1402
  message ImportMappingRulesRequest {
1234
1403
  // Details of a single rules file.
1235
1404
  message RulesFile {
1236
- // The filename of the rules that needs to be converted. The filename is
1237
- // used mainly so that future logs of the import rules job contain it, and
1238
- // can therefore be searched by it.
1239
- string rules_source_filename = 1;
1405
+ // Required. The filename of the rules that needs to be converted. The
1406
+ // filename is used mainly so that future logs of the import rules job
1407
+ // contain it, and can therefore be searched by it.
1408
+ string rules_source_filename = 1 [(google.api.field_behavior) = REQUIRED];
1240
1409
 
1241
- // The text content of the rules that needs to be converted.
1242
- string rules_content = 2;
1410
+ // Required. The text content of the rules that needs to be converted.
1411
+ string rules_content = 2 [(google.api.field_behavior) = REQUIRED];
1243
1412
  }
1244
1413
 
1245
1414
  // Required. Name of the conversion workspace resource to import the rules to
@@ -1252,15 +1421,16 @@ message ImportMappingRulesRequest {
1252
1421
  }
1253
1422
  ];
1254
1423
 
1255
- // The format of the rules content file.
1256
- ImportRulesFileFormat rules_format = 2;
1424
+ // Required. The format of the rules content file.
1425
+ ImportRulesFileFormat rules_format = 2
1426
+ [(google.api.field_behavior) = REQUIRED];
1257
1427
 
1258
- // One or more rules files.
1259
- repeated RulesFile rules_files = 3;
1428
+ // Required. One or more rules files.
1429
+ repeated RulesFile rules_files = 3 [(google.api.field_behavior) = REQUIRED];
1260
1430
 
1261
- // Should the conversion workspace be committed automatically after the
1262
- // import operation.
1263
- bool auto_commit = 6;
1431
+ // Required. Should the conversion workspace be committed automatically after
1432
+ // the import operation.
1433
+ bool auto_commit = 6 [(google.api.field_behavior) = REQUIRED];
1264
1434
  }
1265
1435
 
1266
1436
  // Request message for 'DescribeDatabaseEntities' request.
@@ -1290,31 +1460,35 @@ message DescribeDatabaseEntitiesRequest {
1290
1460
  }
1291
1461
  ];
1292
1462
 
1293
- // The maximum number of entities to return. The service may return
1463
+ // Optional. The maximum number of entities to return. The service may return
1294
1464
  // fewer entities than the value specifies.
1295
- int32 page_size = 3;
1465
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
1296
1466
 
1297
- // The nextPageToken value received in the previous call to
1467
+ // Optional. The nextPageToken value received in the previous call to
1298
1468
  // conversionWorkspace.describeDatabaseEntities, used in the subsequent
1299
1469
  // request to retrieve the next page of results. On first call this should be
1300
1470
  // left blank. When paginating, all other parameters provided to
1301
1471
  // conversionWorkspace.describeDatabaseEntities must match the call that
1302
1472
  // provided the page token.
1303
- string page_token = 4;
1473
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
1474
+
1475
+ // Required. The tree to fetch.
1476
+ DBTreeType tree = 6 [(google.api.field_behavior) = REQUIRED];
1304
1477
 
1305
- // The tree to fetch.
1306
- DBTreeType tree = 6;
1478
+ // Optional. Whether to retrieve the latest committed version of the entities
1479
+ // or the latest version. This field is ignored if a specific commit_id is
1480
+ // specified.
1481
+ bool uncommitted = 11 [(google.api.field_behavior) = OPTIONAL];
1307
1482
 
1308
- // Whether to retrieve the latest committed version of the entities or the
1309
- // latest version. This field is ignored if a specific commit_id is specified.
1310
- bool uncommitted = 11;
1483
+ // Optional. Request a specific commit ID. If not specified, the entities from
1484
+ // the latest commit are returned.
1485
+ string commit_id = 12 [(google.api.field_behavior) = OPTIONAL];
1311
1486
 
1312
- // Request a specific commit ID. If not specified, the entities from the
1313
- // latest commit are returned.
1314
- string commit_id = 12;
1487
+ // Optional. Filter the returned entities based on AIP-160 standard.
1488
+ string filter = 13 [(google.api.field_behavior) = OPTIONAL];
1315
1489
 
1316
- // Filter the returned entities based on AIP-160 standard.
1317
- string filter = 13;
1490
+ // Optional. Results view based on AIP-157
1491
+ DatabaseEntityView view = 14 [(google.api.field_behavior) = OPTIONAL];
1318
1492
  }
1319
1493
 
1320
1494
  // Response message for 'DescribeDatabaseEntities' request.
@@ -1383,6 +1557,54 @@ message DescribeConversionWorkspaceRevisionsResponse {
1383
1557
  repeated ConversionWorkspace revisions = 1;
1384
1558
  }
1385
1559
 
1560
+ // Request message for 'CreateMappingRule' command.
1561
+ message CreateMappingRuleRequest {
1562
+ // Required. The parent which owns this collection of mapping rules.
1563
+ string parent = 1 [
1564
+ (google.api.field_behavior) = REQUIRED,
1565
+ (google.api.resource_reference) = {
1566
+ child_type: "datamigration.googleapis.com/MappingRule"
1567
+ }
1568
+ ];
1569
+
1570
+ // Required. The ID of the rule to create.
1571
+ string mapping_rule_id = 2 [(google.api.field_behavior) = REQUIRED];
1572
+
1573
+ // Required. Represents a [mapping rule]
1574
+ // (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
1575
+ // object.
1576
+ MappingRule mapping_rule = 3 [(google.api.field_behavior) = REQUIRED];
1577
+
1578
+ // A unique ID used to identify the request. If the server receives two
1579
+ // requests with the same ID, then the second request is ignored.
1580
+ //
1581
+ // It is recommended to always set this value to a UUID.
1582
+ //
1583
+ // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
1584
+ // (_), and hyphens (-). The maximum length is 40 characters.
1585
+ string request_id = 4;
1586
+ }
1587
+
1588
+ // Request message for 'DeleteMappingRule' request.
1589
+ message DeleteMappingRuleRequest {
1590
+ // Required. Name of the mapping rule resource to delete.
1591
+ string name = 1 [
1592
+ (google.api.field_behavior) = REQUIRED,
1593
+ (google.api.resource_reference) = {
1594
+ child_type: "datamigration.googleapis.com/MappingRule"
1595
+ }
1596
+ ];
1597
+
1598
+ // Optional. A unique ID used to identify the request. If the server receives
1599
+ // two requests with the same ID, then the second request is ignored.
1600
+ //
1601
+ // It is recommended to always set this value to a UUID.
1602
+ //
1603
+ // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
1604
+ // (_), and hyphens (-). The maximum length is 40 characters.
1605
+ string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
1606
+ }
1607
+
1386
1608
  // Request message for 'FetchStaticIps' request.
1387
1609
  message FetchStaticIpsRequest {
1388
1610
  // Required. The resource name for the location for which static IPs should be
@@ -1410,3 +1632,22 @@ message FetchStaticIpsResponse {
1410
1632
  // If this field is omitted, there are no subsequent pages.
1411
1633
  string next_page_token = 2;
1412
1634
  }
1635
+
1636
+ // AIP-157 Partial Response view for Database Entity.
1637
+ enum DatabaseEntityView {
1638
+ // Unspecified view. Defaults to basic view.
1639
+ DATABASE_ENTITY_VIEW_UNSPECIFIED = 0;
1640
+
1641
+ // Default view. Does not return DDLs or Issues.
1642
+ DATABASE_ENTITY_VIEW_BASIC = 1;
1643
+
1644
+ // Return full entity details including mappings, ddl and issues.
1645
+ DATABASE_ENTITY_VIEW_FULL = 2;
1646
+
1647
+ // Top-most (Database, Schema) nodes which are returned contains summary
1648
+ // details for their decendents such as the number of entities per type and
1649
+ // issues rollups. When this view is used, only a single page of result is
1650
+ // returned and the page_size property of the request is ignored. The
1651
+ // returned page will only include the top-most node types.
1652
+ DATABASE_ENTITY_VIEW_ROOT_SUMMARY = 3;
1653
+ }