Skip to content

Commit ae89709

Browse files
trollyxiagcf-owl-bot[bot]Lixia Chen
authored
feat: Add authorized view bindings to Cloud Bigtable data APIs and messages (#2144)
* fix(deps): Update the Java code generator (gapic-generator-java) to 2.37.0 PiperOrigin-RevId: 611816371 Source-Link: googleapis/googleapis@2a40f63 Source-Link: googleapis/googleapis-gen@d30ff07 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDMwZmYwNzY3Nzc3YjM4MWZiMTYxN2Y2N2E5MGUzYWJkM2JkYzZkYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Cloud Bigtable Authorized Views admin APIs protos PiperOrigin-RevId: 612537460 Source-Link: googleapis/googleapis@b98fe7f Source-Link: googleapis/googleapis-gen@03d9b5c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDNkOWI1YzU1MTdjZjkxMjNmMTIwNDYxMTgwZWJkZDM4N2E0N2JjYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add authorized view bindings to Cloud Bigtable data APIs and messages docs: The field `table_name` in message `.google.bigtable.v2.ReadRowsRequest` is changed from required to optional docs: The field `table_name` in message `.google.bigtable.v2.SampleRowKeysRequest` is changed from required to optional docs: The field `table_name` in message `.google.bigtable.v2.MutateRowRequest` is changed from required to optional docs: The field `table_name` in message `.google.bigtable.v2.MutateRowsRequest` is changed from required to optional docs: The field `table_name` in message `.google.bigtable.v2.CheckAndMutateRowRequest` is changed from required to optional docs: The field `table_name` in message `.google.bigtable.v2.ReadModifyWriteRowRequest` is changed from required to optional PiperOrigin-RevId: 612537984 Source-Link: googleapis/googleapis@6465963 Source-Link: googleapis/googleapis-gen@f4a9960 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjRhOTk2MDcxODAxZjU1OWJiNmY0ZDBjOTliYjlhM2MwZWNmNDg0NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Fix unit test broken by the new authorized views apis Change-Id: I075e896a696d83c70f72337f2921d3285e408e1e --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Lixia Chen <[email protected]>
1 parent a2497bb commit ae89709

File tree

52 files changed

+20329
-736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+20329
-736
lines changed

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java

+850
Large diffs are not rendered by default.

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java

+100
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.google.cloud.bigtable.admin.v2;
1818

19+
import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListAuthorizedViewsPagedResponse;
1920
import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListBackupsPagedResponse;
2021
import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListSnapshotsPagedResponse;
2122
import static com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient.ListTablesPagedResponse;
@@ -32,25 +33,32 @@
3233
import com.google.api.gax.rpc.PagedCallSettings;
3334
import com.google.api.gax.rpc.TransportChannelProvider;
3435
import com.google.api.gax.rpc.UnaryCallSettings;
36+
import com.google.bigtable.admin.v2.AuthorizedView;
3537
import com.google.bigtable.admin.v2.Backup;
3638
import com.google.bigtable.admin.v2.CheckConsistencyRequest;
3739
import com.google.bigtable.admin.v2.CheckConsistencyResponse;
3840
import com.google.bigtable.admin.v2.CopyBackupMetadata;
3941
import com.google.bigtable.admin.v2.CopyBackupRequest;
42+
import com.google.bigtable.admin.v2.CreateAuthorizedViewMetadata;
43+
import com.google.bigtable.admin.v2.CreateAuthorizedViewRequest;
4044
import com.google.bigtable.admin.v2.CreateBackupMetadata;
4145
import com.google.bigtable.admin.v2.CreateBackupRequest;
4246
import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata;
4347
import com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest;
4448
import com.google.bigtable.admin.v2.CreateTableRequest;
49+
import com.google.bigtable.admin.v2.DeleteAuthorizedViewRequest;
4550
import com.google.bigtable.admin.v2.DeleteBackupRequest;
4651
import com.google.bigtable.admin.v2.DeleteSnapshotRequest;
4752
import com.google.bigtable.admin.v2.DeleteTableRequest;
4853
import com.google.bigtable.admin.v2.DropRowRangeRequest;
4954
import com.google.bigtable.admin.v2.GenerateConsistencyTokenRequest;
5055
import com.google.bigtable.admin.v2.GenerateConsistencyTokenResponse;
56+
import com.google.bigtable.admin.v2.GetAuthorizedViewRequest;
5157
import com.google.bigtable.admin.v2.GetBackupRequest;
5258
import com.google.bigtable.admin.v2.GetSnapshotRequest;
5359
import com.google.bigtable.admin.v2.GetTableRequest;
60+
import com.google.bigtable.admin.v2.ListAuthorizedViewsRequest;
61+
import com.google.bigtable.admin.v2.ListAuthorizedViewsResponse;
5462
import com.google.bigtable.admin.v2.ListBackupsRequest;
5563
import com.google.bigtable.admin.v2.ListBackupsResponse;
5664
import com.google.bigtable.admin.v2.ListSnapshotsRequest;
@@ -66,6 +74,8 @@
6674
import com.google.bigtable.admin.v2.Table;
6775
import com.google.bigtable.admin.v2.UndeleteTableMetadata;
6876
import com.google.bigtable.admin.v2.UndeleteTableRequest;
77+
import com.google.bigtable.admin.v2.UpdateAuthorizedViewMetadata;
78+
import com.google.bigtable.admin.v2.UpdateAuthorizedViewRequest;
6979
import com.google.bigtable.admin.v2.UpdateBackupRequest;
7080
import com.google.bigtable.admin.v2.UpdateTableMetadata;
7181
import com.google.bigtable.admin.v2.UpdateTableRequest;
@@ -144,6 +154,49 @@ public UnaryCallSettings<UndeleteTableRequest, Operation> undeleteTableSettings(
144154
return ((BigtableTableAdminStubSettings) getStubSettings()).undeleteTableOperationSettings();
145155
}
146156

157+
/** Returns the object with the settings used for calls to createAuthorizedView. */
158+
public UnaryCallSettings<CreateAuthorizedViewRequest, Operation> createAuthorizedViewSettings() {
159+
return ((BigtableTableAdminStubSettings) getStubSettings()).createAuthorizedViewSettings();
160+
}
161+
162+
/** Returns the object with the settings used for calls to createAuthorizedView. */
163+
public OperationCallSettings<
164+
CreateAuthorizedViewRequest, AuthorizedView, CreateAuthorizedViewMetadata>
165+
createAuthorizedViewOperationSettings() {
166+
return ((BigtableTableAdminStubSettings) getStubSettings())
167+
.createAuthorizedViewOperationSettings();
168+
}
169+
170+
/** Returns the object with the settings used for calls to listAuthorizedViews. */
171+
public PagedCallSettings<
172+
ListAuthorizedViewsRequest, ListAuthorizedViewsResponse, ListAuthorizedViewsPagedResponse>
173+
listAuthorizedViewsSettings() {
174+
return ((BigtableTableAdminStubSettings) getStubSettings()).listAuthorizedViewsSettings();
175+
}
176+
177+
/** Returns the object with the settings used for calls to getAuthorizedView. */
178+
public UnaryCallSettings<GetAuthorizedViewRequest, AuthorizedView> getAuthorizedViewSettings() {
179+
return ((BigtableTableAdminStubSettings) getStubSettings()).getAuthorizedViewSettings();
180+
}
181+
182+
/** Returns the object with the settings used for calls to updateAuthorizedView. */
183+
public UnaryCallSettings<UpdateAuthorizedViewRequest, Operation> updateAuthorizedViewSettings() {
184+
return ((BigtableTableAdminStubSettings) getStubSettings()).updateAuthorizedViewSettings();
185+
}
186+
187+
/** Returns the object with the settings used for calls to updateAuthorizedView. */
188+
public OperationCallSettings<
189+
UpdateAuthorizedViewRequest, AuthorizedView, UpdateAuthorizedViewMetadata>
190+
updateAuthorizedViewOperationSettings() {
191+
return ((BigtableTableAdminStubSettings) getStubSettings())
192+
.updateAuthorizedViewOperationSettings();
193+
}
194+
195+
/** Returns the object with the settings used for calls to deleteAuthorizedView. */
196+
public UnaryCallSettings<DeleteAuthorizedViewRequest, Empty> deleteAuthorizedViewSettings() {
197+
return ((BigtableTableAdminStubSettings) getStubSettings()).deleteAuthorizedViewSettings();
198+
}
199+
147200
/** Returns the object with the settings used for calls to modifyColumnFamilies. */
148201
public UnaryCallSettings<ModifyColumnFamiliesRequest, Table> modifyColumnFamiliesSettings() {
149202
return ((BigtableTableAdminStubSettings) getStubSettings()).modifyColumnFamiliesSettings();
@@ -416,6 +469,53 @@ public UnaryCallSettings.Builder<UndeleteTableRequest, Operation> undeleteTableS
416469
return getStubSettingsBuilder().undeleteTableOperationSettings();
417470
}
418471

472+
/** Returns the builder for the settings used for calls to createAuthorizedView. */
473+
public UnaryCallSettings.Builder<CreateAuthorizedViewRequest, Operation>
474+
createAuthorizedViewSettings() {
475+
return getStubSettingsBuilder().createAuthorizedViewSettings();
476+
}
477+
478+
/** Returns the builder for the settings used for calls to createAuthorizedView. */
479+
public OperationCallSettings.Builder<
480+
CreateAuthorizedViewRequest, AuthorizedView, CreateAuthorizedViewMetadata>
481+
createAuthorizedViewOperationSettings() {
482+
return getStubSettingsBuilder().createAuthorizedViewOperationSettings();
483+
}
484+
485+
/** Returns the builder for the settings used for calls to listAuthorizedViews. */
486+
public PagedCallSettings.Builder<
487+
ListAuthorizedViewsRequest,
488+
ListAuthorizedViewsResponse,
489+
ListAuthorizedViewsPagedResponse>
490+
listAuthorizedViewsSettings() {
491+
return getStubSettingsBuilder().listAuthorizedViewsSettings();
492+
}
493+
494+
/** Returns the builder for the settings used for calls to getAuthorizedView. */
495+
public UnaryCallSettings.Builder<GetAuthorizedViewRequest, AuthorizedView>
496+
getAuthorizedViewSettings() {
497+
return getStubSettingsBuilder().getAuthorizedViewSettings();
498+
}
499+
500+
/** Returns the builder for the settings used for calls to updateAuthorizedView. */
501+
public UnaryCallSettings.Builder<UpdateAuthorizedViewRequest, Operation>
502+
updateAuthorizedViewSettings() {
503+
return getStubSettingsBuilder().updateAuthorizedViewSettings();
504+
}
505+
506+
/** Returns the builder for the settings used for calls to updateAuthorizedView. */
507+
public OperationCallSettings.Builder<
508+
UpdateAuthorizedViewRequest, AuthorizedView, UpdateAuthorizedViewMetadata>
509+
updateAuthorizedViewOperationSettings() {
510+
return getStubSettingsBuilder().updateAuthorizedViewOperationSettings();
511+
}
512+
513+
/** Returns the builder for the settings used for calls to deleteAuthorizedView. */
514+
public UnaryCallSettings.Builder<DeleteAuthorizedViewRequest, Empty>
515+
deleteAuthorizedViewSettings() {
516+
return getStubSettingsBuilder().deleteAuthorizedViewSettings();
517+
}
518+
419519
/** Returns the builder for the settings used for calls to modifyColumnFamilies. */
420520
public UnaryCallSettings.Builder<ModifyColumnFamiliesRequest, Table>
421521
modifyColumnFamiliesSettings() {

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminSettings.java

+11
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,17 @@ public String toString() {
128128
.add("updateTableOperationSettings", stubSettings.updateTableOperationSettings())
129129
.add("copyBackupSettings", stubSettings.copyBackupSettings())
130130
.add("copyBackupOperationSettings", stubSettings.copyBackupOperationSettings())
131+
.add("createAuthorizedViewSettings", stubSettings.createAuthorizedViewSettings())
132+
.add(
133+
"createAuthorizedViewOperationSettings",
134+
stubSettings.createAuthorizedViewOperationSettings())
135+
.add("updateAuthorizedViewSettings", stubSettings.updateAuthorizedViewSettings())
136+
.add(
137+
"updateAuthorizedViewOperationSettings",
138+
stubSettings.updateAuthorizedViewOperationSettings())
139+
.add("deleteAuthorizedViewSettings", stubSettings.deleteAuthorizedViewSettings())
140+
.add("listAuthorizedViewsSettings", stubSettings.listAuthorizedViewsSettings())
141+
.add("getAuthorizedViewSettings", stubSettings.getAuthorizedViewSettings())
131142
.toString();
132143
}
133144

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json

+15
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
"CopyBackup": {
8989
"methods": ["copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupOperationCallable", "copyBackupCallable"]
9090
},
91+
"CreateAuthorizedView": {
92+
"methods": ["createAuthorizedViewAsync", "createAuthorizedViewAsync", "createAuthorizedViewAsync", "createAuthorizedViewOperationCallable", "createAuthorizedViewCallable"]
93+
},
9194
"CreateBackup": {
9295
"methods": ["createBackupAsync", "createBackupAsync", "createBackupAsync", "createBackupOperationCallable", "createBackupCallable"]
9396
},
@@ -97,6 +100,9 @@
97100
"CreateTableFromSnapshot": {
98101
"methods": ["createTableFromSnapshotAsync", "createTableFromSnapshotAsync", "createTableFromSnapshotAsync", "createTableFromSnapshotAsync", "createTableFromSnapshotAsync", "createTableFromSnapshotOperationCallable", "createTableFromSnapshotCallable"]
99102
},
103+
"DeleteAuthorizedView": {
104+
"methods": ["deleteAuthorizedView", "deleteAuthorizedView", "deleteAuthorizedView", "deleteAuthorizedViewCallable"]
105+
},
100106
"DeleteBackup": {
101107
"methods": ["deleteBackup", "deleteBackup", "deleteBackup", "deleteBackupCallable"]
102108
},
@@ -112,6 +118,9 @@
112118
"GenerateConsistencyToken": {
113119
"methods": ["generateConsistencyToken", "generateConsistencyToken", "generateConsistencyToken", "generateConsistencyTokenCallable"]
114120
},
121+
"GetAuthorizedView": {
122+
"methods": ["getAuthorizedView", "getAuthorizedView", "getAuthorizedView", "getAuthorizedViewCallable"]
123+
},
115124
"GetBackup": {
116125
"methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"]
117126
},
@@ -124,6 +133,9 @@
124133
"GetTable": {
125134
"methods": ["getTable", "getTable", "getTable", "getTableCallable"]
126135
},
136+
"ListAuthorizedViews": {
137+
"methods": ["listAuthorizedViews", "listAuthorizedViews", "listAuthorizedViews", "listAuthorizedViewsPagedCallable", "listAuthorizedViewsCallable"]
138+
},
127139
"ListBackups": {
128140
"methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"]
129141
},
@@ -151,6 +163,9 @@
151163
"UndeleteTable": {
152164
"methods": ["undeleteTableAsync", "undeleteTableAsync", "undeleteTableAsync", "undeleteTableOperationCallable", "undeleteTableCallable"]
153165
},
166+
"UpdateAuthorizedView": {
167+
"methods": ["updateAuthorizedViewAsync", "updateAuthorizedViewAsync", "updateAuthorizedViewOperationCallable", "updateAuthorizedViewCallable"]
168+
},
154169
"UpdateBackup": {
155170
"methods": ["updateBackup", "updateBackup", "updateBackupCallable"]
156171
},

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java

