Skip to content

Commit 8174107

Browse files
feat: [metastore] added ScalingConfig (v1) (#9350)
* feat: added ScalingConfig (v1) feat: added Auxiliary Versions Config (v1) feat: added Dataplex and BQ metastore types for federation (v1alpa, v1beta) PiperOrigin-RevId: 524313740 Source-Link: googleapis/googleapis@63d1a0e Source-Link: https://github.com/googleapis/googleapis-gen/commit/400e991cfd3730a363adfb387444e5a6c624a411 Copy-Tag: eyJwIjoiamF2YS1kYXRhcHJvYy1tZXRhc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6IjQwMGU5OTFjZmQzNzMwYTM2M2FkZmIzODc0NDRlNWE2YzYyNGE0MTEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * deps: add proto-google-iam-v1 to dependency * Revert "deps: add proto-google-iam-v1 to dependency" This reverts commit 4e63a45. * deps: add missing dependencies --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Emily Wang <[email protected]>
1 parent 149aef9 commit 8174107

File tree

224 files changed

+25523
-3090
lines changed

Some content is hidden

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

224 files changed

+25523
-3090
lines changed

java-dataproc-metastore/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.11.0</version>
23+
<version>26.13.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc-metastore.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.15.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.16.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
<groupId>com.google.api.grpc</groupId>
4141
<artifactId>proto-google-common-protos</artifactId>
4242
</dependency>
43+
<dependency>
44+
<groupId>com.google.api.grpc</groupId>
45+
<artifactId>proto-google-iam-v1</artifactId>
46+
</dependency>
4347

4448
<dependency>
4549
<groupId>com.google.api.grpc</groupId>
@@ -80,6 +84,16 @@
8084
<artifactId>junit</artifactId>
8185
<scope>test</scope>
8286
</dependency>
87+
<dependency>
88+
<groupId>com.google.api.grpc</groupId>
89+
<artifactId>grpc-google-common-protos</artifactId>
90+
<scope>test</scope>
91+
</dependency>
92+
<dependency>
93+
<groupId>com.google.api.grpc</groupId>
94+
<artifactId>grpc-google-iam-v1</artifactId>
95+
<scope>test</scope>
96+
</dependency>
8397

8498
<dependency>
8599
<groupId>com.google.api.grpc</groupId>

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreClient.java

Lines changed: 437 additions & 0 deletions
Large diffs are not rendered by default.

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationClient.java

Lines changed: 452 additions & 0 deletions
Large diffs are not rendered by default.

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreFederationSettings.java

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.google.cloud.metastore.v1;
1818

1919
import static com.google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListFederationsPagedResponse;
20+
import static com.google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListLocationsPagedResponse;
2021

2122
import com.google.api.core.ApiFunction;
2223
import com.google.api.core.BetaApi;
@@ -31,7 +32,16 @@
3132
import com.google.api.gax.rpc.PagedCallSettings;
3233
import com.google.api.gax.rpc.TransportChannelProvider;
3334
import com.google.api.gax.rpc.UnaryCallSettings;
35+
import com.google.cloud.location.GetLocationRequest;
36+
import com.google.cloud.location.ListLocationsRequest;
37+
import com.google.cloud.location.ListLocationsResponse;
38+
import com.google.cloud.location.Location;
3439
import com.google.cloud.metastore.v1.stub.DataprocMetastoreFederationStubSettings;
40+
import com.google.iam.v1.GetIamPolicyRequest;
41+
import com.google.iam.v1.Policy;
42+
import com.google.iam.v1.SetIamPolicyRequest;
43+
import com.google.iam.v1.TestIamPermissionsRequest;
44+
import com.google.iam.v1.TestIamPermissionsResponse;
3545
import com.google.longrunning.Operation;
3646
import com.google.protobuf.Empty;
3747
import java.io.IOException;
@@ -128,6 +138,34 @@ public UnaryCallSettings<DeleteFederationRequest, Operation> deleteFederationSet
128138
.deleteFederationOperationSettings();
129139
}
130140

