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

Commit cd2a10a

Browse files
feat: Update Compute Engine API to revision 20220720 (#723) (#713)
- [ ] Regenerate this pull request now. Source-Link: googleapis/googleapis@60a0fa7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ba1df1be93f5a1aa5c647fc2f195d41b0075aa93 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmExZGYxYmU5M2Y1YTFhYTVjNjQ3ZmMyZjE5NWQ0MWIwMDc1YWE5MyJ9
1 parent 63c37c7 commit cd2a10a

File tree

72 files changed

+31445
-16042
lines changed

Some content is hidden

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

72 files changed

+31445
-16042
lines changed

Diff for: google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersClient.java

+12-4
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,9 @@ public final ListErrorsPagedResponse listErrors(ListErrorsInstanceGroupManagersR
18271827
* currentAction, which indicates the action that the managed instance group is performing on the
18281828
* instance. For example, if the group is still creating an instance, the currentAction is
18291829
* CREATING. If a previous action failed, the list displays the errors for that failed action. The
1830-
* orderBy query parameter is not supported.
1830+
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only in
1831+
* the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
1832+
* `PAGINATED`.
18311833
*
18321834
* <p>Sample code:
18331835
*
@@ -1870,7 +1872,9 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
18701872
* currentAction, which indicates the action that the managed instance group is performing on the
18711873
* instance. For example, if the group is still creating an instance, the currentAction is
18721874
* CREATING. If a previous action failed, the list displays the errors for that failed action. The
1873-
* orderBy query parameter is not supported.
1875+
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only in
1876+
* the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
1877+
* `PAGINATED`.
18741878
*
18751879
* <p>Sample code:
18761880
*
@@ -1911,7 +1915,9 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
19111915
* currentAction, which indicates the action that the managed instance group is performing on the
19121916
* instance. For example, if the group is still creating an instance, the currentAction is
19131917
* CREATING. If a previous action failed, the list displays the errors for that failed action. The
1914-
* orderBy query parameter is not supported.
1918+
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only in
1919+
* the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
1920+
* `PAGINATED`.
19151921
*
19161922
* <p>Sample code:
19171923
*
@@ -1952,7 +1958,9 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
19521958
* currentAction, which indicates the action that the managed instance group is performing on the
19531959
* instance. For example, if the group is still creating an instance, the currentAction is
19541960
* CREATING. If a previous action failed, the list displays the errors for that failed action. The
1955-
* orderBy query parameter is not supported.
1961+
* orderBy query parameter is not supported. The `pageToken` query parameter is supported only in
1962+
* the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
1963+
* `PAGINATED`.
19561964
*
19571965
* <p>Sample code:
19581966
*

Diff for: google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesClient.java

+8-4
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,8 @@ public final UnaryCallable<AttachDiskInstanceRequest, Operation> attachDiskCalla
718718

719719
// AUTO-GENERATED DOCUMENTATION AND METHOD.
720720
/**
721-
* Creates multiple instances. Count specifies the number of instances to create.
721+
* Creates multiple instances. Count specifies the number of instances to create. For more
722+
* information, see About bulk creation of VMs.
722723
*
723724
* <p>Sample code:
724725
*
@@ -753,7 +754,8 @@ public final OperationFuture<Operation, Operation> bulkInsertAsync(
753754

754755
// AUTO-GENERATED DOCUMENTATION AND METHOD.
755756
/**
756-
* Creates multiple instances. Count specifies the number of instances to create.
757+
* Creates multiple instances. Count specifies the number of instances to create. For more
758+
* information, see About bulk creation of VMs.
757759
*
758760
* <p>Sample code:
759761
*
@@ -785,7 +787,8 @@ public final OperationFuture<Operation, Operation> bulkInsertAsync(
785787

786788
// AUTO-GENERATED DOCUMENTATION AND METHOD.
787789
/**
788-
* Creates multiple instances. Count specifies the number of instances to create.
790+
* Creates multiple instances. Count specifies the number of instances to create. For more
791+
* information, see About bulk creation of VMs.
789792
*
790793
* <p>Sample code:
791794
*
@@ -815,7 +818,8 @@ public final OperationFuture<Operation, Operation> bulkInsertAsync(
815818

816819
// AUTO-GENERATED DOCUMENTATION AND METHOD.
817820
/**
818-
* Creates multiple instances. Count specifies the number of instances to create.
821+
* Creates multiple instances. Count specifies the number of instances to create. For more
822+
* information, see About bulk creation of VMs.
819823
*
820824
* <p>Sample code:
821825
*

Diff for: google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersClient.java

+12-4
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,9 @@ public final ListErrorsPagedResponse listErrors(
16831683
/**
16841684
* Lists the instances in the managed instance group and instances that are scheduled to be
16851685
* created. The list includes any current actions that the group has scheduled for its instances.
1686-
* The orderBy query parameter is not supported.
1686+
* The orderBy query parameter is not supported. The `pageToken` query parameter is supported only
1687+
* in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
1688+
* `PAGINATED`.
16871689
*
16881690
* <p>Sample code:
16891691
*
@@ -1724,7 +1726,9 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
17241726
/**
17251727
* Lists the instances in the managed instance group and instances that are scheduled to be
17261728
* created. The list includes any current actions that the group has scheduled for its instances.
1727-
* The orderBy query parameter is not supported.
1729+
* The orderBy query parameter is not supported. The `pageToken` query parameter is supported only
1730+
* in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
1731+
* `PAGINATED`.
17281732
*
17291733
* <p>Sample code:
17301734
*
@@ -1763,7 +1767,9 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
17631767
/**
17641768
* Lists the instances in the managed instance group and instances that are scheduled to be
17651769
* created. The list includes any current actions that the group has scheduled for its instances.
1766-
* The orderBy query parameter is not supported.
1770+
* The orderBy query parameter is not supported. The `pageToken` query parameter is supported only
1771+
* in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
1772+
* `PAGINATED`.
17671773
*
17681774
* <p>Sample code:
17691775
*
@@ -1802,7 +1808,9 @@ public final ListManagedInstancesPagedResponse listManagedInstances(
18021808
/**
18031809
* Lists the instances in the managed instance group and instances that are scheduled to be
18041810
* created. The list includes any current actions that the group has scheduled for its instances.
1805-
* The orderBy query parameter is not supported.
1811+
* The orderBy query parameter is not supported. The `pageToken` query parameter is supported only
1812+
* in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to
1813+
* `PAGINATED`.
18061814
*
18071815
* <p>Sample code:
18081816
*

Diff for: google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DisksClientTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ public void deleteExceptionTest() throws Exception {
359359
public void getTest() throws Exception {
360360
Disk expectedResponse =
361361
Disk.newBuilder()
362+
.setArchitecture("architecture839674195")
362363
.setCreationTimestamp("creationTimestamp-370203401")
363364
.setDescription("description-1724546052")
364365
.setDiskEncryptionKey(CustomerEncryptionKey.newBuilder().build())

Diff for: google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImagesClientTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ public void deprecateExceptionTest() throws Exception {
221221
public void getTest() throws Exception {
222222
Image expectedResponse =
223223
Image.newBuilder()
224+
.setArchitecture("architecture839674195")
224225
.setArchiveSizeBytes(-1766390198)
225226
.setCreationTimestamp("creationTimestamp-370203401")
226227
.setDeprecated(DeprecationStatus.newBuilder().build())
@@ -297,6 +298,7 @@ public void getExceptionTest() throws Exception {
297298
public void getFromFamilyTest() throws Exception {
298299
Image expectedResponse =
299300
Image.newBuilder()
301+
.setArchitecture("architecture839674195")
300302
.setArchiveSizeBytes(-1766390198)
301303
.setCreationTimestamp("creationTimestamp-370203401")
302304
.setDeprecated(DeprecationStatus.newBuilder().build())

Diff for: google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstancesClientTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ public void getTest() throws Exception {
676676
.addAllGuestAccelerators(new ArrayList<AcceleratorConfig>())
677677
.setHostname("hostname-299803597")
678678
.setId(3355)
679+
.setKeyRevocationActionType("keyRevocationActionType-1643749939")
679680
.setKind("kind3292052")
680681
.setLabelFingerprint("labelFingerprint379449680")
681682
.putAllLabels(new HashMap<String, String>())

Diff for: google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworksClientTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ public void getTest() throws Exception {
228228
.setCreationTimestamp("creationTimestamp-370203401")
229229
.setDescription("description-1724546052")
230230
.setEnableUlaInternalIpv6(true)
231+
.setFirewallPolicy("firewallPolicy1819692626")
231232
.setGatewayIPv4("gatewayIPv4-435687895")
232233
.setId(3355)
233234
.setInternalIpv6Range("internalIpv6Range1368723801")

Diff for: google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDisksClientTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ public void deleteExceptionTest() throws Exception {
307307
public void getTest() throws Exception {
308308
Disk expectedResponse =
309309
Disk.newBuilder()
310+
.setArchitecture("architecture839674195")
310311
.setCreationTimestamp("creationTimestamp-370203401")
311312
.setDescription("description-1724546052")
312313
.setDiskEncryptionKey(CustomerEncryptionKey.newBuilder().build())

Diff for: google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotsClientTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,10 @@ public void deleteExceptionTest() throws Exception {
150150
public void getTest() throws Exception {
151151
Snapshot expectedResponse =
152152
Snapshot.newBuilder()
153+
.setArchitecture("architecture839674195")
153154
.setAutoCreated(true)
154155
.setChainName("chainName1317895404")
156+
.setCreationSizeBytes(1199141901)
155157
.setCreationTimestamp("creationTimestamp-370203401")
156158
.setDescription("description-1724546052")
157159
.setDiskSizeGb(-757478089)
@@ -167,9 +169,12 @@ public void getTest() throws Exception {
167169
.setSatisfiesPzs(true)
168170
.setSelfLink("selfLink1191800166")
169171
.setSnapshotEncryptionKey(CustomerEncryptionKey.newBuilder().build())
172+
.setSnapshotType("snapshotType-931506402")
170173
.setSourceDisk("sourceDisk-1111923624")
171174
.setSourceDiskEncryptionKey(CustomerEncryptionKey.newBuilder().build())
172175
.setSourceDiskId("sourceDiskId888256403")
176+
.setSourceSnapshotSchedulePolicy("sourceSnapshotSchedulePolicy-1664282744")
177+
.setSourceSnapshotSchedulePolicyId("sourceSnapshotSchedulePolicyId-1647880509")
173178
.setStatus("status-892481550")
174179
.setStorageBytes(2035244455)
175180
.setStorageBytesStatus("storageBytesStatus-1653482814")

0 commit comments

Comments
 (0)