-13
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import com.google.api.core.ApiFunction;
2323
import com.google.api.core.ApiFuture;
24-
import com.google.api.core.BetaApi;
2524
import com.google.api.gax.core.GaxProperties;
2625
import com.google.api.gax.core.GoogleCredentialsProvider;
2726
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -1081,8 +1080,6 @@ public UnaryCallSettings.Builder<CreateInstanceRequest, Operation> createInstanc
10811080
}
10821081

10831082
/** Returns the builder for the settings used for calls to createInstance. */
1084-
@BetaApi(
1085-
"The surface for use by generated code is not stable yet and may change in the future.")
10861083
public OperationCallSettings.Builder<CreateInstanceRequest, Instance, CreateInstanceMetadata>
10871084
createInstanceOperationSettings() {
10881085
return createInstanceOperationSettings;
@@ -1111,8 +1108,6 @@ public UnaryCallSettings.Builder<Instance, Instance> updateInstanceSettings() {
11111108
}
11121109

11131110
/** Returns the builder for the settings used for calls to partialUpdateInstance. */
1114-
@BetaApi(
1115-
"The surface for use by generated code is not stable yet and may change in the future.")
11161111
public OperationCallSettings.Builder<
11171112
PartialUpdateInstanceRequest, Instance, UpdateInstanceMetadata>
11181113
partialUpdateInstanceOperationSettings() {
@@ -1130,8 +1125,6 @@ public UnaryCallSettings.Builder<CreateClusterRequest, Operation> createClusterS
11301125
}
11311126

11321127
/** Returns the builder for the settings used for calls to createCluster. */
1133-
@BetaApi(
1134-
"The surface for use by generated code is not stable yet and may change in the future.")
11351128
public OperationCallSettings.Builder<CreateClusterRequest, Cluster, CreateClusterMetadata>
11361129
createClusterOperationSettings() {
11371130
return createClusterOperationSettings;
@@ -1154,8 +1147,6 @@ public UnaryCallSettings.Builder<Cluster, Operation> updateClusterSettings() {
11541147
}
11551148

11561149
/** Returns the builder for the settings used for calls to updateCluster. */
1157-
@BetaApi(
1158-
"The surface for use by generated code is not stable yet and may change in the future.")
11591150
public OperationCallSettings.Builder<Cluster, Cluster, UpdateClusterMetadata>
11601151
updateClusterOperationSettings() {
11611152
return updateClusterOperationSettings;
@@ -1168,8 +1159,6 @@ public UnaryCallSettings.Builder<Cluster, Operation> updateClusterSettings() {
11681159
}
11691160

11701161
/** Returns the builder for the settings used for calls to partialUpdateCluster. */
1171-
@BetaApi(
1172-
"The surface for use by generated code is not stable yet and may change in the future.")
11731162
public OperationCallSettings.Builder<
11741163
PartialUpdateClusterRequest, Cluster, PartialUpdateClusterMetadata>
11751164
partialUpdateClusterOperationSettings() {
@@ -1206,8 +1195,6 @@ public UnaryCallSettings.Builder<GetAppProfileRequest, AppProfile> getAppProfile
12061195
}
12071196

12081197
/** Returns the builder for the settings used for calls to updateAppProfile. */
1209-
@BetaApi(
1210-
"The surface for use by generated code is not stable yet and may change in the future.")
12111198
public OperationCallSettings.Builder<
12121199
UpdateAppProfileRequest, AppProfile, UpdateAppProfileMetadata>
12131200
updateAppProfileOperationSettings() {

0 commit comments

Comments
 (0)