Skip to content

Commit f449360

Browse files
1 parent 499b3dd commit f449360

File tree

4 files changed

+218
-6
lines changed

4 files changed

+218
-6
lines changed

clients/google-api-services-gkeonprem/v1/2.0.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-gkeonprem</artifactId>
25-
<version>v1-rev20240814-2.0.0</version>
25+
<version>v1-rev20241023-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-gkeonprem:v1-rev20240814-2.0.0'
38+
implementation 'com.google.apis:google-api-services-gkeonprem:v1-rev20241023-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-gkeonprem/v1/2.0.0/com/google/api/services/gkeonprem/v1/GKEOnPrem.java

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8239,6 +8239,218 @@ public VmwareAdminClusters vmwareAdminClusters() {
82398239
*/
82408240
public class VmwareAdminClusters {
82418241

8242+
/**
8243+
* Creates a new VMware admin cluster in a given project and location. The API needs to be combined
8244+
* with creating a bootstrap cluster to work.
8245+
*
8246+
* Create a request for the method "vmwareAdminClusters.create".
8247+
*
8248+
* This request holds the parameters needed by the gkeonprem server. After setting any optional
8249+
* parameters, call the {@link Create#execute()} method to invoke the remote operation.
8250+
*
8251+
* @param parent Required. The parent of the project and location where the cluster is created in. Format:
8252+
* "projects/{project}/locations/{location}"
8253+
* @param content the {@link com.google.api.services.gkeonprem.v1.model.VmwareAdminCluster}
8254+
* @return the request
8255+
*/
8256+
public Create create(java.lang.String parent, com.google.api.services.gkeonprem.v1.model.VmwareAdminCluster content) throws java.io.IOException {
8257+
Create result = new Create(parent, content);
8258+
initialize(result);
8259+
return result;
8260+
}
8261+
8262+
public class Create extends GKEOnPremRequest<com.google.api.services.gkeonprem.v1.model.Operation> {
8263+
8264+
private static final String REST_PATH = "v1/{+parent}/vmwareAdminClusters";
8265+
8266+
private final java.util.regex.Pattern PARENT_PATTERN =
8267+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
8268+
8269+
/**
8270+
* Creates a new VMware admin cluster in a given project and location. The API needs to be
8271+
* combined with creating a bootstrap cluster to work.
8272+
*
8273+
* Create a request for the method "vmwareAdminClusters.create".
8274+
*
8275+
* This request holds the parameters needed by the the gkeonprem server. After setting any
8276+
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
8277+
* <p> {@link
8278+
* Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
8279+
* be called to initialize this instance immediately after invoking the constructor. </p>
8280+
*
8281+
* @param parent Required. The parent of the project and location where the cluster is created in. Format:
8282+
* "projects/{project}/locations/{location}"
8283+
* @param content the {@link com.google.api.services.gkeonprem.v1.model.VmwareAdminCluster}
8284+
* @since 1.13
8285+
*/
8286+
protected Create(java.lang.String parent, com.google.api.services.gkeonprem.v1.model.VmwareAdminCluster content) {
8287+
super(GKEOnPrem.this, "POST", REST_PATH, content, com.google.api.services.gkeonprem.v1.model.Operation.class);
8288+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
8289+
if (!getSuppressPatternChecks()) {
8290+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
8291+
"Parameter parent must conform to the pattern " +
8292+
"^projects/[^/]+/locations/[^/]+$");
8293+
}
8294+
}
8295+
8296+
@Override
8297+
public Create set$Xgafv(java.lang.String $Xgafv) {
8298+
return (Create) super.set$Xgafv($Xgafv);
8299+
}
8300+
8301+
@Override
8302+
public Create setAccessToken(java.lang.String accessToken) {
8303+
return (Create) super.setAccessToken(accessToken);
8304+
}
8305+
8306+
@Override
8307+
public Create setAlt(java.lang.String alt) {
8308+
return (Create) super.setAlt(alt);
8309+
}
8310+
8311+
@Override
8312+
public Create setCallback(java.lang.String callback) {
8313+
return (Create) super.setCallback(callback);
8314+
}
8315+
8316+
@Override
8317+
public Create setFields(java.lang.String fields) {
8318+
return (Create) super.setFields(fields);
8319+
}
8320+
8321+
@Override
8322+
public Create setKey(java.lang.String key) {
8323+
return (Create) super.setKey(key);
8324+
}
8325+
8326+
@Override
8327+
public Create setOauthToken(java.lang.String oauthToken) {
8328+
return (Create) super.setOauthToken(oauthToken);
8329+
}
8330+
8331+
@Override
8332+
public Create setPrettyPrint(java.lang.Boolean prettyPrint) {
8333+
return (Create) super.setPrettyPrint(prettyPrint);
8334+
}
8335+
8336+
@Override
8337+
public Create setQuotaUser(java.lang.String quotaUser) {
8338+
return (Create) super.setQuotaUser(quotaUser);
8339+
}
8340+
8341+
@Override
8342+
public Create setUploadType(java.lang.String uploadType) {
8343+
return (Create) super.setUploadType(uploadType);
8344+
}
8345+
8346+
@Override
8347+
public Create setUploadProtocol(java.lang.String uploadProtocol) {
8348+
return (Create) super.setUploadProtocol(uploadProtocol);
8349+
}
8350+
8351+
/**
8352+
* Required. The parent of the project and location where the cluster is created in.
8353+
* Format: "projects/{project}/locations/{location}"
8354+
*/
8355+
@com.google.api.client.util.Key
8356+
private java.lang.String parent;
8357+
8358+
/** Required. The parent of the project and location where the cluster is created in. Format:
8359+
"projects/{project}/locations/{location}"
8360+
*/
8361+
public java.lang.String getParent() {
8362+
return parent;
8363+
}
8364+
8365+
/**
8366+
* Required. The parent of the project and location where the cluster is created in.
8367+
* Format: "projects/{project}/locations/{location}"
8368+
*/
8369+
public Create setParent(java.lang.String parent) {
8370+
if (!getSuppressPatternChecks()) {
8371+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
8372+
"Parameter parent must conform to the pattern " +
8373+
"^projects/[^/]+/locations/[^/]+$");
8374+
}
8375+
this.parent = parent;
8376+
return this;
8377+
}
8378+
8379+
/**
8380+
* Optional. If set to true, CLM will force CCFE to persist the cluster resource in RMS
8381+
* when the creation fails during standalone preflight checks. In that case the subsequent
8382+
* create call will fail with "cluster already exists" error and hence a update cluster is
8383+
* required to fix the cluster.
8384+
*/
8385+
@com.google.api.client.util.Key
8386+
private java.lang.Boolean allowPreflightFailure;
8387+
8388+
/** Optional. If set to true, CLM will force CCFE to persist the cluster resource in RMS when the
8389+
creation fails during standalone preflight checks. In that case the subsequent create call will
8390+
fail with "cluster already exists" error and hence a update cluster is required to fix the cluster.
8391+
*/
8392+
public java.lang.Boolean getAllowPreflightFailure() {
8393+
return allowPreflightFailure;
8394+
}
8395+
8396+
/**
8397+
* Optional. If set to true, CLM will force CCFE to persist the cluster resource in RMS
8398+
* when the creation fails during standalone preflight checks. In that case the subsequent
8399+
* create call will fail with "cluster already exists" error and hence a update cluster is
8400+
* required to fix the cluster.
8401+
*/
8402+
public Create setAllowPreflightFailure(java.lang.Boolean allowPreflightFailure) {
8403+
this.allowPreflightFailure = allowPreflightFailure;
8404+
return this;
8405+
}
8406+
8407+
/** Validate the request without actually doing any updates. */
8408+
@com.google.api.client.util.Key
8409+
private java.lang.Boolean validateOnly;
8410+
8411+
/** Validate the request without actually doing any updates.
8412+
*/
8413+
public java.lang.Boolean getValidateOnly() {
8414+
return validateOnly;
8415+
}
8416+
8417+
/** Validate the request without actually doing any updates. */
8418+
public Create setValidateOnly(java.lang.Boolean validateOnly) {
8419+
this.validateOnly = validateOnly;
8420+
return this;
8421+
}
8422+
8423+
/**
8424+
* Required. User provided identifier that is used as part of the resource name; must
8425+
* conform to RFC-1034 and additionally restrict to lower-cased letters. This comes out
8426+
* roughly to: /^a-z+[a-z0-9]$/
8427+
*/
8428+
@com.google.api.client.util.Key
8429+
private java.lang.String vmwareAdminClusterId;
8430+
8431+
/** Required. User provided identifier that is used as part of the resource name; must conform to
8432+
RFC-1034 and additionally restrict to lower-cased letters. This comes out roughly to:
8433+
/^a-z+[a-z0-9]$/
8434+
*/
8435+
public java.lang.String getVmwareAdminClusterId() {
8436+
return vmwareAdminClusterId;
8437+
}
8438+
8439+
/**
8440+
* Required. User provided identifier that is used as part of the resource name; must
8441+
* conform to RFC-1034 and additionally restrict to lower-cased letters. This comes out
8442+
* roughly to: /^a-z+[a-z0-9]$/
8443+
*/
8444+
public Create setVmwareAdminClusterId(java.lang.String vmwareAdminClusterId) {
8445+
this.vmwareAdminClusterId = vmwareAdminClusterId;
8446+
return this;
8447+
}
8448+
8449+
@Override
8450+
public Create set(String parameterName, Object value) {
8451+
return (Create) super.set(parameterName, value);
8452+
}
8453+
}
82428454
/**
82438455
* Enrolls an existing VMware admin cluster to the Anthos On-Prem API within a given project and
82448456
* location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed.

clients/google-api-services-gkeonprem/v1/2.0.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-gkeonprem</artifactId>
11-
<version>v1-rev20240814-2.0.0</version>
12-
<name>GDC Virtual API v1-rev20240814-2.0.0</name>
11+
<version>v1-rev20241023-2.0.0</version>
12+
<name>GDC Virtual API v1-rev20241023-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-gkeonprem/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-gkeonprem</artifactId>
25-
<version>v1-rev20240814-2.0.0</version>
25+
<version>v1-rev20241023-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-gkeonprem:v1-rev20240814-2.0.0'
38+
implementation 'com.google.apis:google-api-services-gkeonprem:v1-rev20241023-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)