Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

chore: add Go build targets for compute (#792) #766

Closed
wants to merge 40 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
48ea069
feat: Update Compute Engine API to revision 20221011 (#736)
gcf-owl-bot[bot] Oct 19, 2022
427f75e
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 19, 2022
08e5804
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 19, 2022
991b59c
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-com…
gcf-owl-bot[bot] Oct 19, 2022
19b1e52
feat: Update Compute Engine API to revision 20221101 (#751)
gcf-owl-bot[bot] Nov 19, 2022
90edab7
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 19, 2022
f78a05f
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 19, 2022
a5f096c
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-com…
gcf-owl-bot[bot] Nov 19, 2022
bae47a8
feat: Update Compute Engine API to revision 20221126 (#757)
gcf-owl-bot[bot] Dec 7, 2022
cb021cc
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Dec 7, 2022
fb7c02c
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Dec 7, 2022
5bde61f
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-com…
gcf-owl-bot[bot] Dec 7, 2022
213b722
chore: regenerate API index
gcf-owl-bot[bot] Jan 9, 2023
190c5c0
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jan 9, 2023
9c61652
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jan 9, 2023
3b2b001
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-com…
gcf-owl-bot[bot] Jan 9, 2023
ee7d921
chore(bazel): update protobuf to v3.21.12
gcf-owl-bot[bot] Jan 20, 2023
b17848b
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jan 20, 2023
4c6a07c
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jan 20, 2023
b110b39
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-com…
gcf-owl-bot[bot] Jan 20, 2023
795d5e6
feat: Update Compute Engine API to revision 20221224 (#760)
gcf-owl-bot[bot] Jan 20, 2023
d864f5e
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jan 20, 2023
77178b5
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jan 20, 2023
5f94114
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-com…
gcf-owl-bot[bot] Jan 20, 2023
a51b49f
feat: Update Compute Engine API to revision 20230103 (#769)
gcf-owl-bot[bot] Jan 20, 2023
a490849
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jan 20, 2023
a963ea4
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jan 20, 2023
17c355c
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-com…
gcf-owl-bot[bot] Jan 20, 2023
26cde43
feat: Update Compute Engine API to revision 20230307 (#770)
gcf-owl-bot[bot] Mar 16, 2023
2495e27
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 16, 2023
bd7e6e3
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 16, 2023
6cfb9f8
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-com…
gcf-owl-bot[bot] Mar 16, 2023
0a09dea
feat: Update Compute Engine API to revision 20230307 (#786)
gcf-owl-bot[bot] Mar 21, 2023
aaa0802
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 21, 2023
3fbfdec
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 21, 2023
66b86a1
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-com…
gcf-owl-bot[bot] Mar 21, 2023
ae007e4
chore: add Go build targets for compute (#792)
gcf-owl-bot[bot] Apr 6, 2023
a0dbf5a
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Apr 6, 2023
040b022
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Apr 6, 2023
24307d6
Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-com…
gcf-owl-bot[bot] Apr 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file:
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-compute:1.13.0'
implementation 'com.google.cloud:google-cloud-compute:1.24.0'
```

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

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.13.0"
libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.24.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@
* acceleratorTypesSettingsBuilder
* .getSettings()
* .setRetrySettings(
* acceleratorTypesSettingsBuilder.getSettings().getRetrySettings().toBuilder()
* acceleratorTypesSettingsBuilder
* .getSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AcceleratorTypesSettings acceleratorTypesSettings = acceleratorTypesSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@
* addressesSettingsBuilder
* .getSettings()
* .setRetrySettings(
* addressesSettingsBuilder.getSettings().getRetrySettings().toBuilder()
* addressesSettingsBuilder
* .getSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AddressesSettings addressesSettings = addressesSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,7 @@ public final UnaryCallable<DeleteAutoscalerRequest, Operation> deleteCallable()

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified autoscaler resource. Gets a list of available autoscalers by making a
* list() request.
* Returns the specified autoscaler resource.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -480,8 +479,7 @@ public final Autoscaler get(String project, String zone, String autoscaler) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified autoscaler resource. Gets a list of available autoscalers by making a
* list() request.
* Returns the specified autoscaler resource.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -511,8 +509,7 @@ public final Autoscaler get(GetAutoscalerRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified autoscaler resource. Gets a list of available autoscalers by making a
* list() request.
* Returns the specified autoscaler resource.
*
* <p>Sample code:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@
* autoscalersSettingsBuilder
* .getSettings()
* .setRetrySettings(
* autoscalersSettingsBuilder.getSettings().getRetrySettings().toBuilder()
* autoscalersSettingsBuilder
* .getSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AutoscalersSettings autoscalersSettings = autoscalersSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,7 @@ public final OperationFuture<Operation, Operation> deleteSignedUrlKeyAsync(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified BackendBucket resource. Gets a list of available backend buckets by
* making a list() request.
* Returns the specified BackendBucket resource.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -596,8 +595,7 @@ public final BackendBucket get(String project, String backendBucket) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified BackendBucket resource. Gets a list of available backend buckets by
* making a list() request.
* Returns the specified BackendBucket resource.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -626,8 +624,7 @@ public final BackendBucket get(GetBackendBucketRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified BackendBucket resource. Gets a list of available backend buckets by
* making a list() request.
* Returns the specified BackendBucket resource.
*
* <p>Sample code:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@
* backendBucketsSettingsBuilder
* .getSettings()
* .setRetrySettings(
* backendBucketsSettingsBuilder.getSettings().getRetrySettings().toBuilder()
* backendBucketsSettingsBuilder
* .getSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* BackendBucketsSettings backendBucketsSettings = backendBucketsSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ public final OperationFuture<Operation, Operation> deleteSignedUrlKeyAsync(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified BackendService resource. Gets a list of available backend services.
* Returns the specified BackendService resource.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -752,7 +752,7 @@ public final BackendService get(String project, String backendService) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified BackendService resource. Gets a list of available backend services.
* Returns the specified BackendService resource.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -781,7 +781,7 @@ public final BackendService get(GetBackendServiceRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified BackendService resource. Gets a list of available backend services.
* Returns the specified BackendService resource.
*
* <p>Sample code:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
* backendServicesSettingsBuilder
* .getSettings()
* .setRetrySettings(
* backendServicesSettingsBuilder.getSettings().getRetrySettings().toBuilder()
* backendServicesSettingsBuilder
* .getSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* BackendServicesSettings backendServicesSettings = backendServicesSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListDiskTypesR

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified disk type. Gets a list of available disk types by making a list()
* request.
* Returns the specified disk type.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -343,8 +342,7 @@ public final DiskType get(String project, String zone, String diskType) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified disk type. Gets a list of available disk types by making a list()
* request.
* Returns the specified disk type.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -374,8 +372,7 @@ public final DiskType get(GetDiskTypeRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the specified disk type. Gets a list of available disk types by making a list()
* request.
* Returns the specified disk type.
*
* <p>Sample code:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
* diskTypesSettingsBuilder
* .getSettings()
* .setRetrySettings(
* diskTypesSettingsBuilder.getSettings().getRetrySettings().toBuilder()
* diskTypesSettingsBuilder
* .getSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DiskTypesSettings diskTypesSettings = diskTypesSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,7 @@ public final UnaryCallable<DeleteDiskRequest, Operation> deleteCallable() {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a specified persistent disk. Gets a list of available persistent disks by making a
* list() request.
* Returns the specified persistent disk.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -780,8 +779,7 @@ public final Disk get(String project, String zone, String disk) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a specified persistent disk. Gets a list of available persistent disks by making a
* list() request.
* Returns the specified persistent disk.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -811,8 +809,7 @@ public final Disk get(GetDiskRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns a specified persistent disk. Gets a list of available persistent disks by making a
* list() request.
* Returns the specified persistent disk.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1874,6 +1871,157 @@ public final TestPermissionsResponse testIamPermissions(TestIamPermissionsDiskRe
return stub.testIamPermissionsCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the specified disk with the data included in the request. The update is performed only
* on selected fields included as part of update-mask. Only the following fields can be modified:
* user_license.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DisksClient disksClient = DisksClient.create()) {
* String project = "project-309310695";
* String zone = "zone3744684";
* String disk = "disk3083677";
* Disk diskResource = Disk.newBuilder().build();
* Operation response = disksClient.updateAsync(project, zone, disk, diskResource).get();
* }
* }</pre>
*
* @param project Project ID for this request.
* @param zone The name of the zone for this request.
* @param disk The disk name for this request.
* @param diskResource The body resource for this request
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Operation, Operation> updateAsync(
String project, String zone, String disk, Disk diskResource) {
UpdateDiskRequest request =
UpdateDiskRequest.newBuilder()
.setProject(project)
.setZone(zone)
.setDisk(disk)
.setDiskResource(diskResource)
.build();
return updateAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the specified disk with the data included in the request. The update is performed only
* on selected fields included as part of update-mask. Only the following fields can be modified:
* user_license.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DisksClient disksClient = DisksClient.create()) {
* UpdateDiskRequest request =
* UpdateDiskRequest.newBuilder()
* .setDisk("disk3083677")
* .setDiskResource(Disk.newBuilder().build())
* .setPaths("paths106438894")
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setUpdateMask("updateMask-296147115")
* .setZone("zone3744684")
* .build();
* Operation response = disksClient.updateAsync(request).get();
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Operation, Operation> updateAsync(UpdateDiskRequest request) {
return updateOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the specified disk with the data included in the request. The update is performed only
* on selected fields included as part of update-mask. Only the following fields can be modified:
* user_license.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DisksClient disksClient = DisksClient.create()) {
* UpdateDiskRequest request =
* UpdateDiskRequest.newBuilder()
* .setDisk("disk3083677")
* .setDiskResource(Disk.newBuilder().build())
* .setPaths("paths106438894")
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setUpdateMask("updateMask-296147115")
* .setZone("zone3744684")
* .build();
* OperationFuture<Operation, Operation> future =
* disksClient.updateOperationCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final OperationCallable<UpdateDiskRequest, Operation, Operation>
updateOperationCallable() {
return stub.updateOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Updates the specified disk with the data included in the request. The update is performed only
* on selected fields included as part of update-mask. Only the following fields can be modified:
* user_license.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DisksClient disksClient = DisksClient.create()) {
* UpdateDiskRequest request =
* UpdateDiskRequest.newBuilder()
* .setDisk("disk3083677")
* .setDiskResource(Disk.newBuilder().build())
* .setPaths("paths106438894")
* .setProject("project-309310695")
* .setRequestId("requestId693933066")
* .setUpdateMask("updateMask-296147115")
* .setZone("zone3744684")
* .build();
* ApiFuture<Operation> future = disksClient.updateCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<UpdateDiskRequest, Operation> updateCallable() {
return stub.updateCallable();
}

@Override
public final void close() {
stub.close();
Expand Down
Loading