31
31
@ SuppressWarnings ("javadoc" )
32
32
public final class Preview extends com .google .api .client .json .GenericJson {
33
33
34
+ /**
35
+ * Optional. Arbitrary key-value metadata storage e.g. to help client tools identifiy preview
36
+ * during automation. See https://google.aip.dev/148#annotations for details on format and size
37
+ * limitations.
38
+ * The value may be {@code null}.
39
+ */
40
+ @ com .google .api .client .util .Key
41
+ private java .util .Map <String , java .lang .String > annotations ;
42
+
34
43
/**
35
44
* Optional. User-defined location of Cloud Build logs, artifacts, and in Google Cloud Storage.
36
45
* Format: `gs://{bucket}/{folder}` A default bucket will be bootstrapped if the field is not set
@@ -155,6 +164,21 @@ public final class Preview extends com.google.api.client.json.GenericJson {
155
164
@ com .google .api .client .util .Key
156
165
private java .util .List <TerraformError > tfErrors ;
157
166
167
+ /**
168
+ * Output only. The current Terraform version set on the preview. It is in the format of
169
+ * "Major.Minor.Patch", for example, "1.3.10".
170
+ * The value may be {@code null}.
171
+ */
172
+ @ com .google .api .client .util .Key
173
+ private java .lang .String tfVersion ;
174
+
175
+ /**
176
+ * Optional. The user-specified Terraform version constraint. Example: "=1.3.10".
177
+ * The value may be {@code null}.
178
+ */
179
+ @ com .google .api .client .util .Key
180
+ private java .lang .String tfVersionConstraint ;
181
+
158
182
/**
159
183
* Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute.
160
184
* Format projects/{project}/locations/{location}/workerPools/{workerPoolId} If this field is
@@ -165,6 +189,27 @@ public final class Preview extends com.google.api.client.json.GenericJson {
165
189
@ com .google .api .client .util .Key
166
190
private java .lang .String workerPool ;
167
191
192
+ /**
193
+ * Optional. Arbitrary key-value metadata storage e.g. to help client tools identifiy preview
194
+ * during automation. See https://google.aip.dev/148#annotations for details on format and size
195
+ * limitations.
196
+ * @return value or {@code null} for none
197
+ */
198
+ public java .util .Map <String , java .lang .String > getAnnotations () {
199
+ return annotations ;
200
+ }
201
+
202
+ /**
203
+ * Optional. Arbitrary key-value metadata storage e.g. to help client tools identifiy preview
204
+ * during automation. See https://google.aip.dev/148#annotations for details on format and size
205
+ * limitations.
206
+ * @param annotations annotations or {@code null} for none
207
+ */
208
+ public Preview setAnnotations (java .util .Map <String , java .lang .String > annotations ) {
209
+ this .annotations = annotations ;
210
+ return this ;
211
+ }
212
+
168
213
/**
169
214
* Optional. User-defined location of Cloud Build logs, artifacts, and in Google Cloud Storage.
170
215
* Format: `gs://{bucket}/{folder}` A default bucket will be bootstrapped if the field is not set
@@ -461,6 +506,42 @@ public Preview setTfErrors(java.util.List<TerraformError> tfErrors) {
461
506
return this ;
462
507
}
463
508
509
+ /**
510
+ * Output only. The current Terraform version set on the preview. It is in the format of
511
+ * "Major.Minor.Patch", for example, "1.3.10".
512
+ * @return value or {@code null} for none
513
+ */
514
+ public java .lang .String getTfVersion () {
515
+ return tfVersion ;
516
+ }
517
+
518
+ /**
519
+ * Output only. The current Terraform version set on the preview. It is in the format of
520
+ * "Major.Minor.Patch", for example, "1.3.10".
521
+ * @param tfVersion tfVersion or {@code null} for none
522
+ */
523
+ public Preview setTfVersion (java .lang .String tfVersion ) {
524
+ this .tfVersion = tfVersion ;
525
+ return this ;
526
+ }
527
+
528
+ /**
529
+ * Optional. The user-specified Terraform version constraint. Example: "=1.3.10".
530
+ * @return value or {@code null} for none
531
+ */
532
+ public java .lang .String getTfVersionConstraint () {
533
+ return tfVersionConstraint ;
534
+ }
535
+
536
+ /**
537
+ * Optional. The user-specified Terraform version constraint. Example: "=1.3.10".
538
+ * @param tfVersionConstraint tfVersionConstraint or {@code null} for none
539
+ */
540
+ public Preview setTfVersionConstraint (java .lang .String tfVersionConstraint ) {
541
+ this .tfVersionConstraint = tfVersionConstraint ;
542
+ return this ;
543
+ }
544
+
464
545
/**
465
546
* Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute.
466
547
* Format projects/{project}/locations/{location}/workerPools/{workerPoolId} If this field is
0 commit comments