141+
/** Returns the object with the settings used for calls to listLocations. */
142+
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
143+
listLocationsSettings() {
144+
return ((DataprocMetastoreFederationStubSettings) getStubSettings()).listLocationsSettings();
145+
}
146+
147+
/** Returns the object with the settings used for calls to getLocation. */
148+
public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
149+
return ((DataprocMetastoreFederationStubSettings) getStubSettings()).getLocationSettings();
150+
}
151+
152+
/** Returns the object with the settings used for calls to setIamPolicy. */
153+
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
154+
return ((DataprocMetastoreFederationStubSettings) getStubSettings()).setIamPolicySettings();
155+
}
156+
157+
/** Returns the object with the settings used for calls to getIamPolicy. */
158+
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
159+
return ((DataprocMetastoreFederationStubSettings) getStubSettings()).getIamPolicySettings();
160+
}
161+
162+
/** Returns the object with the settings used for calls to testIamPermissions. */
163+
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
164+
testIamPermissionsSettings() {
165+
return ((DataprocMetastoreFederationStubSettings) getStubSettings())
166+
.testIamPermissionsSettings();
167+
}
168+
131169
public static final DataprocMetastoreFederationSettings create(
132170
DataprocMetastoreFederationStubSettings stub) throws IOException {
133171
return new DataprocMetastoreFederationSettings.Builder(stub.toBuilder()).build();
@@ -292,6 +330,34 @@ public UnaryCallSettings.Builder<GetFederationRequest, Federation> getFederation
292330
return getStubSettingsBuilder().deleteFederationOperationSettings();
293331
}
294332

333+
/** Returns the builder for the settings used for calls to listLocations. */
334+
public PagedCallSettings.Builder<
335+
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
336+
listLocationsSettings() {
337+
return getStubSettingsBuilder().listLocationsSettings();
338+
}
339+
340+
/** Returns the builder for the settings used for calls to getLocation. */
341+
public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() {
342+
return getStubSettingsBuilder().getLocationSettings();
343+
}
344+
345+
/** Returns the builder for the settings used for calls to setIamPolicy. */
346+
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
347+
return getStubSettingsBuilder().setIamPolicySettings();
348+
}
349+
350+
/** Returns the builder for the settings used for calls to getIamPolicy. */
351+
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
352+
return getStubSettingsBuilder().getIamPolicySettings();
353+
}
354+
355+
/** Returns the builder for the settings used for calls to testIamPermissions. */
356+
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
357+
testIamPermissionsSettings() {
358+
return getStubSettingsBuilder().testIamPermissionsSettings();
359+
}
360+
295361
@Override
296362
public DataprocMetastoreFederationSettings build() throws IOException {
297363
return new DataprocMetastoreFederationSettings(this);

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/DataprocMetastoreSettings.java

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.google.cloud.metastore.v1;
1818

1919
import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListBackupsPagedResponse;
20+
import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListLocationsPagedResponse;
2021
import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListMetadataImportsPagedResponse;
2122
import static com.google.cloud.metastore.v1.DataprocMetastoreClient.ListServicesPagedResponse;
2223

@@ -33,7 +34,16 @@
3334
import com.google.api.gax.rpc.PagedCallSettings;
3435
import com.google.api.gax.rpc.TransportChannelProvider;
3536
import com.google.api.gax.rpc.UnaryCallSettings;
37+
import com.google.cloud.location.GetLocationRequest;
38+
import com.google.cloud.location.ListLocationsRequest;
39+
import com.google.cloud.location.ListLocationsResponse;
40+
import com.google.cloud.location.Location;
3641
import com.google.cloud.metastore.v1.stub.DataprocMetastoreStubSettings;
42+
import com.google.iam.v1.GetIamPolicyRequest;
43+
import com.google.iam.v1.Policy;
44+
import com.google.iam.v1.SetIamPolicyRequest;
45+
import com.google.iam.v1.TestIamPermissionsRequest;
46+
import com.google.iam.v1.TestIamPermissionsResponse;
3747
import com.google.longrunning.Operation;
3848
import com.google.protobuf.Empty;
3949
import java.io.IOException;
@@ -215,6 +225,33 @@ public UnaryCallSettings<DeleteBackupRequest, Operation> deleteBackupSettings()
215225
return ((DataprocMetastoreStubSettings) getStubSettings()).deleteBackupOperationSettings();
216226
}
217227

