Skip to content

Commit bc2f772

Browse files
1 parent e11d2a9 commit bc2f772

File tree

5 files changed

+220
-12
lines changed

5 files changed

+220
-12
lines changed

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

clients/google-api-services-backupdr/v1/2.0.0/com/google/api/services/backupdr/v1/Backupdr.java

Lines changed: 147 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6902,14 +6902,21 @@ public FetchForResourceType setParent(java.lang.String parent) {
69026902
/**
69036903
* Optional. A filter expression that filters the results fetched in the response. The
69046904
* expression must specify the field name, a comparison operator, and the value that
6905-
* you want to use for filtering. Supported fields:
6905+
* you want to use for filtering. Supported fields: * name * state * backup_type *
6906+
* create_time * expire_time * enforced_retention_end_time *
6907+
* gcp_backup_plan_info.backup_plan *
6908+
* cloud_sql_instance_backup_properties.instance_tier *
6909+
* cloud_sql_instance_backup_properties.database_installed_version
69066910
*/
69076911
@com.google.api.client.util.Key
69086912
private java.lang.String filter;
69096913

69106914
/** Optional. A filter expression that filters the results fetched in the response. The expression must
69116915
specify the field name, a comparison operator, and the value that you want to use for filtering.
6912-
Supported fields:
6916+
Supported fields: * name * state * backup_type * create_time * expire_time *
6917+
enforced_retention_end_time * gcp_backup_plan_info.backup_plan *
6918+
cloud_sql_instance_backup_properties.instance_tier *
6919+
cloud_sql_instance_backup_properties.database_installed_version
69136920
*/
69146921
public java.lang.String getFilter() {
69156922
return filter;
@@ -6918,7 +6925,11 @@ public java.lang.String getFilter() {
69186925
/**
69196926
* Optional. A filter expression that filters the results fetched in the response. The
69206927
* expression must specify the field name, a comparison operator, and the value that
6921-
* you want to use for filtering. Supported fields:
6928+
* you want to use for filtering. Supported fields: * name * state * backup_type *
6929+
* create_time * expire_time * enforced_retention_end_time *
6930+
* gcp_backup_plan_info.backup_plan *
6931+
* cloud_sql_instance_backup_properties.instance_tier *
6932+
* cloud_sql_instance_backup_properties.database_installed_version
69226933
*/
69236934
public FetchForResourceType setFilter(java.lang.String filter) {
69246935
this.filter = filter;
@@ -6927,21 +6938,21 @@ public FetchForResourceType setFilter(java.lang.String filter) {
69276938

69286939
/**
69296940
* Optional. A comma-separated list of fields to order by, sorted in ascending order.
6930-
* Use "desc" after a field name for descending.
6941+
* Use "desc" after a field name for descending. Supported fields: * name
69316942
*/
69326943
@com.google.api.client.util.Key
69336944
private java.lang.String orderBy;
69346945

69356946
/** Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after
6936-
a field name for descending.
6947+
a field name for descending. Supported fields: * name
69376948
*/
69386949
public java.lang.String getOrderBy() {
69396950
return orderBy;
69406951
}
69416952

69426953
/**
69436954
* Optional. A comma-separated list of fields to order by, sorted in ascending order.
6944-
* Use "desc" after a field name for descending.
6955+
* Use "desc" after a field name for descending. Supported fields: * name
69456956
*/
69466957
public FetchForResourceType setOrderBy(java.lang.String orderBy) {
69476958
this.orderBy = orderBy;
@@ -11049,6 +11060,136 @@ public Trial trial() {
1104911060
*/
1105011061
public class Trial {
1105111062

11063+
/**
11064+
* Ends the trial for a project
11065+
*
11066+
* Create a request for the method "trial.end".
11067+
*
11068+
* This request holds the parameters needed by the backupdr server. After setting any optional
11069+
* parameters, call the {@link End#execute()} method to invoke the remote operation.
11070+
*
11071+
* @param parent Required. The parent resource where this trial will be ended.
11072+
* @param content the {@link com.google.api.services.backupdr.v1.model.EndTrialRequest}
11073+
* @return the request
11074+
*/
11075+
public End end(java.lang.String parent, com.google.api.services.backupdr.v1.model.EndTrialRequest content) throws java.io.IOException {
11076+
End result = new End(parent, content);
11077+
initialize(result);
11078+
return result;
11079+
}
11080+
11081+
public class End extends BackupdrRequest<com.google.api.services.backupdr.v1.model.Trial> {
11082+
11083+
private static final String REST_PATH = "v1/{+parent}/trial:end";
11084+
11085+
private final java.util.regex.Pattern PARENT_PATTERN =
11086+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
11087+
11088+
/**
11089+
* Ends the trial for a project
11090+
*
11091+
* Create a request for the method "trial.end".
11092+
*
11093+
* This request holds the parameters needed by the the backupdr server. After setting any
11094+
* optional parameters, call the {@link End#execute()} method to invoke the remote operation. <p>
11095+
* {@link End#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
11096+
* must be called to initialize this instance immediately after invoking the constructor. </p>
11097+
*
11098+
* @param parent Required. The parent resource where this trial will be ended.
11099+
* @param content the {@link com.google.api.services.backupdr.v1.model.EndTrialRequest}
11100+
* @since 1.13
11101+
*/
11102+
protected End(java.lang.String parent, com.google.api.services.backupdr.v1.model.EndTrialRequest content) {
11103+
super(Backupdr.this, "POST", REST_PATH, content, com.google.api.services.backupdr.v1.model.Trial.class);
11104+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
11105+
if (!getSuppressPatternChecks()) {
11106+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
11107+
"Parameter parent must conform to the pattern " +
11108+
"^projects/[^/]+/locations/[^/]+$");
11109+
}
11110+
}
11111+
11112+
@Override
11113+
public End set$Xgafv(java.lang.String $Xgafv) {
11114+
return (End) super.set$Xgafv($Xgafv);
11115+
}
11116+
11117+
@Override
11118+
public End setAccessToken(java.lang.String accessToken) {
11119+
return (End) super.setAccessToken(accessToken);
11120+
}
11121+
11122+
@Override
11123+
public End setAlt(java.lang.String alt) {
11124+
return (End) super.setAlt(alt);
11125+
}
11126+
11127+
@Override
11128+
public End setCallback(java.lang.String callback) {
11129+
return (End) super.setCallback(callback);
11130+
}
11131+
11132+
@Override
11133+
public End setFields(java.lang.String fields) {
11134+
return (End) super.setFields(fields);
11135+
}
11136+
11137+
@Override
11138+
public End setKey(java.lang.String key) {
11139+
return (End) super.setKey(key);
11140+
}
11141+
11142+
@Override
11143+
public End setOauthToken(java.lang.String oauthToken) {
11144+
return (End) super.setOauthToken(oauthToken);
11145+
}
11146+
11147+
@Override
11148+
public End setPrettyPrint(java.lang.Boolean prettyPrint) {
11149+
return (End) super.setPrettyPrint(prettyPrint);
11150+
}
11151+
11152+
@Override
11153+
public End setQuotaUser(java.lang.String quotaUser) {
11154+
return (End) super.setQuotaUser(quotaUser);
11155+
}
11156+
11157+
@Override
11158+
public End setUploadType(java.lang.String uploadType) {
11159+
return (End) super.setUploadType(uploadType);
11160+
}
11161+
11162+
@Override
11163+
public End setUploadProtocol(java.lang.String uploadProtocol) {
11164+
return (End) super.setUploadProtocol(uploadProtocol);
11165+
}
11166+
11167+
/** Required. The parent resource where this trial will be ended. */
11168+
@com.google.api.client.util.Key
11169+
private java.lang.String parent;
11170+
11171+
/** Required. The parent resource where this trial will be ended.
11172+
*/
11173+
public java.lang.String getParent() {
11174+
return parent;
11175+
}
11176+
11177+
/** Required. The parent resource where this trial will be ended. */
11178+
public End setParent(java.lang.String parent) {
11179+
if (!getSuppressPatternChecks()) {
11180+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
11181+
"Parameter parent must conform to the pattern " +
11182+
"^projects/[^/]+/locations/[^/]+$");
11183+
}
11184+
this.parent = parent;
11185+
return this;
11186+
}
11187+
11188+
@Override
11189+
public End set(String parameterName, Object value) {
11190+
return (End) super.set(parameterName, value);
11191+
}
11192+
}
1105211193
/**
1105311194
* Subscribes to a trial for a project
1105411195
*
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.backupdr.v1.model;
18+
19+
/**
20+
* Request message for ending a trial.
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 Backup and DR Service 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 EndTrialRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The reason for ending the trial.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String endReason;
39+
40+
/**
41+
* Required. The reason for ending the trial.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getEndReason() {
45+
return endReason;
46+
}
47+
48+
/**
49+
* Required. The reason for ending the trial.
50+
* @param endReason endReason or {@code null} for none
51+
*/
52+
public EndTrialRequest setEndReason(java.lang.String endReason) {
53+
this.endReason = endReason;
54+
return this;
55+
}
56+
57+
@Override
58+
public EndTrialRequest set(String fieldName, Object value) {
59+
return (EndTrialRequest) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public EndTrialRequest clone() {
64+
return (EndTrialRequest) super.clone();
65+
}
66+
67+
}

clients/google-api-services-backupdr/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-backupdr</artifactId>
11-
<version>v1-rev20251105-2.0.0</version>
12-
<name>Backup and DR Service API v1-rev20251105-2.0.0</name>
11+
<version>v1-rev20251112-2.0.0</version>
12+
<name>Backup and DR Service API v1-rev20251112-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

0 commit comments

Comments
 (0)