Skip to content

Commit f743865

Browse files
yoshi-automationchingor13
authored andcommitted
Regenerate composer client (googleapis#549)
1 parent 76c6462 commit f743865

File tree

20 files changed

+4172
-2196
lines changed

20 files changed

+4172
-2196
lines changed

clients/1.26.0/google-api-services-composer/v1/com/google/api/services/composer/v1/CloudComposer.java

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,207 @@ public Patch set(String parameterName, Object value) {
11631163
}
11641164
}
11651165

1166+
}
1167+
/**
1168+
* An accessor for creating requests from the ImageVersions collection.
1169+
*
1170+
* <p>The typical use is:</p>
1171+
* <pre>
1172+
* {@code CloudComposer composer = new CloudComposer(...);}
1173+
* {@code CloudComposer.ImageVersions.List request = composer.imageVersions().list(parameters ...)}
1174+
* </pre>
1175+
*
1176+
* @return the resource collection
1177+
*/
1178+
public ImageVersions imageVersions() {
1179+
return new ImageVersions();
1180+
}
1181+
1182+
/**
1183+
* The "imageVersions" collection of methods.
1184+
*/
1185+
public class ImageVersions {
1186+
1187+
/**
1188+
* List ImageVersions for provided location.
1189+
*
1190+
* Create a request for the method "imageVersions.list".
1191+
*
1192+
* This request holds the parameters needed by the composer server. After setting any optional
1193+
* parameters, call the {@link List#execute()} method to invoke the remote operation.
1194+
*
1195+
* @param parent List ImageVersions in the given project and location, in the form:
1196+
* "projects/{projectId}/locations/{locationId}"
1197+
* @return the request
1198+
*/
1199+
public List list(java.lang.String parent) throws java.io.IOException {
1200+
List result = new List(parent);
1201+
initialize(result);
1202+
return result;
1203+
}
1204+
1205+
public class List extends CloudComposerRequest<com.google.api.services.composer.v1.model.ListImageVersionsResponse> {
1206+
1207+
private static final String REST_PATH = "v1/{+parent}/imageVersions";
1208+
1209+
private final java.util.regex.Pattern PARENT_PATTERN =
1210+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
1211+
1212+
/**
1213+
* List ImageVersions for provided location.
1214+
*
1215+
* Create a request for the method "imageVersions.list".
1216+
*
1217+
* This request holds the parameters needed by the the composer server. After setting any
1218+
* optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
1219+
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
1220+
* must be called to initialize this instance immediately after invoking the constructor. </p>
1221+
*
1222+
* @param parent List ImageVersions in the given project and location, in the form:
1223+
* "projects/{projectId}/locations/{locationId}"
1224+
* @since 1.13
1225+
*/
1226+
protected List(java.lang.String parent) {
1227+
super(CloudComposer.this, "GET", REST_PATH, null, com.google.api.services.composer.v1.model.ListImageVersionsResponse.class);
1228+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
1229+
if (!getSuppressPatternChecks()) {
1230+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
1231+
"Parameter parent must conform to the pattern " +
1232+
"^projects/[^/]+/locations/[^/]+$");
1233+
}
1234+
}
1235+
1236+
@Override
1237+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
1238+
return super.executeUsingHead();
1239+
}
1240+
1241+
@Override
1242+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
1243+
return super.buildHttpRequestUsingHead();
1244+
}
1245+
1246+
@Override
1247+
public List set$Xgafv(java.lang.String $Xgafv) {
1248+
return (List) super.set$Xgafv($Xgafv);
1249+
}
1250+
1251+
@Override
1252+
public List setAccessToken(java.lang.String accessToken) {
1253+
return (List) super.setAccessToken(accessToken);
1254+
}
1255+
1256+
@Override
1257+
public List setAlt(java.lang.String alt) {
1258+
return (List) super.setAlt(alt);
1259+
}
1260+
1261+
@Override
1262+
public List setCallback(java.lang.String callback) {
1263+
return (List) super.setCallback(callback);
1264+
}
1265+
1266+
@Override
1267+
public List setFields(java.lang.String fields) {
1268+
return (List) super.setFields(fields);
1269+
}
1270+
1271+
@Override
1272+
public List setKey(java.lang.String key) {
1273+
return (List) super.setKey(key);
1274+
}
1275+
1276+
@Override
1277+
public List setOauthToken(java.lang.String oauthToken) {
1278+
return (List) super.setOauthToken(oauthToken);
1279+
}
1280+
1281+
@Override
1282+
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
1283+
return (List) super.setPrettyPrint(prettyPrint);
1284+
}
1285+
1286+
@Override
1287+
public List setQuotaUser(java.lang.String quotaUser) {
1288+
return (List) super.setQuotaUser(quotaUser);
1289+
}
1290+
1291+
@Override
1292+
public List setUploadType(java.lang.String uploadType) {
1293+
return (List) super.setUploadType(uploadType);
1294+
}
1295+
1296+
@Override
1297+
public List setUploadProtocol(java.lang.String uploadProtocol) {
1298+
return (List) super.setUploadProtocol(uploadProtocol);
1299+
}
1300+
1301+
/**
1302+
* List ImageVersions in the given project and location, in the form:
1303+
* "projects/{projectId}/locations/{locationId}"
1304+
*/
1305+
@com.google.api.client.util.Key
1306+
private java.lang.String parent;
1307+
1308+
/** List ImageVersions in the given project and location, in the form:
1309+
"projects/{projectId}/locations/{locationId}"
1310+
*/
1311+
public java.lang.String getParent() {
1312+
return parent;
1313+
}
1314+
1315+
/**
1316+
* List ImageVersions in the given project and location, in the form:
1317+
* "projects/{projectId}/locations/{locationId}"
1318+
*/
1319+
public List setParent(java.lang.String parent) {
1320+
if (!getSuppressPatternChecks()) {
1321+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
1322+
"Parameter parent must conform to the pattern " +
1323+
"^projects/[^/]+/locations/[^/]+$");
1324+
}
1325+
this.parent = parent;
1326+
return this;
1327+
}
1328+
1329+
/** The maximum number of image_versions to return. */
1330+
@com.google.api.client.util.Key
1331+
private java.lang.Integer pageSize;
1332+
1333+
/** The maximum number of image_versions to return.
1334+
*/
1335+
public java.lang.Integer getPageSize() {
1336+
return pageSize;
1337+
}
1338+
1339+
/** The maximum number of image_versions to return. */
1340+
public List setPageSize(java.lang.Integer pageSize) {
1341+
this.pageSize = pageSize;
1342+
return this;
1343+
}
1344+
1345+
/** The next_page_token value returned from a previous List request, if any. */
1346+
@com.google.api.client.util.Key
1347+
private java.lang.String pageToken;
1348+
1349+
/** The next_page_token value returned from a previous List request, if any.
1350+
*/
1351+
public java.lang.String getPageToken() {
1352+
return pageToken;
1353+
}
1354+
1355+
/** The next_page_token value returned from a previous List request, if any. */
1356+
public List setPageToken(java.lang.String pageToken) {
1357+
this.pageToken = pageToken;
1358+
return this;
1359+
}
1360+
1361+
@Override
1362+
public List set(String parameterName, Object value) {
1363+
return (List) super.set(parameterName, value);
1364+
}
1365+
}
1366+
11661367
}
11671368
/**
11681369
* An accessor for creating requests from the Operations collection.
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
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.composer.v1.model;
18+
19+
/**
20+
* ImageVersion information
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 Cloud Composer API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class ImageVersion extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b(.c)"
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String imageVersionId;
38+
39+
/**
40+
* Whether this is the default ImageVersion used by Composer during environment creation if no
41+
* input ImageVersion is specified.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.Boolean isDefault;
46+
47+
/**
48+
* supported python versions
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.util.List<java.lang.String> supportedPythonVersions;
53+
54+
/**
55+
* The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b(.c)"
56+
* @return value or {@code null} for none
57+
*/
58+
public java.lang.String getImageVersionId() {
59+
return imageVersionId;
60+
}
61+
62+
/**
63+
* The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b(.c)"
64+
* @param imageVersionId imageVersionId or {@code null} for none
65+
*/
66+
public ImageVersion setImageVersionId(java.lang.String imageVersionId) {
67+
this.imageVersionId = imageVersionId;
68+
return this;
69+
}
70+
71+
/**
72+
* Whether this is the default ImageVersion used by Composer during environment creation if no
73+
* input ImageVersion is specified.
74+
* @return value or {@code null} for none
75+
*/
76+
public java.lang.Boolean getIsDefault() {
77+
return isDefault;
78+
}
79+
80+
/**
81+
* Whether this is the default ImageVersion used by Composer during environment creation if no
82+
* input ImageVersion is specified.
83+
* @param isDefault isDefault or {@code null} for none
84+
*/
85+
public ImageVersion setIsDefault(java.lang.Boolean isDefault) {
86+
this.isDefault = isDefault;
87+
return this;
88+
}
89+
90+
/**
91+
* supported python versions
92+
* @return value or {@code null} for none
93+
*/
94+
public java.util.List<java.lang.String> getSupportedPythonVersions() {
95+
return supportedPythonVersions;
96+
}
97+
98+
/**
99+
* supported python versions
100+
* @param supportedPythonVersions supportedPythonVersions or {@code null} for none
101+
*/
102+
public ImageVersion setSupportedPythonVersions(java.util.List<java.lang.String> supportedPythonVersions) {
103+
this.supportedPythonVersions = supportedPythonVersions;
104+
return this;
105+
}
106+
107+
@Override
108+
public ImageVersion set(String fieldName, Object value) {
109+
return (ImageVersion) super.set(fieldName, value);
110+
}
111+
112+
@Override
113+
public ImageVersion clone() {
114+
return (ImageVersion) super.clone();
115+
}
116+
117+
}

0 commit comments

Comments
 (0)