1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 Google LLC
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
22
22
import "google/api/resource.proto" ;
23
23
import "google/cloud/datastream/v1/datastream_resources.proto" ;
24
24
import "google/longrunning/operations.proto" ;
25
+ import "google/protobuf/empty.proto" ;
25
26
import "google/protobuf/field_mask.proto" ;
26
27
import "google/protobuf/timestamp.proto" ;
27
28
@@ -36,40 +37,46 @@ option ruby_package = "Google::Cloud::Datastream::V1";
36
37
// Datastream service
37
38
service Datastream {
38
39
option (google.api.default_host ) = "datastream.googleapis.com" ;
39
- option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
40
+ option (google.api.oauth_scopes ) =
41
+ "https://www.googleapis.com/auth/cloud-platform" ;
40
42
41
43
// Use this method to list connection profiles created in a project and
42
44
// location.
43
- rpc ListConnectionProfiles (ListConnectionProfilesRequest ) returns (ListConnectionProfilesResponse ) {
45
+ rpc ListConnectionProfiles (ListConnectionProfilesRequest )
46
+ returns (ListConnectionProfilesResponse ) {
44
47
option (google.api.http ) = {
45
48
get : "/v1/{parent=projects/*/locations/*}/connectionProfiles"
46
49
};
47
50
option (google.api.method_signature ) = "parent" ;
48
51
}
49
52
50
53
// Use this method to get details about a connection profile.
51
- rpc GetConnectionProfile (GetConnectionProfileRequest ) returns (ConnectionProfile ) {
54
+ rpc GetConnectionProfile (GetConnectionProfileRequest )
55
+ returns (ConnectionProfile ) {
52
56
option (google.api.http ) = {
53
57
get : "/v1/{name=projects/*/locations/*/connectionProfiles/*}"
54
58
};
55
59
option (google.api.method_signature ) = "name" ;
56
60
}
57
61
58
62
// Use this method to create a connection profile in a project and location.
59
- rpc CreateConnectionProfile (CreateConnectionProfileRequest ) returns (google .longrunning .Operation ) {
63
+ rpc CreateConnectionProfile (CreateConnectionProfileRequest )
64
+ returns (google .longrunning .Operation ) {
60
65
option (google.api.http ) = {
61
66
post : "/v1/{parent=projects/*/locations/*}/connectionProfiles"
62
67
body : "connection_profile"
63
68
};
64
- option (google.api.method_signature ) = "parent,connection_profile,connection_profile_id" ;
69
+ option (google.api.method_signature ) =
70
+ "parent,connection_profile,connection_profile_id" ;
65
71
option (google.longrunning.operation_info ) = {
66
72
response_type : "ConnectionProfile"
67
73
metadata_type : "OperationMetadata"
68
74
};
69
75
}
70
76
71
77
// Use this method to update the parameters of a connection profile.
72
- rpc UpdateConnectionProfile (UpdateConnectionProfileRequest ) returns (google .longrunning .Operation ) {
78
+ rpc UpdateConnectionProfile (UpdateConnectionProfileRequest )
79
+ returns (google .longrunning .Operation ) {
73
80
option (google.api.http ) = {
74
81
patch : "/v1/{connection_profile.name=projects/*/locations/*/connectionProfiles/*}"
75
82
body : "connection_profile"
@@ -82,7 +89,8 @@ service Datastream {
82
89
}
83
90
84
91
// Use this method to delete a connection profile.
85
- rpc DeleteConnectionProfile (DeleteConnectionProfileRequest ) returns (google .longrunning .Operation ) {
92
+ rpc DeleteConnectionProfile (DeleteConnectionProfileRequest )
93
+ returns (google .longrunning .Operation ) {
86
94
option (google.api.http ) = {
87
95
delete : "/v1/{name=projects/*/locations/*/connectionProfiles/*}"
88
96
};
@@ -97,7 +105,8 @@ service Datastream {
97
105
// The discover API call exposes the data objects and metadata belonging to
98
106
// the profile. Typically, a request returns children data objects of a
99
107
// parent data object that's optionally supplied in the request.
100
- rpc DiscoverConnectionProfile (DiscoverConnectionProfileRequest ) returns (DiscoverConnectionProfileResponse ) {
108
+ rpc DiscoverConnectionProfile (DiscoverConnectionProfileRequest )
109
+ returns (DiscoverConnectionProfileResponse ) {
101
110
option (google.api.http ) = {
102
111
post : "/v1/{parent=projects/*/locations/*}/connectionProfiles:discover"
103
112
body : "*"
@@ -175,15 +184,17 @@ service Datastream {
175
184
}
176
185
177
186
// Use this method to list the objects of a specific stream.
178
- rpc ListStreamObjects (ListStreamObjectsRequest ) returns (ListStreamObjectsResponse ) {
187
+ rpc ListStreamObjects (ListStreamObjectsRequest )
188
+ returns (ListStreamObjectsResponse ) {
179
189
option (google.api.http ) = {
180
190
get : "/v1/{parent=projects/*/locations/*/streams/*}/objects"
181
191
};
182
192
option (google.api.method_signature ) = "parent" ;
183
193
}
184
194
185
195
// Use this method to start a backfill job for the specified stream object.
186
- rpc StartBackfillJob (StartBackfillJobRequest ) returns (StartBackfillJobResponse ) {
196
+ rpc StartBackfillJob (StartBackfillJobRequest )
197
+ returns (StartBackfillJobResponse ) {
187
198
option (google.api.http ) = {
188
199
post : "/v1/{object=projects/*/locations/*/streams/*/objects/*}:startBackfillJob"
189
200
body : "*"
@@ -192,7 +203,8 @@ service Datastream {
192
203
}
193
204
194
205
// Use this method to stop a backfill job for the specified stream object.
195
- rpc StopBackfillJob (StopBackfillJobRequest ) returns (StopBackfillJobResponse ) {
206
+ rpc StopBackfillJob (StopBackfillJobRequest )
207
+ returns (StopBackfillJobResponse ) {
196
208
option (google.api.http ) = {
197
209
post : "/v1/{object=projects/*/locations/*/streams/*/objects/*}:stopBackfillJob"
198
210
body : "*"
@@ -210,20 +222,23 @@ service Datastream {
210
222
}
211
223
212
224
// Use this method to create a private connectivity configuration.
213
- rpc CreatePrivateConnection (CreatePrivateConnectionRequest ) returns (google .longrunning .Operation ) {
225
+ rpc CreatePrivateConnection (CreatePrivateConnectionRequest )
226
+ returns (google .longrunning .Operation ) {
214
227
option (google.api.http ) = {
215
228
post : "/v1/{parent=projects/*/locations/*}/privateConnections"
216
229
body : "private_connection"
217
230
};
218
- option (google.api.method_signature ) = "parent,private_connection,private_connection_id" ;
231
+ option (google.api.method_signature ) =
232
+ "parent,private_connection,private_connection_id" ;
219
233
option (google.longrunning.operation_info ) = {
220
234
response_type : "PrivateConnection"
221
235
metadata_type : "OperationMetadata"
222
236
};
223
237
}
224
238
225
239
// Use this method to get details about a private connectivity configuration.
226
- rpc GetPrivateConnection (GetPrivateConnectionRequest ) returns (PrivateConnection ) {
240
+ rpc GetPrivateConnection (GetPrivateConnectionRequest )
241
+ returns (PrivateConnection ) {
227
242
option (google.api.http ) = {
228
243
get : "/v1/{name=projects/*/locations/*/privateConnections/*}"
229
244
};
@@ -232,15 +247,17 @@ service Datastream {
232
247
233
248
// Use this method to list private connectivity configurations in a project
234
249
// and location.
235
- rpc ListPrivateConnections (ListPrivateConnectionsRequest ) returns (ListPrivateConnectionsResponse ) {
250
+ rpc ListPrivateConnections (ListPrivateConnectionsRequest )
251
+ returns (ListPrivateConnectionsResponse ) {
236
252
option (google.api.http ) = {
237
253
get : "/v1/{parent=projects/*/locations/*}/privateConnections"
238
254
};
239
255
option (google.api.method_signature ) = "parent" ;
240
256
}
241
257
242
258
// Use this method to delete a private connectivity configuration.
243
- rpc DeletePrivateConnection (DeletePrivateConnectionRequest ) returns (google .longrunning .Operation ) {
259
+ rpc DeletePrivateConnection (DeletePrivateConnectionRequest )
260
+ returns (google .longrunning .Operation ) {
244
261
option (google.api.http ) = {
245
262
delete : "/v1/{name=projects/*/locations/*/privateConnections/*}"
246
263
};
@@ -297,8 +314,8 @@ service Datastream {
297
314
298
315
// Request message for 'discover' ConnectionProfile request.
299
316
message DiscoverConnectionProfileRequest {
300
- // Required. The parent resource of the connection profile type. Must be in the
301
- // format `projects/*/locations/*`.
317
+ // Required. The parent resource of the connection profile type. Must be in
318
+ // the format `projects/*/locations/*`.
302
319
string parent = 1 [
303
320
(google.api.field_behavior ) = REQUIRED ,
304
321
(google.api.resource_reference ) = {
@@ -355,8 +372,8 @@ message DiscoverConnectionProfileResponse {
355
372
356
373
// Request message for 'FetchStaticIps' request.
357
374
message FetchStaticIpsRequest {
358
- // Required. The resource name for the location for which static IPs should be returned.
359
- // Must be in the format `projects/*/locations/*`.
375
+ // Required. The resource name for the location for which static IPs should be
376
+ // returned. Must be in the format `projects/*/locations/*`.
360
377
string name = 1 [
361
378
(google.api.field_behavior ) = REQUIRED ,
362
379
(google.api.resource_reference ) = {
@@ -449,7 +466,8 @@ message CreateConnectionProfileRequest {
449
466
string connection_profile_id = 2 [(google.api.field_behavior ) = REQUIRED ];
450
467
451
468
// Required. The connection profile resource to create.
452
- ConnectionProfile connection_profile = 3 [(google.api.field_behavior ) = REQUIRED ];
469
+ ConnectionProfile connection_profile = 3
470
+ [(google.api.field_behavior ) = REQUIRED ];
453
471
454
472
// Optional. A request ID to identify requests. Specify a unique request ID
455
473
// so that if you must retry your request, the server will know to ignore
@@ -466,8 +484,8 @@ message CreateConnectionProfileRequest {
466
484
// not supported (00000000-0000-0000-0000-000000000000).
467
485
string request_id = 4 [(google.api.field_behavior ) = OPTIONAL ];
468
486
469
- // Optional. Only validate the connection profile, but don't create any resources.
470
- // The default is false.
487
+ // Optional. Only validate the connection profile, but don't create any
488
+ // resources. The default is false.
471
489
bool validate_only = 5 [(google.api.field_behavior ) = OPTIONAL ];
472
490
473
491
// Optional. Create the connection profile without validating it.
@@ -481,10 +499,12 @@ message UpdateConnectionProfileRequest {
481
499
// The fields specified in the update_mask are relative to the resource, not
482
500
// the full request. A field will be overwritten if it is in the mask. If the
483
501
// user does not provide a mask then all fields will be overwritten.
484
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior ) = OPTIONAL ];
502
+ google.protobuf.FieldMask update_mask = 1
503
+ [(google.api.field_behavior ) = OPTIONAL ];
485
504
486
505
// Required. The connection profile to update.
487
- ConnectionProfile connection_profile = 2 [(google.api.field_behavior ) = REQUIRED ];
506
+ ConnectionProfile connection_profile = 2
507
+ [(google.api.field_behavior ) = REQUIRED ];
488
508
489
509
// Optional. A request ID to identify requests. Specify a unique request ID
490
510
// so that if you must retry your request, the server will know to ignore
@@ -501,8 +521,8 @@ message UpdateConnectionProfileRequest {
501
521
// not supported (00000000-0000-0000-0000-000000000000).
502
522
string request_id = 3 [(google.api.field_behavior ) = OPTIONAL ];
503
523
504
- // Optional. Only validate the connection profile, but don't update any resources.
505
- // The default is false.
524
+ // Optional. Only validate the connection profile, but don't update any
525
+ // resources. The default is false.
506
526
bool validate_only = 4 [(google.api.field_behavior ) = OPTIONAL ];
507
527
508
528
// Optional. Update the connection profile without validating it.
@@ -634,7 +654,8 @@ message UpdateStreamRequest {
634
654
// The fields specified in the update_mask are relative to the resource, not
635
655
// the full request. A field will be overwritten if it is in the mask. If the
636
656
// user does not provide a mask then all fields will be overwritten.
637
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior ) = OPTIONAL ];
657
+ google.protobuf.FieldMask update_mask = 1
658
+ [(google.api.field_behavior ) = OPTIONAL ];
638
659
639
660
// Required. The stream resource to update.
640
661
Stream stream = 2 [(google.api.field_behavior ) = REQUIRED ];
@@ -654,8 +675,8 @@ message UpdateStreamRequest {
654
675
// not supported (00000000-0000-0000-0000-000000000000).
655
676
string request_id = 3 [(google.api.field_behavior ) = OPTIONAL ];
656
677
657
- // Optional. Only validate the stream with the changes, without actually updating it.
658
- // The default is false.
678
+ // Optional. Only validate the stream with the changes, without actually
679
+ // updating it. The default is false.
659
680
bool validate_only = 4 [(google.api.field_behavior ) = OPTIONAL ];
660
681
661
682
// Optional. Update the stream without validating it.
@@ -711,12 +732,14 @@ message LookupStreamObjectRequest {
711
732
];
712
733
713
734
// Required. The source object identifier which maps to the stream object.
714
- SourceObjectIdentifier source_object_identifier = 2 [(google.api.field_behavior ) = REQUIRED ];
735
+ SourceObjectIdentifier source_object_identifier = 2
736
+ [(google.api.field_behavior ) = REQUIRED ];
715
737
}
716
738
717
739
// Request for manually initiating a backfill job for a specific stream object.
718
740
message StartBackfillJobRequest {
719
- // Required. The name of the stream object resource to start a backfill job for.
741
+ // Required. The name of the stream object resource to start a backfill job
742
+ // for.
720
743
string object = 1 [
721
744
(google.api.field_behavior ) = REQUIRED ,
722
745
(google.api.resource_reference ) = {
@@ -734,7 +757,8 @@ message StartBackfillJobResponse {
734
757
// Request for manually stopping a running backfill job for a specific stream
735
758
// object.
736
759
message StopBackfillJobRequest {
737
- // Required. The name of the stream object resource to stop the backfill job for.
760
+ // Required. The name of the stream object resource to stop the backfill job
761
+ // for.
738
762
string object = 1 [
739
763
(google.api.field_behavior ) = REQUIRED ,
740
764
(google.api.resource_reference ) = {
@@ -784,10 +808,12 @@ message ListStreamObjectsResponse {
784
808
// Represents the metadata of the long-running operation.
785
809
message OperationMetadata {
786
810
// Output only. The time the operation was created.
787
- google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
811
+ google.protobuf.Timestamp create_time = 1
812
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
788
813
789
814
// Output only. The time the operation finished running.
790
- google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
815
+ google.protobuf.Timestamp end_time = 2
816
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
791
817
792
818
// Output only. Server-defined resource path for the target of the operation.
793
819
string target = 3 [(google.api.field_behavior ) = OUTPUT_ONLY ];
@@ -800,15 +826,17 @@ message OperationMetadata {
800
826
801
827
// Output only. Identifies whether the user has requested cancellation
802
828
// of the operation. Operations that have successfully been cancelled
803
- // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
804
- // corresponding to `Code.CANCELLED`.
829
+ // have [Operation.error][] value with a
830
+ // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
831
+ // `Code.CANCELLED`.
805
832
bool requested_cancellation = 6 [(google.api.field_behavior ) = OUTPUT_ONLY ];
806
833
807
834
// Output only. API version used to start the operation.
808
835
string api_version = 7 [(google.api.field_behavior ) = OUTPUT_ONLY ];
809
836
810
837
// Output only. Results of executed validations if there are any.
811
- ValidationResult validation_result = 8 [(google.api.field_behavior ) = OUTPUT_ONLY ];
838
+ ValidationResult validation_result = 8
839
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
812
840
}
813
841
814
842
// Request for creating a private connection.
@@ -825,7 +853,8 @@ message CreatePrivateConnectionRequest {
825
853
string private_connection_id = 2 [(google.api.field_behavior ) = REQUIRED ];
826
854
827
855
// Required. The Private Connectivity resource to create.
828
- PrivateConnection private_connection = 3 [(google.api.field_behavior ) = REQUIRED ];
856
+ PrivateConnection private_connection = 3
857
+ [(google.api.field_behavior ) = REQUIRED ];
829
858
830
859
// Optional. A request ID to identify requests. Specify a unique request ID
831
860
// so that if you must retry your request, the server will know to ignore
@@ -841,11 +870,15 @@ message CreatePrivateConnectionRequest {
841
870
// The request ID must be a valid UUID with the exception that zero UUID is
842
871
// not supported (00000000-0000-0000-0000-000000000000).
843
872
string request_id = 4 [(google.api.field_behavior ) = OPTIONAL ];
873
+
874
+ // Optional. If set to true, will skip validations.
875
+ bool force = 6 [(google.api.field_behavior ) = OPTIONAL ];
844
876
}
845
877
846
878
// Request for listing private connections.
847
879
message ListPrivateConnectionsRequest {
848
- // Required. The parent that owns the collection of private connectivity configurations.
880
+ // Required. The parent that owns the collection of private connectivity
881
+ // configurations.
849
882
string parent = 1 [
850
883
(google.api.field_behavior ) = REQUIRED ,
851
884
(google.api.resource_reference ) = {
@@ -912,8 +945,8 @@ message DeletePrivateConnectionRequest {
912
945
// not supported (00000000-0000-0000-0000-000000000000).
913
946
string request_id = 2 [(google.api.field_behavior ) = OPTIONAL ];
914
947
915
- // Optional. If set to true, any child routes that belong to this PrivateConnection will
916
- // also be deleted.
948
+ // Optional. If set to true, any child routes that belong to this
949
+ // PrivateConnection will also be deleted.
917
950
bool force = 3 [(google.api.field_behavior ) = OPTIONAL ];
918
951
}
919
952
0 commit comments