Skip to content

Commit 39015fe

Browse files
1 parent 3545551 commit 39015fe

File tree

43 files changed

+5463
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5463
-125
lines changed

clients/google-api-services-compute/alpha/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-compute</artifactId>
25-
<version>alpha-rev20240723-2.0.0</version>
25+
<version>alpha-rev20240730-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-compute:alpha-rev20240723-2.0.0'
38+
implementation 'com.google.apis:google-api-services-compute:alpha-rev20240730-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -146356,26 +146356,26 @@ public Delete set(String parameterName, Object value) {
146356146356
*
146357146357
* @param project Project ID for this request.
146358146358
* @param region The name of the region for this request.
146359-
* @param instantSnapshot Name of the InstantSnapshotGroup resource to return.
146359+
* @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return.
146360146360
* @return the request
146361146361
*/
146362-
public Get get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshot) throws java.io.IOException {
146363-
Get result = new Get(project, region, instantSnapshot);
146362+
public Get get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshotGroup) throws java.io.IOException {
146363+
Get result = new Get(project, region, instantSnapshotGroup);
146364146364
initialize(result);
146365146365
return result;
146366146366
}
146367146367

146368146368
public class Get extends ComputeRequest<com.google.api.services.compute.model.InstantSnapshotGroup> {
146369146369

146370-
private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshot}";
146370+
private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}";
146371146371

146372146372
private final java.util.regex.Pattern PROJECT_PATTERN =
146373146373
java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))");
146374146374

146375146375
private final java.util.regex.Pattern REGION_PATTERN =
146376146376
java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?");
146377146377

146378-
private final java.util.regex.Pattern INSTANT_SNAPSHOT_PATTERN =
146378+
private final java.util.regex.Pattern INSTANT_SNAPSHOT_GROUP_PATTERN =
146379146379
java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}");
146380146380

