Skip to content

Commit 57647cb

Browse files
gcf-owl-bot[bot]suztomo
authored andcommitted
feat: [compute] Update Compute Engine API to revision 20220831 (googleapis#729) (googleapis#8401)
* feat: Update Compute Engine API to revision 20220831 (googleapis#729) Source-Link: googleapis/googleapis@63c3007 Source-Link: googleapis/googleapis-gen@b658223 Copy-Tag: eyJwIjoiamF2YS1jb21wdXRlLy5Pd2xCb3QueWFtbCIsImgiOiJiNjU4MjIzMWFlN2I3ZjVjZDE4ZjdkMTQyYzY1NDIxNzczY2NhNWRlIn0= * 🦉 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 4e29b13 commit 57647cb

File tree

195 files changed

+74358
-15735
lines changed

Some content is hidden

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

195 files changed

+74358
-15735
lines changed

java-compute/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file:
2727
If you are using Gradle without BOM, add this to your dependencies:
2828

2929
```Groovy
30-
implementation 'com.google.cloud:google-cloud-compute:1.12.0'
30+
implementation 'com.google.cloud:google-cloud-compute:1.12.1'
3131
```
3232

3333
If you are using SBT, add this to your dependencies:
3434

3535
```Scala
36-
libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.12.0"
36+
libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.12.1"
3737
```
3838

3939
## Authentication

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

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

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

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,17 @@ public PagedCallSettings<ListAddressesRequest, AddressList, ListPagedResponse> l
111111
return ((AddressesStubSettings) getStubSettings()).listSettings();
112112
}
113113

114+
/** Returns the object with the settings used for calls to setLabels. */
115+
public UnaryCallSettings<SetLabelsAddressRequest, Operation> setLabelsSettings() {
116+
return ((AddressesStubSettings) getStubSettings()).setLabelsSettings();
117+
}
118+
119+
/** Returns the object with the settings used for calls to setLabels. */
120+
public OperationCallSettings<SetLabelsAddressRequest, Operation, Operation>
121+
setLabelsOperationSettings() {
122+
return ((AddressesStubSettings) getStubSettings()).setLabelsOperationSettings();
123+
}
124+
114125
public static final AddressesSettings create(AddressesStubSettings stub) throws IOException {
115126
return new AddressesSettings.Builder(stub.toBuilder()).build();
116127
}
@@ -248,6 +259,17 @@ public UnaryCallSettings.Builder<InsertAddressRequest, Operation> insertSettings
248259
return getStubSettingsBuilder().listSettings();
249260
}
250261

262+
/** Returns the builder for the settings used for calls to setLabels. */
263+
public UnaryCallSettings.Builder<SetLabelsAddressRequest, Operation> setLabelsSettings() {
264+
return getStubSettingsBuilder().setLabelsSettings();
265+
}
266+
267+
/** Returns the builder for the settings used for calls to setLabels. */
268+
public OperationCallSettings.Builder<SetLabelsAddressRequest, Operation, Operation>
269+
setLabelsOperationSettings() {
270+
return getStubSettingsBuilder().setLabelsOperationSettings();
271+
}
272+
251273
@Override
252274
public AddressesSettings build() throws IOException {
253275
return new AddressesSettings(this);

0 commit comments

Comments
 (0)