1- // Copyright 2022 Google LLC
1+ // Copyright 2023 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -34,10 +34,12 @@ option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2";
3434// Service to handle EDW migrations.
3535service MigrationService {
3636 option (google.api.default_host ) = "bigquerymigration.googleapis.com" ;
37- option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
37+ option (google.api.oauth_scopes ) =
38+ "https://www.googleapis.com/auth/cloud-platform" ;
3839
3940 // Creates a migration workflow.
40- rpc CreateMigrationWorkflow (CreateMigrationWorkflowRequest ) returns (MigrationWorkflow ) {
41+ rpc CreateMigrationWorkflow (CreateMigrationWorkflowRequest )
42+ returns (MigrationWorkflow ) {
4143 option (google.api.http ) = {
4244 post : "/v2/{parent=projects/*/locations/*}/workflows"
4345 body : "migration_workflow"
@@ -46,23 +48,26 @@ service MigrationService {
4648 }
4749
4850 // Gets a previously created migration workflow.
49- rpc GetMigrationWorkflow (GetMigrationWorkflowRequest ) returns (MigrationWorkflow ) {
51+ rpc GetMigrationWorkflow (GetMigrationWorkflowRequest )
52+ returns (MigrationWorkflow ) {
5053 option (google.api.http ) = {
5154 get : "/v2/{name=projects/*/locations/*/workflows/*}"
5255 };
5356 option (google.api.method_signature ) = "name" ;
5457 }
5558
5659 // Lists previously created migration workflow.
57- rpc ListMigrationWorkflows (ListMigrationWorkflowsRequest ) returns (ListMigrationWorkflowsResponse ) {
60+ rpc ListMigrationWorkflows (ListMigrationWorkflowsRequest )
61+ returns (ListMigrationWorkflowsResponse ) {
5862 option (google.api.http ) = {
5963 get : "/v2/{parent=projects/*/locations/*}/workflows"
6064 };
6165 option (google.api.method_signature ) = "parent" ;
6266 }
6367
6468 // Deletes a migration workflow by name.
65- rpc DeleteMigrationWorkflow (DeleteMigrationWorkflowRequest ) returns (google.protobuf.Empty ) {
69+ rpc DeleteMigrationWorkflow (DeleteMigrationWorkflowRequest )
70+ returns (google.protobuf.Empty ) {
6671 option (google.api.http ) = {
6772 delete : "/v2/{name=projects/*/locations/*/workflows/*}"
6873 };
@@ -73,7 +78,8 @@ service MigrationService {
7378 // from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
7479 // An error will be signaled if the state is anything other than DRAFT or
7580 // RUNNING.
76- rpc StartMigrationWorkflow (StartMigrationWorkflowRequest ) returns (google.protobuf.Empty ) {
81+ rpc StartMigrationWorkflow (StartMigrationWorkflowRequest )
82+ returns (google.protobuf.Empty ) {
7783 option (google.api.http ) = {
7884 post : "/v2/{name=projects/*/locations/*/workflows/*}:start"
7985 body : "*"
@@ -82,15 +88,17 @@ service MigrationService {
8288 }
8389
8490 // Gets a previously created migration subtask.
85- rpc GetMigrationSubtask (GetMigrationSubtaskRequest ) returns (MigrationSubtask ) {
91+ rpc GetMigrationSubtask (GetMigrationSubtaskRequest )
92+ returns (MigrationSubtask ) {
8693 option (google.api.http ) = {
8794 get : "/v2/{name=projects/*/locations/*/workflows/*/subtasks/*}"
8895 };
8996 option (google.api.method_signature ) = "name" ;
9097 }
9198
9299 // Lists previously created migration subtasks.
93- rpc ListMigrationSubtasks (ListMigrationSubtasksRequest ) returns (ListMigrationSubtasksResponse ) {
100+ rpc ListMigrationSubtasks (ListMigrationSubtasksRequest )
101+ returns (ListMigrationSubtasksResponse ) {
94102 option (google.api.http ) = {
95103 get : "/v2/{parent=projects/*/locations/*/workflows/*}/subtasks"
96104 };
@@ -110,7 +118,8 @@ message CreateMigrationWorkflowRequest {
110118 ];
111119
112120 // Required. The migration workflow to create.
113- MigrationWorkflow migration_workflow = 2 [(google.api.field_behavior ) = REQUIRED ];
121+ MigrationWorkflow migration_workflow = 2
122+ [(google.api.field_behavior ) = REQUIRED ];
114123}
115124
116125// A request to get a previously created migration workflow.
@@ -200,7 +209,8 @@ message GetMigrationSubtaskRequest {
200209 ];
201210
202211 // Optional. The list of fields to be retrieved.
203- google.protobuf.FieldMask read_mask = 2 [(google.api.field_behavior ) = OPTIONAL ];
212+ google.protobuf.FieldMask read_mask = 2
213+ [(google.api.field_behavior ) = OPTIONAL ];
204214}
205215
206216// A request to list previously created migration subtasks.
@@ -215,22 +225,23 @@ message ListMigrationSubtasksRequest {
215225 ];
216226
217227 // Optional. The list of fields to be retrieved.
218- google.protobuf.FieldMask read_mask = 2 [(google.api.field_behavior ) = OPTIONAL ];
228+ google.protobuf.FieldMask read_mask = 2
229+ [(google.api.field_behavior ) = OPTIONAL ];
219230
220- // Optional. The maximum number of migration tasks to return. The service may return
221- // fewer than this number.
231+ // Optional. The maximum number of migration tasks to return. The service may
232+ // return fewer than this number.
222233 int32 page_size = 3 [(google.api.field_behavior ) = OPTIONAL ];
223234
224- // Optional. A page token, received from previous `ListMigrationSubtasks` call.
225- // Provide this to retrieve the subsequent page.
235+ // Optional. A page token, received from previous `ListMigrationSubtasks`
236+ // call. Provide this to retrieve the subsequent page.
226237 //
227238 // When paginating, all other parameters provided to `ListMigrationSubtasks`
228239 // must match the call that provided the page token.
229240 string page_token = 4 [(google.api.field_behavior ) = OPTIONAL ];
230241
231- // Optional. The filter to apply. This can be used to get the subtasks of a specific
232- // tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the
233- // task ID (not the name in the named map).
242+ // Optional. The filter to apply. This can be used to get the subtasks of a
243+ // specific tasks in a workflow, e.g. `migration_task = "ab012"` where
244+ // `"ab012"` is the task ID (not the name in the named map).
234245 string filter = 5 [(google.api.field_behavior ) = OPTIONAL ];
235246}
236247
0 commit comments