diff --git a/clients/google-api-services-compute/v1/2.0.0/README.md b/clients/google-api-services-compute/v1/2.0.0/README.md index 2480b428358..50b4705aa74 100644 --- a/clients/google-api-services-compute/v1/2.0.0/README.md +++ b/clients/google-api-services-compute/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - v1-rev20261016-2.9.2 + v1-rev20261026-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20261016-2.9.2' + implementation 'com.google.apis:google-api-services-compute:v1-rev20261026-2.9.2' } ``` diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java index df10e902e54..189b0b561ce 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java @@ -177,7 +177,7 @@ public class AggregatedList extends ComputeRequest { private static final String REST_PATH = "projects/{project}/global/backendServices/{backendService}/getEffectiveSecurityPolicies"; - private static final String API_VERSION = "2026-09-01"; + private static final String API_VERSION = "2026-11-01"; private final java.util.regex.Pattern PROJECT_PATTERN = 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])?))"); @@ -11409,7 +11409,7 @@ public class GetHealth extends ComputeRequest { private static final String REST_PATH = "projects/{project}/global/operations/{operation}"; - private static final String API_VERSION = "2026-09-01"; + private static final String API_VERSION = "2026-11-01"; private final java.util.regex.Pattern PROJECT_PATTERN = 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])?))"); @@ -38543,7 +38543,7 @@ public class Get extends ComputeRequest { private static final String REST_PATH = "locations/global/operations/{operation}"; - private static final String API_VERSION = "2026-09-01"; + private static final String API_VERSION = "2026-11-01"; private final java.util.regex.Pattern OPERATION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); @@ -39494,7 +39494,7 @@ public class Get extends ComputeRequest { private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt"; - private static final String API_VERSION = "2026-09-01"; + private static final String API_VERSION = "2026-11-01"; private final java.util.regex.Pattern PROJECT_PATTERN = 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])?))"); @@ -73560,7 +73560,7 @@ public class SetDeletionProtection extends ComputeRequest { private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; - private static final String API_VERSION = "2026-09-01"; + private static final String API_VERSION = "2026-11-01"; private final java.util.regex.Pattern PROJECT_PATTERN = 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])?))"); @@ -184552,7 +184552,7 @@ public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-11-01"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + 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])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "regionSslPolicies.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** * Creates a new policy in the specified project and region using the data included in the request. * @@ -192379,7 +192611,7 @@ public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-11-01"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + 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])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "regionSslPolicies.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public SetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionSslPolicies.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-11-01"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + 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])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionSslPolicies.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } } @@ -193706,7 +194352,7 @@ public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{resource}/getIamPolicy"; + + private static final String API_VERSION = "2026-11-01"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + 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])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "sslPolicies.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } /** * Returns the specified SSL policy resource. * @@ -233166,7 +234012,7 @@ public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{resource}/setIamPolicy"; + + private static final String API_VERSION = "2026-11-01"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + 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])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "sslPolicies.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

