Skip to content

Commit 92d7bfb

Browse files
chore: generate libraries at Thu Jan 15 00:19:44 UTC 2026
1 parent 92826b2 commit 92d7bfb

File tree

237 files changed

+74119
-14309
lines changed

Some content is hidden

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

237 files changed

+74119
-14309
lines changed

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

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,24 @@
181181
* </td>
182182
* </tr>
183183
* <tr>
184+
* <td><p> TestIamPermissions</td>
185+
* <td><p> Returns permissions that a caller has on the specified resource.</td>
186+
* <td>
187+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
188+
* <ul>
189+
* <li><p> testIamPermissions(TestIamPermissionsAutoscalerRequest request)
190+
* </ul>
191+
* <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>
192+
* <ul>
193+
* <li><p> testIamPermissions(String project, String zone, String resource, TestPermissionsRequest testPermissionsRequestResource)
194+
* </ul>
195+
* <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>
196+
* <ul>
197+
* <li><p> testIamPermissionsCallable()
198+
* </ul>
199+
* </td>
200+
* </tr>
201+
* <tr>
184202
* <td><p> Update</td>
185203
* <td><p> Updates an autoscaler in the specified project using the data included in the request.</td>
186204
* <td>
@@ -1085,6 +1103,115 @@ public final UnaryCallable<PatchAutoscalerRequest, Operation> patchCallable() {
10851103
return stub.patchCallable();
10861104
}
10871105

1106+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1107+
/**
1108+
* Returns permissions that a caller has on the specified resource.
1109+
*
1110+
* <p>Sample code:
1111+
*
1112+
* <pre>{@code
1113+
* // This snippet has been automatically generated and should be regarded as a code template only.
1114+
* // It will require modifications to work:
1115+
* // - It may require correct/in-range values for request initialization.
1116+
* // - It may require specifying regional endpoints when creating the service client as shown in
1117+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1118+
* try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) {
1119+
* String project = "project-309310695";
1120+
* String zone = "zone3744684";
1121+
* String resource = "resource-341064690";
1122+
* TestPermissionsRequest testPermissionsRequestResource =
1123+
* TestPermissionsRequest.newBuilder().build();
1124+
* TestPermissionsResponse response =
1125+
* autoscalersClient.testIamPermissions(
1126+
* project, zone, resource, testPermissionsRequestResource);
1127+
* }
1128+
* }</pre>
1129+
*
1130+
* @param project Project ID for this request.
1131+
* @param zone The name of the zone for this request.
1132+
* @param resource Name or id of the resource for this request.
1133+
* @param testPermissionsRequestResource The body resource for this request
1134+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1135+
*/
1136+
public final TestPermissionsResponse testIamPermissions(
1137+
String project,
1138+
String zone,
1139+
String resource,
1140+
TestPermissionsRequest testPermissionsRequestResource) {
1141+
TestIamPermissionsAutoscalerRequest request =
1142+
TestIamPermissionsAutoscalerRequest.newBuilder()
1143+
.setProject(project)
1144+
.setZone(zone)
1145+
.setResource(resource)
1146+
.setTestPermissionsRequestResource(testPermissionsRequestResource)
1147+
.build();
1148+
return testIamPermissions(request);
1149+
}
1150+
1151+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1152+
/**
1153+
* Returns permissions that a caller has on the specified resource.
1154+
*
1155+
* <p>Sample code:
1156+
*
1157+
* <pre>{@code
1158+
* // This snippet has been automatically generated and should be regarded as a code template only.
1159+
* // It will require modifications to work:
1160+
* // - It may require correct/in-range values for request initialization.
1161+
* // - It may require specifying regional endpoints when creating the service client as shown in
1162+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1163+
* try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) {
1164+
* TestIamPermissionsAutoscalerRequest request =
1165+
* TestIamPermissionsAutoscalerRequest.newBuilder()
1166+
* .setProject("project-309310695")
1167+
* .setResource("resource-341064690")
1168+
* .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
1169+
* .setZone("zone3744684")
1170+
* .build();
1171+
* TestPermissionsResponse response = autoscalersClient.testIamPermissions(request);
1172+
* }
1173+
* }</pre>
1174+
*
1175+
* @param request The request object containing all of the parameters for the API call.
1176+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1177+
*/
1178+
public final TestPermissionsResponse testIamPermissions(
1179+
TestIamPermissionsAutoscalerRequest request) {
1180+
return testIamPermissionsCallable().call(request);
1181+
}
1182+
1183+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1184+
/**
1185+
* Returns permissions that a caller has on the specified resource.
1186+
*
1187+
* <p>Sample code:
1188+
*
1189+
* <pre>{@code
1190+
* // This snippet has been automatically generated and should be regarded as a code template only.
1191+
* // It will require modifications to work:
1192+
* // - It may require correct/in-range values for request initialization.
1193+
* // - It may require specifying regional endpoints when creating the service client as shown in
1194+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1195+
* try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) {
1196+
* TestIamPermissionsAutoscalerRequest request =
1197+
* TestIamPermissionsAutoscalerRequest.newBuilder()
1198+
* .setProject("project-309310695")
1199+
* .setResource("resource-341064690")
1200+
* .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
1201+
* .setZone("zone3744684")
1202+
* .build();
1203+
* ApiFuture<TestPermissionsResponse> future =
1204+
* autoscalersClient.testIamPermissionsCallable().futureCall(request);
1205+
* // Do something.
1206+
* TestPermissionsResponse response = future.get();
1207+
* }
1208+
* }</pre>
1209+
*/
1210+
public final UnaryCallable<TestIamPermissionsAutoscalerRequest, TestPermissionsResponse>
1211+
testIamPermissionsCallable() {
1212+
return stub.testIamPermissionsCallable();
1213+
}
1214+
10881215
// AUTO-GENERATED DOCUMENTATION AND METHOD.
10891216
/**
10901217
* Updates an autoscaler in the specified project using the data included in the request.

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ public UnaryCallSettings<PatchAutoscalerRequest, Operation> patchSettings() {
163163
return ((AutoscalersStubSettings) getStubSettings()).patchOperationSettings();
164164
}
165165

166+
/** Returns the object with the settings used for calls to testIamPermissions. */
167+
public UnaryCallSettings<TestIamPermissionsAutoscalerRequest, TestPermissionsResponse>
168+
testIamPermissionsSettings() {
169+
return ((AutoscalersStubSettings) getStubSettings()).testIamPermissionsSettings();
170+
}
171+
166172
/** Returns the object with the settings used for calls to update. */
167173
public UnaryCallSettings<UpdateAutoscalerRequest, Operation> updateSettings() {
168174
return ((AutoscalersStubSettings) getStubSettings()).updateSettings();
@@ -321,6 +327,12 @@ public UnaryCallSettings.Builder<PatchAutoscalerRequest, Operation> patchSetting
321327
return getStubSettingsBuilder().patchOperationSettings();
322328
}
323329

