Skip to content

Commit 2961772

Browse files
yoshi-automationandreamlin
authored andcommitted
---
yaml --- r: 30559 b: refs/heads/autosynth-automl c: b29dded h: refs/heads/master i: 30557: bf5f1bf 30555: 2ea3911 30551: 70d4265 30543: 7e6f319 30527: 2aa8d2f
1 parent cdec47b commit 2961772

214 files changed

Lines changed: 1223 additions & 729 deletions

File tree

Some content is hidden

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

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ refs/heads/spanner: b01127f885b4611bf1852abb0ce481eeb7fcc131
121121
refs/tags/v0.68.0: 9cc799fcf68c82ab431d425fefa58ef615ce8e5b
122122
refs/tags/v0.69.0: 78f67a29e8b9c46ba01de566a2eae0fd1c03edea
123123
refs/heads/autosynth-asset: bdb45634a0fe8f7a510692b56b31f5312e25f453
124-
refs/heads/autosynth-automl: 288b22d7ce2395828445045266091f3792d50999
124+
refs/heads/autosynth-automl: b29dded9b144d40256340cfbe1202da1e3a558ab
125125
refs/heads/autosynth-bigquerydatatransfer: d88aa5aae5fd9d3c6d75bbab1a05162c6d4d948f
126126
refs/heads/autosynth-bigquerystorage: d2c53da3b012e38c662e4df0738042435f19365f
127127
refs/heads/autosynth-bigtable: 9e5429f45cf9face9fed585d0233534993e36b58

