Skip to content

Commit ecda73c

Browse files
Regenerate assuredworkloads client (googleapis#7706)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2021-04-07 03:39:01,715 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-java-client-services/synth.py. On branch autosynth-assuredworkloads nothing to commit, working tree clean 2021-04-07 03:39:02,129 synthtool [DEBUG] > Cloning https://github.com/googleapis/discovery-artifact-manager.git. DEBUG:synthtool:Cloning https://github.com/googleapis/discovery-artifact-manager.git. 2021-04-07 03:39:02,567 synthtool [DEBUG] > Cleaning output directory. DEBUG:synthtool:Cleaning output directory. 2021-04-07 03:39:02,569 synthtool [DEBUG] > Installing dependencies. DEBUG:synthtool:Installing dependencies. 2021-04-07 03:39:04,292 synthtool [INFO] > Generating assuredworkloads v1. INFO:synthtool:Generating assuredworkloads v1. 2021-04-07 03:39:04,292 synthtool [INFO] > 1.31.0 INFO:synthtool: 1.31.0 WARNING:root:object without properties GoogleProtobufEmpty: OrderedDict([(u'properties', OrderedDict()), (u'type', u'object'), (u'id', u'GoogleProtobufEmpty'), (u'description', u'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.')]) Writing json metadata to clients/google-api-services-assuredworkloads/v1.metadata.json 2021-04-07 03:39:04,935 synthtool [DEBUG] > Wrote metadata to clients/google-api-services-assuredworkloads/synth.metadata. DEBUG:synthtool:Wrote metadata to clients/google-api-services-assuredworkloads/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/0f0f9f42-37d9-4799-926b-ac810e280369/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
1 parent e26d4e8 commit ecda73c

File tree

7 files changed

+167
-8
lines changed

7 files changed

+167
-8
lines changed

clients/google-api-services-assuredworkloads/v1.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"maven": {
33
"groupId": "com.google.apis",
44
"artifactId": "google-api-services-assuredworkloads",
5-
"version": "v1-rev20210325-1.31.0"
5+
"version": "v1-rev20210330-1.31.0"
66
}
77
}

