Skip to content

Commit d46ae3e

Browse files
1 parent d6977b7 commit d46ae3e

File tree

17 files changed

+710
-12
lines changed

17 files changed

+710
-12
lines changed

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

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
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.alloydb.v1.model;
18+
19+
/**
20+
* DenyMaintenancePeriod definition. Excepting emergencies, maintenance will not be scheduled to
21+
* start within this deny period. The start_date must be less than the end_date.
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 AlloyDB 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 DenyMaintenancePeriod extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Deny period end date. This can be: * A full date, with non-zero year, month and day values OR *
35+
* A month and day value, with a zero year for recurring
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private GoogleTypeDate endDate;
40+
41+
/**
42+
* Deny period start date. This can be: * A full date, with non-zero year, month and day values OR
43+
* * A month and day value, with a zero year for recurring
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private GoogleTypeDate startDate;
48+
49+
/**
50+
* Time in UTC when the deny period starts on start_date and ends on end_date. This can be: * Full
51+
* time OR * All zeros for 00:00:00 UTC
52+
* The value may be {@code null}.
53+
*/
54+
@com.google.api.client.util.Key
55+
private GoogleTypeTimeOfDay time;
56+
57+
/**
58+
* Deny period end date. This can be: * A full date, with non-zero year, month and day values OR *
59+
* A month and day value, with a zero year for recurring
60+
* @return value or {@code null} for none
61+
*/
62+
public GoogleTypeDate getEndDate() {
63+
return endDate;
64+
}
65+
66+
/**
67+
* Deny period end date. This can be: * A full date, with non-zero year, month and day values OR *
68+
* A month and day value, with a zero year for recurring
69+
* @param endDate endDate or {@code null} for none
70+
*/
71+
public DenyMaintenancePeriod setEndDate(GoogleTypeDate endDate) {
72+
this.endDate = endDate;
73+
return this;
74+
}
75+
76+
/**
77+
* Deny period start date. This can be: * A full date, with non-zero year, month and day values OR
78+
* * A month and day value, with a zero year for recurring
79+
* @return value or {@code null} for none
80+
*/
81+
public GoogleTypeDate getStartDate() {
82+
return startDate;
83+
}
84+
85+
/**
86+
* Deny period start date. This can be: * A full date, with non-zero year, month and day values OR
87+
* * A month and day value, with a zero year for recurring
88+
* @param startDate startDate or {@code null} for none
89+
*/
90+
public DenyMaintenancePeriod setStartDate(GoogleTypeDate startDate) {
91+
this.startDate = startDate;
92+
return this;
93+
}
94+
95+
/**
96+
* Time in UTC when the deny period starts on start_date and ends on end_date. This can be: * Full
97+
* time OR * All zeros for 00:00:00 UTC
98+
* @return value or {@code null} for none
99+
*/
100+
public GoogleTypeTimeOfDay getTime() {
101+
return time;
102+
}
103+
104+
/**
105+
* Time in UTC when the deny period starts on start_date and ends on end_date. This can be: * Full
106+
* time OR * All zeros for 00:00:00 UTC
107+
* @param time time or {@code null} for none
108+
*/
109+
public DenyMaintenancePeriod setTime(GoogleTypeTimeOfDay time) {
110+
this.time = time;
111+
return this;
112+
}
113+
114+
@Override
115+
public DenyMaintenancePeriod set(String fieldName, Object value) {
116+
return (DenyMaintenancePeriod) super.set(fieldName, value);
117+
}
118+
119+
@Override
120+
public DenyMaintenancePeriod clone() {
121+
return (DenyMaintenancePeriod) super.clone();
122+
}
123+
124+
}
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
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.alloydb.v1.model;
18+
19+
/**
20+
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone
21+
* are either specified elsewhere or are insignificant. The date is relative to the Gregorian
22+
* Calendar. This can represent one of the following: * A full date, with non-zero year, month, and
23+
* day values. * A month and day, with a zero year (for example, an anniversary). * A year on its
24+
* own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit
25+
* card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime *
26+
* google.protobuf.Timestamp
27+
*
28+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
29+
* transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see:
30+
* <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>
31+
* </p>
32+
*
33+
* @author Google, Inc.
34+
*/
35+
@SuppressWarnings("javadoc")
36+
public final class GoogleTypeDate extends com.google.api.client.json.GenericJson {
37+
38+
/**
39+
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year
40+
* by itself or a year and month where the day isn't significant.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.Integer day;
45+
46+
/**
47+
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.Integer month;
52+
53+
/**
54+
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.Integer year;
59+
60+
/**
61+
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year
62+
* by itself or a year and month where the day isn't significant.
63+
* @return value or {@code null} for none
64+
*/
65+
public java.lang.Integer getDay() {
66+
return day;
67+
}
68+
69+
/**
70+
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year
71+
* by itself or a year and month where the day isn't significant.
72+
* @param day day or {@code null} for none
73+
*/
74+
public GoogleTypeDate setDay(java.lang.Integer day) {
75+
this.day = day;
76+
return this;
77+
}
78+
79+
/**
80+
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
81+
* @return value or {@code null} for none
82+
*/
83+
public java.lang.Integer getMonth() {
84+
return month;
85+
}
86+
87+
/**
88+
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
89+
* @param month month or {@code null} for none
90+
*/
91+
public GoogleTypeDate setMonth(java.lang.Integer month) {
92+
this.month = month;
93+
return this;
94+
}
95+
96+
/**
97+
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
98+
* @return value or {@code null} for none
99+
*/
100+
public java.lang.Integer getYear() {
101+
return year;
102+
}
103+
104+
/**
105+
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
106+
* @param year year or {@code null} for none
107+
*/
108+
public GoogleTypeDate setYear(java.lang.Integer year) {
109+
this.year = year;
110+
return this;
111+
}
112+
113+
@Override
114+
public GoogleTypeDate set(String fieldName, Object value) {
115+
return (GoogleTypeDate) super.set(fieldName, value);
116+
}
117+
118+
@Override
119+
public GoogleTypeDate clone() {
120+
return (GoogleTypeDate) super.clone();
121+
}
122+
123+
}

clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/InstanceNetworkConfig.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ public final class InstanceNetworkConfig extends com.google.api.client.json.Gene
5757
@com.google.api.client.util.Key
5858
private java.lang.Boolean enablePublicIp;
5959

60+
/**
61+
* Output only. The resource link for the VPC network in which instance resources are created and
62+
* from which they are accessible via Private IP. This will be the same value as the parent
63+
* cluster's network. It is specified in the form: //
64+
* `projects/{project_number}/global/networks/{network_id}`.
65+
* The value may be {@code null}.
66+
*/
67+
@com.google.api.client.util.Key
68+
private java.lang.String network;
69+
6070
/**
6171
* Optional. A list of external network authorized to access this instance.
6272
* @return value or {@code null} for none
@@ -110,6 +120,29 @@ public InstanceNetworkConfig setEnablePublicIp(java.lang.Boolean enablePublicIp)
110120
return this;
111121
}
112122

123+
/**
124+
* Output only. The resource link for the VPC network in which instance resources are created and
125+
* from which they are accessible via Private IP. This will be the same value as the parent
126+
* cluster's network. It is specified in the form: //
127+
* `projects/{project_number}/global/networks/{network_id}`.
128+
* @return value or {@code null} for none
129+
*/
130+
public java.lang.String getNetwork() {
131+
return network;
132+
}
133+
134+
/**
135+
* Output only. The resource link for the VPC network in which instance resources are created and
136+
* from which they are accessible via Private IP. This will be the same value as the parent
137+
* cluster's network. It is specified in the form: //
138+
* `projects/{project_number}/global/networks/{network_id}`.
139+
* @param network network or {@code null} for none
140+
*/
141+
public InstanceNetworkConfig setNetwork(java.lang.String network) {
142+
this.network = network;
143+
return this;
144+
}
145+
113146
@Override
114147
public InstanceNetworkConfig set(String fieldName, Object value) {
115148
return (InstanceNetworkConfig) super.set(fieldName, value);

clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/MachineConfig.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ public final class MachineConfig extends com.google.api.client.json.GenericJson
3636
@com.google.api.client.util.Key
3737
private java.lang.Integer cpuCount;
3838

39+
/**
40+
* Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd".
41+
* cpu_count must match the number of vCPUs in the machine type.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String machineType;
46+
3947
/**
4048
* The number of CPU's in the VM instance.
4149
* @return value or {@code null} for none
@@ -53,6 +61,25 @@ public MachineConfig setCpuCount(java.lang.Integer cpuCount) {
5361
return this;
5462
}
5563

64+
/**
65+
* Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd".
66+
* cpu_count must match the number of vCPUs in the machine type.
67+
* @return value or {@code null} for none
68+
*/
69+
public java.lang.String getMachineType() {
70+
return machineType;
71+
}
72+
73+
/**
74+
* Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd".
75+
* cpu_count must match the number of vCPUs in the machine type.
76+
* @param machineType machineType or {@code null} for none
77+
*/
78+
public MachineConfig setMachineType(java.lang.String machineType) {
79+
this.machineType = machineType;
80+
return this;
81+
}
82+
5683
@Override
5784
public MachineConfig set(String fieldName, Object value) {
5885
return (MachineConfig) super.set(fieldName, value);

clients/google-api-services-alloydb/v1/2.0.0/com/google/api/services/alloydb/v1/model/MaintenanceUpdatePolicy.java

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

32+
/**
33+
* Periods to deny maintenance. Currently limited to 1.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<DenyMaintenancePeriod> denyMaintenancePeriods;
38+
39+
static {
40+
// hack to force ProGuard to consider DenyMaintenancePeriod used, since otherwise it would be stripped out
41+
// see https://github.com/google/google-api-java-client/issues/543
42+
com.google.api.client.util.Data.nullOf(DenyMaintenancePeriod.class);
43+
}
44+
3245
/**
3346
* Preferred windows to perform maintenance. Currently limited to 1.
3447
* The value may be {@code null}.
3548
*/
3649
@com.google.api.client.util.Key
3750
private java.util.List<MaintenanceWindow> maintenanceWindows;
3851

52+
/**
53+
* Periods to deny maintenance. Currently limited to 1.
54+
* @return value or {@code null} for none
55+
*/
56+
public java.util.List<DenyMaintenancePeriod> getDenyMaintenancePeriods() {
57+
return denyMaintenancePeriods;
58+
}
59+
60+
/**
61+
* Periods to deny maintenance. Currently limited to 1.
62+
* @param denyMaintenancePeriods denyMaintenancePeriods or {@code null} for none
63+
*/
64+
public MaintenanceUpdatePolicy setDenyMaintenancePeriods(java.util.List<DenyMaintenancePeriod> denyMaintenancePeriods) {
65+
this.denyMaintenancePeriods = denyMaintenancePeriods;
66+
return this;
67+
}
68+
3969
/**
4070
* Preferred windows to perform maintenance. Currently limited to 1.
4171
* @return value or {@code null} for none

0 commit comments

Comments
 (0)