Skip to content

Commit c2e59fc

Browse files
1 parent 4a42642 commit c2e59fc

File tree

14 files changed

+634
-12
lines changed

14 files changed

+634
-12
lines changed

clients/google-api-services-vmmigration/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-vmmigration</artifactId>
25-
<version>v1-rev20250321-2.0.0</version>
25+
<version>v1-rev20250521-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-vmmigration:v1-rev20250321-2.0.0'
38+
implementation 'com.google.apis:google-api-services-vmmigration:v1-rev20250521-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-vmmigration/v1/2.0.0/com/google/api/services/vmmigration/v1/VMMigrationService.java

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6052,6 +6052,137 @@ public Delete set(String parameterName, Object value) {
60526052
return (Delete) super.set(parameterName, value);
60536053
}
60546054
}
6055+
/**
6056+
* Extend the migrating VM time to live.
6057+
*
6058+
* Create a request for the method "migratingVms.extendMigration".
6059+
*
6060+
* This request holds the parameters needed by the vmmigration server. After setting any optional
6061+
* parameters, call the {@link ExtendMigration#execute()} method to invoke the remote operation.
6062+
*
6063+
* @param migratingVm Required. The name of the MigratingVm.
6064+
* @param content the {@link com.google.api.services.vmmigration.v1.model.ExtendMigrationRequest}
6065+
* @return the request
6066+
*/
6067+
public ExtendMigration extendMigration(java.lang.String migratingVm, com.google.api.services.vmmigration.v1.model.ExtendMigrationRequest content) throws java.io.IOException {
6068+
ExtendMigration result = new ExtendMigration(migratingVm, content);
6069+
initialize(result);
6070+
return result;
6071+
}
6072+
6073+
public class ExtendMigration extends VMMigrationServiceRequest<com.google.api.services.vmmigration.v1.model.Operation> {
6074+
6075+
private static final String REST_PATH = "v1/{+migratingVm}:extendMigration";
6076+
6077+
private final java.util.regex.Pattern MIGRATING_VM_PATTERN =
6078+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$");
6079+
6080+
/**
6081+
* Extend the migrating VM time to live.
6082+
*
6083+
* Create a request for the method "migratingVms.extendMigration".
6084+
*
6085+
* This request holds the parameters needed by the the vmmigration server. After setting any
6086+
* optional parameters, call the {@link ExtendMigration#execute()} method to invoke the remote
6087+
* operation. <p> {@link ExtendMigration#initialize(com.google.api.client.googleapis.services.Abst
6088+
* ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking
6089+
* the constructor. </p>
6090+
*
6091+
* @param migratingVm Required. The name of the MigratingVm.
6092+
* @param content the {@link com.google.api.services.vmmigration.v1.model.ExtendMigrationRequest}
6093+
* @since 1.13
6094+
*/
6095+
protected ExtendMigration(java.lang.String migratingVm, com.google.api.services.vmmigration.v1.model.ExtendMigrationRequest content) {
6096+
super(VMMigrationService.this, "POST", REST_PATH, content, com.google.api.services.vmmigration.v1.model.Operation.class);
6097+
this.migratingVm = com.google.api.client.util.Preconditions.checkNotNull(migratingVm, "Required parameter migratingVm must be specified.");
6098+
if (!getSuppressPatternChecks()) {
6099+
com.google.api.client.util.Preconditions.checkArgument(MIGRATING_VM_PATTERN.matcher(migratingVm).matches(),
6100+
"Parameter migratingVm must conform to the pattern " +
6101+
"^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$");
6102+
}
6103+
}
6104+
6105+
@Override
6106+
public ExtendMigration set$Xgafv(java.lang.String $Xgafv) {
6107+
return (ExtendMigration) super.set$Xgafv($Xgafv);
6108+
}
6109+
6110+
@Override
6111+
public ExtendMigration setAccessToken(java.lang.String accessToken) {
6112+
return (ExtendMigration) super.setAccessToken(accessToken);
6113+
}
6114+
6115+
@Override
6116+
public ExtendMigration setAlt(java.lang.String alt) {
6117+
return (ExtendMigration) super.setAlt(alt);
6118+
}
6119+
6120+
@Override
6121+
public ExtendMigration setCallback(java.lang.String callback) {
6122+
return (ExtendMigration) super.setCallback(callback);
6123+
}
6124+
6125+
@Override
6126+
public ExtendMigration setFields(java.lang.String fields) {
6127+
return (ExtendMigration) super.setFields(fields);
6128+
}
6129+
6130+
@Override
6131+
public ExtendMigration setKey(java.lang.String key) {
6132+
return (ExtendMigration) super.setKey(key);
6133+
}
6134+
6135+
@Override
6136+
public ExtendMigration setOauthToken(java.lang.String oauthToken) {
6137+
return (ExtendMigration) super.setOauthToken(oauthToken);
6138+
}
6139+
6140+
@Override
6141+
public ExtendMigration setPrettyPrint(java.lang.Boolean prettyPrint) {
6142+
return (ExtendMigration) super.setPrettyPrint(prettyPrint);
6143+
}
6144+
6145+
@Override
6146+
public ExtendMigration setQuotaUser(java.lang.String quotaUser) {
6147+
return (ExtendMigration) super.setQuotaUser(quotaUser);
6148+
}
6149+
6150+
@Override
6151+
public ExtendMigration setUploadType(java.lang.String uploadType) {
6152+
return (ExtendMigration) super.setUploadType(uploadType);
6153+
}
6154+
6155+
@Override
6156+
public ExtendMigration setUploadProtocol(java.lang.String uploadProtocol) {
6157+
return (ExtendMigration) super.setUploadProtocol(uploadProtocol);
6158+
}
6159+
6160+
/** Required. The name of the MigratingVm. */
6161+
@com.google.api.client.util.Key
6162+
private java.lang.String migratingVm;
6163+
6164+
/** Required. The name of the MigratingVm.
6165+
*/
6166+
public java.lang.String getMigratingVm() {
6167+
return migratingVm;
6168+
}
6169+
6170+
/** Required. The name of the MigratingVm. */
6171+
public ExtendMigration setMigratingVm(java.lang.String migratingVm) {
6172+
if (!getSuppressPatternChecks()) {
6173+
com.google.api.client.util.Preconditions.checkArgument(MIGRATING_VM_PATTERN.matcher(migratingVm).matches(),
6174+
"Parameter migratingVm must conform to the pattern " +
6175+
"^projects/[^/]+/locations/[^/]+/sources/[^/]+/migratingVms/[^/]+$");
6176+
}
6177+
this.migratingVm = migratingVm;
6178+
return this;
6179+
}
6180+
6181+
@Override
6182+
public ExtendMigration set(String parameterName, Object value) {
6183+
return (ExtendMigration) super.set(parameterName, value);
6184+
}
6185+
}
60556186
/**
60566187
* Marks a migration as completed, deleting migration resources that are no longer being used. Only
60576188
* applicable after cutover is done.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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.vmmigration.v1.model;
18+
19+
/**
20+
* Expiration holds information about the expiration of a MigratingVm.
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 VM Migration 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 Expiration extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Output only. Timestamp of when this resource is considered expired.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private String expireTime;
38+
39+
/**
40+
* Output only. Describes whether the expiration can be extended.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.Boolean extendable;
45+
46+
/**
47+
* Output only. The number of times expiration was extended.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.Integer extensionCount;
52+
53+
/**
54+
* Output only. Timestamp of when this resource is considered expired.
55+
* @return value or {@code null} for none
56+
*/
57+
public String getExpireTime() {
58+
return expireTime;
59+
}
60+
61+
/**
62+
* Output only. Timestamp of when this resource is considered expired.
63+
* @param expireTime expireTime or {@code null} for none
64+
*/
65+
public Expiration setExpireTime(String expireTime) {
66+
this.expireTime = expireTime;
67+
return this;
68+
}
69+
70+
/**
71+
* Output only. Describes whether the expiration can be extended.
72+
* @return value or {@code null} for none
73+
*/
74+
public java.lang.Boolean getExtendable() {
75+
return extendable;
76+
}
77+
78+
/**
79+
* Output only. Describes whether the expiration can be extended.
80+
* @param extendable extendable or {@code null} for none
81+
*/
82+
public Expiration setExtendable(java.lang.Boolean extendable) {
83+
this.extendable = extendable;
84+
return this;
85+
}
86+
87+
/**
88+
* Output only. The number of times expiration was extended.
89+
* @return value or {@code null} for none
90+
*/
91+
public java.lang.Integer getExtensionCount() {
92+
return extensionCount;
93+
}
94+
95+
/**
96+
* Output only. The number of times expiration was extended.
97+
* @param extensionCount extensionCount or {@code null} for none
98+
*/
99+
public Expiration setExtensionCount(java.lang.Integer extensionCount) {
100+
this.extensionCount = extensionCount;
101+
return this;
102+
}
103+
104+
@Override
105+
public Expiration set(String fieldName, Object value) {
106+
return (Expiration) super.set(fieldName, value);
107+
}
108+
109+
@Override
110+
public Expiration clone() {
111+
return (Expiration) super.clone();
112+
}
113+
114+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.vmmigration.v1.model;
18+
19+
/**
20+
* Request message for 'ExtendMigrationRequest' request.
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 VM Migration 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 ExtendMigrationRequest extends com.google.api.client.json.GenericJson {
31+
32+
@Override
33+
public ExtendMigrationRequest set(String fieldName, Object value) {
34+
return (ExtendMigrationRequest) super.set(fieldName, value);
35+
}
36+
37+
@Override
38+
public ExtendMigrationRequest clone() {
39+
return (ExtendMigrationRequest) super.clone();
40+
}
41+
42+
}

clients/google-api-services-vmmigration/v1/2.0.0/com/google/api/services/vmmigration/v1/model/MigratingVm.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ public final class MigratingVm extends com.google.api.client.json.GenericJson {
103103
@com.google.api.client.util.Key
104104
private Status error;
105105

106+
/**
107+
* Output only. Provides details about the expiration state of the migrating VM.
108+
* The value may be {@code null}.
109+
*/
110+
@com.google.api.client.util.Key
111+
private Expiration expiration;
112+
106113
/**
107114
* Output only. The group this migrating vm is included in, if any. The group is represented by
108115
* the full path of the appropriate Group resource.
@@ -392,6 +399,23 @@ public MigratingVm setError(Status error) {
392399
return this;
393400
}
394401

402+
/**
403+
* Output only. Provides details about the expiration state of the migrating VM.
404+
* @return value or {@code null} for none
405+
*/
406+
public Expiration getExpiration() {
407+
return expiration;
408+
}
409+
410+
/**
411+
* Output only. Provides details about the expiration state of the migrating VM.
412+
* @param expiration expiration or {@code null} for none
413+
*/
414+
public MigratingVm setExpiration(Expiration expiration) {
415+
this.expiration = expiration;
416+
return this;
417+
}
418+
395419
/**
396420
* Output only. The group this migrating vm is included in, if any. The group is represented by
397421
* the full path of the appropriate Group resource.

clients/google-api-services-vmmigration/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-vmmigration</artifactId>
11-
<version>v1-rev20250321-2.0.0</version>
12-
<name>VM Migration API v1-rev20250321-2.0.0</name>
11+
<version>v1-rev20250521-2.0.0</version>
12+
<name>VM Migration API v1-rev20250521-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-vmmigration/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-vmmigration</artifactId>
25-
<version>v1-rev20250321-2.0.0</version>
25+
<version>v1-rev20250521-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-vmmigration:v1-rev20250321-2.0.0'
38+
implementation 'com.google.apis:google-api-services-vmmigration:v1-rev20250521-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-vmmigration/v1alpha1/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-vmmigration</artifactId>
25-
<version>v1alpha1-rev20250321-2.0.0</version>
25+
<version>v1alpha1-rev20250521-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-vmmigration:v1alpha1-rev20250321-2.0.0'
38+
implementation 'com.google.apis:google-api-services-vmmigration:v1alpha1-rev20250521-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)