Skip to content

Commit 9a261f5

Browse files
1 parent 51eaf9b commit 9a261f5

File tree

11 files changed

+1635
-75
lines changed

11 files changed

+1635
-75
lines changed

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

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/Spanner.java

Lines changed: 882 additions & 69 deletions
Large diffs are not rendered by default.

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/Backup.java

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@
2929
@SuppressWarnings("javadoc")
3030
public final class Backup extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Output only. List of backup schedule URIs that are associated with creating this backup. This
34+
* is only applicable for scheduled backups, and is empty for on-demand backups. To optimize for
35+
* storage, whenever possible, multiple schedules are collapsed together to create one backup. In
36+
* such cases, this field captures the list of all backup schedule URIs that are associated with
37+
* creating this backup. If collapsing is not done, then this field captures the single backup
38+
* schedule URI associated with creating this backup.
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private java.util.List<java.lang.String> backupSchedules;
43+
3244
/**
3345
* Output only. The time the CreateBackup request is received. If the request does not specify
3446
* `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
@@ -148,6 +160,33 @@ public final class Backup extends com.google.api.client.json.GenericJson {
148160
@com.google.api.client.util.Key
149161
private String versionTime;
150162

163+
/**
164+
* Output only. List of backup schedule URIs that are associated with creating this backup. This
165+
* is only applicable for scheduled backups, and is empty for on-demand backups. To optimize for
166+
* storage, whenever possible, multiple schedules are collapsed together to create one backup. In
167+
* such cases, this field captures the list of all backup schedule URIs that are associated with
168+
* creating this backup. If collapsing is not done, then this field captures the single backup
169+
* schedule URI associated with creating this backup.
170+
* @return value or {@code null} for none
171+
*/
172+
public java.util.List<java.lang.String> getBackupSchedules() {
173+
return backupSchedules;
174+
}
175+
176+
/**
177+
* Output only. List of backup schedule URIs that are associated with creating this backup. This
178+
* is only applicable for scheduled backups, and is empty for on-demand backups. To optimize for
179+
* storage, whenever possible, multiple schedules are collapsed together to create one backup. In
180+
* such cases, this field captures the list of all backup schedule URIs that are associated with
181+
* creating this backup. If collapsing is not done, then this field captures the single backup
182+
* schedule URI associated with creating this backup.
183+
* @param backupSchedules backupSchedules or {@code null} for none
184+
*/
185+
public Backup setBackupSchedules(java.util.List<java.lang.String> backupSchedules) {
186+
this.backupSchedules = backupSchedules;
187+
return this;
188+
}
189+
151190
/**
152191
* Output only. The time the CreateBackup request is received. If the request does not specify
153192
* `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
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.spanner.v1.model;
18+
19+
/**
20+
* BackupSchedule expresses the automated backup creation specification for a Spanner database. Next
21+
* ID: 10
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation 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 BackupSchedule extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The encryption configuration that will be used to encrypt the backup. If this field
35+
* is not specified, the backup will use the same encryption configuration as the database.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private CreateBackupEncryptionConfig encryptionConfig;
40+
41+
/**
42+
* The schedule creates only full backups.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private FullBackupSpec fullBackupSpec;
47+
48+
/**
49+
* Identifier. Output only for the CreateBackupSchedule operation. Required for the
50+
* UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which
51+
* cannot be changed. Values are of the form
52+
* `projects//instances//databases//backupSchedules/a-z*[a-z0-9]` The final segment of the name
53+
* must be between 2 and 60 characters in length.
54+
* The value may be {@code null}.
55+
*/
56+
@com.google.api.client.util.Key
57+
private java.lang.String name;
58+
59+
/**
60+
* Optional. The retention duration of a backup that must be at least 6 hours and at most 366
61+
* days. The backup is eligible to be automatically deleted once the retention period has elapsed.
62+
* The value may be {@code null}.
63+
*/
64+
@com.google.api.client.util.Key
65+
private String retentionDuration;
66+
67+
/**
68+
* Optional. The schedule specification based on which the backup creations are triggered.
69+
* The value may be {@code null}.
70+
*/
71+
@com.google.api.client.util.Key
72+
private BackupScheduleSpec spec;
73+
74+
/**
75+
* Output only. The timestamp at which the schedule was last updated. If the schedule has never
76+
* been updated, this field contains the timestamp when the schedule was first created.
77+
* The value may be {@code null}.
78+
*/
79+
@com.google.api.client.util.Key
80+
private String updateTime;
81+
82+
/**
83+
* Optional. The encryption configuration that will be used to encrypt the backup. If this field
84+
* is not specified, the backup will use the same encryption configuration as the database.
85+
* @return value or {@code null} for none
86+
*/
87+
public CreateBackupEncryptionConfig getEncryptionConfig() {
88+
return encryptionConfig;
89+
}
90+
91+
/**
92+
* Optional. The encryption configuration that will be used to encrypt the backup. If this field
93+
* is not specified, the backup will use the same encryption configuration as the database.
94+
* @param encryptionConfig encryptionConfig or {@code null} for none
95+
*/
96+
public BackupSchedule setEncryptionConfig(CreateBackupEncryptionConfig encryptionConfig) {
97+
this.encryptionConfig = encryptionConfig;
98+
return this;
99+
}
100+
101+
/**
102+
* The schedule creates only full backups.
103+
* @return value or {@code null} for none
104+
*/
105+
public FullBackupSpec getFullBackupSpec() {
106+
return fullBackupSpec;
107+
}
108+
109+
/**
110+
* The schedule creates only full backups.
111+
* @param fullBackupSpec fullBackupSpec or {@code null} for none
112+
*/
113+
public BackupSchedule setFullBackupSpec(FullBackupSpec fullBackupSpec) {
114+
this.fullBackupSpec = fullBackupSpec;
115+
return this;
116+
}
117+
118+
/**
119+
* Identifier. Output only for the CreateBackupSchedule operation. Required for the
120+
* UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which
121+
* cannot be changed. Values are of the form
122+
* `projects//instances//databases//backupSchedules/a-z*[a-z0-9]` The final segment of the name
123+
* must be between 2 and 60 characters in length.
124+
* @return value or {@code null} for none
125+
*/
126+
public java.lang.String getName() {
127+
return name;
128+
}
129+
130+
/**
131+
* Identifier. Output only for the CreateBackupSchedule operation. Required for the
132+
* UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which
133+
* cannot be changed. Values are of the form
134+
* `projects//instances//databases//backupSchedules/a-z*[a-z0-9]` The final segment of the name
135+
* must be between 2 and 60 characters in length.
136+
* @param name name or {@code null} for none
137+
*/
138+
public BackupSchedule setName(java.lang.String name) {
139+
this.name = name;
140+
return this;
141+
}
142+
143+
/**
144+
* Optional. The retention duration of a backup that must be at least 6 hours and at most 366
145+
* days. The backup is eligible to be automatically deleted once the retention period has elapsed.
146+
* @return value or {@code null} for none
147+
*/
148+
public String getRetentionDuration() {
149+
return retentionDuration;
150+
}
151+
152+
/**
153+
* Optional. The retention duration of a backup that must be at least 6 hours and at most 366
154+
* days. The backup is eligible to be automatically deleted once the retention period has elapsed.
155+
* @param retentionDuration retentionDuration or {@code null} for none
156+
*/
157+
public BackupSchedule setRetentionDuration(String retentionDuration) {
158+
this.retentionDuration = retentionDuration;
159+
return this;
160+
}
161+
162+
/**
163+
* Optional. The schedule specification based on which the backup creations are triggered.
164+
* @return value or {@code null} for none
165+
*/
166+
public BackupScheduleSpec getSpec() {
167+
return spec;
168+
}
169+
170+
/**
171+
* Optional. The schedule specification based on which the backup creations are triggered.
172+
* @param spec spec or {@code null} for none
173+
*/
174+
public BackupSchedule setSpec(BackupScheduleSpec spec) {
175+
this.spec = spec;
176+
return this;
177+
}
178+
179+
/**
180+
* Output only. The timestamp at which the schedule was last updated. If the schedule has never
181+
* been updated, this field contains the timestamp when the schedule was first created.
182+
* @return value or {@code null} for none
183+
*/
184+
public String getUpdateTime() {
185+
return updateTime;
186+
}
187+
188+
/**
189+
* Output only. The timestamp at which the schedule was last updated. If the schedule has never
190+
* been updated, this field contains the timestamp when the schedule was first created.
191+
* @param updateTime updateTime or {@code null} for none
192+
*/
193+
public BackupSchedule setUpdateTime(String updateTime) {
194+
this.updateTime = updateTime;
195+
return this;
196+
}
197+
198+
@Override
199+
public BackupSchedule set(String fieldName, Object value) {
200+
return (BackupSchedule) super.set(fieldName, value);
201+
}
202+
203+
@Override
204+
public BackupSchedule clone() {
205+
return (BackupSchedule) super.clone();
206+
}
207+
208+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.spanner.v1.model;
18+
19+
/**
20+
* Defines specifications of the backup schedule.
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 Spanner 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 BackupScheduleSpec extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Cron style schedule specification.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private CrontabSpec cronSpec;
38+
39+
/**
40+
* Cron style schedule specification.
41+
* @return value or {@code null} for none
42+
*/
43+
public CrontabSpec getCronSpec() {
44+
return cronSpec;
45+
}
46+
47+
/**
48+
* Cron style schedule specification.
49+
* @param cronSpec cronSpec or {@code null} for none
50+
*/
51+
public BackupScheduleSpec setCronSpec(CrontabSpec cronSpec) {
52+
this.cronSpec = cronSpec;
53+
return this;
54+
}
55+
56+
@Override
57+
public BackupScheduleSpec set(String fieldName, Object value) {
58+
return (BackupScheduleSpec) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public BackupScheduleSpec clone() {
63+
return (BackupScheduleSpec) super.clone();
64+
}
65+
66+
}

0 commit comments

Comments
 (0)