Skip to content

Commit 3a36735

Browse files
chore: Update generation configuration at Wed Jun 4 02:32:30 UTC 2025 (#11611)
* chore: Update generation configuration at Wed Jun 4 02:32:30 UTC 2025 * chore: generate libraries at Wed Jun 4 02:34:48 UTC 2025
1 parent a2808e0 commit 3a36735

File tree

357 files changed

+124261
-12630
lines changed

Some content is hidden

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

357 files changed

+124261
-12630
lines changed

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.59.0
2-
googleapis_commitish: bd6804fbfce2a5f3b1acf24073da1021e62f024d
2+
googleapis_commitish: f1859b90227eb09ecd2fa85c96e89b60dbf688b5
33
libraries_bom_version: 26.61.0
44

55
# the libraries are ordered with respect to library name, which is

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

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,25 @@
124124
* </td>
125125
* </tr>
126126
* <tr>
127+
* <td><p> BulkSetLabels</td>
128+
* <td><p> Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources documentation.</td>
129+
* <td>
130+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
131+
* <ul>
132+
* <li><p> bulkSetLabelsAsync(BulkSetLabelsDiskRequest request)
133+
* </ul>
134+
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
135+
* <ul>
136+
* <li><p> bulkSetLabelsAsync(String project, String zone, BulkZoneSetLabelsRequest bulkZoneSetLabelsRequestResource)
137+
* </ul>
138+
* <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>
139+
* <ul>
140+
* <li><p> bulkSetLabelsOperationCallable()
141+
* <li><p> bulkSetLabelsCallable()
142+
* </ul>
143+
* </td>
144+
* </tr>
145+
* <tr>
127146
* <td><p> CreateSnapshot</td>
128147
* <td><p> Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.</td>
129148
* <td>
@@ -930,6 +949,145 @@ public final UnaryCallable<BulkInsertDiskRequest, Operation> bulkInsertCallable(
930949
return stub.bulkInsertCallable();
931950
}
932951

952+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
953+
/**
954+
* Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources
955+
* documentation.
956+
*
957+
* <p>Sample code:
958+
*
959+
* <pre>{@code
960+
* // This snippet has been automatically generated and should be regarded as a code template only.
961+
* // It will require modifications to work:
962+
* // - It may require correct/in-range values for request initialization.
963+
* // - It may require specifying regional endpoints when creating the service client as shown in
964+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
965+
* try (DisksClient disksClient = DisksClient.create()) {
966+
* String project = "project-309310695";
967+
* String zone = "zone3744684";
968+
* BulkZoneSetLabelsRequest bulkZoneSetLabelsRequestResource =
969+
* BulkZoneSetLabelsRequest.newBuilder().build();
970+
* Operation response =
971+
* disksClient.bulkSetLabelsAsync(project, zone, bulkZoneSetLabelsRequestResource).get();
972+
* }
973+
* }</pre>
974+
*
975+
* @param project Project ID for this request.
976+
* @param zone The name of the zone for this request.
977+
* @param bulkZoneSetLabelsRequestResource The body resource for this request
978+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
979+
*/
980+
public final OperationFuture<Operation, Operation> bulkSetLabelsAsync(
981+
String project, String zone, BulkZoneSetLabelsRequest bulkZoneSetLabelsRequestResource) {
982+
BulkSetLabelsDiskRequest request =
983+
BulkSetLabelsDiskRequest.newBuilder()
984+
.setProject(project)
985+
.setZone(zone)
986+
.setBulkZoneSetLabelsRequestResource(bulkZoneSetLabelsRequestResource)
987+
.build();
988+
return bulkSetLabelsAsync(request);
989+
}
990+
991+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
992+
/**
993+
* Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources
994+
* documentation.
995+
*
996+
* <p>Sample code:
997+
*
998+
* <pre>{@code
999+
* // This snippet has been automatically generated and should be regarded as a code template only.
1000+
* // It will require modifications to work:
1001+
* // - It may require correct/in-range values for request initialization.
1002+
* // - It may require specifying regional endpoints when creating the service client as shown in
1003+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1004+
* try (DisksClient disksClient = DisksClient.create()) {
1005+
* BulkSetLabelsDiskRequest request =
1006+
* BulkSetLabelsDiskRequest.newBuilder()
1007+
* .setBulkZoneSetLabelsRequestResource(BulkZoneSetLabelsRequest.newBuilder().build())
1008+
* .setProject("project-309310695")
1009+
* .setRequestId("requestId693933066")
1010+
* .setResource("resource-341064690")
1011+
* .setZone("zone3744684")
1012+
* .build();
1013+
* Operation response = disksClient.bulkSetLabelsAsync(request).get();
1014+
* }
1015+
* }</pre>
1016+
*
1017+
* @param request The request object containing all of the parameters for the API call.
1018+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1019+
*/
1020+
public final OperationFuture<Operation, Operation> bulkSetLabelsAsync(
1021+
BulkSetLabelsDiskRequest request) {
1022+
return bulkSetLabelsOperationCallable().futureCall(request);
1023+
}
1024+
1025+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1026+
/**
1027+
* Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources
1028+
* documentation.
1029+
*
1030+
* <p>Sample code:
1031+
*
1032+
* <pre>{@code
1033+
* // This snippet has been automatically generated and should be regarded as a code template only.
1034+
* // It will require modifications to work:
1035+
* // - It may require correct/in-range values for request initialization.
1036+
* // - It may require specifying regional endpoints when creating the service client as shown in
1037+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1038+
* try (DisksClient disksClient = DisksClient.create()) {
1039+
* BulkSetLabelsDiskRequest request =
1040+
* BulkSetLabelsDiskRequest.newBuilder()
1041+
* .setBulkZoneSetLabelsRequestResource(BulkZoneSetLabelsRequest.newBuilder().build())
1042+
* .setProject("project-309310695")
1043+
* .setRequestId("requestId693933066")
1044+
* .setResource("resource-341064690")
1045+
* .setZone("zone3744684")
1046+
* .build();
1047+
* OperationFuture<Operation, Operation> future =
1048+
* disksClient.bulkSetLabelsOperationCallable().futureCall(request);
1049+
* // Do something.
1050+
* Operation response = future.get();
1051+
* }
1052+
* }</pre>
1053+
*/
1054+
public final OperationCallable<BulkSetLabelsDiskRequest, Operation, Operation>
1055+
bulkSetLabelsOperationCallable() {
1056+
return stub.bulkSetLabelsOperationCallable();
1057+
}
1058+
1059+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1060+
/**
1061+
* Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources
1062+
* documentation.
1063+
*
1064+
* <p>Sample code:
1065+
*
1066+
* <pre>{@code
1067+
* // This snippet has been automatically generated and should be regarded as a code template only.
1068+
* // It will require modifications to work:
1069+
* // - It may require correct/in-range values for request initialization.
1070+
* // - It may require specifying regional endpoints when creating the service client as shown in
1071+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1072+
* try (DisksClient disksClient = DisksClient.create()) {
1073+
* BulkSetLabelsDiskRequest request =
1074+
* BulkSetLabelsDiskRequest.newBuilder()
1075+
* .setBulkZoneSetLabelsRequestResource(BulkZoneSetLabelsRequest.newBuilder().build())
1076+
* .setProject("project-309310695")
1077+
* .setRequestId("requestId693933066")
1078+
* .setResource("resource-341064690")
1079+
* .setZone("zone3744684")
1080+
* .build();
1081+
* ApiFuture<Operation> future = disksClient.bulkSetLabelsCallable().futureCall(request);
1082+
* // Do something.
1083+
* Operation response = future.get();
1084+
* }
1085+
* }</pre>
1086+
*/
1087+
public final UnaryCallable<BulkSetLabelsDiskRequest, Operation> bulkSetLabelsCallable() {
1088+
return stub.bulkSetLabelsCallable();
1089+
}
1090+
9331091
// AUTO-GENERATED DOCUMENTATION AND METHOD.
9341092
/**
9351093
* Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,17 @@ public UnaryCallSettings<BulkInsertDiskRequest, Operation> bulkInsertSettings()
142142
return ((DisksStubSettings) getStubSettings()).bulkInsertOperationSettings();
143143
}
144144

145+
/** Returns the object with the settings used for calls to bulkSetLabels. */
146+
public UnaryCallSettings<BulkSetLabelsDiskRequest, Operation> bulkSetLabelsSettings() {
147+
return ((DisksStubSettings) getStubSettings()).bulkSetLabelsSettings();
148+
}
149+
150+
/** Returns the object with the settings used for calls to bulkSetLabels. */
151+
public OperationCallSettings<BulkSetLabelsDiskRequest, Operation, Operation>
152+
bulkSetLabelsOperationSettings() {
153+
return ((DisksStubSettings) getStubSettings()).bulkSetLabelsOperationSettings();
154+
}
155+
145156
/** Returns the object with the settings used for calls to createSnapshot. */
146157
public UnaryCallSettings<CreateSnapshotDiskRequest, Operation> createSnapshotSettings() {
147158
return ((DisksStubSettings) getStubSettings()).createSnapshotSettings();
@@ -404,6 +415,17 @@ public UnaryCallSettings.Builder<BulkInsertDiskRequest, Operation> bulkInsertSet
404415
return getStubSettingsBuilder().bulkInsertOperationSettings();
405416
}
406417

418+
/** Returns the builder for the settings used for calls to bulkSetLabels. */
419+
public UnaryCallSettings.Builder<BulkSetLabelsDiskRequest, Operation> bulkSetLabelsSettings() {
420+
return getStubSettingsBuilder().bulkSetLabelsSettings();
421+
}
422+
423+
/** Returns the builder for the settings used for calls to bulkSetLabels. */
424+
public OperationCallSettings.Builder<BulkSetLabelsDiskRequest, Operation, Operation>
425+
bulkSetLabelsOperationSettings() {
426+
return getStubSettingsBuilder().bulkSetLabelsOperationSettings();
427+
}
428+
407429
/** Returns the builder for the settings used for calls to createSnapshot. */
408430
public UnaryCallSettings.Builder<CreateSnapshotDiskRequest, Operation>
409431
createSnapshotSettings() {

0 commit comments

Comments
 (0)