clients/google-api-services-assuredworkloads/v1/1.31.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-assuredworkloads</artifactId>
25-
<version>v1-rev20210325-1.31.0</version>
25+
<version>v1-rev20210330-1.31.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
compile 'com.google.apis:google-api-services-assuredworkloads:v1-rev20210325-1.31.0'
38+
compile 'com.google.apis:google-api-services-assuredworkloads:v1-rev20210330-1.31.0'
3939
}
4040
```
4141

clients/google-api-services-assuredworkloads/v1/1.31.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1Workload.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ public final class GoogleCloudAssuredworkloadsV1Workload extends com.google.api.
105105
@com.google.api.client.util.Key
106106
private java.lang.String provisionedResourcesParent;
107107

108+
/**
109+
* Input only. Resource properties that are used to customize workload resources. These properties
110+
* (such as custom project id) will be used to create workload resources if possible. This field
111+
* is optional.
112+
* The value may be {@code null}.
113+
*/
114+
@com.google.api.client.util.Key
115+
private java.util.List<GoogleCloudAssuredworkloadsV1WorkloadResourceSettings> resourceSettings;
116+
108117
/**
109118
* Output only. The resources associated with this workload. These resources will be created when
110119
* creating the workload. If any of the projects already exist, the workload creation will fail.
@@ -291,6 +300,27 @@ public GoogleCloudAssuredworkloadsV1Workload setProvisionedResourcesParent(java.
291300
return this;
292301
}
293302

303+
/**
304+
* Input only. Resource properties that are used to customize workload resources. These properties
305+
* (such as custom project id) will be used to create workload resources if possible. This field
306+
* is optional.
307+
* @return value or {@code null} for none
308+
*/
309+
public java.util.List<GoogleCloudAssuredworkloadsV1WorkloadResourceSettings> getResourceSettings() {
310+
return resourceSettings;
311+
}
312+
313+
/**
314+
* Input only. Resource properties that are used to customize workload resources. These properties
315+
* (such as custom project id) will be used to create workload resources if possible. This field
316+
* is optional.
317+
* @param resourceSettings resourceSettings or {@code null} for none
318+
*/
319+
public GoogleCloudAssuredworkloadsV1Workload setResourceSettings(java.util.List<GoogleCloudAssuredworkloadsV1WorkloadResourceSettings> resourceSettings) {
320+
this.resourceSettings = resourceSettings;
321+
return this;
322+
}
323+
294324
/**
295325
* Output only. The resources associated with this workload. These resources will be created when
296326
* creating the workload. If any of the projects already exist, the workload creation will fail.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.assuredworkloads.v1.model;
18+
19+
/**
20+
* Represent the custom settings for the resources to be created.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Assured Workloads API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleCloudAssuredworkloadsV1WorkloadResourceSettings extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Resource identifier. For a project this represents project_id. If the project is already taken,
35+
* the workload creation will fail.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String resourceId;
40+
41+
/**
42+
* Indicates the type of resource. This field should be specified to correspond the id to the
43+
* right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.String resourceType;
48+
49+
/**
50+
* Resource identifier. For a project this represents project_id. If the project is already taken,
51+
* the workload creation will fail.
52+
* @return value or {@code null} for none
53+
*/
54+
public java.lang.String getResourceId() {
55+
return resourceId;
56+
}
57+
58+
/**
59+
* Resource identifier. For a project this represents project_id. If the project is already taken,
60+
* the workload creation will fail.
61+
* @param resourceId resourceId or {@code null} for none
62+
*/
63+
public GoogleCloudAssuredworkloadsV1WorkloadResourceSettings setResourceId(java.lang.String resourceId) {
64+
this.resourceId = resourceId;
65+
return this;
66+
}
67+
68+
/**
69+
* Indicates the type of resource. This field should be specified to correspond the id to the
70+
* right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
71+
* @return value or {@code null} for none
72+
*/
73+
public java.lang.String getResourceType() {
74+
return resourceType;
75+
}
76+
77+
/**
78+
* Indicates the type of resource. This field should be specified to correspond the id to the
79+
* right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
80+
* @param resourceType resourceType or {@code null} for none
81+
*/
82+
public GoogleCloudAssuredworkloadsV1WorkloadResourceSettings setResourceType(java.lang.String resourceType) {
83+
this.resourceType = resourceType;
84+
return this;
85+
}
86+
87+
@Override
88+
public GoogleCloudAssuredworkloadsV1WorkloadResourceSettings set(String fieldName, Object value) {
89+
return (GoogleCloudAssuredworkloadsV1WorkloadResourceSettings) super.set(fieldName, value);
90+
}
91+
92+
@Override
93+
public GoogleCloudAssuredworkloadsV1WorkloadResourceSettings clone() {
94+
return (GoogleCloudAssuredworkloadsV1WorkloadResourceSettings) super.clone();
95+
}
96+
97+
}

clients/google-api-services-assuredworkloads/v1/1.31.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-assuredworkloads</artifactId>
11-
<version>v1-rev20210325-1.31.0</version>
12-
<name>Assured Workloads API v1-rev20210325-1.31.0</name>
11+
<version>v1-rev20210330-1.31.0</version>
12+
<name>Assured Workloads API v1-rev20210330-1.31.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-assuredworkloads/v1/1.31.0/resources/assuredworkloads.v1.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
}
352352
}
353353
},
354-
"revision": "20210325",
354+
"revision": "20210330",
355355
"rootUrl": "https://assuredworkloads.googleapis.com/",
356356
"schemas": {
357357
"GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata": {
@@ -473,6 +473,13 @@
473473
"description": "Input only. The parent resource for the resources managed by this Assured Workload. May be either an organization or a folder. Must be the same or a child of the Workload parent. If not specified all resources are created under the Workload parent. Formats: folders/{folder_id} organizations/{organization_id}",
474474
"type": "string"
475475
},
476+
"resourceSettings": {
477+
"description": "Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.",
478+
"items": {
479+
"$ref": "GoogleCloudAssuredworkloadsV1WorkloadResourceSettings"
480+
},
481+
"type": "array"
482+
},
476483
"resources": {
477484
"description": "Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.",
478485
"items": {
@@ -527,6 +534,31 @@
527534
},
528535
"type": "object"
529536
},
537+
"GoogleCloudAssuredworkloadsV1WorkloadResourceSettings": {
538+
"description": "Represent the custom settings for the resources to be created.",
539+
"id": "GoogleCloudAssuredworkloadsV1WorkloadResourceSettings",
540+
"properties": {
541+
"resourceId": {
542+
"description": "Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail.",
543+
"type": "string"
544+
},
545+
"resourceType": {
546+
"description": "Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)",
547+
"enum": [
548+
"RESOURCE_TYPE_UNSPECIFIED",
549+
"CONSUMER_PROJECT",
550+
"ENCRYPTION_KEYS_PROJECT"
551+
],
552+
"enumDescriptions": [
553+
"Unknown resource type.",
554+
"Consumer project.",
555+
"Consumer project containing encryption keys."
556+
],
557+
"type": "string"
558+
}
559+
},
560+
"type": "object"
561+
},
530562
"GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata": {
531563
"description": "Operation metadata to give request details of CreateWorkload.",
532564
"id": "GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata",

clients/google-api-services-assuredworkloads/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-assuredworkloads</artifactId>
25-
<version>v1-rev20210325-1.31.0</version>
25+
<version>v1-rev20210330-1.31.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
compile 'com.google.apis:google-api-services-assuredworkloads:v1-rev20210325-1.31.0'
38+
compile 'com.google.apis:google-api-services-assuredworkloads:v1-rev20210330-1.31.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)