330+
/** Returns the builder for the settings used for calls to testIamPermissions. */
331+
public UnaryCallSettings.Builder<TestIamPermissionsAutoscalerRequest, TestPermissionsResponse>
332+
testIamPermissionsSettings() {
333+
return getStubSettingsBuilder().testIamPermissionsSettings();
334+
}
335+
324336
/** Returns the builder for the settings used for calls to update. */
325337
public UnaryCallSettings.Builder<UpdateAutoscalerRequest, Operation> updateSettings() {
326338
return getStubSettingsBuilder().updateSettings();

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

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,24 @@
180180
* </td>
181181
* </tr>
182182
* <tr>
183+
* <td><p> TestIamPermissions</td>
184+
* <td><p> Returns permissions that a caller has on the specified resource.</td>
185+
* <td>
186+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
187+
* <ul>
188+
* <li><p> testIamPermissions(TestIamPermissionsHealthCheckRequest request)
189+
* </ul>
190+
* <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>
191+
* <ul>
192+
* <li><p> testIamPermissions(String project, String resource, TestPermissionsRequest testPermissionsRequestResource)
193+
* </ul>
194+
* <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>
195+
* <ul>
196+
* <li><p> testIamPermissionsCallable()
197+
* </ul>
198+
* </td>
199+
* </tr>
200+
* <tr>
183201
* <td><p> Update</td>
184202
* <td><p> Updates a HealthCheck resource in the specified project using the data included in the request.</td>
185203
* <td>
@@ -1061,6 +1079,106 @@ public final UnaryCallable<PatchHealthCheckRequest, Operation> patchCallable() {
10611079
return stub.patchCallable();
10621080
}
10631081

1082+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1083+
/**
1084+
* Returns permissions that a caller has on the specified resource.
1085+
*
1086+
* <p>Sample code:
1087+
*
1088+
* <pre>{@code
1089+
* // This snippet has been automatically generated and should be regarded as a code template only.
1090+
* // It will require modifications to work:
1091+
* // - It may require correct/in-range values for request initialization.
1092+
* // - It may require specifying regional endpoints when creating the service client as shown in
1093+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1094+
* try (HealthChecksClient healthChecksClient = HealthChecksClient.create()) {
1095+
* String project = "project-309310695";
1096+
* String resource = "resource-341064690";
1097+
* TestPermissionsRequest testPermissionsRequestResource =
1098+
* TestPermissionsRequest.newBuilder().build();
1099+
* TestPermissionsResponse response =
1100+
* healthChecksClient.testIamPermissions(project, resource, testPermissionsRequestResource);
1101+
* }
1102+
* }</pre>
1103+
*
1104+
* @param project Project ID for this request.
1105+
* @param resource Name or id of the resource for this request.
1106+
* @param testPermissionsRequestResource The body resource for this request
1107+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1108+
*/
1109+
public final TestPermissionsResponse testIamPermissions(
1110+
String project, String resource, TestPermissionsRequest testPermissionsRequestResource) {
1111+
TestIamPermissionsHealthCheckRequest request =
1112+
TestIamPermissionsHealthCheckRequest.newBuilder()
1113+
.setProject(project)
1114+
.setResource(resource)
1115+
.setTestPermissionsRequestResource(testPermissionsRequestResource)
1116+
.build();
1117+
return testIamPermissions(request);
1118+
}
1119+
1120+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1121+
/**
1122+
* Returns permissions that a caller has on the specified resource.
1123+
*
1124+
* <p>Sample code:
1125+
*
1126+
* <pre>{@code
1127+
* // This snippet has been automatically generated and should be regarded as a code template only.
1128+
* // It will require modifications to work:
1129+
* // - It may require correct/in-range values for request initialization.
1130+
* // - It may require specifying regional endpoints when creating the service client as shown in
1131+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1132+
* try (HealthChecksClient healthChecksClient = HealthChecksClient.create()) {
1133+
* TestIamPermissionsHealthCheckRequest request =
1134+
* TestIamPermissionsHealthCheckRequest.newBuilder()
1135+
* .setProject("project-309310695")
1136+
* .setResource("resource-341064690")
1137+
* .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
1138+
* .build();
1139+
* TestPermissionsResponse response = healthChecksClient.testIamPermissions(request);
1140+
* }
1141+
* }</pre>
1142+
*
1143+
* @param request The request object containing all of the parameters for the API call.
1144+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1145+
*/
1146+
public final TestPermissionsResponse testIamPermissions(
1147+
TestIamPermissionsHealthCheckRequest request) {
1148+
return testIamPermissionsCallable().call(request);
1149+
}
1150+
1151+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1152+
/**
1153+
* Returns permissions that a caller has on the specified resource.
1154+
*
1155+
* <p>Sample code:
1156+
*
1157+
* <pre>{@code
1158+
* // This snippet has been automatically generated and should be regarded as a code template only.
1159+
* // It will require modifications to work:
1160+
* // - It may require correct/in-range values for request initialization.
1161+
* // - It may require specifying regional endpoints when creating the service client as shown in
1162+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1163+
* try (HealthChecksClient healthChecksClient = HealthChecksClient.create()) {
1164+
* TestIamPermissionsHealthCheckRequest request =
1165+
* TestIamPermissionsHealthCheckRequest.newBuilder()
1166+
* .setProject("project-309310695")
1167+
* .setResource("resource-341064690")
1168+
* .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
1169+
* .build();
1170+
* ApiFuture<TestPermissionsResponse> future =
1171+
* healthChecksClient.testIamPermissionsCallable().futureCall(request);
1172+
* // Do something.
1173+
* TestPermissionsResponse response = future.get();
1174+
* }
1175+
* }</pre>
1176+
*/
1177+
public final UnaryCallable<TestIamPermissionsHealthCheckRequest, TestPermissionsResponse>
1178+
testIamPermissionsCallable() {
1179+
return stub.testIamPermissionsCallable();
1180+
}
1181+
10641182
// AUTO-GENERATED DOCUMENTATION AND METHOD.
10651183
/**
10661184
* Updates a HealthCheck resource in the specified project using the data included in the request.

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ public UnaryCallSettings<PatchHealthCheckRequest, Operation> patchSettings() {
165165
return ((HealthChecksStubSettings) getStubSettings()).patchOperationSettings();
166166
}
167167

168+
/** Returns the object with the settings used for calls to testIamPermissions. */
169+
public UnaryCallSettings<TestIamPermissionsHealthCheckRequest, TestPermissionsResponse>
170+
testIamPermissionsSettings() {
171+
return ((HealthChecksStubSettings) getStubSettings()).testIamPermissionsSettings();
172+
}
173+
168174
/** Returns the object with the settings used for calls to update. */
169175
public UnaryCallSettings<UpdateHealthCheckRequest, Operation> updateSettings() {
170176
return ((HealthChecksStubSettings) getStubSettings()).updateSettings();
@@ -326,6 +332,12 @@ public UnaryCallSettings.Builder<PatchHealthCheckRequest, Operation> patchSettin
326332
return getStubSettingsBuilder().patchOperationSettings();
327333
}
328334

335+
/** Returns the builder for the settings used for calls to testIamPermissions. */
336+
public UnaryCallSettings.Builder<TestIamPermissionsHealthCheckRequest, TestPermissionsResponse>
337+
testIamPermissionsSettings() {
338+
return getStubSettingsBuilder().testIamPermissionsSettings();
339+
}
340+
329341
/** Returns the builder for the settings used for calls to update. */
330342
public UnaryCallSettings.Builder<UpdateHealthCheckRequest, Operation> updateSettings() {
331343
return getStubSettingsBuilder().updateSettings();

0 commit comments

Comments
 (0)