branches/autosynth-automl/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
* <p>The default instance has everything set to sensible defaults:
4242
*
4343
* <ul>
44-
* <li>The default service address (https://compute.googleapis.com/compute/v1/projects/) and
45-
* default port (443) are used.
44+
* <li>The default service address (https://www.googleapis.com/compute/v1/projects/) and default
45+
* port (443) are used.
4646
* <li>Credentials are acquired automatically through Application Default Credentials.
4747
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
4848
* </ul>

branches/autosynth-automl/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
* <p>The default instance has everything set to sensible defaults:
4242
*
4343
* <ul>
44-
* <li>The default service address (https://compute.googleapis.com/compute/v1/projects/) and
45-
* default port (443) are used.
44+
* <li>The default service address (https://www.googleapis.com/compute/v1/projects/) and default
45+
* port (443) are used.
4646
* <li>Credentials are acquired automatically through Application Default Credentials.
4747
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
4848
* </ul>

branches/autosynth-automl/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java

Lines changed: 106 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public final class AttachedDiskInitializeParams implements ApiMessage {
4141
private final Map<String, String> labels;
4242
private final String sourceImage;
4343
private final CustomerEncryptionKey sourceImageEncryptionKey;
44+
private final String sourceSnapshot;
45+
private final CustomerEncryptionKey sourceSnapshotEncryptionKey;
4446

4547
private AttachedDiskInitializeParams() {
4648
this.description = null;
@@ -50,6 +52,8 @@ private AttachedDiskInitializeParams() {
5052
this.labels = null;
5153
this.sourceImage = null;
5254
this.sourceImageEncryptionKey = null;
55+
this.sourceSnapshot = null;
56+
this.sourceSnapshotEncryptionKey = null;
5357
}
5458

5559
private AttachedDiskInitializeParams(
@@ -59,14 +63,18 @@ private AttachedDiskInitializeParams(
5963
String diskType,
6064
Map<String, String> labels,
6165
String sourceImage,
62-
CustomerEncryptionKey sourceImageEncryptionKey) {
66+
CustomerEncryptionKey sourceImageEncryptionKey,
67+
String sourceSnapshot,
68+
CustomerEncryptionKey sourceSnapshotEncryptionKey) {
6369
this.description = description;
6470
this.diskName = diskName;
6571
this.diskSizeGb = diskSizeGb;
6672
this.diskType = diskType;
6773
this.labels = labels;
6874
this.sourceImage = sourceImage;
6975
this.sourceImageEncryptionKey = sourceImageEncryptionKey;
76+
this.sourceSnapshot = sourceSnapshot;
77+
this.sourceSnapshotEncryptionKey = sourceSnapshotEncryptionKey;
7078
}
7179

7280
@Override
@@ -92,6 +100,12 @@ public Object getFieldValue(String fieldName) {
92100
if ("sourceImageEncryptionKey".equals(fieldName)) {
93101
return sourceImageEncryptionKey;
94102
}
103+
if ("sourceSnapshot".equals(fieldName)) {
104+
return sourceSnapshot;
105+
}
106+
if ("sourceSnapshotEncryptionKey".equals(fieldName)) {
107+
return sourceSnapshotEncryptionKey;
108+
}
95109
return null;
96110
}
97111

@@ -191,6 +205,24 @@ public CustomerEncryptionKey getSourceImageEncryptionKey() {
191205
return sourceImageEncryptionKey;
192206
}
193207

208+
/**
209+
* The source snapshot to create this disk. When creating a new instance, one of
210+
* initializeParams.sourceSnapshot or disks.source is required except for local SSD.
211+
*
212+
* <p>To create a disk with a snapshot that you created, specify the snapshot name in the
213+
* following format: global/snapshots/my-backup
214+
*
215+
* <p>If the source snapshot is deleted later, this field will not be set.
216+
*/
217+
public String getSourceSnapshot() {
218+
return sourceSnapshot;
219+
}
220+
221+
/** The customer-supplied encryption key of the source snapshot. */
222+
public CustomerEncryptionKey getSourceSnapshotEncryptionKey() {
223+
return sourceSnapshotEncryptionKey;
224+
}
225+
194226
public static Builder newBuilder() {
195227
return DEFAULT_INSTANCE.toBuilder();
196228
}
@@ -221,6 +253,8 @@ public static class Builder {
221253
private Map<String, String> labels;
222254
private String sourceImage;
223255
private CustomerEncryptionKey sourceImageEncryptionKey;
256+
private String sourceSnapshot;
257+
private CustomerEncryptionKey sourceSnapshotEncryptionKey;
224258

225259
Builder() {}
226260

@@ -247,6 +281,12 @@ public Builder mergeFrom(AttachedDiskInitializeParams other) {
247281
if (other.getSourceImageEncryptionKey() != null) {
248282
this.sourceImageEncryptionKey = other.sourceImageEncryptionKey;
249283
}
284+
if (other.getSourceSnapshot() != null) {
285+
this.sourceSnapshot = other.sourceSnapshot;
286+
}
287+
if (other.getSourceSnapshotEncryptionKey() != null) {
288+
this.sourceSnapshotEncryptionKey = other.sourceSnapshotEncryptionKey;
289+
}
250290
return this;
251291
}
252292

@@ -258,6 +298,8 @@ public Builder mergeFrom(AttachedDiskInitializeParams other) {
258298
this.labels = source.labels;
259299
this.sourceImage = source.sourceImage;
260300
this.sourceImageEncryptionKey = source.sourceImageEncryptionKey;
301+
this.sourceSnapshot = source.sourceSnapshot;
302+
this.sourceSnapshotEncryptionKey = source.sourceSnapshotEncryptionKey;
261303
}
262304

263305
/** An optional description. Provide this property when creating the disk. */
@@ -423,6 +465,45 @@ public Builder setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncr
423465
return this;
424466
}
425467

468+
/**
469+
* The source snapshot to create this disk. When creating a new instance, one of
470+
* initializeParams.sourceSnapshot or disks.source is required except for local SSD.
471+
*
472+
* <p>To create a disk with a snapshot that you created, specify the snapshot name in the
473+
* following format: global/snapshots/my-backup
474+
*
475+
* <p>If the source snapshot is deleted later, this field will not be set.
476+
*/
477+
public String getSourceSnapshot() {
478+
return sourceSnapshot;
479+
}
480+
481+
/**
482+
* The source snapshot to create this disk. When creating a new instance, one of
483+
* initializeParams.sourceSnapshot or disks.source is required except for local SSD.
484+
*
485+
* <p>To create a disk with a snapshot that you created, specify the snapshot name in the
486+
* following format: global/snapshots/my-backup
487+
*
488+
* <p>If the source snapshot is deleted later, this field will not be set.
489+
*/
490+
public Builder setSourceSnapshot(String sourceSnapshot) {
491+
this.sourceSnapshot = sourceSnapshot;
492+
return this;
493+
}
494+
495+
/** The customer-supplied encryption key of the source snapshot. */
496+
public CustomerEncryptionKey getSourceSnapshotEncryptionKey() {
497+
return sourceSnapshotEncryptionKey;
498+
}
499+
500+
/** The customer-supplied encryption key of the source snapshot. */
501+
public Builder setSourceSnapshotEncryptionKey(
502+
CustomerEncryptionKey sourceSnapshotEncryptionKey) {
503+
this.sourceSnapshotEncryptionKey = sourceSnapshotEncryptionKey;
504+
return this;
505+
}
506+
426507
public AttachedDiskInitializeParams build() {
427508

428509
return new AttachedDiskInitializeParams(
@@ -432,7 +513,9 @@ public AttachedDiskInitializeParams build() {
432513
diskType,
433514
labels,
434515
sourceImage,
435-
sourceImageEncryptionKey);
516+
sourceImageEncryptionKey,
517+
sourceSnapshot,
518+
sourceSnapshotEncryptionKey);
436519
}
437520

438521
public Builder clone() {
@@ -444,6 +527,8 @@ public Builder clone() {
444527
newBuilder.putAllLabels(this.labels);
445528
newBuilder.setSourceImage(this.sourceImage);
446529
newBuilder.setSourceImageEncryptionKey(this.sourceImageEncryptionKey);
530+
newBuilder.setSourceSnapshot(this.sourceSnapshot);
531+
newBuilder.setSourceSnapshotEncryptionKey(this.sourceSnapshotEncryptionKey);
447532
return newBuilder;
448533
}
449534
}
@@ -471,6 +556,12 @@ public String toString() {
471556
+ ", "
472557
+ "sourceImageEncryptionKey="
473558
+ sourceImageEncryptionKey
559+
+ ", "
560+
+ "sourceSnapshot="
561+
+ sourceSnapshot
562+
+ ", "
563+
+ "sourceSnapshotEncryptionKey="
564+
+ sourceSnapshotEncryptionKey
474565
+ "}";
475566
}
476567

@@ -487,14 +578,25 @@ public boolean equals(Object o) {
487578
&& Objects.equals(this.diskType, that.getDiskType())
488579
&& Objects.equals(this.labels, that.getLabelsMap())
489580
&& Objects.equals(this.sourceImage, that.getSourceImage())
490-
&& Objects.equals(this.sourceImageEncryptionKey, that.getSourceImageEncryptionKey());
581+
&& Objects.equals(this.sourceImageEncryptionKey, that.getSourceImageEncryptionKey())
582+
&& Objects.equals(this.sourceSnapshot, that.getSourceSnapshot())
583+
&& Objects.equals(
584+
this.sourceSnapshotEncryptionKey, that.getSourceSnapshotEncryptionKey());
491585
}
492586
return false;
493587
}
494588

495589
@Override
496590
public int hashCode() {
497591
return Objects.hash(
498-
description, diskName, diskSizeGb, diskType, labels, sourceImage, sourceImageEncryptionKey);
592+
description,
593+
diskName,
594+
diskSizeGb,
595+
diskType,
596+
labels,
597+
sourceImage,
598+
sourceImageEncryptionKey,
599+
sourceSnapshot,
600+
sourceSnapshotEncryptionKey);
499601
}
500602
}

branches/autosynth-automl/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
* <p>The default instance has everything set to sensible defaults:
4242
*
4343
* <ul>
44-
* <li>The default service address (https://compute.googleapis.com/compute/v1/projects/) and
45-
* default port (443) are used.
44+
* <li>The default service address (https://www.googleapis.com/compute/v1/projects/) and default
45+
* port (443) are used.
4646
* <li>Credentials are acquired automatically through Application Default Credentials.
4747
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
4848
* </ul>

branches/autosynth-automl/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
* <p>The default instance has everything set to sensible defaults:
4141
*
4242
* <ul>
43-
* <li>The default service address (https://compute.googleapis.com/compute/v1/projects/) and
44-
* default port (443) are used.
43+
* <li>The default service address (https://www.googleapis.com/compute/v1/projects/) and default
44+
* port (443) are used.
4545
* <li>Credentials are acquired automatically through Application Default Credentials.
4646
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
4747
* </ul>

branches/autosynth-automl/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
* <p>The default instance has everything set to sensible defaults:
4242
*
4343
* <ul>
44-
* <li>The default service address (https://compute.googleapis.com/compute/v1/projects/) and
45-
* default port (443) are used.
44+
* <li>The default service address (https://www.googleapis.com/compute/v1/projects/) and default
45+
* port (443) are used.
4646
* <li>Credentials are acquired automatically through Application Default Credentials.
4747
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
4848
* </ul>

branches/autosynth-automl/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotDiskHttpRequest.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ public String getFields() {
162162
return fields;
163163
}
164164

165-
/** Application consistent snapshot (ie. VSS). */
165+
/**
166+
* [Input Only] Specifies to create an application consistent snapshot by informing the OS to
167+
* prepare for the snapshot process. Currently only supported on Windows instances using the
168+
* Volume Shadow Copy Service (VSS).
169+
*/
166170
public Boolean getGuestFlush() {
167171
return guestFlush;
168172
}
@@ -359,12 +363,20 @@ public Builder setFields(String fields) {
359363
return this;
360364
}
361365

362-
/** Application consistent snapshot (ie. VSS). */
366+
/**
367+
* [Input Only] Specifies to create an application consistent snapshot by informing the OS to
368+
* prepare for the snapshot process. Currently only supported on Windows instances using the
369+
* Volume Shadow Copy Service (VSS).
370+
*/
363371
public Boolean getGuestFlush() {
364372
return guestFlush;
365373
}
366374

367-
/** Application consistent snapshot (ie. VSS). */
375+
/**
376+
* [Input Only] Specifies to create an application consistent snapshot by informing the OS to
377+
* prepare for the snapshot process. Currently only supported on Windows instances using the
378+
* Volume Shadow Copy Service (VSS).
379+
*/
368380
public Builder setGuestFlush(Boolean guestFlush) {
369381
this.guestFlush = guestFlush;
370382
return this;

0 commit comments

Comments
 (0)