Skip to content

Commit 38b6cb1

Browse files
feat: [compute] Update Compute Engine API to revision 20230610 (#820) (#9597)
* feat: Update Compute Engine API to revision 20230610 (#820) Source-Link: googleapis/googleapis@4e5d66b Source-Link: https://github.com/googleapis/googleapis-gen/commit/7fcb35459fa9b3bfb9cd9bebc4a259d7efeab59f Copy-Tag: eyJwIjoiamF2YS1jb21wdXRlLy5Pd2xCb3QueWFtbCIsImgiOiI3ZmNiMzU0NTlmYTliM2JmYjljZDliZWJjNGEyNTlkN2VmZWFiNTlmIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d14537e commit 38b6cb1

File tree

285 files changed

+89113
-19912
lines changed

Some content is hidden

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

285 files changed

+89113
-19912
lines changed

java-compute/README.md

Lines changed: 1 addition & 1 deletion
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.17.0</version>
23+
<version>26.18.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>

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

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,152 @@ public final UnaryCallable<ListAddressesRequest, AddressList> listCallable() {
808808
return stub.listCallable();
809809
}
810810

811+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
812+
/**
813+
* Moves the specified address resource.
814+
*
815+
* <p>Sample code:
816+
*
817+
* <pre>{@code
818+
* // This snippet has been automatically generated and should be regarded as a code template only.
819+
* // It will require modifications to work:
820+
* // - It may require correct/in-range values for request initialization.
821+
* // - It may require specifying regional endpoints when creating the service client as shown in
822+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
823+
* try (AddressesClient addressesClient = AddressesClient.create()) {
824+
* String project = "project-309310695";
825+
* String region = "region-934795532";
826+
* String address = "address-1147692044";
827+
* RegionAddressesMoveRequest regionAddressesMoveRequestResource =
828+
* RegionAddressesMoveRequest.newBuilder().build();
829+
* Operation response =
830+
* addressesClient
831+
* .moveAsync(project, region, address, regionAddressesMoveRequestResource)
832+
* .get();
833+
* }
834+
* }</pre>
835+
*
836+
* @param project Source project ID which the Address is moved from.
837+
* @param region Name of the region for this request.
838+
* @param address Name of the address resource to move.
839+
* @param regionAddressesMoveRequestResource The body resource for this request
840+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
841+
*/
842+
public final OperationFuture<Operation, Operation> moveAsync(
843+
String project,
844+
String region,
845+
String address,
846+
RegionAddressesMoveRequest regionAddressesMoveRequestResource) {
847+
MoveAddressRequest request =
848+
MoveAddressRequest.newBuilder()
849+
.setProject(project)
850+
.setRegion(region)
851+
.setAddress(address)
852+
.setRegionAddressesMoveRequestResource(regionAddressesMoveRequestResource)
853+
.build();
854+
return moveAsync(request);
855+
}
856+
857+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
858+
/**
859+
* Moves the specified address resource.
860+
*
861+
* <p>Sample code:
862+
*
863+
* <pre>{@code
864+
* // This snippet has been automatically generated and should be regarded as a code template only.
865+
* // It will require modifications to work:
866+
* // - It may require correct/in-range values for request initialization.
867+
* // - It may require specifying regional endpoints when creating the service client as shown in
868+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
869+
* try (AddressesClient addressesClient = AddressesClient.create()) {
870+
* MoveAddressRequest request =
871+
* MoveAddressRequest.newBuilder()
872+
* .setAddress("address-1147692044")
873+
* .setProject("project-309310695")
874+
* .setRegion("region-934795532")
875+
* .setRegionAddressesMoveRequestResource(
876+
* RegionAddressesMoveRequest.newBuilder().build())
877+
* .setRequestId("requestId693933066")
878+
* .build();
879+
* Operation response = addressesClient.moveAsync(request).get();
880+
* }
881+
* }</pre>
882+
*
883+
* @param request The request object containing all of the parameters for the API call.
884+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
885+
*/
886+
@BetaApi(
887+
"The surface for long-running operations is not stable yet and may change in the future.")
888+
public final OperationFuture<Operation, Operation> moveAsync(MoveAddressRequest request) {
889+
return moveOperationCallable().futureCall(request);
890+
}
891+
892+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
893+
/**
894+
* Moves the specified address resource.
895+
*
896+
* <p>Sample code:
897+
*
898+
* <pre>{@code
899+
* // This snippet has been automatically generated and should be regarded as a code template only.
900+
* // It will require modifications to work:
901+
* // - It may require correct/in-range values for request initialization.
902+
* // - It may require specifying regional endpoints when creating the service client as shown in
903+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
904+
* try (AddressesClient addressesClient = AddressesClient.create()) {
905+
* MoveAddressRequest request =
906+
* MoveAddressRequest.newBuilder()
907+
* .setAddress("address-1147692044")
908+
* .setProject("project-309310695")
909+
* .setRegion("region-934795532")
910+
* .setRegionAddressesMoveRequestResource(
911+
* RegionAddressesMoveRequest.newBuilder().build())
912+
* .setRequestId("requestId693933066")
913+
* .build();
914+
* OperationFuture<Operation, Operation> future =
915+
* addressesClient.moveOperationCallable().futureCall(request);
916+
* // Do something.
917+
* Operation response = future.get();
918+
* }
919+
* }</pre>
920+
*/
921+
public final OperationCallable<MoveAddressRequest, Operation, Operation> moveOperationCallable() {
922+
return stub.moveOperationCallable();
923+
}
924+
925+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
926+
/**
927+
* Moves the specified address resource.
928+
*
929+
* <p>Sample code:
930+
*
931+
* <pre>{@code
932+
* // This snippet has been automatically generated and should be regarded as a code template only.
933+
* // It will require modifications to work:
934+
* // - It may require correct/in-range values for request initialization.
935+
* // - It may require specifying regional endpoints when creating the service client as shown in
936+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
937+
* try (AddressesClient addressesClient = AddressesClient.create()) {
938+
* MoveAddressRequest request =
939+
* MoveAddressRequest.newBuilder()
940+
* .setAddress("address-1147692044")
941+
* .setProject("project-309310695")
942+
* .setRegion("region-934795532")
943+
* .setRegionAddressesMoveRequestResource(
944+
* RegionAddressesMoveRequest.newBuilder().build())
945+
* .setRequestId("requestId693933066")
946+
* .build();
947+
* ApiFuture<Operation> future = addressesClient.moveCallable().futureCall(request);
948+
* // Do something.
949+
* Operation response = future.get();
950+
* }
951+
* }</pre>
952+
*/
953+
public final UnaryCallable<MoveAddressRequest, Operation> moveCallable() {
954+
return stub.moveCallable();
955+
}
956+
811957
// AUTO-GENERATED DOCUMENTATION AND METHOD.
812958
/**
813959
* Sets the labels on an Address. To learn more about labels, read the Labeling Resources

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ public PagedCallSettings<ListAddressesRequest, AddressList, ListPagedResponse> l
114114
return ((AddressesStubSettings) getStubSettings()).listSettings();
115115
}
116116

117+
/** Returns the object with the settings used for calls to move. */
118+
public UnaryCallSettings<MoveAddressRequest, Operation> moveSettings() {
119+
return ((AddressesStubSettings) getStubSettings()).moveSettings();
120+
}
121+
122+
/** Returns the object with the settings used for calls to move. */
123+
public OperationCallSettings<MoveAddressRequest, Operation, Operation> moveOperationSettings() {
124+
return ((AddressesStubSettings) getStubSettings()).moveOperationSettings();
125+
}
126+
117127
/** Returns the object with the settings used for calls to setLabels. */
118128
public UnaryCallSettings<SetLabelsAddressRequest, Operation> setLabelsSettings() {
119129
return ((AddressesStubSettings) getStubSettings()).setLabelsSettings();
@@ -262,6 +272,17 @@ public UnaryCallSettings.Builder<InsertAddressRequest, Operation> insertSettings
262272
return getStubSettingsBuilder().listSettings();
263273
}
264274

275+
/** Returns the builder for the settings used for calls to move. */
276+
public UnaryCallSettings.Builder<MoveAddressRequest, Operation> moveSettings() {
277+
return getStubSettingsBuilder().moveSettings();
278+
}
279+
280+
/** Returns the builder for the settings used for calls to move. */
281+
public OperationCallSettings.Builder<MoveAddressRequest, Operation, Operation>
282+
moveOperationSettings() {
283+
return getStubSettingsBuilder().moveOperationSettings();
284+
}
285+
265286
/** Returns the builder for the settings used for calls to setLabels. */
266287
public UnaryCallSettings.Builder<SetLabelsAddressRequest, Operation> setLabelsSettings() {
267288
return getStubSettingsBuilder().setLabelsSettings();

0 commit comments

Comments
 (0)