228+
/** Returns the object with the settings used for calls to listLocations. */
229+
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
230+
listLocationsSettings() {
231+
return ((DataprocMetastoreStubSettings) getStubSettings()).listLocationsSettings();
232+
}
233+
234+
/** Returns the object with the settings used for calls to getLocation. */
235+
public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
236+
return ((DataprocMetastoreStubSettings) getStubSettings()).getLocationSettings();
237+
}
238+
239+
/** Returns the object with the settings used for calls to setIamPolicy. */
240+
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
241+
return ((DataprocMetastoreStubSettings) getStubSettings()).setIamPolicySettings();
242+
}
243+
244+
/** Returns the object with the settings used for calls to getIamPolicy. */
245+
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
246+
return ((DataprocMetastoreStubSettings) getStubSettings()).getIamPolicySettings();
247+
}
248+
249+
/** Returns the object with the settings used for calls to testIamPermissions. */
250+
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
251+
testIamPermissionsSettings() {
252+
return ((DataprocMetastoreStubSettings) getStubSettings()).testIamPermissionsSettings();
253+
}
254+
218255
public static final DataprocMetastoreSettings create(DataprocMetastoreStubSettings stub)
219256
throws IOException {
220257
return new DataprocMetastoreSettings.Builder(stub.toBuilder()).build();
@@ -472,6 +509,34 @@ public UnaryCallSettings.Builder<DeleteBackupRequest, Operation> deleteBackupSet
472509
return getStubSettingsBuilder().deleteBackupOperationSettings();
473510
}
474511

512+
/** Returns the builder for the settings used for calls to listLocations. */
513+
public PagedCallSettings.Builder<
514+
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
515+
listLocationsSettings() {
516+
return getStubSettingsBuilder().listLocationsSettings();
517+
}
518+
519+
/** Returns the builder for the settings used for calls to getLocation. */
520+
public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() {
521+
return getStubSettingsBuilder().getLocationSettings();
522+
}
523+
524+
/** Returns the builder for the settings used for calls to setIamPolicy. */
525+
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
526+
return getStubSettingsBuilder().setIamPolicySettings();
527+
}
528+
529+
/** Returns the builder for the settings used for calls to getIamPolicy. */
530+
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
531+
return getStubSettingsBuilder().getIamPolicySettings();
532+
}
533+
534+
/** Returns the builder for the settings used for calls to testIamPermissions. */
535+
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
536+
testIamPermissionsSettings() {
537+
return getStubSettingsBuilder().testIamPermissionsSettings();
538+
}
539+
475540
@Override
476541
public DataprocMetastoreSettings build() throws IOException {
477542
return new DataprocMetastoreSettings(this);

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/gapic_metadata.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
"GetBackup": {
3232
"methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"]
3333
},
34+
"GetIamPolicy": {
35+
"methods": ["getIamPolicy", "getIamPolicyCallable"]
36+
},
37+
"GetLocation": {
38+
"methods": ["getLocation", "getLocationCallable"]
39+
},
3440
"GetMetadataImport": {
3541
"methods": ["getMetadataImport", "getMetadataImport", "getMetadataImport", "getMetadataImportCallable"]
3642
},
@@ -40,6 +46,9 @@
4046
"ListBackups": {
4147
"methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"]
4248
},
49+
"ListLocations": {
50+
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
51+
},
4352
"ListMetadataImports": {
4453
"methods": ["listMetadataImports", "listMetadataImports", "listMetadataImports", "listMetadataImportsPagedCallable", "listMetadataImportsCallable"]
4554
},
@@ -49,6 +58,12 @@
4958
"RestoreService": {
5059
"methods": ["restoreServiceAsync", "restoreServiceAsync", "restoreServiceAsync", "restoreServiceAsync", "restoreServiceAsync", "restoreServiceOperationCallable", "restoreServiceCallable"]
5160
},
61+
"SetIamPolicy": {
62+
"methods": ["setIamPolicy", "setIamPolicyCallable"]
63+
},
64+
"TestIamPermissions": {
65+
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
66+
},
5267
"UpdateMetadataImport": {
5368
"methods": ["updateMetadataImportAsync", "updateMetadataImportAsync", "updateMetadataImportOperationCallable", "updateMetadataImportCallable"]
5469
},
@@ -73,9 +88,24 @@
7388
"GetFederation": {
7489
"methods": ["getFederation", "getFederation", "getFederation", "getFederationCallable"]
7590
},
91+
"GetIamPolicy": {
92+
"methods": ["getIamPolicy", "getIamPolicyCallable"]
93+
},
94+
"GetLocation": {
95+
"methods": ["getLocation", "getLocationCallable"]
96+
},
7697
"ListFederations": {
7798
"methods": ["listFederations", "listFederations", "listFederations", "listFederationsPagedCallable", "listFederationsCallable"]
7899
},
100+
"ListLocations": {
101+
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
102+
},
103+
"SetIamPolicy": {
104+
"methods": ["setIamPolicy", "setIamPolicyCallable"]
105+
},
106+
"TestIamPermissions": {
107+
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
108+
},
79109
"UpdateFederation": {
80110
"methods": ["updateFederationAsync", "updateFederationAsync", "updateFederationOperationCallable", "updateFederationCallable"]
81111
}

