Skip to content

Commit afd1d6f

Browse files
chore: generate libraries at Sun Sep 14 02:32:00 UTC 2025
1 parent 0ea84e0 commit afd1d6f

File tree

134 files changed

+36233
-9627
lines changed

Some content is hidden

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

134 files changed

+36233
-9627
lines changed

java-compute/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
4242
<dependency>
4343
<groupId>com.google.cloud</groupId>
4444
<artifactId>google-cloud-compute</artifactId>
45-
<version>1.83.0</version>
45+
<version>1.84.0</version>
4646
</dependency>
4747
```
4848

4949
If you are using Gradle without BOM, add this to your dependencies:
5050

5151
```Groovy
52-
implementation 'com.google.cloud:google-cloud-compute:1.83.0'
52+
implementation 'com.google.cloud:google-cloud-compute:1.84.0'
5353
```
5454

5555
If you are using SBT, add this to your dependencies:
5656

5757
```Scala
58-
libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.83.0"
58+
libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.84.0"
5959
```
6060

6161
## Authentication
@@ -257,7 +257,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
257257
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
258258
[stability-image]: https://img.shields.io/badge/stability-stable-green
259259
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg
260-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.83.0
260+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.84.0
261261
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
262262
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
263263
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesClient.java

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,24 @@
198198
* </ul>
199199
* </td>
200200
* </tr>
201+
* <tr>
202+
* <td><p> TestIamPermissions</td>
203+
* <td><p> Returns permissions that a caller has on the specified resource.</td>
204+
* <td>
205+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
206+
* <ul>
207+
* <li><p> testIamPermissions(TestIamPermissionsAddressRequest request)
208+
* </ul>
209+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
210+
* <ul>
211+
* <li><p> testIamPermissions(String project, String region, String resource, TestPermissionsRequest testPermissionsRequestResource)
212+
* </ul>
213+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
214+
* <ul>
215+
* <li><p> testIamPermissionsCallable()
216+
* </ul>
217+
* </td>
218+
* </tr>
201219
* </table>
202220
*
203221
* <p>See the individual methods for example code.
@@ -1228,6 +1246,115 @@ public final UnaryCallable<SetLabelsAddressRequest, Operation> setLabelsCallable
12281246
return stub.setLabelsCallable();
12291247
}
12301248

1249+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1250+
/**
1251+
* Returns permissions that a caller has on the specified resource.
1252+
*
1253+
* <p>Sample code:
1254+
*
1255+
* <pre>{@code
1256+
* // This snippet has been automatically generated and should be regarded as a code template only.
1257+
* // It will require modifications to work:
1258+
* // - It may require correct/in-range values for request initialization.
1259+
* // - It may require specifying regional endpoints when creating the service client as shown in
1260+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1261+
* try (AddressesClient addressesClient = AddressesClient.create()) {
1262+
* String project = "project-309310695";
1263+
* String region = "region-934795532";
1264+
* String resource = "resource-341064690";
1265+
* TestPermissionsRequest testPermissionsRequestResource =
1266+
* TestPermissionsRequest.newBuilder().build();
1267+
* TestPermissionsResponse response =
1268+
* addressesClient.testIamPermissions(
1269+
* project, region, resource, testPermissionsRequestResource);
1270+
* }
1271+
* }</pre>
1272+
*
1273+
* @param project Project ID for this request.
1274+
* @param region The name of the region for this request.
1275+
* @param resource Name or id of the resource for this request.
1276+
* @param testPermissionsRequestResource The body resource for this request
1277+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1278+
*/
1279+
public final TestPermissionsResponse testIamPermissions(
1280+
String project,
1281+
String region,
1282+
String resource,
1283+
TestPermissionsRequest testPermissionsRequestResource) {
1284+
TestIamPermissionsAddressRequest request =
1285+
TestIamPermissionsAddressRequest.newBuilder()
1286+
.setProject(project)
1287+
.setRegion(region)
1288+
.setResource(resource)
1289+
.setTestPermissionsRequestResource(testPermissionsRequestResource)
1290+
.build();
1291+
return testIamPermissions(request);
1292+
}
1293+
1294+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1295+
/**
1296+
* Returns permissions that a caller has on the specified resource.
1297+
*
1298+
* <p>Sample code:
1299+
*
1300+
* <pre>{@code
1301+
* // This snippet has been automatically generated and should be regarded as a code template only.
1302+
* // It will require modifications to work:
1303+
* // - It may require correct/in-range values for request initialization.
1304+
* // - It may require specifying regional endpoints when creating the service client as shown in
1305+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1306+
* try (AddressesClient addressesClient = AddressesClient.create()) {
1307+
* TestIamPermissionsAddressRequest request =
1308+
* TestIamPermissionsAddressRequest.newBuilder()
1309+
* .setProject("project-309310695")
1310+
* .setRegion("region-934795532")
1311+
* .setResource("resource-341064690")
1312+
* .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
1313+
* .build();
1314+
* TestPermissionsResponse response = addressesClient.testIamPermissions(request);
1315+
* }
1316+
* }</pre>
1317+
*
1318+
* @param request The request object containing all of the parameters for the API call.
1319+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1320+
*/
1321+
public final TestPermissionsResponse testIamPermissions(
1322+
TestIamPermissionsAddressRequest request) {
1323+
return testIamPermissionsCallable().call(request);
1324+
}
1325+
1326+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1327+
/**
1328+
* Returns permissions that a caller has on the specified resource.
1329+
*
1330+
* <p>Sample code:
1331+
*
1332+
* <pre>{@code
1333+
* // This snippet has been automatically generated and should be regarded as a code template only.
1334+
* // It will require modifications to work:
1335+
* // - It may require correct/in-range values for request initialization.
1336+
* // - It may require specifying regional endpoints when creating the service client as shown in
1337+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1338+
* try (AddressesClient addressesClient = AddressesClient.create()) {
1339+
* TestIamPermissionsAddressRequest request =
1340+
* TestIamPermissionsAddressRequest.newBuilder()
1341+
* .setProject("project-309310695")
1342+
* .setRegion("region-934795532")
1343+
* .setResource("resource-341064690")
1344+
* .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
1345+
* .build();
1346+
* ApiFuture<TestPermissionsResponse> future =
1347+
* addressesClient.testIamPermissionsCallable().futureCall(request);
1348+
* // Do something.
1349+
* TestPermissionsResponse response = future.get();
1350+
* }
1351+
* }</pre>
1352+
*/
1353+
public final UnaryCallable<TestIamPermissionsAddressRequest, TestPermissionsResponse>
1354+
testIamPermissionsCallable() {
1355+
return stub.testIamPermissionsCallable();
1356+
}
1357+
12311358
@Override
12321359
public final void close() {
12331360
stub.close();

java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesSettings.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ public UnaryCallSettings<SetLabelsAddressRequest, Operation> setLabelsSettings()
172172
return ((AddressesStubSettings) getStubSettings()).setLabelsOperationSettings();
173173
}
174174

175+
/** Returns the object with the settings used for calls to testIamPermissions. */
176+
public UnaryCallSettings<TestIamPermissionsAddressRequest, TestPermissionsResponse>
177+
testIamPermissionsSettings() {
178+
return ((AddressesStubSettings) getStubSettings()).testIamPermissionsSettings();
179+
}
180+
175181
public static final AddressesSettings create(AddressesStubSettings stub) throws IOException {
176182
return new AddressesSettings.Builder(stub.toBuilder()).build();
177183
}
@@ -330,6 +336,12 @@ public UnaryCallSettings.Builder<SetLabelsAddressRequest, Operation> setLabelsSe
330336
return getStubSettingsBuilder().setLabelsOperationSettings();
331337
}
332338

339+
/** Returns the builder for the settings used for calls to testIamPermissions. */
340+
public UnaryCallSettings.Builder<TestIamPermissionsAddressRequest, TestPermissionsResponse>
341+
testIamPermissionsSettings() {
342+
return getStubSettingsBuilder().testIamPermissionsSettings();
343+
}
344+
333345
@Override
334346
public AddressesSettings build() throws IOException {
335347
return new AddressesSettings(this);

java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressesClient.java

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,24 @@
178178
* </ul>
179179
* </td>
180180
* </tr>
181+
* <tr>
182+
* <td><p> TestIamPermissions</td>
183+
* <td><p> Returns permissions that a caller has on the specified resource.</td>
184+
* <td>
185+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
186+
* <ul>
187+
* <li><p> testIamPermissions(TestIamPermissionsGlobalAddressRequest request)
188+
* </ul>
189+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
190+
* <ul>
191+
* <li><p> testIamPermissions(String project, String resource, TestPermissionsRequest testPermissionsRequestResource)
192+
* </ul>
193+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
194+
* <ul>
195+
* <li><p> testIamPermissionsCallable()
196+
* </ul>
197+
* </td>
198+
* </tr>
181199
* </table>
182200
*
183201
* <p>See the individual methods for example code.
@@ -1013,6 +1031,107 @@ public final UnaryCallable<SetLabelsGlobalAddressRequest, Operation> setLabelsCa
10131031
return stub.setLabelsCallable();
10141032
}
10151033

1034+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1035+
/**
1036+
* Returns permissions that a caller has on the specified resource.
1037+
*
1038+
* <p>Sample code:
1039+
*
1040+
* <pre>{@code
1041+
* // This snippet has been automatically generated and should be regarded as a code template only.
1042+
* // It will require modifications to work:
1043+
* // - It may require correct/in-range values for request initialization.
1044+
* // - It may require specifying regional endpoints when creating the service client as shown in
1045+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1046+
* try (GlobalAddressesClient globalAddressesClient = GlobalAddressesClient.create()) {
1047+
* String project = "project-309310695";
1048+
* String resource = "resource-341064690";
1049+
* TestPermissionsRequest testPermissionsRequestResource =
1050+
* TestPermissionsRequest.newBuilder().build();
1051+
* TestPermissionsResponse response =
1052+
* globalAddressesClient.testIamPermissions(
1053+
* project, resource, testPermissionsRequestResource);
1054+
* }
1055+
* }</pre>
1056+
*
1057+
* @param project Project ID for this request.
1058+
* @param resource Name or id of the resource for this request.
1059+
* @param testPermissionsRequestResource The body resource for this request
1060+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1061+
*/
1062+
public final TestPermissionsResponse testIamPermissions(
1063+
String project, String resource, TestPermissionsRequest testPermissionsRequestResource) {
1064+
TestIamPermissionsGlobalAddressRequest request =
1065+
TestIamPermissionsGlobalAddressRequest.newBuilder()
1066+
.setProject(project)
1067+
.setResource(resource)
1068+
.setTestPermissionsRequestResource(testPermissionsRequestResource)
1069+
.build();
1070+
return testIamPermissions(request);
1071+
}
1072+
1073+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1074+
/**
1075+
* Returns permissions that a caller has on the specified resource.
1076+
*
1077+
* <p>Sample code:
1078+
*
1079+
* <pre>{@code
1080+
* // This snippet has been automatically generated and should be regarded as a code template only.
1081+
* // It will require modifications to work:
1082+
* // - It may require correct/in-range values for request initialization.
1083+
* // - It may require specifying regional endpoints when creating the service client as shown in
1084+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1085+
* try (GlobalAddressesClient globalAddressesClient = GlobalAddressesClient.create()) {
1086+
* TestIamPermissionsGlobalAddressRequest request =
1087+
* TestIamPermissionsGlobalAddressRequest.newBuilder()
1088+
* .setProject("project-309310695")
1089+
* .setResource("resource-341064690")
1090+
* .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
1091+
* .build();
1092+
* TestPermissionsResponse response = globalAddressesClient.testIamPermissions(request);
1093+
* }
1094+
* }</pre>
1095+
*
1096+
* @param request The request object containing all of the parameters for the API call.
1097+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1098+
*/
1099+
public final TestPermissionsResponse testIamPermissions(
1100+
TestIamPermissionsGlobalAddressRequest request) {
1101+
return testIamPermissionsCallable().call(request);
1102+
}
1103+
1104+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1105+
/**
1106+
* Returns permissions that a caller has on the specified resource.
1107+
*
1108+
* <p>Sample code:
1109+
*
1110+
* <pre>{@code
1111+
* // This snippet has been automatically generated and should be regarded as a code template only.
1112+
* // It will require modifications to work:
1113+
* // - It may require correct/in-range values for request initialization.
1114+
* // - It may require specifying regional endpoints when creating the service client as shown in
1115+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1116+
* try (GlobalAddressesClient globalAddressesClient = GlobalAddressesClient.create()) {
1117+
* TestIamPermissionsGlobalAddressRequest request =
1118+
* TestIamPermissionsGlobalAddressRequest.newBuilder()
1119+
* .setProject("project-309310695")
1120+
* .setResource("resource-341064690")
1121+
* .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
1122+
* .build();
1123+
* ApiFuture<TestPermissionsResponse> future =
1124+
* globalAddressesClient.testIamPermissionsCallable().futureCall(request);
1125+
* // Do something.
1126+
* TestPermissionsResponse response = future.get();
1127+
* }
1128+
* }</pre>
1129+
*/
1130+
public final UnaryCallable<TestIamPermissionsGlobalAddressRequest, TestPermissionsResponse>
1131+
testIamPermissionsCallable() {
1132+
return stub.testIamPermissionsCallable();
1133+
}
1134+
10161135
@Override
10171136
public final void close() {
10181137
stub.close();

java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressesSettings.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ public UnaryCallSettings<SetLabelsGlobalAddressRequest, Operation> setLabelsSett
168168
return ((GlobalAddressesStubSettings) getStubSettings()).setLabelsOperationSettings();
169169
}
170170

171+
/** Returns the object with the settings used for calls to testIamPermissions. */
172+
public UnaryCallSettings<TestIamPermissionsGlobalAddressRequest, TestPermissionsResponse>
173+
testIamPermissionsSettings() {
174+
return ((GlobalAddressesStubSettings) getStubSettings()).testIamPermissionsSettings();
175+
}
176+
171177
public static final GlobalAddressesSettings create(GlobalAddressesStubSettings stub)
172178
throws IOException {
173179
return new GlobalAddressesSettings.Builder(stub.toBuilder()).build();
@@ -320,6 +326,13 @@ public UnaryCallSettings.Builder<SetLabelsGlobalAddressRequest, Operation> setLa
320326
return getStubSettingsBuilder().setLabelsOperationSettings();
321327
}
322328

329+
/** Returns the builder for the settings used for calls to testIamPermissions. */
330+
public UnaryCallSettings.Builder<
331+
TestIamPermissionsGlobalAddressRequest, TestPermissionsResponse>
332+
testIamPermissionsSettings() {
333+
return getStubSettingsBuilder().testIamPermissionsSettings();
334+
}
335+
323336
@Override
324337
public GlobalAddressesSettings build() throws IOException {
325338
return new GlobalAddressesSettings(this);

0 commit comments

Comments
 (0)