146381146381
/**
@@ -146390,10 +146390,10 @@ public class Get extends ComputeRequest<com.google.api.services.compute.model.In
146390146390
*
146391146391
* @param project Project ID for this request.
146392146392
* @param region The name of the region for this request.
146393-
* @param instantSnapshot Name of the InstantSnapshotGroup resource to return.
146393+
* @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return.
146394146394
* @since 1.13
146395146395
*/
146396-
protected Get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshot) {
146396+
protected Get(java.lang.String project, java.lang.String region, java.lang.String instantSnapshotGroup) {
146397146397
super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotGroup.class);
146398146398
this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified.");
146399146399
if (!getSuppressPatternChecks()) {
@@ -146407,10 +146407,10 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin
146407146407
"Parameter region must conform to the pattern " +
146408146408
"[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?");
146409146409
}
146410-
this.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified.");
146410+
this.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified.");
146411146411
if (!getSuppressPatternChecks()) {
146412-
com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(),
146413-
"Parameter instantSnapshot must conform to the pattern " +
146412+
com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(),
146413+
"Parameter instantSnapshotGroup must conform to the pattern " +
146414146414
"[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}");
146415146415
}
146416146416
}
@@ -146529,22 +146529,22 @@ public Get setRegion(java.lang.String region) {
146529146529

146530146530
/** Name of the InstantSnapshotGroup resource to return. */
146531146531
@com.google.api.client.util.Key
146532-
private java.lang.String instantSnapshot;
146532+
private java.lang.String instantSnapshotGroup;
146533146533

146534146534
/** Name of the InstantSnapshotGroup resource to return.
146535146535
*/
146536-
public java.lang.String getInstantSnapshot() {
146537-
return instantSnapshot;
146536+
public java.lang.String getInstantSnapshotGroup() {
146537+
return instantSnapshotGroup;
146538146538
}
146539146539

146540146540
/** Name of the InstantSnapshotGroup resource to return. */
146541-
public Get setInstantSnapshot(java.lang.String instantSnapshot) {
146541+
public Get setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) {
146542146542
if (!getSuppressPatternChecks()) {
146543-
com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(),
146544-
"Parameter instantSnapshot must conform to the pattern " +
146543+
com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(),
146544+
"Parameter instantSnapshotGroup must conform to the pattern " +
146545146545
"[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}");
146546146546
}
146547-
this.instantSnapshot = instantSnapshot;
146547+
this.instantSnapshotGroup = instantSnapshotGroup;
146548146548
return this;
146549146549
}
146550146550

clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
public final class FirewallPolicyRule extends com.google.api.client.json.GenericJson {
3232

3333
/**
34-
* The Action to perform when the client connection triggers the rule. Valid actions are "allow",
35-
* "deny" and "goto_next".
34+
* The Action to perform when the client connection triggers the rule. Valid actions for firewall
35+
* rules are: "allow", "deny", "apply_security_profile_group" and "goto_next". Valid actions for
36+
* packet mirroring rules are: "mirror", "do_not_mirror" and "goto_next".
3637
* The value may be {@code null}.
3738
*/
3839
@com.google.api.client.util.Key
@@ -71,7 +72,8 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic
7172
private java.lang.Boolean enableLogging;
7273

7374
/**
74-
* [Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
75+
* [Output only] Type of the resource. Returns compute#firewallPolicyRule for firewall rules and
76+
* compute#packetMirroringRule for packet mirroring rules.
7577
* The value may be {@code null}.
7678
*/
7779
@com.google.api.client.util.Key
@@ -88,7 +90,7 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic
8890
/**
8991
* An integer indicating the priority of a rule in the list. The priority must be a positive value
9092
* between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the
91-
* highest priority and 2147483647 is the lowest prority.
93+
* highest priority and 2147483647 is the lowest priority.
9294
* The value may be {@code null}.
9395
*/
9496
@com.google.api.client.util.Key
@@ -111,8 +113,8 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic
111113
/**
112114
* A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.
113115
* googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-
114-
* profile-group Must be specified if action = 'apply_security_profile_group' and cannot be
115-
* specified for other actions.
116+
* profile-group Must be specified if action is one of 'apply_security_profile_group' or 'mirror'.
117+
* Cannot be specified for other actions.
116118
* The value may be {@code null}.
117119
*/
118120
@com.google.api.client.util.Key
@@ -156,17 +158,19 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic
156158
private java.lang.Boolean tlsInspect;
157159

158160
/**
159-
* The Action to perform when the client connection triggers the rule. Valid actions are "allow",
160-
* "deny" and "goto_next".
161+
* The Action to perform when the client connection triggers the rule. Valid actions for firewall
162+
* rules are: "allow", "deny", "apply_security_profile_group" and "goto_next". Valid actions for
163+
* packet mirroring rules are: "mirror", "do_not_mirror" and "goto_next".
161164
* @return value or {@code null} for none
162165
*/
163166
public java.lang.String getAction() {
164167
return action;
165168
}
166169

167170
/**
168-
* The Action to perform when the client connection triggers the rule. Valid actions are "allow",
169-
* "deny" and "goto_next".
171+
* The Action to perform when the client connection triggers the rule. Valid actions for firewall
172+
* rules are: "allow", "deny", "apply_security_profile_group" and "goto_next". Valid actions for
173+
* packet mirroring rules are: "mirror", "do_not_mirror" and "goto_next".
170174
* @param action action or {@code null} for none
171175
*/
172176
public FirewallPolicyRule setAction(java.lang.String action) {
@@ -251,15 +255,17 @@ public FirewallPolicyRule setEnableLogging(java.lang.Boolean enableLogging) {
251255
}
252256

253257
/**
254-
* [Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
258+
* [Output only] Type of the resource. Returns compute#firewallPolicyRule for firewall rules and
259+
* compute#packetMirroringRule for packet mirroring rules.
255260
* @return value or {@code null} for none
256261
*/
257262
public java.lang.String getKind() {
258263
return kind;
259264
}
260265

261266
/**
262-
* [Output only] Type of the resource. Always compute#firewallPolicyRule for firewall policy rules
267+
* [Output only] Type of the resource. Returns compute#firewallPolicyRule for firewall rules and
268+
* compute#packetMirroringRule for packet mirroring rules.
263269
* @param kind kind or {@code null} for none
264270
*/
265271
public FirewallPolicyRule setKind(java.lang.String kind) {
@@ -289,7 +295,7 @@ public FirewallPolicyRule setMatch(FirewallPolicyRuleMatcher match) {
289295
/**
290296
* An integer indicating the priority of a rule in the list. The priority must be a positive value
291297
* between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the
292-
* highest priority and 2147483647 is the lowest prority.
298+
* highest priority and 2147483647 is the lowest priority.
293299
* @return value or {@code null} for none
294300
*/
295301
public java.lang.Integer getPriority() {
@@ -299,7 +305,7 @@ public java.lang.Integer getPriority() {
299305
/**
300306
* An integer indicating the priority of a rule in the list. The priority must be a positive value
301307
* between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the
302-
* highest priority and 2147483647 is the lowest prority.
308+
* highest priority and 2147483647 is the lowest priority.
303309
* @param priority priority or {@code null} for none
304310
*/
305311
public FirewallPolicyRule setPriority(java.lang.Integer priority) {
@@ -344,8 +350,8 @@ public FirewallPolicyRule setRuleTupleCount(java.lang.Integer ruleTupleCount) {
344350
/**
345351
* A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.
346352
* googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-
347-
* profile-group Must be specified if action = 'apply_security_profile_group' and cannot be
348-
* specified for other actions.
353+
* profile-group Must be specified if action is one of 'apply_security_profile_group' or 'mirror'.
354+
* Cannot be specified for other actions.
349355
* @return value or {@code null} for none
350356
*/
351357
public java.lang.String getSecurityProfileGroup() {
@@ -355,8 +361,8 @@ public java.lang.String getSecurityProfileGroup() {
355361
/**
356362
* A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.
357363
* googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-
358-
* profile-group Must be specified if action = 'apply_security_profile_group' and cannot be
359-
* specified for other actions.
364+
* profile-group Must be specified if action is one of 'apply_security_profile_group' or 'mirror'.
365+
* Cannot be specified for other actions.
360366
* @param securityProfileGroup securityProfileGroup or {@code null} for none
361367
*/
362368
public FirewallPolicyRule setSecurityProfileGroup(java.lang.String securityProfileGroup) {

clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge
4343
@com.google.api.client.util.Key
4444
private java.util.List<java.lang.String> autoCreatedReservations;
4545

46+
/**
47+
* [Output Only] Represents the existing matching usage for the future reservation.
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo;
52+
4653
/**
4754
* This count indicates the fulfilled capacity so far. This is set during "PROVISIONING" state.
4855
* This count also includes capacity delivered as part of existing matching reservations.
@@ -118,6 +125,23 @@ public FutureReservationStatus setAutoCreatedReservations(java.util.List<java.la
118125
return this;
119126
}
120127

128+
/**
129+
* [Output Only] Represents the existing matching usage for the future reservation.
130+
* @return value or {@code null} for none
131+
*/
132+
public FutureReservationStatusExistingMatchingUsageInfo getExistingMatchingUsageInfo() {
133+
return existingMatchingUsageInfo;
134+
}
135+
136+
/**
137+
* [Output Only] Represents the existing matching usage for the future reservation.
138+
* @param existingMatchingUsageInfo existingMatchingUsageInfo or {@code null} for none
139+
*/
140+
public FutureReservationStatus setExistingMatchingUsageInfo(FutureReservationStatusExistingMatchingUsageInfo existingMatchingUsageInfo) {
141+
this.existingMatchingUsageInfo = existingMatchingUsageInfo;
142+
return this;
143+
}
144+
121145
/**
122146
* This count indicates the fulfilled capacity so far. This is set during "PROVISIONING" state.
123147
* This count also includes capacity delivered as part of existing matching reservations.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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.compute.model;
18+
19+
/**
20+
* [Output Only] Represents the existing matching usage for the future reservation.
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 Compute Engine 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 FutureReservationStatusExistingMatchingUsageInfo extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Count to represent min(FR total_count,
34+
* matching_reserved_capacity+matching_unreserved_instances)
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
38+
private java.lang.Long count;
39+
40+
/**
41+
* Timestamp when the matching usage was calculated
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private String timestamp;
46+
47+
/**
48+
* Count to represent min(FR total_count,
49+
* matching_reserved_capacity+matching_unreserved_instances)
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.Long getCount() {
53+
return count;
54+
}
55+
56+
/**
57+
* Count to represent min(FR total_count,
58+
* matching_reserved_capacity+matching_unreserved_instances)
59+
* @param count count or {@code null} for none
60+
*/
61+
public FutureReservationStatusExistingMatchingUsageInfo setCount(java.lang.Long count) {
62+
this.count = count;
63+
return this;
64+
}
65+
66+
/**
67+
* Timestamp when the matching usage was calculated
68+
* @return value or {@code null} for none
69+
*/
70+
public String getTimestamp() {
71+
return timestamp;
72+
}
73+
74+
/**
75+
* Timestamp when the matching usage was calculated
76+
* @param timestamp timestamp or {@code null} for none
77+
*/
78+
public FutureReservationStatusExistingMatchingUsageInfo setTimestamp(String timestamp) {
79+
this.timestamp = timestamp;
80+
return this;
81+
}
82+
83+
@Override
84+
public FutureReservationStatusExistingMatchingUsageInfo set(String fieldName, Object value) {
85+
return (FutureReservationStatusExistingMatchingUsageInfo) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public FutureReservationStatusExistingMatchingUsageInfo clone() {
90+
return (FutureReservationStatusExistingMatchingUsageInfo) super.clone();
91+
}
92+
93+
}

0 commit comments

Comments
 (0)