+ * {@link + * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "sslPolicies.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{resource}/testIamPermissions"; + + private static final String API_VERSION = "2026-11-01"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + 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])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "sslPolicies.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-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])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } } @@ -234366,7 +235562,7 @@ public class AggregatedList extends ComputeRequest { private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; - private static final String API_VERSION = "2026-09-01"; + private static final String API_VERSION = "2026-11-01"; private final java.util.regex.Pattern PROJECT_PATTERN = 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])?))"); @@ -267755,7 +268951,7 @@ public class Get extends ComputeRequest This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendServiceDynamicForwarding extends com.google.api.client.json.GenericJson { + + /** + * Dynamic Forwarding Proxy configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceDynamicForwardingForwardProxy forwardProxy; + + /** + * IP:PORT based dynamic forwarding configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceDynamicForwardingIpPortSelection ipPortSelection; + + /** + * Dynamic Forwarding Proxy configuration. + * @return value or {@code null} for none + */ + public BackendServiceDynamicForwardingForwardProxy getForwardProxy() { + return forwardProxy; + } + + /** + * Dynamic Forwarding Proxy configuration. + * @param forwardProxy forwardProxy or {@code null} for none + */ + public BackendServiceDynamicForwarding setForwardProxy(BackendServiceDynamicForwardingForwardProxy forwardProxy) { + this.forwardProxy = forwardProxy; + return this; + } + + /** + * IP:PORT based dynamic forwarding configuration. + * @return value or {@code null} for none + */ + public BackendServiceDynamicForwardingIpPortSelection getIpPortSelection() { + return ipPortSelection; + } + + /** + * IP:PORT based dynamic forwarding configuration. + * @param ipPortSelection ipPortSelection or {@code null} for none + */ + public BackendServiceDynamicForwarding setIpPortSelection(BackendServiceDynamicForwardingIpPortSelection ipPortSelection) { + this.ipPortSelection = ipPortSelection; + return this; + } + + @Override + public BackendServiceDynamicForwarding set(String fieldName, Object value) { + return (BackendServiceDynamicForwarding) super.set(fieldName, value); + } + + @Override + public BackendServiceDynamicForwarding clone() { + return (BackendServiceDynamicForwarding) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java new file mode 100644 index 00000000000..030061819d7 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Defines Dynamic Forwarding Proxy configuration. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendServiceDynamicForwardingForwardProxy extends com.google.api.client.json.GenericJson { + + /** + * A boolean flag enabling dynamic forwarding proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * Determines the dynamic forwarding proxy mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyMode; + + /** + * A boolean flag enabling dynamic forwarding proxy. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * A boolean flag enabling dynamic forwarding proxy. + * @param enabled enabled or {@code null} for none + */ + public BackendServiceDynamicForwardingForwardProxy setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Determines the dynamic forwarding proxy mode. + * @return value or {@code null} for none + */ + public java.lang.String getProxyMode() { + return proxyMode; + } + + /** + * Determines the dynamic forwarding proxy mode. + * @param proxyMode proxyMode or {@code null} for none + */ + public BackendServiceDynamicForwardingForwardProxy setProxyMode(java.lang.String proxyMode) { + this.proxyMode = proxyMode; + return this; + } + + @Override + public BackendServiceDynamicForwardingForwardProxy set(String fieldName, Object value) { + return (BackendServiceDynamicForwardingForwardProxy) super.set(fieldName, value); + } + + @Override + public BackendServiceDynamicForwardingForwardProxy clone() { + return (BackendServiceDynamicForwardingForwardProxy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingIpPortSelection.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingIpPortSelection.java new file mode 100644 index 00000000000..4d8ce353a2e --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingIpPortSelection.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Defines a IP:PORT based dynamic forwarding configuration for the backend service. Some ranges are + * restricted: Restricted ranges. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendServiceDynamicForwardingIpPortSelection extends com.google.api.client.json.GenericJson { + + /** + * A boolean flag enabling IP:PORT based dynamic forwarding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * A boolean flag enabling IP:PORT based dynamic forwarding. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * A boolean flag enabling IP:PORT based dynamic forwarding. + * @param enabled enabled or {@code null} for none + */ + public BackendServiceDynamicForwardingIpPortSelection setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + @Override + public BackendServiceDynamicForwardingIpPortSelection set(String fieldName, Object value) { + return (BackendServiceDynamicForwardingIpPortSelection) super.set(fieldName, value); + } + + @Override + public BackendServiceDynamicForwardingIpPortSelection clone() { + return (BackendServiceDynamicForwardingIpPortSelection) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java index 51b137e4f5d..6a4fdb2990f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java @@ -29,6 +29,17 @@ @SuppressWarnings("javadoc") public final class CacheInvalidationRule extends com.google.api.client.json.GenericJson { + /** + * If set, this invalidation rule will only apply to requests routed to the given backend service + * or backend bucket. For example, for a backend bucket `bb1` in the same scope as the URL map, + * the path would be `projects/my-project/global/backendBuckets/bb1`; and for a backend service + * `bs1` in the same scope as the URL map, the path would be `projects/my- + * project/global/backendServices/bs1`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backendService; + /** * A list of cache tags used to identify cached objects. * @@ -43,6 +54,15 @@ public final class CacheInvalidationRule extends com.google.api.client.json.Gene @com.google.api.client.util.Key private java.util.List cacheTags; + /** + * If set, this invalidation rule will only apply to responses with the given content-type. + * Parameters are not allowed and are ignored from the response when matching. Wildcards are not + * allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contentType; + /** * If set, this invalidation rule will only apply to requests with a Host header matching host. * This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. @@ -52,12 +72,45 @@ public final class CacheInvalidationRule extends com.google.api.client.json.Gene @com.google.api.client.util.Key private java.lang.String host; + /** + * If set, this invalidation rule will only apply to responses with the given HTTP status. Valid + * range is 200-599. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer httpStatus; + /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String path; + /** + * If set, this invalidation rule will only apply to requests routed to the given backend service + * or backend bucket. For example, for a backend bucket `bb1` in the same scope as the URL map, + * the path would be `projects/my-project/global/backendBuckets/bb1`; and for a backend service + * `bs1` in the same scope as the URL map, the path would be `projects/my- + * project/global/backendServices/bs1`. + * @return value or {@code null} for none + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** + * If set, this invalidation rule will only apply to requests routed to the given backend service + * or backend bucket. For example, for a backend bucket `bb1` in the same scope as the URL map, + * the path would be `projects/my-project/global/backendBuckets/bb1`; and for a backend service + * `bs1` in the same scope as the URL map, the path would be `projects/my- + * project/global/backendServices/bs1`. + * @param backendService backendService or {@code null} for none + */ + public CacheInvalidationRule setBackendService(java.lang.String backendService) { + this.backendService = backendService; + return this; + } + /** * A list of cache tags used to identify cached objects. * @@ -89,6 +142,27 @@ public CacheInvalidationRule setCacheTags(java.util.List cache return this; } + /** + * If set, this invalidation rule will only apply to responses with the given content-type. + * Parameters are not allowed and are ignored from the response when matching. Wildcards are not + * allowed. + * @return value or {@code null} for none + */ + public java.lang.String getContentType() { + return contentType; + } + + /** + * If set, this invalidation rule will only apply to responses with the given content-type. + * Parameters are not allowed and are ignored from the response when matching. Wildcards are not + * allowed. + * @param contentType contentType or {@code null} for none + */ + public CacheInvalidationRule setContentType(java.lang.String contentType) { + this.contentType = contentType; + return this; + } + /** * If set, this invalidation rule will only apply to requests with a Host header matching host. * This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. @@ -110,6 +184,25 @@ public CacheInvalidationRule setHost(java.lang.String host) { return this; } + /** + * If set, this invalidation rule will only apply to responses with the given HTTP status. Valid + * range is 200-599. + * @return value or {@code null} for none + */ + public java.lang.Integer getHttpStatus() { + return httpStatus; + } + + /** + * If set, this invalidation rule will only apply to responses with the given HTTP status. Valid + * range is 200-599. + * @param httpStatus httpStatus or {@code null} for none + */ + public CacheInvalidationRule setHttpStatus(java.lang.Integer httpStatus) { + this.httpStatus = httpStatus; + return this; + } + /** * @return value or {@code null} for none */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ConfidentialInstanceConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ConfidentialInstanceConfig.java index 3034c3d9301..c54344cdcb1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ConfidentialInstanceConfig.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ConfidentialInstanceConfig.java @@ -37,7 +37,15 @@ public final class ConfidentialInstanceConfig extends com.google.api.client.json private java.lang.String confidentialInstanceType; /** - * Defines whether the instance should have confidential compute enabled. + * Defines a set of Confidential Paravisor (SVSM) options. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConfidentialParavisorConfig confidentialParavisorConfig; + + /** + * Defines whether the instance should have confidential compute enabled. When enabled, the + * technology used defaults to AMD SEV unless confidentialInstanceType is specified. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +69,25 @@ public ConfidentialInstanceConfig setConfidentialInstanceType(java.lang.String c } /** - * Defines whether the instance should have confidential compute enabled. + * Defines a set of Confidential Paravisor (SVSM) options. + * @return value or {@code null} for none + */ + public ConfidentialParavisorConfig getConfidentialParavisorConfig() { + return confidentialParavisorConfig; + } + + /** + * Defines a set of Confidential Paravisor (SVSM) options. + * @param confidentialParavisorConfig confidentialParavisorConfig or {@code null} for none + */ + public ConfidentialInstanceConfig setConfidentialParavisorConfig(ConfidentialParavisorConfig confidentialParavisorConfig) { + this.confidentialParavisorConfig = confidentialParavisorConfig; + return this; + } + + /** + * Defines whether the instance should have confidential compute enabled. When enabled, the + * technology used defaults to AMD SEV unless confidentialInstanceType is specified. * @return value or {@code null} for none */ public java.lang.Boolean getEnableConfidentialCompute() { @@ -69,7 +95,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * Defines whether the instance should have confidential compute enabled. + * Defines whether the instance should have confidential compute enabled. When enabled, the + * technology used defaults to AMD SEV unless confidentialInstanceType is specified. * @param enableConfidentialCompute enableConfidentialCompute or {@code null} for none */ public ConfidentialInstanceConfig setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ConfidentialParavisorConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ConfidentialParavisorConfig.java new file mode 100644 index 00000000000..f474bb21c78 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ConfidentialParavisorConfig.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A set of Confidential Paravisor (SVSM) options. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConfidentialParavisorConfig extends com.google.api.client.json.GenericJson { + + /** + * Defines the type of TPM to use for the confidential instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String confidentialTpmType; + + /** + * Defines the IRQ mode to use for the confidential instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sevSnpIrqMode; + + /** + * Defines the type of TPM to use for the confidential instance. + * @return value or {@code null} for none + */ + public java.lang.String getConfidentialTpmType() { + return confidentialTpmType; + } + + /** + * Defines the type of TPM to use for the confidential instance. + * @param confidentialTpmType confidentialTpmType or {@code null} for none + */ + public ConfidentialParavisorConfig setConfidentialTpmType(java.lang.String confidentialTpmType) { + this.confidentialTpmType = confidentialTpmType; + return this; + } + + /** + * Defines the IRQ mode to use for the confidential instance. + * @return value or {@code null} for none + */ + public java.lang.String getSevSnpIrqMode() { + return sevSnpIrqMode; + } + + /** + * Defines the IRQ mode to use for the confidential instance. + * @param sevSnpIrqMode sevSnpIrqMode or {@code null} for none + */ + public ConfidentialParavisorConfig setSevSnpIrqMode(java.lang.String sevSnpIrqMode) { + this.sevSnpIrqMode = sevSnpIrqMode; + return this; + } + + @Override + public ConfidentialParavisorConfig set(String fieldName, Object value) { + return (ConfidentialParavisorConfig) super.set(fieldName, value); + } + + @Override + public ConfidentialParavisorConfig clone() { + return (ConfidentialParavisorConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java index 43ef748e5ec..4ac765f7af2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java @@ -426,6 +426,43 @@ public final class Disk extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String sourceInstantSnapshotId; + /** + * The machine image to create the disk from. You can provide this as a partial or full URL to the + * resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/machineImages/machineImage - + * projects/project/global/machineImages/machineImage - global/machineImages/machineImage + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceMachineImage; + + /** + * The device name of a disk within a given machine image. The source_machine_image must be + * specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceMachineImageDiskDeviceName; + + /** + * Thecustomer-supplied encryption key of the source machine image. Required if the source machine + * image is protected by a customer-supplied encryption key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CustomerEncryptionKey sourceMachineImageEncryptionKey; + + /** + * Output only. [Output Only] The unique ID of the machine image used to create this disk. This + * value identifies the exact machine image that was used to create this persistent disk. For + * example, if you created the persistent disk from a machine image that was later deleted and + * recreated under the same name, the source machine image ID would identify the exact version of + * the machine image that was used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceMachineImageId; + /** * The source snapshot used to create this disk. You can provide this as a partial or full URL to * the resource. For example, the following are valid values: - @@ -1437,6 +1474,92 @@ public Disk setSourceInstantSnapshotId(java.lang.String sourceInstantSnapshotId) return this; } + /** + * The machine image to create the disk from. You can provide this as a partial or full URL to the + * resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/machineImages/machineImage - + * projects/project/global/machineImages/machineImage - global/machineImages/machineImage + * @return value or {@code null} for none + */ + public java.lang.String getSourceMachineImage() { + return sourceMachineImage; + } + + /** + * The machine image to create the disk from. You can provide this as a partial or full URL to the + * resource. For example, the following are valid values: - + * https://www.googleapis.com/compute/v1/projects/project/global/machineImages/machineImage - + * projects/project/global/machineImages/machineImage - global/machineImages/machineImage + * @param sourceMachineImage sourceMachineImage or {@code null} for none + */ + public Disk setSourceMachineImage(java.lang.String sourceMachineImage) { + this.sourceMachineImage = sourceMachineImage; + return this; + } + + /** + * The device name of a disk within a given machine image. The source_machine_image must be + * specified. + * @return value or {@code null} for none + */ + public java.lang.String getSourceMachineImageDiskDeviceName() { + return sourceMachineImageDiskDeviceName; + } + + /** + * The device name of a disk within a given machine image. The source_machine_image must be + * specified. + * @param sourceMachineImageDiskDeviceName sourceMachineImageDiskDeviceName or {@code null} for none + */ + public Disk setSourceMachineImageDiskDeviceName(java.lang.String sourceMachineImageDiskDeviceName) { + this.sourceMachineImageDiskDeviceName = sourceMachineImageDiskDeviceName; + return this; + } + + /** + * Thecustomer-supplied encryption key of the source machine image. Required if the source machine + * image is protected by a customer-supplied encryption key. + * @return value or {@code null} for none + */ + public CustomerEncryptionKey getSourceMachineImageEncryptionKey() { + return sourceMachineImageEncryptionKey; + } + + /** + * Thecustomer-supplied encryption key of the source machine image. Required if the source machine + * image is protected by a customer-supplied encryption key. + * @param sourceMachineImageEncryptionKey sourceMachineImageEncryptionKey or {@code null} for none + */ + public Disk setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceMachineImageEncryptionKey) { + this.sourceMachineImageEncryptionKey = sourceMachineImageEncryptionKey; + return this; + } + + /** + * Output only. [Output Only] The unique ID of the machine image used to create this disk. This + * value identifies the exact machine image that was used to create this persistent disk. For + * example, if you created the persistent disk from a machine image that was later deleted and + * recreated under the same name, the source machine image ID would identify the exact version of + * the machine image that was used. + * @return value or {@code null} for none + */ + public java.lang.String getSourceMachineImageId() { + return sourceMachineImageId; + } + + /** + * Output only. [Output Only] The unique ID of the machine image used to create this disk. This + * value identifies the exact machine image that was used to create this persistent disk. For + * example, if you created the persistent disk from a machine image that was later deleted and + * recreated under the same name, the source machine image ID would identify the exact version of + * the machine image that was used. + * @param sourceMachineImageId sourceMachineImageId or {@code null} for none + */ + public Disk setSourceMachineImageId(java.lang.String sourceMachineImageId) { + this.sourceMachineImageId = sourceMachineImageId; + return this; + } + /** * The source snapshot used to create this disk. You can provide this as a partial or full URL to * the resource. For example, the following are valid values: - diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DynamicCompressionPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DynamicCompressionPolicy.java new file mode 100644 index 00000000000..e3776e0d35e --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DynamicCompressionPolicy.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Dynamic compression policy for this URL Map's route. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DynamicCompressionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding + * header. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String compressionMode; + + /** + * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding + * header. + * @return value or {@code null} for none + */ + public java.lang.String getCompressionMode() { + return compressionMode; + } + + /** + * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding + * header. + * @param compressionMode compressionMode or {@code null} for none + */ + public DynamicCompressionPolicy setCompressionMode(java.lang.String compressionMode) { + this.compressionMode = compressionMode; + return this; + } + + @Override + public DynamicCompressionPolicy set(String fieldName, Object value) { + return (DynamicCompressionPolicy) super.set(fieldName, value); + } + + @Override + public DynamicCompressionPolicy clone() { + return (DynamicCompressionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicy.java index affcac8da07..d3a9f1ca57c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicy.java @@ -115,6 +115,20 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String parent; + /** + * Indicates the source of this Firewall Policy. This field is optional on creation and defaults + * to USER_DEFINED. + * + * The USER_DEFINED value indicates a regular firewall policy. + * + * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This + * SYSTEM value is reserved for internal services and cannot be set by users during policy + * creation. Policies with a SYSTEM source cannot be modified or deleted by users. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policySource; + /** * The type of the firewall policy. This field can be one of VPC_POLICY, RDMA_ROCE_POLICY or * ULL_POLICY. @@ -420,6 +434,37 @@ public FirewallPolicy setParent(java.lang.String parent) { return this; } + /** + * Indicates the source of this Firewall Policy. This field is optional on creation and defaults + * to USER_DEFINED. + * + * The USER_DEFINED value indicates a regular firewall policy. + * + * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This + * SYSTEM value is reserved for internal services and cannot be set by users during policy + * creation. Policies with a SYSTEM source cannot be modified or deleted by users. + * @return value or {@code null} for none + */ + public java.lang.String getPolicySource() { + return policySource; + } + + /** + * Indicates the source of this Firewall Policy. This field is optional on creation and defaults + * to USER_DEFINED. + * + * The USER_DEFINED value indicates a regular firewall policy. + * + * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This + * SYSTEM value is reserved for internal services and cannot be set by users during policy + * creation. Policies with a SYSTEM source cannot be modified or deleted by users. + * @param policySource policySource or {@code null} for none + */ + public FirewallPolicy setPolicySource(java.lang.String policySource) { + this.policySource = policySource; + return this; + } + /** * The type of the firewall policy. This field can be one of VPC_POLICY, RDMA_ROCE_POLICY or * ULL_POLICY. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java index 8215f309d93..0193d6f1041 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java @@ -80,6 +80,55 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key("IPAddress") private java.lang.String iPAddress; + /** + * IP addresses for which this forwarding rule accepts traffic. All IP addresses must have the + * same IP version, IPv4 or IPv6. When a client sends traffic that matches one of the specified IP + * addresses, protocol and ports, the forwarding rule directs the traffic to the + * referencedbackendService. All IP addresses are served by the same set of backends, and they + * share the target capacities specified in the backend service fairly. + * + * Global external Passthrough Network Load Balancer requires two IP addresses for each forwarding + * rule to provide high availability when both IP addresses are used to serve client requests. The + * two IP addresses must come from global IP pools that belong to two distinct Availability + * Groups, represented by the purposePASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0 + * andPASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1. TheIPAddresses field specifies zero, one, or + * two IP addresses: - If omitted, Google Cloud assigns two ephemeral IP addresses, one + * from each Availability Group. - If you specify one IP address that references an existing + * static IP address resource from one Availability Group, Google Cloud assigns an ephemeral + * IP address from the other Availability Group. - If you specify two IP addresses that + * reference existing static IP address resources, they are required to be from different + * Availability Groups. + * + * For global external Passthrough Network Load Balancer, each IP address can be one of the + * following: - A static or ephemeral IPv4 address from a Google-owned IP pool. - A + * static IPv4 address from a global public delegated prefix. - A static or ephemeral IPv6 /96 + * prefix from a Google-owned IP pool. + * + * For global external Passthrough Network Load Balancer, the two IP addresses can be of different + * types. One IP address can be from a BYOIP prefix while the other is from a Google-owned IP + * pool. One IP address can be static while the other is ephemeral. However, both IP addresses + * must have the same IP version, IPv4 or IPv6. + * + * The IP addresses can only be set at creation and cannot be updated. + * + * When creating a global external Passthrough Network Load Balancer forwarding rule (a parent + * forwarding rule), you must use theIPAddresses field, but the Google Cloud-generated child + * forwarding rules set the IPAddress field instead. Refer to theavailabilityGroup field for + * further details. + * + * Refer to the IPAddress field for the formats that can be used to specify IP addresses while + * creating a forwarding rule. + * + * Because Passthrough Network Load Balancers do not terminate or translate traffic, the backend + * stack types must be compatible with the forwarding rule IP version: - If the forwarding + * rule IP version is IPv4, backends should be configured as dual-stack or IPv4-only. - If + * the forwarding rule IP version is IPv6, backends should be configured as dual-stack or + * IPv6-only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("IPAddresses") + private java.util.List iPAddresses; + /** * The IP protocol to which this rule applies. * @@ -137,6 +186,31 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.util.List attachedExtensions; + /** + * Output only. [Output Only] Specifies the load balancing availability group, one of the two that + * collectively provide high availability. + * + * Specifies the availability group of the forwarding rule. This field is for use by global + * external passthrough load balancers (load balancing scheme EXTERNAL_PASSTHROUGH) and is set for + * the child forwarding rules only. The possible values are: - AVAILABILITY_GROUP0: Set for + * the child forwarding rule that is programmed on the AVAILABILITY_GROUP0 load balancing + * stack. The child forwarding rule has the same IP protocol, port, and backend service + * settings as the parent forwarding rule, but has only one of the two IP addresses of the + * parent forwarding rule, the one with the purpose + * PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0. - AVAILABILITY_GROUP1: Set for the child + * forwarding rule that is programmed on the AVAILABILITY_GROUP1 load balancing stack. The + * child forwarding rule has the same IP protocol, port and backend service settings as the + * parent forwarding rule, but has only one of the two IP addresses of the parent forwarding + * rule, the one with the purposePASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1. + * + * For each global external Passthrough Network Load Balancer forwarding rule (a parent forwarding + * rule) that you create, Google Cloud generates two output-only child forwarding rules, one + * forAVAILABILITY_GROUP0 and one forAVAILABILITY_GROUP1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String availabilityGroup; + /** * Identifies the backend service to which the forwarding rule sends traffic. * @@ -160,6 +234,19 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String baseForwardingRule; + /** + * Output only. [Output Only] The resource URLs for the child forwarding rules. + * + * Applicable only to the parent forwarding rule of global external passthrough load balancers. + * This field contains the list of child forwarding rule URLs associated with the parent + * forwarding rule: one for each availability group. AVAILABILITY_GROUP0 will be the first + * element, and AVAILABILITY_GROUP1 will be the second element. Refer to theavailabilityGroup + * field for further details. It cannot be set by any other forwarding rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List childForwardingRules; + /** * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. @@ -378,6 +465,16 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.Boolean noAutomateDnsZone; + /** + * Output only. [Output Only] The resource URL for the parent forwarding rule. + * + * Applicable only to the child forwarding rules of global external passthrough load balancers. + * This field contains the URL of the parent forwarding rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parentForwardingRule; + /** * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to * ports in the specified range will be forwarded to the backends configured with this forwarding @@ -625,6 +722,107 @@ public ForwardingRule setIPAddress(java.lang.String iPAddress) { return this; } + /** + * IP addresses for which this forwarding rule accepts traffic. All IP addresses must have the + * same IP version, IPv4 or IPv6. When a client sends traffic that matches one of the specified IP + * addresses, protocol and ports, the forwarding rule directs the traffic to the + * referencedbackendService. All IP addresses are served by the same set of backends, and they + * share the target capacities specified in the backend service fairly. + * + * Global external Passthrough Network Load Balancer requires two IP addresses for each forwarding + * rule to provide high availability when both IP addresses are used to serve client requests. The + * two IP addresses must come from global IP pools that belong to two distinct Availability + * Groups, represented by the purposePASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0 + * andPASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1. TheIPAddresses field specifies zero, one, or + * two IP addresses: - If omitted, Google Cloud assigns two ephemeral IP addresses, one + * from each Availability Group. - If you specify one IP address that references an existing + * static IP address resource from one Availability Group, Google Cloud assigns an ephemeral + * IP address from the other Availability Group. - If you specify two IP addresses that + * reference existing static IP address resources, they are required to be from different + * Availability Groups. + * + * For global external Passthrough Network Load Balancer, each IP address can be one of the + * following: - A static or ephemeral IPv4 address from a Google-owned IP pool. - A + * static IPv4 address from a global public delegated prefix. - A static or ephemeral IPv6 /96 + * prefix from a Google-owned IP pool. + * + * For global external Passthrough Network Load Balancer, the two IP addresses can be of different + * types. One IP address can be from a BYOIP prefix while the other is from a Google-owned IP + * pool. One IP address can be static while the other is ephemeral. However, both IP addresses + * must have the same IP version, IPv4 or IPv6. + * + * The IP addresses can only be set at creation and cannot be updated. + * + * When creating a global external Passthrough Network Load Balancer forwarding rule (a parent + * forwarding rule), you must use theIPAddresses field, but the Google Cloud-generated child + * forwarding rules set the IPAddress field instead. Refer to theavailabilityGroup field for + * further details. + * + * Refer to the IPAddress field for the formats that can be used to specify IP addresses while + * creating a forwarding rule. + * + * Because Passthrough Network Load Balancers do not terminate or translate traffic, the backend + * stack types must be compatible with the forwarding rule IP version: - If the forwarding + * rule IP version is IPv4, backends should be configured as dual-stack or IPv4-only. - If + * the forwarding rule IP version is IPv6, backends should be configured as dual-stack or + * IPv6-only. + * @return value or {@code null} for none + */ + public java.util.List getIPAddresses() { + return iPAddresses; + } + + /** + * IP addresses for which this forwarding rule accepts traffic. All IP addresses must have the + * same IP version, IPv4 or IPv6. When a client sends traffic that matches one of the specified IP + * addresses, protocol and ports, the forwarding rule directs the traffic to the + * referencedbackendService. All IP addresses are served by the same set of backends, and they + * share the target capacities specified in the backend service fairly. + * + * Global external Passthrough Network Load Balancer requires two IP addresses for each forwarding + * rule to provide high availability when both IP addresses are used to serve client requests. The + * two IP addresses must come from global IP pools that belong to two distinct Availability + * Groups, represented by the purposePASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0 + * andPASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1. TheIPAddresses field specifies zero, one, or + * two IP addresses: - If omitted, Google Cloud assigns two ephemeral IP addresses, one + * from each Availability Group. - If you specify one IP address that references an existing + * static IP address resource from one Availability Group, Google Cloud assigns an ephemeral + * IP address from the other Availability Group. - If you specify two IP addresses that + * reference existing static IP address resources, they are required to be from different + * Availability Groups. + * + * For global external Passthrough Network Load Balancer, each IP address can be one of the + * following: - A static or ephemeral IPv4 address from a Google-owned IP pool. - A + * static IPv4 address from a global public delegated prefix. - A static or ephemeral IPv6 /96 + * prefix from a Google-owned IP pool. + * + * For global external Passthrough Network Load Balancer, the two IP addresses can be of different + * types. One IP address can be from a BYOIP prefix while the other is from a Google-owned IP + * pool. One IP address can be static while the other is ephemeral. However, both IP addresses + * must have the same IP version, IPv4 or IPv6. + * + * The IP addresses can only be set at creation and cannot be updated. + * + * When creating a global external Passthrough Network Load Balancer forwarding rule (a parent + * forwarding rule), you must use theIPAddresses field, but the Google Cloud-generated child + * forwarding rules set the IPAddress field instead. Refer to theavailabilityGroup field for + * further details. + * + * Refer to the IPAddress field for the formats that can be used to specify IP addresses while + * creating a forwarding rule. + * + * Because Passthrough Network Load Balancers do not terminate or translate traffic, the backend + * stack types must be compatible with the forwarding rule IP version: - If the forwarding + * rule IP version is IPv4, backends should be configured as dual-stack or IPv4-only. - If + * the forwarding rule IP version is IPv6, backends should be configured as dual-stack or + * IPv6-only. + * @param iPAddresses iPAddresses or {@code null} for none + */ + public ForwardingRule setIPAddresses(java.util.List iPAddresses) { + this.iPAddresses = iPAddresses; + return this; + } + /** * The IP protocol to which this rule applies. * @@ -754,6 +952,59 @@ public ForwardingRule setAttachedExtensions(java.util.List getChildForwardingRules() { + return childForwardingRules; + } + + /** + * Output only. [Output Only] The resource URLs for the child forwarding rules. + * + * Applicable only to the parent forwarding rule of global external passthrough load balancers. + * This field contains the list of child forwarding rule URLs associated with the parent + * forwarding rule: one for each availability group. AVAILABILITY_GROUP0 will be the first + * element, and AVAILABILITY_GROUP1 will be the second element. Refer to theavailabilityGroup + * field for further details. It cannot be set by any other forwarding rules. + * @param childForwardingRules childForwardingRules or {@code null} for none + */ + public ForwardingRule setChildForwardingRules(java.util.List childForwardingRules) { + this.childForwardingRules = childForwardingRules; + return this; + } + /** * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none @@ -1374,6 +1654,29 @@ public ForwardingRule setNoAutomateDnsZone(java.lang.Boolean noAutomateDnsZone) return this; } + /** + * Output only. [Output Only] The resource URL for the parent forwarding rule. + * + * Applicable only to the child forwarding rules of global external passthrough load balancers. + * This field contains the URL of the parent forwarding rule. + * @return value or {@code null} for none + */ + public java.lang.String getParentForwardingRule() { + return parentForwardingRule; + } + + /** + * Output only. [Output Only] The resource URL for the parent forwarding rule. + * + * Applicable only to the child forwarding rules of global external passthrough load balancers. + * This field contains the URL of the parent forwarding rule. + * @param parentForwardingRule parentForwardingRule or {@code null} for none + */ + public ForwardingRule setParentForwardingRule(java.lang.String parentForwardingRule) { + this.parentForwardingRule = parentForwardingRule; + return this; + } + /** * The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to * ports in the specified range will be forwarded to the backends configured with this forwarding diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java index a5a8eadb258..c8f7ae8c19d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java @@ -48,6 +48,14 @@ public final class HttpRouteAction extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private CorsPolicy corsPolicy; + /** + * Dynamic compression policy for this URL Map's route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DynamicCompressionPolicy dynamicCompressionPolicy; + /** * The specification for fault injection introduced into traffic to test the resiliency of clients * to backend service failure. As part of fault injection, when clients send requests to a backend @@ -63,6 +71,15 @@ public final class HttpRouteAction extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private HttpFaultInjection faultInjectionPolicy; + /** + * Image optimization policy for this URL Map's route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend + * bucket serving the route, or cache policy must be configured on the same route + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ImageOptimizationPolicy imageOptimizationPolicy; + /** * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout * field where the timeout duration starts from the time the request has been fully processed @@ -186,6 +203,25 @@ public HttpRouteAction setCorsPolicy(CorsPolicy corsPolicy) { return this; } + /** + * Dynamic compression policy for this URL Map's route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. + * @return value or {@code null} for none + */ + public DynamicCompressionPolicy getDynamicCompressionPolicy() { + return dynamicCompressionPolicy; + } + + /** + * Dynamic compression policy for this URL Map's route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. + * @param dynamicCompressionPolicy dynamicCompressionPolicy or {@code null} for none + */ + public HttpRouteAction setDynamicCompressionPolicy(DynamicCompressionPolicy dynamicCompressionPolicy) { + this.dynamicCompressionPolicy = dynamicCompressionPolicy; + return this; + } + /** * The specification for fault injection introduced into traffic to test the resiliency of clients * to backend service failure. As part of fault injection, when clients send requests to a backend @@ -219,6 +255,27 @@ public HttpRouteAction setFaultInjectionPolicy(HttpFaultInjection faultInjection return this; } + /** + * Image optimization policy for this URL Map's route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend + * bucket serving the route, or cache policy must be configured on the same route + * @return value or {@code null} for none + */ + public ImageOptimizationPolicy getImageOptimizationPolicy() { + return imageOptimizationPolicy; + } + + /** + * Image optimization policy for this URL Map's route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend + * bucket serving the route, or cache policy must be configured on the same route + * @param imageOptimizationPolicy imageOptimizationPolicy or {@code null} for none + */ + public HttpRouteAction setImageOptimizationPolicy(ImageOptimizationPolicy imageOptimizationPolicy) { + this.imageOptimizationPolicy = imageOptimizationPolicy; + return this; + } + /** * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout * field where the timeout duration starts from the time the request has been fully processed diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java new file mode 100644 index 00000000000..4f942439b3b --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The configuration for Cloud CDN's image optimization feature. This feature dynamically processes + * and delivers images from the network edge. Image Optimization is only available for Global + * External Application Load Balancers. Either Cloud CDN must be enabled on the backend service or + * backend bucket serving the route, or cache policy must be configured on the same route. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImageOptimizationPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether to interpret query parameters for image optimization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String queryParameterInterpretation; + + /** + * Specifies whether to interpret query parameters for image optimization. + * @return value or {@code null} for none + */ + public java.lang.String getQueryParameterInterpretation() { + return queryParameterInterpretation; + } + + /** + * Specifies whether to interpret query parameters for image optimization. + * @param queryParameterInterpretation queryParameterInterpretation or {@code null} for none + */ + public ImageOptimizationPolicy setQueryParameterInterpretation(java.lang.String queryParameterInterpretation) { + this.queryParameterInterpretation = queryParameterInterpretation; + return this; + } + + @Override + public ImageOptimizationPolicy set(String fieldName, Object value) { + return (ImageOptimizationPolicy) super.set(fieldName, value); + } + + @Override + public ImageOptimizationPolicy clone() { + return (ImageOptimizationPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageParams.java index 1a76348a584..51b0c37dab3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageParams.java @@ -29,6 +29,22 @@ @SuppressWarnings("javadoc") public final class MachineImageParams extends com.google.api.client.json.GenericJson { + /** + * Input only. Specifies the list of disk device names that must be excluded from the new machine + * image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludedDisks; + + /** + * Input only. Specifies the list of disk device names that must be included with the new machine + * image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List includedDisks; + /** * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have * the same definition as resource manager tags. Keys and values can be either in numeric format, @@ -40,6 +56,44 @@ public final class MachineImageParams extends com.google.api.client.json.Generic @com.google.api.client.util.Key private java.util.Map resourceManagerTags; + /** + * Input only. Specifies the list of disk device names that must be excluded from the new machine + * image. + * @return value or {@code null} for none + */ + public java.util.List getExcludedDisks() { + return excludedDisks; + } + + /** + * Input only. Specifies the list of disk device names that must be excluded from the new machine + * image. + * @param excludedDisks excludedDisks or {@code null} for none + */ + public MachineImageParams setExcludedDisks(java.util.List excludedDisks) { + this.excludedDisks = excludedDisks; + return this; + } + + /** + * Input only. Specifies the list of disk device names that must be included with the new machine + * image. + * @return value or {@code null} for none + */ + public java.util.List getIncludedDisks() { + return includedDisks; + } + + /** + * Input only. Specifies the list of disk device names that must be included with the new machine + * image. + * @param includedDisks includedDisks or {@code null} for none + */ + public MachineImageParams setIncludedDisks(java.util.List includedDisks) { + this.includedDisks = includedDisks; + return this; + } + /** * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have * the same definition as resource manager tags. Keys and values can be either in numeric format, diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java index b381067197e..9d9eef57e70 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java @@ -41,6 +41,13 @@ public final class Network extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key("IPv4Range") private java.lang.String iPv4Range; + /** + * Output only. [Output Only] Additional tags for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List additionalTags; + /** * Must be set to create a VPC network. If not set, a legacy network is created. * @@ -222,6 +229,23 @@ public Network setIPv4Range(java.lang.String iPv4Range) { return this; } + /** + * Output only. [Output Only] Additional tags for this resource. + * @return value or {@code null} for none + */ + public java.util.List getAdditionalTags() { + return additionalTags; + } + + /** + * Output only. [Output Only] Additional tags for this resource. + * @param additionalTags additionalTags or {@code null} for none + */ + public Network setAdditionalTags(java.util.List additionalTags) { + this.additionalTags = additionalTags; + return this; + } + /** * Must be set to create a VPC network. If not set, a legacy network is created. * diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java index 4894fc07886..5f5d1d4bf2f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefix.java @@ -152,6 +152,29 @@ public final class PublicDelegatedPrefix extends com.google.api.client.json.Gene @com.google.api.client.util.Key private java.util.List publicDelegatedSubPrefixs; + /** + * Immutable. The purpose of the public delegated prefix. + * + * This field can only be set for the top-level global public delegated prefix. It is an output- + * only field for the sub-delegates that inherit the value from the top-level global public + * delegated prefix. Once the value is set, it cannot be changed. + * + * The field cannot be set for regional public delegated prefixes. + * + * The supported values are: - APPLICATION_AND_PROXY_LOAD_BALANCERS: The global + * public delegated prefix can only be used by Global External Application and Proxy + * Load Balancers to allocate addresses for forwarding rules. This is the default value. + * - PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0: The global public delegated prefix can + * only be used by Global External Passthrough Network Load Balancers to allocate + * Availability Group 0 addresses for forwarding rules. - + * PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1: The global public delegated prefix can only + * be used by Global External Passthrough Network Load Balancers to allocate Availability + * Group 1 addresses for forwarding rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String purpose; + /** * Output only. [Output Only] URL of the region where the public delegated prefix resides. This * field applies only to the region resource. You must specify this field as part of the HTTP @@ -503,6 +526,55 @@ public PublicDelegatedPrefix setPublicDelegatedSubPrefixs(java.util.List getSslCertificates() { @@ -695,8 +695,8 @@ public java.util.List getSslCertificates() { * * Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis * .com/projects/{project}/locations/{location}/certificates/{resourceName}. - https://certific - * atemanager.googleapis.com/v1alpha1/projects/{project}/locations/{location}/certificates/{resour - * ceName}. + * atemanager.{universeDomain}/v1alpha1/projects/{project}/locations/{location}/certificates/{reso + * urceName}. * @param sslCertificates sslCertificates or {@code null} for none */ public TargetHttpsProxy setSslCertificates(java.util.List sslCertificates) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java index 513196be314..1fb3e267343 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java @@ -242,6 +242,13 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String selfLink; + /** + * Output only. [Output Only] The status of the URL map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UrlMapStatus status; + /** * The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test * cases pass. You can specify a maximum of 100 tests per UrlMap. @@ -686,6 +693,23 @@ public UrlMap setSelfLink(java.lang.String selfLink) { return this; } + /** + * Output only. [Output Only] The status of the URL map. + * @return value or {@code null} for none + */ + public UrlMapStatus getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of the URL map. + * @param status status or {@code null} for none + */ + public UrlMap setStatus(UrlMapStatus status) { + this.status = status; + return this; + } + /** * The list of expected URL mapping tests. Request to update theUrlMap succeeds only if all test * cases pass. You can specify a maximum of 100 tests per UrlMap. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapQuotaUsage.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapQuotaUsage.java new file mode 100644 index 00000000000..11e5b7ec585 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapQuotaUsage.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Message representing the quota usage for a UrlMap. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class UrlMapQuotaUsage extends com.google.api.client.json.GenericJson { + + /** + * Output only. The number of forwarding rules that uses this UrlMap. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer forwardingRules; + + /** + * Output only. The number of quota units calculated for this UrlMap. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long units; + + /** + * Output only. The number of forwarding rules that uses this UrlMap. + * @return value or {@code null} for none + */ + public java.lang.Integer getForwardingRules() { + return forwardingRules; + } + + /** + * Output only. The number of forwarding rules that uses this UrlMap. + * @param forwardingRules forwardingRules or {@code null} for none + */ + public UrlMapQuotaUsage setForwardingRules(java.lang.Integer forwardingRules) { + this.forwardingRules = forwardingRules; + return this; + } + + /** + * Output only. The number of quota units calculated for this UrlMap. + * @return value or {@code null} for none + */ + public java.lang.Long getUnits() { + return units; + } + + /** + * Output only. The number of quota units calculated for this UrlMap. + * @param units units or {@code null} for none + */ + public UrlMapQuotaUsage setUnits(java.lang.Long units) { + this.units = units; + return this; + } + + @Override + public UrlMapQuotaUsage set(String fieldName, Object value) { + return (UrlMapQuotaUsage) super.set(fieldName, value); + } + + @Override + public UrlMapQuotaUsage clone() { + return (UrlMapQuotaUsage) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapStatus.java new file mode 100644 index 00000000000..4faa6477b7a --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapStatus.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * [Output Only] The status of the URL map. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class UrlMapStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. Summary of quota usage for given UrlMap. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UrlMapQuotaUsage quotaUsage; + + /** + * Output only. Summary of quota usage for given UrlMap. + * @return value or {@code null} for none + */ + public UrlMapQuotaUsage getQuotaUsage() { + return quotaUsage; + } + + /** + * Output only. Summary of quota usage for given UrlMap. + * @param quotaUsage quotaUsage or {@code null} for none + */ + public UrlMapStatus setQuotaUsage(UrlMapQuotaUsage quotaUsage) { + this.quotaUsage = quotaUsage; + return this; + } + + @Override + public UrlMapStatus set(String fieldName, Object value) { + return (UrlMapStatus) super.set(fieldName, value); + } + + @Override + public UrlMapStatus clone() { + return (UrlMapStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapValidationResult.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapValidationResult.java index 343efc87390..a26f9878fe0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapValidationResult.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapValidationResult.java @@ -43,6 +43,13 @@ public final class UrlMapValidationResult extends com.google.api.client.json.Gen @com.google.api.client.util.Key private java.lang.Boolean loadSucceeded; + /** + * Output only. Summary of quota usage for given UrlMap. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private UrlMapQuotaUsage quotaUsage; + /** * The value may be {@code null}. */ @@ -97,6 +104,23 @@ public UrlMapValidationResult setLoadSucceeded(java.lang.Boolean loadSucceeded) return this; } + /** + * Output only. Summary of quota usage for given UrlMap. + * @return value or {@code null} for none + */ + public UrlMapQuotaUsage getQuotaUsage() { + return quotaUsage; + } + + /** + * Output only. Summary of quota usage for given UrlMap. + * @param quotaUsage quotaUsage or {@code null} for none + */ + public UrlMapValidationResult setQuotaUsage(UrlMapQuotaUsage quotaUsage) { + this.quotaUsage = quotaUsage; + return this; + } + /** * @return value or {@code null} for none */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireProperties.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireProperties.java index 8f1bcb62c4f..b3fc6f4e6b9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireProperties.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireProperties.java @@ -59,6 +59,13 @@ public final class WireProperties extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String faultResponse; + /** + * The flow management configuration for the wire. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String flowManagement; + /** * The configuration of the bandwidth allocation, one of the following: - * ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated @@ -128,6 +135,23 @@ public WireProperties setFaultResponse(java.lang.String faultResponse) { return this; } + /** + * The flow management configuration for the wire. + * @return value or {@code null} for none + */ + public java.lang.String getFlowManagement() { + return flowManagement; + } + + /** + * The flow management configuration for the wire. + * @param flowManagement flowManagement or {@code null} for none + */ + public WireProperties setFlowManagement(java.lang.String flowManagement) { + this.flowManagement = flowManagement; + return this; + } + @Override public WireProperties set(String fieldName, Object value) { return (WireProperties) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java index 7332c3016cf..337173ec1d3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java @@ -41,6 +41,12 @@ public final class WorkloadIdentityConfig extends com.google.api.client.json.Gen @com.google.api.client.util.Key private java.lang.Boolean identityCertificateEnabled; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String identityType; + /** * @return value or {@code null} for none */ @@ -71,6 +77,21 @@ public WorkloadIdentityConfig setIdentityCertificateEnabled(java.lang.Boolean id return this; } + /** + * @return value or {@code null} for none + */ + public java.lang.String getIdentityType() { + return identityType; + } + + /** + * @param identityType identityType or {@code null} for none + */ + public WorkloadIdentityConfig setIdentityType(java.lang.String identityType) { + this.identityType = identityType; + return this; + } + @Override public WorkloadIdentityConfig set(String fieldName, Object value) { return (WorkloadIdentityConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/v1/2.0.0/pom.xml b/clients/google-api-services-compute/v1/2.0.0/pom.xml index 1ecf3c97a27..0b008056a75 100644 --- a/clients/google-api-services-compute/v1/2.0.0/pom.xml +++ b/clients/google-api-services-compute/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - v1-rev20261016-2.9.2 - Compute Engine API v1-rev20261016-2.9.2 + v1-rev20261026-2.9.2 + Compute Engine API v1-rev20261026-2.9.2 jar 2011 diff --git a/clients/google-api-services-compute/v1/README.md b/clients/google-api-services-compute/v1/README.md index 2480b428358..50b4705aa74 100644 --- a/clients/google-api-services-compute/v1/README.md +++ b/clients/google-api-services-compute/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - v1-rev20261016-2.9.2 + v1-rev20261026-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20261016-2.9.2' + implementation 'com.google.apis:google-api-services-compute:v1-rev20261026-2.9.2' } ```