Skip to content

Commit 125799d

Browse files
Google APIscopybara-github
authored andcommitted
fix!: Remove DiscoverConnectionProfile method signature which didn't populate the request sufficiently
fix!: Overhaul resource annotations, some of which were incorrect and some of which were just non-ideal PiperOrigin-RevId: 382316023
1 parent 1c5c56c commit 125799d

3 files changed

Lines changed: 17 additions & 18 deletions

File tree

google/cloud/datastream/v1alpha1/datastream.proto

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,12 @@ service Datastream {
9696
// Use this method to discover a connection profile.
9797
// The discover API call exposes the data objects and metadata belonging to
9898
// the profile. Typically, a request returns children data objects under a
99-
// parent data object thats optionally supplied in the request.
99+
// parent data object that's optionally supplied in the request.
100100
rpc DiscoverConnectionProfile(DiscoverConnectionProfileRequest) returns (DiscoverConnectionProfileResponse) {
101101
option (google.api.http) = {
102102
post: "/v1alpha1/{parent=projects/*/locations/*}/connectionProfiles:discover"
103103
body: "*"
104104
};
105-
option (google.api.method_signature) = "parent";
106105
}
107106

108107
// Use this method to list streams in a project and location.
@@ -173,7 +172,7 @@ service Datastream {
173172

174173
// The FetchStaticIps API call exposes the static ips used by Datastream.
175174
// Typically, a request returns children data objects under
176-
// a parent data object thats optionally supplied in the request.
175+
// a parent data object that's optionally supplied in the request.
177176
rpc FetchStaticIps(FetchStaticIpsRequest) returns (FetchStaticIpsResponse) {
178177
option (google.api.http) = {
179178
get: "/v1alpha1/{name=projects/*/locations/*}:fetchStaticIps"
@@ -274,7 +273,7 @@ message DiscoverConnectionProfileRequest {
274273
string parent = 1 [
275274
(google.api.field_behavior) = REQUIRED,
276275
(google.api.resource_reference) = {
277-
type: "locations.googleapis.com/Location"
276+
child_type: "datastream.googleapis.com/ConnectionProfile"
278277
}
279278
];
280279

@@ -415,7 +414,7 @@ message CreateConnectionProfileRequest {
415414
string parent = 1 [
416415
(google.api.field_behavior) = REQUIRED,
417416
(google.api.resource_reference) = {
418-
type: "datastream.googleapis.com/ConnectionProfile"
417+
child_type: "datastream.googleapis.com/ConnectionProfile"
419418
}
420419
];
421420

@@ -548,7 +547,7 @@ message CreateStreamRequest {
548547
string parent = 1 [
549548
(google.api.field_behavior) = REQUIRED,
550549
(google.api.resource_reference) = {
551-
type: "datastream.googleapis.com/Stream"
550+
child_type: "datastream.googleapis.com/Stream"
552551
}
553552
];
554553

@@ -675,7 +674,7 @@ message CreatePrivateConnectionRequest {
675674
string parent = 1 [
676675
(google.api.field_behavior) = REQUIRED,
677676
(google.api.resource_reference) = {
678-
type: "locations.googleapis.com/Location"
677+
child_type: "datastream.googleapis.com/PrivateConnection"
679678
}
680679
];
681680

@@ -706,7 +705,7 @@ message ListPrivateConnectionsRequest {
706705
string parent = 1 [
707706
(google.api.field_behavior) = REQUIRED,
708707
(google.api.resource_reference) = {
709-
type: "locations.googleapis.com/Location"
708+
child_type: "datastream.googleapis.com/PrivateConnection"
710709
}
711710
];
712711

@@ -748,7 +747,7 @@ message DeletePrivateConnectionRequest {
748747
string name = 1 [
749748
(google.api.field_behavior) = REQUIRED,
750749
(google.api.resource_reference) = {
751-
type: "locations.googleapis.com/Location"
750+
type: "datastream.googleapis.com/PrivateConnection"
752751
}
753752
];
754753

@@ -777,7 +776,7 @@ message GetPrivateConnectionRequest {
777776
string name = 1 [
778777
(google.api.field_behavior) = REQUIRED,
779778
(google.api.resource_reference) = {
780-
type: "locations.googleapis.com/Location"
779+
type: "datastream.googleapis.com/PrivateConnection"
781780
}
782781
];
783782
}
@@ -788,7 +787,7 @@ message CreateRouteRequest {
788787
string parent = 1 [
789788
(google.api.field_behavior) = REQUIRED,
790789
(google.api.resource_reference) = {
791-
type: "datastream.googleapis.com/PrivateConnection"
790+
child_type: "datastream.googleapis.com/Route"
792791
}
793792
];
794793

@@ -820,7 +819,7 @@ message ListRoutesRequest {
820819
string parent = 1 [
821820
(google.api.field_behavior) = REQUIRED,
822821
(google.api.resource_reference) = {
823-
type: "datastream.googleapis.com/PrivateConnection"
822+
child_type: "datastream.googleapis.com/Route"
824823
}
825824
];
826825

@@ -864,7 +863,7 @@ message DeleteRouteRequest {
864863
string name = 1 [
865864
(google.api.field_behavior) = REQUIRED,
866865
(google.api.resource_reference) = {
867-
type: "datastream.googleapis.com/PrivateConnection"
866+
type: "datastream.googleapis.com/Route"
868867
}
869868
];
870869

@@ -890,7 +889,7 @@ message GetRouteRequest {
890889
string name = 1 [
891890
(google.api.field_behavior) = REQUIRED,
892891
(google.api.resource_reference) = {
893-
type: "datastream.googleapis.com/PrivateConnection"
892+
type: "datastream.googleapis.com/Route"
894893
}
895894
];
896895
}

google/cloud/datastream/v1alpha1/datastream_resources.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ message Stream {
508508
pattern: "projects/{project}/locations/{location}/streams/{stream}"
509509
};
510510

511-
// Backfill strategy to automatically backfill the Streams objects.
511+
// Backfill strategy to automatically backfill the Stream's objects.
512512
// Specific objects can be excluded.
513513
message BackfillAllStrategy {
514514
// List of objects to exclude.
@@ -521,7 +521,7 @@ message Stream {
521521
}
522522
}
523523

524-
// Backfill strategy to disable automatic backfill for the Streams objects.
524+
// Backfill strategy to disable automatic backfill for the Stream's objects.
525525
message BackfillNoneStrategy {
526526

527527
}

google/cloud/datastream/v1alpha1/datastream_v1alpha1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
type: google.api.Service
22
config_version: 3
33
name: datastream.googleapis.com
4-
title: DataStream API
4+
title: Datastream API
55

66
apis:
77
- name: google.cloud.datastream.v1alpha1.Datastream
@@ -25,7 +25,7 @@ backend:
2525
- selector: 'google.cloud.datastream.v1alpha1.Datastream.*'
2626
deadline: 60.0
2727
- selector: google.cloud.datastream.v1alpha1.Datastream.DiscoverConnectionProfile
28-
deadline: 90.0
28+
deadline: 120.0
2929
- selector: google.cloud.location.Locations.GetLocation
3030
deadline: 60.0
3131
- selector: google.cloud.location.Locations.ListLocations

0 commit comments

Comments
 (0)