java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/DataprocMetastoreFederationStub.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@
1717
package com.google.cloud.metastore.v1.stub;
1818

1919
import static com.google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListFederationsPagedResponse;
20+
import static com.google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListLocationsPagedResponse;
2021

2122
import com.google.api.gax.core.BackgroundResource;
2223
import com.google.api.gax.rpc.OperationCallable;
2324
import com.google.api.gax.rpc.UnaryCallable;
25+
import com.google.cloud.location.GetLocationRequest;
26+
import com.google.cloud.location.ListLocationsRequest;
27+
import com.google.cloud.location.ListLocationsResponse;
28+
import com.google.cloud.location.Location;
2429
import com.google.cloud.metastore.v1.CreateFederationRequest;
2530
import com.google.cloud.metastore.v1.DeleteFederationRequest;
2631
import com.google.cloud.metastore.v1.Federation;
@@ -29,6 +34,11 @@
2934
import com.google.cloud.metastore.v1.ListFederationsResponse;
3035
import com.google.cloud.metastore.v1.OperationMetadata;
3136
import com.google.cloud.metastore.v1.UpdateFederationRequest;
37+
import com.google.iam.v1.GetIamPolicyRequest;
38+
import com.google.iam.v1.Policy;
39+
import com.google.iam.v1.SetIamPolicyRequest;
40+
import com.google.iam.v1.TestIamPermissionsRequest;
41+
import com.google.iam.v1.TestIamPermissionsResponse;
3242
import com.google.longrunning.Operation;
3343
import com.google.longrunning.stub.OperationsStub;
3444
import com.google.protobuf.Empty;
@@ -91,6 +101,32 @@ public UnaryCallable<DeleteFederationRequest, Operation> deleteFederationCallabl
91101
throw new UnsupportedOperationException("Not implemented: deleteFederationCallable()");
92102
}
93103

104+
public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
105+
listLocationsPagedCallable() {
106+
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
107+
}
108+
109+
public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
110+
throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
111+
}
112+
113+
public UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
114+
throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
115+
}
116+
117+
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
118+
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
119+
}
120+
121+
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
122+
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
123+
}
124+
125+
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
126+
testIamPermissionsCallable() {
127+
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
128+
}
129+
94130
@Override
95131
public abstract void close();
96132
}

0 commit comments

Comments
 (0)