diff --git a/clients/google-api-services-compute/alpha/2.0.0/README.md b/clients/google-api-services-compute/alpha/2.0.0/README.md index 2e2945fb1d2..7008a900fc6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/README.md +++ b/clients/google-api-services-compute/alpha/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 - alpha-rev20260908-2.0.0 + alpha-rev20260910-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260908-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260910-2.0.0' } ``` diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java index def107a98d2..7677011ce0a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java @@ -34071,7 +34071,7 @@ public Get set(String parameterName, Object value) { * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. * * @param folder Folder ID for this request. - * @param extensionName + * @param extensionName Required. Name of the VM extension for this request. * @return the request */ public GetVmExtension getVmExtension(java.lang.String folder, java.lang.String extensionName) throws java.io.IOException { @@ -34099,7 +34099,7 @@ public class GetVmExtension extends ComputeRequest * * @param folder Folder ID for this request. - * @param extensionName + * @param extensionName Required. Name of the VM extension for this request. * @since 1.13 */ protected GetVmExtension(java.lang.String folder, java.lang.String extensionName) { @@ -34204,16 +34204,17 @@ public GetVmExtension setFolder(java.lang.String folder) { return this; } + /** Required. Name of the VM extension for this request. */ @com.google.api.client.util.Key private java.lang.String extensionName; - /** - + /** Required. Name of the VM extension for this request. */ public java.lang.String getExtensionName() { return extensionName; } + /** Required. Name of the VM extension for this request. */ public GetVmExtension setExtensionName(java.lang.String extensionName) { this.extensionName = extensionName; return this; @@ -35899,7 +35900,7 @@ public Get set(String parameterName, Object value) { * * @param folder Folder ID for this request. * @param zone Name of the zone for this request. - * @param extensionName + * @param extensionName Required. Name of the VM extension for this request. * @return the request */ public GetVmExtension getVmExtension(java.lang.String folder, java.lang.String zone, java.lang.String extensionName) throws java.io.IOException { @@ -35934,7 +35935,7 @@ public class GetVmExtension extends ComputeRequest * - * @param project + * @param project Required. Project ID for this request. * @since 1.13 */ protected Get(java.lang.String project) { @@ -46251,16 +46253,17 @@ public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } + /** Required. Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** - + /** Required. Project ID for this request. */ public java.lang.String getProject() { return project; } + /** Required. Project ID for this request. */ public Get setProject(java.lang.String project) { this.project = project; return this; @@ -46279,7 +46282,7 @@ public Get set(String parameterName, Object value) { * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param project + * @param project Required. Project ID for this request. * @param content the {@link com.google.api.services.compute.model.GlobalFrontendSettings} * @return the request */ @@ -46303,7 +46306,7 @@ public class Patch extends ComputeRequest * - * @param project + * @param project Required. Project ID for this request. * @param content the {@link com.google.api.services.compute.model.GlobalFrontendSettings} * @since 1.13 */ @@ -46372,47 +46375,49 @@ public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } + /** Required. Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** - + /** Required. Project ID for this request. */ public java.lang.String getProject() { return project; } + /** Required. Project ID for this request. */ public Patch setProject(java.lang.String project) { this.project = project; return this; } + /** An optional request ID to identify requests. */ @com.google.api.client.util.Key private java.lang.String requestId; - /** - + /** An optional request ID to identify requests. */ public java.lang.String getRequestId() { return requestId; } + /** An optional request ID to identify requests. */ public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** e.g., "type" */ + /** Field mask to support patch. E.g., "type". */ @com.google.api.client.util.Key private String updateMask; - /** e.g., "type" + /** Field mask to support patch. E.g., "type". */ public String getUpdateMask() { return updateMask; } - /** e.g., "type" */ + /** Field mask to support patch. E.g., "type". */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; return this; @@ -52574,7 +52579,7 @@ public Get set(String parameterName, Object value) { * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param extensionName + * @param extensionName Required. Name of the VM extension for this request. * @return the request */ public GetVmExtension getVmExtension(java.lang.String project, java.lang.String extensionName) throws java.io.IOException { @@ -52602,7 +52607,7 @@ public class GetVmExtension extends ComputeRequest * * @param project Project ID for this request. - * @param extensionName + * @param extensionName Required. Name of the VM extension for this request. * @since 1.13 */ protected GetVmExtension(java.lang.String project, java.lang.String extensionName) { @@ -52707,16 +52712,17 @@ public GetVmExtension setProject(java.lang.String project) { return this; } + /** Required. Name of the VM extension for this request. */ @com.google.api.client.util.Key private java.lang.String extensionName; - /** - + /** Required. Name of the VM extension for this request. */ public java.lang.String getExtensionName() { return extensionName; } + /** Required. Name of the VM extension for this request. */ public GetVmExtension setExtensionName(java.lang.String extensionName) { this.extensionName = extensionName; return this; @@ -142899,7 +142905,7 @@ public Get set(String parameterName, Object value) { * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. * * @param organization Organization ID for this request. - * @param extensionName + * @param extensionName Required. Name of the VM extension for this request. * @return the request */ public GetVmExtension getVmExtension(java.lang.String organization, java.lang.String extensionName) throws java.io.IOException { @@ -142927,7 +142933,7 @@ public class GetVmExtension extends ComputeRequest * * @param organization Organization ID for this request. - * @param extensionName + * @param extensionName Required. Name of the VM extension for this request. * @since 1.13 */ protected GetVmExtension(java.lang.String organization, java.lang.String extensionName) { @@ -143032,16 +143038,17 @@ public GetVmExtension setOrganization(java.lang.String organization) { return this; } + /** Required. Name of the VM extension for this request. */ @com.google.api.client.util.Key private java.lang.String extensionName; - /** - + /** Required. Name of the VM extension for this request. */ public java.lang.String getExtensionName() { return extensionName; } + /** Required. Name of the VM extension for this request. */ public GetVmExtension setExtensionName(java.lang.String extensionName) { this.extensionName = extensionName; return this; @@ -151103,7 +151110,7 @@ public Get set(String parameterName, Object value) { * * @param organization Organization ID for this request. * @param zone Name of the zone for this request. - * @param extensionName + * @param extensionName Required. Name of the VM extension for this request. * @return the request */ public GetVmExtension getVmExtension(java.lang.String organization, java.lang.String zone, java.lang.String extensionName) throws java.io.IOException { @@ -151138,7 +151145,7 @@ public class GetVmExtension extends ComputeRequest machineTypes; + /** + * Optional. Rank when prioritizing the shape flexibilities. The instance selections are + * considered in the ascending order of the rank. If not set, defaults to 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long rank; + /** * Local SSDs. * @return value or {@code null} for none @@ -107,6 +115,25 @@ public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection setMachin return this; } + /** + * Optional. Rank when prioritizing the shape flexibilities. The instance selections are + * considered in the ascending order of the rank. If not set, defaults to 0. + * @return value or {@code null} for none + */ + public java.lang.Long getRank() { + return rank; + } + + /** + * Optional. Rank when prioritizing the shape flexibilities. The instance selections are + * considered in the ascending order of the rank. If not set, defaults to 0. + * @param rank rank or {@code null} for none + */ + public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection setRank(java.lang.Long rank) { + this.rank = rank; + return this; + } + @Override public CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection set(String fieldName, Object value) { return (CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java index 816d1026b25..e0d988bc989 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstanceProperties.java @@ -29,6 +29,26 @@ @SuppressWarnings("javadoc") public final class CapacityHistoryRequestInstanceProperties extends com.google.api.client.json.GenericJson { + /** + * Local SSDs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List disks; + + /** + * Accelerators configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guestAccelerators; + + static { + // hack to force ProGuard to consider AcceleratorConfig used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AcceleratorConfig.class); + } + /** * The machine type for the VM, such as `n2-standard-4`. * The value may be {@code null}. @@ -43,6 +63,40 @@ public final class CapacityHistoryRequestInstanceProperties extends com.google.a @com.google.api.client.util.Key private CapacityHistoryRequestInstancePropertiesScheduling scheduling; + /** + * Local SSDs. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * Local SSDs. + * @param disks disks or {@code null} for none + */ + public CapacityHistoryRequestInstanceProperties setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + + /** + * Accelerators configuration. + * @return value or {@code null} for none + */ + public java.util.List getGuestAccelerators() { + return guestAccelerators; + } + + /** + * Accelerators configuration. + * @param guestAccelerators guestAccelerators or {@code null} for none + */ + public CapacityHistoryRequestInstanceProperties setGuestAccelerators(java.util.List guestAccelerators) { + this.guestAccelerators = guestAccelerators; + return this; + } + /** * The machine type for the VM, such as `n2-standard-4`. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.java new file mode 100644 index 00000000000..74fbe9dc7e3 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityHistoryRequestInstancePropertiesAttachedDisk.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; + +/** + * AttachedDisk modeled after Instance's AttachedDisk. + * + *

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 CapacityHistoryRequestInstancePropertiesAttachedDisk extends com.google.api.client.json.GenericJson { + + /** + * Specifies the type of the disk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Specifies the type of the disk. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Specifies the type of the disk. + * @param type type or {@code null} for none + */ + public CapacityHistoryRequestInstancePropertiesAttachedDisk setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public CapacityHistoryRequestInstancePropertiesAttachedDisk set(String fieldName, Object value) { + return (CapacityHistoryRequestInstancePropertiesAttachedDisk) super.set(fieldName, value); + } + + @Override + public CapacityHistoryRequestInstancePropertiesAttachedDisk clone() { + return (CapacityHistoryRequestInstancePropertiesAttachedDisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java index 3770492c7ae..0545a3a3f0b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java @@ -29,6 +29,15 @@ @SuppressWarnings("javadoc") public final class DistributionPolicyZoneConfiguration extends com.google.api.client.json.GenericJson { + /** + * Optional. The maximum size of the group in this zone. This value can be either a fixed number + * or, a percentage. If you set a percentage, the number of instances is rounded up if necessary. + * If unset, it is interpreted as unbounded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FixedOrPercent maxSize; + /** * The URL of thezone. The zone must exist in the region where the managed instance group is * located. @@ -37,6 +46,27 @@ public final class DistributionPolicyZoneConfiguration extends com.google.api.cl @com.google.api.client.util.Key private java.lang.String zone; + /** + * Optional. The maximum size of the group in this zone. This value can be either a fixed number + * or, a percentage. If you set a percentage, the number of instances is rounded up if necessary. + * If unset, it is interpreted as unbounded. + * @return value or {@code null} for none + */ + public FixedOrPercent getMaxSize() { + return maxSize; + } + + /** + * Optional. The maximum size of the group in this zone. This value can be either a fixed number + * or, a percentage. If you set a percentage, the number of instances is rounded up if necessary. + * If unset, it is interpreted as unbounded. + * @param maxSize maxSize or {@code null} for none + */ + public DistributionPolicyZoneConfiguration setMaxSize(FixedOrPercent maxSize) { + this.maxSize = maxSize; + return this; + } + /** * The URL of thezone. The zone must exist in the region where the managed instance group is * located. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java index a4aa758e551..928b7b4c766 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java @@ -51,7 +51,7 @@ public final class GlobalFrontendSettings extends com.google.api.client.json.Gen private java.lang.String description; /** - * Output only. For optimistic locking + * Output only. For optimistic locking. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -134,7 +134,7 @@ public GlobalFrontendSettings setDescription(java.lang.String description) { } /** - * Output only. For optimistic locking + * Output only. For optimistic locking. * @return value or {@code null} for none */ public java.lang.String getEtag() { @@ -142,7 +142,7 @@ public java.lang.String getEtag() { } /** - * Output only. For optimistic locking + * Output only. For optimistic locking. * @param etag etag or {@code null} for none */ public GlobalFrontendSettings setEtag(java.lang.String etag) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java index c705fc09559..a6395508124 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java @@ -30,12 +30,14 @@ public final class GlobalFrontendSettingsPatchResponse extends com.google.api.client.json.GenericJson { /** + * The Operation resource for this long-running operation. * The value may be {@code null}. */ @com.google.api.client.util.Key private Operation operation; /** + * The Operation resource for this long-running operation. * @return value or {@code null} for none */ public Operation getOperation() { @@ -43,6 +45,7 @@ public Operation getOperation() { } /** + * The Operation resource for this long-running operation. * @param operation operation or {@code null} for none */ public GlobalFrontendSettingsPatchResponse setOperation(Operation operation) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageView.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageView.java index 02f8c290b50..1c0dcd77264 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageView.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageView.java @@ -30,12 +30,14 @@ public final class ImageView extends com.google.api.client.json.GenericJson { /** + * The Image resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private Image image; /** + * The Image resource. * @return value or {@code null} for none */ public Image getImage() { @@ -43,6 +45,7 @@ public Image getImage() { } /** + * The Image resource. * @param image image or {@code null} for none */ public ImageView setImage(Image image) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java index 974dfd7d442..0dcadac911d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java @@ -30,6 +30,7 @@ public final class ImageViewsListResponse extends com.google.api.client.json.GenericJson { /** + * Etag of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,6 +90,7 @@ public final class ImageViewsListResponse extends com.google.api.client.json.Gen private Warning warning; /** + * Etag of the resource. * @return value or {@code null} for none */ public java.lang.String getEtag() { @@ -96,6 +98,7 @@ public java.lang.String getEtag() { } /** + * Etag of the resource. * @param etag etag or {@code null} for none */ public ImageViewsListResponse setEtag(java.lang.String etag) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java index d93fe86675c..906d6ee606f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class InstanceGroupManagerInstanceFlexibilityPolicy extends com.google.api.client.json.GenericJson { + /** + * Constraints applied to instance flexibility spreading and selection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerInstanceFlexibilityPolicyConstraints constraints; + /** * Named instance selections configuring properties that the group will use when creating new VMs. * The value may be {@code null}. @@ -50,6 +57,23 @@ public final class InstanceGroupManagerInstanceFlexibilityPolicy extends com.goo @com.google.api.client.util.Key private InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix provisioningModelMix; + /** + * Constraints applied to instance flexibility spreading and selection. + * @return value or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicyConstraints getConstraints() { + return constraints; + } + + /** + * Constraints applied to instance flexibility spreading and selection. + * @param constraints constraints or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicy setConstraints(InstanceGroupManagerInstanceFlexibilityPolicyConstraints constraints) { + this.constraints = constraints; + return this; + } + /** * Named instance selections configuring properties that the group will use when creating new VMs. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyConstraints.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyConstraints.java new file mode 100644 index 00000000000..730d51622c3 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyConstraints.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; + +/** + * Constraints applied to instance flexibility spreading and selection. + * + *

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 InstanceGroupManagerInstanceFlexibilityPolicyConstraints extends com.google.api.client.json.GenericJson { + + /** + * When set to true, all instances in the group will be provisioned with the exact same machine + * type, ensuring cluster homogeneity across zones. Defaults to false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean singleMachineType; + + /** + * When set to true, all instances in the group will be provisioned with the exact same machine + * type, ensuring cluster homogeneity across zones. Defaults to false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSingleMachineType() { + return singleMachineType; + } + + /** + * When set to true, all instances in the group will be provisioned with the exact same machine + * type, ensuring cluster homogeneity across zones. Defaults to false. + * @param singleMachineType singleMachineType or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicyConstraints setSingleMachineType(java.lang.Boolean singleMachineType) { + this.singleMachineType = singleMachineType; + return this; + } + + @Override + public InstanceGroupManagerInstanceFlexibilityPolicyConstraints set(String fieldName, Object value) { + return (InstanceGroupManagerInstanceFlexibilityPolicyConstraints) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerInstanceFlexibilityPolicyConstraints clone() { + return (InstanceGroupManagerInstanceFlexibilityPolicyConstraints) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java index 57ad7fc78e6..7ab51432212 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java @@ -36,6 +36,7 @@ public final class ManagedRulesetList extends com.google.api.client.json.Generic private java.lang.String id; /** + * The list of managed rulesets. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,6 +76,7 @@ public ManagedRulesetList setId(java.lang.String id) { } /** + * The list of managed rulesets. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -82,6 +84,7 @@ public java.util.List getItems() { } /** + * The list of managed rulesets. * @param items items or {@code null} for none */ public ManagedRulesetList setItems(java.util.List items) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/pom.xml b/clients/google-api-services-compute/alpha/2.0.0/pom.xml index 9f2a574f6b2..aca6be31376 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/pom.xml +++ b/clients/google-api-services-compute/alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - alpha-rev20260908-2.0.0 - Compute Engine API alpha-rev20260908-2.0.0 + alpha-rev20260910-2.0.0 + Compute Engine API alpha-rev20260910-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/alpha/README.md b/clients/google-api-services-compute/alpha/README.md index 2e2945fb1d2..7008a900fc6 100644 --- a/clients/google-api-services-compute/alpha/README.md +++ b/clients/google-api-services-compute/alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - alpha-rev20260908-2.0.0 + alpha-rev20260910-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260908-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260910-2.0.0' } ``` diff --git a/clients/google-api-services-compute/beta/2.0.0/README.md b/clients/google-api-services-compute/beta/2.0.0/README.md index a7042943817..f98a2ca6f62 100644 --- a/clients/google-api-services-compute/beta/2.0.0/README.md +++ b/clients/google-api-services-compute/beta/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 - beta-rev20260908-2.0.0 + beta-rev20260910-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260908-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260910-2.0.0' } ``` diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java index 744b341f070..9e2d1d652d8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java @@ -38902,7 +38902,7 @@ public class GlobalFrontendSettings { * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param project + * @param project Required. Project ID for this request. * @return the request */ public Get get(java.lang.String project) throws java.io.IOException { @@ -38925,7 +38925,7 @@ public class Get extends ComputeRequest * - * @param project + * @param project Required. Project ID for this request. * @since 1.13 */ protected Get(java.lang.String project) { @@ -39003,16 +39003,17 @@ public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } + /** Required. Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** - + /** Required. Project ID for this request. */ public java.lang.String getProject() { return project; } + /** Required. Project ID for this request. */ public Get setProject(java.lang.String project) { this.project = project; return this; @@ -39031,7 +39032,7 @@ public Get set(String parameterName, Object value) { * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param project + * @param project Required. Project ID for this request. * @param content the {@link com.google.api.services.compute.model.GlobalFrontendSettings} * @return the request */ @@ -39055,7 +39056,7 @@ public class Patch extends ComputeRequest * - * @param project + * @param project Required. Project ID for this request. * @param content the {@link com.google.api.services.compute.model.GlobalFrontendSettings} * @since 1.13 */ @@ -39124,47 +39125,49 @@ public Patch setUserIp(java.lang.String userIp) { return (Patch) super.setUserIp(userIp); } + /** Required. Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** - + /** Required. Project ID for this request. */ public java.lang.String getProject() { return project; } + /** Required. Project ID for this request. */ public Patch setProject(java.lang.String project) { this.project = project; return this; } + /** An optional request ID to identify requests. */ @com.google.api.client.util.Key private java.lang.String requestId; - /** - + /** An optional request ID to identify requests. */ public java.lang.String getRequestId() { return requestId; } + /** An optional request ID to identify requests. */ public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** e.g., "type" */ + /** Field mask to support patch. E.g., "type". */ @com.google.api.client.util.Key private String updateMask; - /** e.g., "type" + /** Field mask to support patch. E.g., "type". */ public String getUpdateMask() { return updateMask; } - /** e.g., "type" */ + /** Field mask to support patch. E.g., "type". */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; return this; @@ -52811,6 +52814,445 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } + /** + * Returns a list of global ImageView resources, with a regional context. + * + * Create a request for the method "imageViews.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Required. Project ID for this request. + * @param region Required. Name of the region for this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/imageViews"; + + 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])?"); + + /** + * Returns a list of global ImageView resources, with a regional context. + * + * Create a request for the method "imageViews.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param project Required. Project ID for this request. + * @param region Required. Name of the region for this request. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageViewsListResponse.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])?"); + } + } + + @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Required. Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Required. Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Required. Project ID for this request. */ + public List 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; + } + + /** Required. Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Required. Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Required. Name of the region for this request. */ + public List 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; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } } @@ -235794,6 +236236,32 @@ public Delete setRouter(java.lang.String router) { return this; } + /** + * ETag for optimistic concurrency control as described by AIP 154. Used to prevent + * conflicting updates. If provided, the request will succeed only if the etag matches the + * current etag of the router; otherwise, the request fails with an ABORTED error. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** ETag for optimistic concurrency control as described by AIP 154. Used to prevent conflicting + updates. If provided, the request will succeed only if the etag matches the current etag of the + router; otherwise, the request fails with an ABORTED error. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * ETag for optimistic concurrency control as described by AIP 154. Used to prevent + * conflicting updates. If provided, the request will succeed only if the etag matches the + * current etag of the router; otherwise, the request fails with an ABORTED error. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java index 25df3e9b811..cb23dd5a6fa 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java +++ b/clients/google-api-services-compute/beta/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. * The value may be {@code null}. @@ -50,12 +70,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. * @@ -87,6 +140,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. * @return value or {@code null} for none @@ -104,6 +178,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/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java index 3770492c7ae..0545a3a3f0b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicyZoneConfiguration.java @@ -29,6 +29,15 @@ @SuppressWarnings("javadoc") public final class DistributionPolicyZoneConfiguration extends com.google.api.client.json.GenericJson { + /** + * Optional. The maximum size of the group in this zone. This value can be either a fixed number + * or, a percentage. If you set a percentage, the number of instances is rounded up if necessary. + * If unset, it is interpreted as unbounded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FixedOrPercent maxSize; + /** * The URL of thezone. The zone must exist in the region where the managed instance group is * located. @@ -37,6 +46,27 @@ public final class DistributionPolicyZoneConfiguration extends com.google.api.cl @com.google.api.client.util.Key private java.lang.String zone; + /** + * Optional. The maximum size of the group in this zone. This value can be either a fixed number + * or, a percentage. If you set a percentage, the number of instances is rounded up if necessary. + * If unset, it is interpreted as unbounded. + * @return value or {@code null} for none + */ + public FixedOrPercent getMaxSize() { + return maxSize; + } + + /** + * Optional. The maximum size of the group in this zone. This value can be either a fixed number + * or, a percentage. If you set a percentage, the number of instances is rounded up if necessary. + * If unset, it is interpreted as unbounded. + * @param maxSize maxSize or {@code null} for none + */ + public DistributionPolicyZoneConfiguration setMaxSize(FixedOrPercent maxSize) { + this.maxSize = maxSize; + return this; + } + /** * The URL of thezone. The zone must exist in the region where the managed instance group is * located. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java index 9b98b808a98..f13ba243b3a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -73,6 +73,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key private java.lang.Boolean autoDeleteAutoCreatedReservations; + /** + * Full or partial URL of an existing future reservation to indicate intent for reserving capacity + * in the same cluster as the colocation resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String colocationResource; + /** * If not present, then FR will not deliver a new commitment or update an existing commitment. * The value may be {@code null}. @@ -374,6 +382,25 @@ public FutureReservation setAutoDeleteAutoCreatedReservations(java.lang.Boolean return this; } + /** + * Full or partial URL of an existing future reservation to indicate intent for reserving capacity + * in the same cluster as the colocation resource. + * @return value or {@code null} for none + */ + public java.lang.String getColocationResource() { + return colocationResource; + } + + /** + * Full or partial URL of an existing future reservation to indicate intent for reserving capacity + * in the same cluster as the colocation resource. + * @param colocationResource colocationResource or {@code null} for none + */ + public FutureReservation setColocationResource(java.lang.String colocationResource) { + this.colocationResource = colocationResource; + return this; + } + /** * If not present, then FR will not deliver a new commitment or update an existing commitment. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java index a4aa758e551..928b7b4c766 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java @@ -51,7 +51,7 @@ public final class GlobalFrontendSettings extends com.google.api.client.json.Gen private java.lang.String description; /** - * Output only. For optimistic locking + * Output only. For optimistic locking. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -134,7 +134,7 @@ public GlobalFrontendSettings setDescription(java.lang.String description) { } /** - * Output only. For optimistic locking + * Output only. For optimistic locking. * @return value or {@code null} for none */ public java.lang.String getEtag() { @@ -142,7 +142,7 @@ public java.lang.String getEtag() { } /** - * Output only. For optimistic locking + * Output only. For optimistic locking. * @param etag etag or {@code null} for none */ public GlobalFrontendSettings setEtag(java.lang.String etag) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java index c705fc09559..a6395508124 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java @@ -30,12 +30,14 @@ public final class GlobalFrontendSettingsPatchResponse extends com.google.api.client.json.GenericJson { /** + * The Operation resource for this long-running operation. * The value may be {@code null}. */ @com.google.api.client.util.Key private Operation operation; /** + * The Operation resource for this long-running operation. * @return value or {@code null} for none */ public Operation getOperation() { @@ -43,6 +45,7 @@ public Operation getOperation() { } /** + * The Operation resource for this long-running operation. * @param operation operation or {@code null} for none */ public GlobalFrontendSettingsPatchResponse setOperation(Operation operation) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageView.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageView.java index 02f8c290b50..1c0dcd77264 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageView.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageView.java @@ -30,12 +30,14 @@ public final class ImageView extends com.google.api.client.json.GenericJson { /** + * The Image resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private Image image; /** + * The Image resource. * @return value or {@code null} for none */ public Image getImage() { @@ -43,6 +45,7 @@ public Image getImage() { } /** + * The Image resource. * @param image image or {@code null} for none */ public ImageView setImage(Image image) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java new file mode 100644 index 00000000000..0dcadac911d --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java @@ -0,0 +1,416 @@ +/* + * 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; + +/** + * Response message for ImageViewsService.List + * + *

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 ImageViewsListResponse extends com.google.api.client.json.GenericJson { + + /** + * Etag of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of Image resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider ImageView used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ImageView.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Etag of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Etag of the resource. + * @param etag etag or {@code null} for none + */ + public ImageViewsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public ImageViewsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Image resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Image resources. + * @param items items or {@code null} for none + */ + public ImageViewsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * @param kind kind or {@code null} for none + */ + public ImageViewsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ImageViewsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ImageViewsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public ImageViewsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public ImageViewsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ImageViewsListResponse set(String fieldName, Object value) { + return (ImageViewsListResponse) super.set(fieldName, value); + } + + @Override + public ImageViewsListResponse clone() { + return (ImageViewsListResponse) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }] + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }] + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }] + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for ImageViewsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java index 2eca643d1f9..ae7d9297aca 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicy.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class InstanceGroupManagerInstanceFlexibilityPolicy extends com.google.api.client.json.GenericJson { + /** + * Constraints applied to instance flexibility spreading and selection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagerInstanceFlexibilityPolicyConstraints constraints; + /** * Named instance selections configuring properties that the group will use when creating new VMs. * The value may be {@code null}. @@ -43,6 +50,23 @@ public final class InstanceGroupManagerInstanceFlexibilityPolicy extends com.goo @com.google.api.client.util.Key private InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix provisioningModelMix; + /** + * Constraints applied to instance flexibility spreading and selection. + * @return value or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicyConstraints getConstraints() { + return constraints; + } + + /** + * Constraints applied to instance flexibility spreading and selection. + * @param constraints constraints or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicy setConstraints(InstanceGroupManagerInstanceFlexibilityPolicyConstraints constraints) { + this.constraints = constraints; + return this; + } + /** * Named instance selections configuring properties that the group will use when creating new VMs. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyConstraints.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyConstraints.java new file mode 100644 index 00000000000..730d51622c3 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyConstraints.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; + +/** + * Constraints applied to instance flexibility spreading and selection. + * + *

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 InstanceGroupManagerInstanceFlexibilityPolicyConstraints extends com.google.api.client.json.GenericJson { + + /** + * When set to true, all instances in the group will be provisioned with the exact same machine + * type, ensuring cluster homogeneity across zones. Defaults to false. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean singleMachineType; + + /** + * When set to true, all instances in the group will be provisioned with the exact same machine + * type, ensuring cluster homogeneity across zones. Defaults to false. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSingleMachineType() { + return singleMachineType; + } + + /** + * When set to true, all instances in the group will be provisioned with the exact same machine + * type, ensuring cluster homogeneity across zones. Defaults to false. + * @param singleMachineType singleMachineType or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicyConstraints setSingleMachineType(java.lang.Boolean singleMachineType) { + this.singleMachineType = singleMachineType; + return this; + } + + @Override + public InstanceGroupManagerInstanceFlexibilityPolicyConstraints set(String fieldName, Object value) { + return (InstanceGroupManagerInstanceFlexibilityPolicyConstraints) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagerInstanceFlexibilityPolicyConstraints clone() { + return (InstanceGroupManagerInstanceFlexibilityPolicyConstraints) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java index 57ad7fc78e6..7ab51432212 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java @@ -36,6 +36,7 @@ public final class ManagedRulesetList extends com.google.api.client.json.Generic private java.lang.String id; /** + * The list of managed rulesets. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,6 +76,7 @@ public ManagedRulesetList setId(java.lang.String id) { } /** + * The list of managed rulesets. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -82,6 +84,7 @@ public java.util.List getItems() { } /** + * The list of managed rulesets. * @param items items or {@code null} for none */ public ManagedRulesetList setItems(java.util.List items) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java index 07fab3bd08e..644d53728ec 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java @@ -69,6 +69,15 @@ public final class Router extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean encryptedInterconnectRouter; + /** + * ETag for optimistic concurrency control as described by AIP 154. Used to prevent conflicting + * updates. If provided, the request will succeed only if the etag matches the current etag of the + * router; otherwise, the request fails with an ABORTED error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + /** * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * The value may be {@code null}. @@ -248,6 +257,27 @@ public Router setEncryptedInterconnectRouter(java.lang.Boolean encryptedIntercon return this; } + /** + * ETag for optimistic concurrency control as described by AIP 154. Used to prevent conflicting + * updates. If provided, the request will succeed only if the etag matches the current etag of the + * router; otherwise, the request fails with an ABORTED error. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * ETag for optimistic concurrency control as described by AIP 154. Used to prevent conflicting + * updates. If provided, the request will succeed only if the etag matches the current etag of the + * router; otherwise, the request fails with an ABORTED error. + * @param etag etag or {@code null} for none + */ + public Router setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + /** * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNatRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNatRule.java index 6823a790fa6..b7d2abe99d6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNatRule.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNatRule.java @@ -70,6 +70,13 @@ public final class RouterNatRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.Long ruleNumber; + /** + * A list of source workload identities. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sourceWorkloadIdentities; + /** * The action to be enforced for traffic that matches this rule. * @return value or {@code null} for none @@ -164,6 +171,23 @@ public RouterNatRule setRuleNumber(java.lang.Long ruleNumber) { return this; } + /** + * A list of source workload identities. + * @return value or {@code null} for none + */ + public java.util.List getSourceWorkloadIdentities() { + return sourceWorkloadIdentities; + } + + /** + * A list of source workload identities. + * @param sourceWorkloadIdentities sourceWorkloadIdentities or {@code null} for none + */ + public RouterNatRule setSourceWorkloadIdentities(java.util.List sourceWorkloadIdentities) { + this.sourceWorkloadIdentities = sourceWorkloadIdentities; + return this; + } + @Override public RouterNatRule set(String fieldName, Object value) { return (RouterNatRule) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/pom.xml b/clients/google-api-services-compute/beta/2.0.0/pom.xml index 440e77d564a..708d033e425 100644 --- a/clients/google-api-services-compute/beta/2.0.0/pom.xml +++ b/clients/google-api-services-compute/beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - beta-rev20260908-2.0.0 - Compute Engine API beta-rev20260908-2.0.0 + beta-rev20260910-2.0.0 + Compute Engine API beta-rev20260910-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/beta/README.md b/clients/google-api-services-compute/beta/README.md index a7042943817..f98a2ca6f62 100644 --- a/clients/google-api-services-compute/beta/README.md +++ b/clients/google-api-services-compute/beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - beta-rev20260908-2.0.0 + beta-rev20260910-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260908-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260910-2.0.0' } ``` 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 708269af2a5..fb34ab1d925 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-rev20260908-2.0.0 + v1-rev20260910-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20260908-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20260910-2.0.0' } ``` 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 67130d5c65e..26ce4d27ec3 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 @@ -35555,6 +35555,313 @@ public SetTarget set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the GlobalFrontendSettings collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalFrontendSettings.List request = compute.globalFrontendSettings().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalFrontendSettings globalFrontendSettings() { + return new GlobalFrontendSettings(); + } + + /** + * The "globalFrontendSettings" collection of methods. + */ + public class GlobalFrontendSettings { + + /** + * Gets the Global Frontend Billing Bundle Settings for a project. + * + * Create a request for the method "globalFrontendSettings.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Required. Project ID for this request. + * @return the request + */ + public Get get(java.lang.String project) throws java.io.IOException { + Get result = new Get(project); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/globalFrontendSettings"; + + /** + * Gets the Global Frontend Billing Bundle Settings for a project. + * + * Create a request for the method "globalFrontendSettings.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param project Required. Project ID for this request. + * @since 1.13 + */ + protected Get(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalFrontendSettings.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + } + + @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Required. Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Required. Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Required. Project ID for this request. */ + public Get setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Updates the Global Frontend Billing Bundle Settings for a project. + * + * Create a request for the method "globalFrontendSettings.patch". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param project Required. Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalFrontendSettings} + * @return the request + */ + public Patch patch(java.lang.String project, com.google.api.services.compute.model.GlobalFrontendSettings content) throws java.io.IOException { + Patch result = new Patch(project, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/globalFrontendSettings"; + + /** + * Updates the Global Frontend Billing Bundle Settings for a project. + * + * Create a request for the method "globalFrontendSettings.patch". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

+ * + * @param project Required. Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalFrontendSettings} + * @since 1.13 + */ + protected Patch(java.lang.String project, com.google.api.services.compute.model.GlobalFrontendSettings content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.GlobalFrontendSettingsPatchResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); + } + + /** Required. Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Required. Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Required. Project ID for this request. */ + public Patch setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** An optional request ID to identify requests. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** An optional request ID to identify requests. */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Field mask to support patch. E.g., "type". */ + @com.google.api.client.util.Key + private String updateMask; + + /** Field mask to support patch. E.g., "type". + */ + public String getUpdateMask() { + return updateMask; + } + + /** Field mask to support patch. E.g., "type". */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the GlobalNetworkEndpointGroups collection. * @@ -48961,6 +49268,675 @@ public Get set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the ImageViews collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ImageViews.List request = compute.imageViews().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ImageViews imageViews() { + return new ImageViews(); + } + + /** + * The "imageViews" collection of methods. + */ + public class ImageViews { + + /** + * Returns the specified global ImageView resource, with a regional context. + * + * Create a request for the method "imageViews.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Required. Project ID for this request. + * @param region Required. Name of the region for this request. + * @param resourceId Name of the image resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String resourceId) throws java.io.IOException { + Get result = new Get(project, region, resourceId); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/imageViews/{resourceId}"; + + 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_ID_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified global ImageView resource, with a regional context. + * + * Create a request for the method "imageViews.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param project Required. Project ID for this request. + * @param region Required. Name of the region for this request. + * @param resourceId Name of the image resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String resourceId) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageView.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.resourceId = com.google.api.client.util.Preconditions.checkNotNull(resourceId, "Required parameter resourceId must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), + "Parameter resourceId must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Required. Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Required. Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Required. Project ID for this request. */ + public Get 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; + } + + /** Required. Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Required. Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Required. Name of the region for this request. */ + public Get 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 of the image resource to return. */ + @com.google.api.client.util.Key + private java.lang.String resourceId; + + /** Name of the image resource to return. + */ + public java.lang.String getResourceId() { + return resourceId; + } + + /** Name of the image resource to return. */ + public Get setResourceId(java.lang.String resourceId) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), + "Parameter resourceId must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resourceId = resourceId; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns a list of global ImageView resources, with a regional context. + * + * Create a request for the method "imageViews.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Required. Project ID for this request. + * @param region Required. Name of the region for this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/imageViews"; + + 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])?"); + + /** + * Returns a list of global ImageView resources, with a regional context. + * + * Create a request for the method "imageViews.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param project Required. Project ID for this request. + * @param region Required. Name of the region for this request. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageViewsListResponse.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])?"); + } + } + + @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Required. Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Required. Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Required. Project ID for this request. */ + public List 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; + } + + /** Required. Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Required. Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Required. Name of the region for this request. */ + public List 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; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the Images collection. * @@ -97148,45 +98124,682 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** Name of the machine type to return. */ + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name of the machine type to return. */ + @com.google.api.client.util.Key + private java.lang.String machineType; + + /** Name of the machine type to return. + */ + public java.lang.String getMachineType() { + return machineType; + } + + /** Name of the machine type to return. */ + public Get setMachineType(java.lang.String machineType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), + "Parameter machineType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.machineType = machineType; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of machine types available to the specified project. + * + * Create a request for the method "machineTypes.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes"; + + 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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Retrieves a list of machine types available to the specified project. + * + * Create a request for the method "machineTypes.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#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 zone The name of the zone for this request. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeList.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) 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 List 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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ManagedRulesets collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ManagedRulesets.List request = compute.managedRulesets().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ManagedRulesets managedRulesets() { + return new ManagedRulesets(); + } + + /** + * The "managedRulesets" collection of methods. + */ + public class ManagedRulesets { + + /** + * Gets the details for the specified managed ruleset name. + * + * Create a request for the method "managedRulesets.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param managedRuleset Name of the managed ruleset to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String managedRuleset) throws java.io.IOException { + Get result = new Get(project, managedRuleset); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/managedRulesets/{managedRuleset}"; + + 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 MANAGED_RULESET_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the details for the specified managed ruleset name. + * + * Create a request for the method "managedRulesets.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#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 managedRuleset Name of the managed ruleset to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String managedRuleset) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ManagedRuleset.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.managedRuleset = com.google.api.client.util.Preconditions.checkNotNull(managedRuleset, "Required parameter managedRuleset must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MANAGED_RULESET_PATTERN.matcher(managedRuleset).matches(), + "Parameter managedRuleset must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) 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 Get 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 of the managed ruleset to return. */ @com.google.api.client.util.Key - private java.lang.String machineType; + private java.lang.String managedRuleset; - /** Name of the machine type to return. + /** Name of the managed ruleset to return. */ - public java.lang.String getMachineType() { - return machineType; + public java.lang.String getManagedRuleset() { + return managedRuleset; } - /** Name of the machine type to return. */ - public Get setMachineType(java.lang.String machineType) { + /** Name of the managed ruleset to return. */ + public Get setManagedRuleset(java.lang.String managedRuleset) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), - "Parameter machineType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(MANAGED_RULESET_PATTERN.matcher(managedRuleset).matches(), + "Parameter managedRuleset must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.machineType = machineType; + this.managedRuleset = managedRuleset; return this; } @@ -97196,37 +98809,33 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of machine types available to the specified project. + * Retrieves the list of all the managed rulesets available. * - * Create a request for the method "machineTypes.list". + * Create a request for the method "managedRulesets.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes"; + private static final String REST_PATH = "projects/{project}/global/managedRulesets"; 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 ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves a list of machine types available to the specified project. + * Retrieves the list of all the managed rulesets available. * - * Create a request for the method "machineTypes.list". + * Create a request for the method "managedRulesets.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -97234,23 +98843,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param zone The name of the zone for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ManagedRulesetList.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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -97344,27 +98946,6 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -175473,6 +177054,9 @@ public class AddAssociation extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation"; + + 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 FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates an association for the specified network firewall policy. + * + * Create a request for the method "regionNetworkFirewallPolicies.patchAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link PatchAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @since 1.13 + */ + protected PatchAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public PatchAssociation set$Xgafv(java.lang.String $Xgafv) { + return (PatchAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public PatchAssociation setAccessToken(java.lang.String accessToken) { + return (PatchAssociation) super.setAccessToken(accessToken); + } + + @Override + public PatchAssociation setAlt(java.lang.String alt) { + return (PatchAssociation) super.setAlt(alt); + } + + @Override + public PatchAssociation setCallback(java.lang.String callback) { + return (PatchAssociation) super.setCallback(callback); + } + + @Override + public PatchAssociation setFields(java.lang.String fields) { + return (PatchAssociation) super.setFields(fields); + } + + @Override + public PatchAssociation setKey(java.lang.String key) { + return (PatchAssociation) super.setKey(key); + } + + @Override + public PatchAssociation setOauthToken(java.lang.String oauthToken) { + return (PatchAssociation) super.setOauthToken(oauthToken); + } + + @Override + public PatchAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public PatchAssociation setQuotaUser(java.lang.String quotaUser) { + return (PatchAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public PatchAssociation setUploadType(java.lang.String uploadType) { + return (PatchAssociation) super.setUploadType(uploadType); + } + + @Override + public PatchAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public PatchAssociation setUserIp(java.lang.String userIp) { + return (PatchAssociation) 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 PatchAssociation 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 of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. */ + public PatchAssociation 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 of the firewall policy to update. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to update. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to update. */ + public PatchAssociation setFirewallPolicy(java.lang.String firewallPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.firewallPolicy = firewallPolicy; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public PatchAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchAssociation set(String parameterName, Object value) { + return (PatchAssociation) super.set(parameterName, value); + } + } /** * Patches a rule of the specified priority. * diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java index 5c30821cd4c..da4f0aa51e9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java @@ -58,6 +58,17 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. @com.google.api.client.util.Key private java.lang.String name; + /** + * An integer indicating the priority of an association. The priority must be a positive value + * between 1 and 2147483647. Firewall Policies are evaluated from highest to lowest priority where + * 1 is the highest priority and 2147483647 is the lowest priority. The default value is `1000`. + * If two associations have the same priority then lexicographical order on association names is + * applied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + /** * Output only. [Output Only] The short name of the firewall policy of the association. * The value may be {@code null}. @@ -135,6 +146,31 @@ public FirewallPolicyAssociation setName(java.lang.String name) { return this; } + /** + * An integer indicating the priority of an association. The priority must be a positive value + * between 1 and 2147483647. Firewall Policies are evaluated from highest to lowest priority where + * 1 is the highest priority and 2147483647 is the lowest priority. The default value is `1000`. + * If two associations have the same priority then lexicographical order on association names is + * applied. + * @return value or {@code null} for none + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * An integer indicating the priority of an association. The priority must be a positive value + * between 1 and 2147483647. Firewall Policies are evaluated from highest to lowest priority where + * 1 is the highest priority and 2147483647 is the lowest priority. The default value is `1000`. + * If two associations have the same priority then lexicographical order on association names is + * applied. + * @param priority priority or {@code null} for none + */ + public FirewallPolicyAssociation setPriority(java.lang.Integer priority) { + this.priority = priority; + return this; + } + /** * Output only. [Output Only] The short name of the firewall policy of the association. * @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/FutureReservation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java index fc7857585ff..38276abe8b5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -65,6 +65,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key private java.lang.Boolean autoDeleteAutoCreatedReservations; + /** + * Full or partial URL of an existing future reservation to indicate intent for reserving capacity + * in the same cluster as the colocation resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String colocationResource; + /** * If not present, then FR will not deliver a new commitment or update an existing commitment. * The value may be {@code null}. @@ -349,6 +357,25 @@ public FutureReservation setAutoDeleteAutoCreatedReservations(java.lang.Boolean return this; } + /** + * Full or partial URL of an existing future reservation to indicate intent for reserving capacity + * in the same cluster as the colocation resource. + * @return value or {@code null} for none + */ + public java.lang.String getColocationResource() { + return colocationResource; + } + + /** + * Full or partial URL of an existing future reservation to indicate intent for reserving capacity + * in the same cluster as the colocation resource. + * @param colocationResource colocationResource or {@code null} for none + */ + public FutureReservation setColocationResource(java.lang.String colocationResource) { + this.colocationResource = colocationResource; + return this; + } + /** * If not present, then FR will not deliver a new commitment or update an existing commitment. * @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/GlobalFrontendSettings.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java new file mode 100644 index 00000000000..928b7b4c766 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettings.java @@ -0,0 +1,222 @@ +/* + * 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; + +/** + * Represents the Global Frontend Bundle settings for a single project. + * + *

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 GlobalFrontendSettings extends com.google.api.client.json.GenericJson { + + /** + * Customer-settable bundle type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String bundleType; + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. [Output Only] An optional description of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. For optimistic locking. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Output only. OUTPUT_ONLY fields [Output Only] Name of the resource. Must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Customer-settable bundle type. + * @return value or {@code null} for none + */ + public java.lang.String getBundleType() { + return bundleType; + } + + /** + * Customer-settable bundle type. + * @param bundleType bundleType or {@code null} for none + */ + public GlobalFrontendSettings setBundleType(java.lang.String bundleType) { + this.bundleType = bundleType; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public GlobalFrontendSettings setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. [Output Only] An optional description of this resource. + * @param description description or {@code null} for none + */ + public GlobalFrontendSettings setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. For optimistic locking. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. For optimistic locking. + * @param etag etag or {@code null} for none + */ + public GlobalFrontendSettings setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * @param id id or {@code null} for none + */ + public GlobalFrontendSettings setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. OUTPUT_ONLY fields [Output Only] Name of the resource. Must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. OUTPUT_ONLY fields [Output Only] Name of the resource. Must be 1-63 characters + * long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + * character must be a lowercase letter, and all following characters must be a dash, lowercase + * letter, or digit, except the last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public GlobalFrontendSettings setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public GlobalFrontendSettings setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public GlobalFrontendSettings set(String fieldName, Object value) { + return (GlobalFrontendSettings) super.set(fieldName, value); + } + + @Override + public GlobalFrontendSettings clone() { + return (GlobalFrontendSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.java new file mode 100644 index 00000000000..a6395508124 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GlobalFrontendSettingsPatchResponse.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; + +/** + * Response to an UpdateGlobalFrontendSettingsRequest. + * + *

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 GlobalFrontendSettingsPatchResponse extends com.google.api.client.json.GenericJson { + + /** + * The Operation resource for this long-running operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Operation operation; + + /** + * The Operation resource for this long-running operation. + * @return value or {@code null} for none + */ + public Operation getOperation() { + return operation; + } + + /** + * The Operation resource for this long-running operation. + * @param operation operation or {@code null} for none + */ + public GlobalFrontendSettingsPatchResponse setOperation(Operation operation) { + this.operation = operation; + return this; + } + + @Override + public GlobalFrontendSettingsPatchResponse set(String fieldName, Object value) { + return (GlobalFrontendSettingsPatchResponse) super.set(fieldName, value); + } + + @Override + public GlobalFrontendSettingsPatchResponse clone() { + return (GlobalFrontendSettingsPatchResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageView.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageView.java new file mode 100644 index 00000000000..1c0dcd77264 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageView.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; + +/** + * Represents a read-only view of a global Image resource. + * + *

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 ImageView extends com.google.api.client.json.GenericJson { + + /** + * The Image resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Image image; + + /** + * The Image resource. + * @return value or {@code null} for none + */ + public Image getImage() { + return image; + } + + /** + * The Image resource. + * @param image image or {@code null} for none + */ + public ImageView setImage(Image image) { + this.image = image; + return this; + } + + @Override + public ImageView set(String fieldName, Object value) { + return (ImageView) super.set(fieldName, value); + } + + @Override + public ImageView clone() { + return (ImageView) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java new file mode 100644 index 00000000000..0dcadac911d --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageViewsListResponse.java @@ -0,0 +1,416 @@ +/* + * 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; + +/** + * Response message for ImageViewsService.List + * + *

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 ImageViewsListResponse extends com.google.api.client.json.GenericJson { + + /** + * Etag of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of Image resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider ImageView used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ImageView.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * Etag of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Etag of the resource. + * @param etag etag or {@code null} for none + */ + public ImageViewsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public ImageViewsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Image resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Image resources. + * @param items items or {@code null} for none + */ + public ImageViewsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * @param kind kind or {@code null} for none + */ + public ImageViewsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ImageViewsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ImageViewsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public ImageViewsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public ImageViewsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ImageViewsListResponse set(String fieldName, Object value) { + return (ImageViewsListResponse) super.set(fieldName, value); + } + + @Override + public ImageViewsListResponse clone() { + return (ImageViewsListResponse) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }] + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }] + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }] + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for ImageViewsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java index df51b1ab211..d8fe4fc5d69 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.java @@ -29,6 +29,19 @@ @SuppressWarnings("javadoc") public final class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection extends com.google.api.client.json.GenericJson { + /** + * List of disks to be attached to the instances created from this selection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List disks; + + static { + // hack to force ProGuard to consider AttachedDisk used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AttachedDisk.class); + } + /** * Full machine-type names, e.g. "n1-standard-16". * The value may be {@code null}. @@ -36,6 +49,13 @@ public final class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectio @com.google.api.client.util.Key private java.util.List machineTypes; + /** + * Name of the minimum CPU platform to be used by this instance selection. e.g. 'Intel Ice Lake'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minCpuPlatform; + /** * Preference of this instance selection. Lower number means higher preference. MIG will first try * to create a VM based on the machine-type with lowest rank and fallback to next rank based on @@ -46,6 +66,23 @@ public final class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelectio @com.google.api.client.util.Key private java.lang.Integer rank; + /** + * List of disks to be attached to the instances created from this selection. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * List of disks to be attached to the instances created from this selection. + * @param disks disks or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + /** * Full machine-type names, e.g. "n1-standard-16". * @return value or {@code null} for none @@ -63,6 +100,23 @@ public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection setMachine return this; } + /** + * Name of the minimum CPU platform to be used by this instance selection. e.g. 'Intel Ice Lake'. + * @return value or {@code null} for none + */ + public java.lang.String getMinCpuPlatform() { + return minCpuPlatform; + } + + /** + * Name of the minimum CPU platform to be used by this instance selection. e.g. 'Intel Ice Lake'. + * @param minCpuPlatform minCpuPlatform or {@code null} for none + */ + public InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection setMinCpuPlatform(java.lang.String minCpuPlatform) { + this.minCpuPlatform = minCpuPlatform; + return this; + } + /** * Preference of this instance selection. Lower number means higher preference. MIG will first try * to create a VM based on the machine-type with lowest rank and fallback to next rank based on diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstancePropertiesFromFlexibilityPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstancePropertiesFromFlexibilityPolicy.java index 79eae8dfaa2..1729099466c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstancePropertiesFromFlexibilityPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstancePropertiesFromFlexibilityPolicy.java @@ -29,6 +29,19 @@ @SuppressWarnings("javadoc") public final class ManagedInstancePropertiesFromFlexibilityPolicy extends com.google.api.client.json.GenericJson { + /** + * List of disks to be attached to the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List disks; + + static { + // hack to force ProGuard to consider AttachedDisk used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AttachedDisk.class); + } + /** * Output only. The machine type to be used for this instance. * The value may be {@code null}. @@ -36,6 +49,30 @@ public final class ManagedInstancePropertiesFromFlexibilityPolicy extends com.go @com.google.api.client.util.Key private java.lang.String machineType; + /** + * Name of the minimum CPU platform to be used by this instance. e.g. 'Intel Ice Lake'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String minCpuPlatform; + + /** + * List of disks to be attached to the instance. + * @return value or {@code null} for none + */ + public java.util.List getDisks() { + return disks; + } + + /** + * List of disks to be attached to the instance. + * @param disks disks or {@code null} for none + */ + public ManagedInstancePropertiesFromFlexibilityPolicy setDisks(java.util.List disks) { + this.disks = disks; + return this; + } + /** * Output only. The machine type to be used for this instance. * @return value or {@code null} for none @@ -53,6 +90,23 @@ public ManagedInstancePropertiesFromFlexibilityPolicy setMachineType(java.lang.S return this; } + /** + * Name of the minimum CPU platform to be used by this instance. e.g. 'Intel Ice Lake'. + * @return value or {@code null} for none + */ + public java.lang.String getMinCpuPlatform() { + return minCpuPlatform; + } + + /** + * Name of the minimum CPU platform to be used by this instance. e.g. 'Intel Ice Lake'. + * @param minCpuPlatform minCpuPlatform or {@code null} for none + */ + public ManagedInstancePropertiesFromFlexibilityPolicy setMinCpuPlatform(java.lang.String minCpuPlatform) { + this.minCpuPlatform = minCpuPlatform; + return this; + } + @Override public ManagedInstancePropertiesFromFlexibilityPolicy set(String fieldName, Object value) { return (ManagedInstancePropertiesFromFlexibilityPolicy) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedRuleset.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedRuleset.java new file mode 100644 index 00000000000..21bb28118b6 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedRuleset.java @@ -0,0 +1,259 @@ +/* + * 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; + +/** + * Represents a ManagedRuleset resource. + * + * Managed internally by Cloud Armor CLH for Managed Rules features. Customers can only view these + * resources to modify their Security Policies. For more information, see + * https://cloud.google.com/armor/docs/. + * + *

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 ManagedRuleset extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The change log for this managed ruleset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String changeLog; + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * [Output Only] An optional description of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Name of the resource. Generated internally when the resource is created. The name must be 1-63 + * characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long + * and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character + * must be a lowercase letter, and all following characters must be a dash, lowercase letter, or + * digit, except the last character, which cannot be a dash. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. [Output Only] The list of managed rule IDs that are included in this managed + * ruleset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ruleIds; + + /** + * Output only. [Output Only] The managed ruleset identifier that can be configured in Security + * Policy rules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rulesetId; + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] The change log for this managed ruleset. + * @return value or {@code null} for none + */ + public java.lang.String getChangeLog() { + return changeLog; + } + + /** + * Output only. [Output Only] The change log for this managed ruleset. + * @param changeLog changeLog or {@code null} for none + */ + public ManagedRuleset setChangeLog(java.lang.String changeLog) { + this.changeLog = changeLog; + return this; + } + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public ManagedRuleset setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * [Output Only] An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * [Output Only] An optional description of this resource. + * @param description description or {@code null} for none + */ + public ManagedRuleset setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * @param id id or {@code null} for none + */ + public ManagedRuleset setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Name of the resource. Generated internally when the resource is created. The name must be 1-63 + * characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long + * and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character + * must be a lowercase letter, and all following characters must be a dash, lowercase letter, or + * digit, except the last character, which cannot be a dash. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. Generated internally when the resource is created. The name must be 1-63 + * characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long + * and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character + * must be a lowercase letter, and all following characters must be a dash, lowercase letter, or + * digit, except the last character, which cannot be a dash. + * @param name name or {@code null} for none + */ + public ManagedRuleset setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The list of managed rule IDs that are included in this managed + * ruleset. + * @return value or {@code null} for none + */ + public java.util.List getRuleIds() { + return ruleIds; + } + + /** + * Output only. [Output Only] The list of managed rule IDs that are included in this managed + * ruleset. + * @param ruleIds ruleIds or {@code null} for none + */ + public ManagedRuleset setRuleIds(java.util.List ruleIds) { + this.ruleIds = ruleIds; + return this; + } + + /** + * Output only. [Output Only] The managed ruleset identifier that can be configured in Security + * Policy rules. + * @return value or {@code null} for none + */ + public java.lang.String getRulesetId() { + return rulesetId; + } + + /** + * Output only. [Output Only] The managed ruleset identifier that can be configured in Security + * Policy rules. + * @param rulesetId rulesetId or {@code null} for none + */ + public ManagedRuleset setRulesetId(java.lang.String rulesetId) { + this.rulesetId = rulesetId; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public ManagedRuleset setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + @Override + public ManagedRuleset set(String fieldName, Object value) { + return (ManagedRuleset) super.set(fieldName, value); + } + + @Override + public ManagedRuleset clone() { + return (ManagedRuleset) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java new file mode 100644 index 00000000000..7ab51432212 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedRulesetList.java @@ -0,0 +1,317 @@ +/* + * 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; + +/** + * Model definition for ManagedRulesetList. + * + *

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 ManagedRulesetList extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * The list of managed rulesets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider ManagedRuleset used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ManagedRuleset.class); + } + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * @param id id or {@code null} for none + */ + public ManagedRulesetList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * The list of managed rulesets. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * The list of managed rulesets. + * @param items items or {@code null} for none + */ + public ManagedRulesetList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ManagedRulesetList setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * @param warning warning or {@code null} for none + */ + public ManagedRulesetList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ManagedRulesetList set(String fieldName, Object value) { + return (ManagedRulesetList) super.set(fieldName, value); + } + + @Override + public ManagedRulesetList clone() { + return (ManagedRulesetList) super.clone(); + } + + /** + * Model definition for ManagedRulesetListWarning. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }] + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }] + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" }] + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for ManagedRulesetListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java index c0e4da81a12..6ffbb122749 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class SecurityPolicyRulePreconfiguredWafConfigExclusion extends com.google.api.client.json.GenericJson { + /** + * A list of request body fields to be excluded from inspection during preconfigured WAF + * evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestBodiesToExclude; + /** * A list of request cookie names whose value will be excluded from inspection during * preconfigured WAF evaluation. @@ -78,6 +86,25 @@ public final class SecurityPolicyRulePreconfiguredWafConfigExclusion extends com @com.google.api.client.util.Key private java.lang.String targetRuleSet; + /** + * A list of request body fields to be excluded from inspection during preconfigured WAF + * evaluation. + * @return value or {@code null} for none + */ + public java.util.List getRequestBodiesToExclude() { + return requestBodiesToExclude; + } + + /** + * A list of request body fields to be excluded from inspection during preconfigured WAF + * evaluation. + * @param requestBodiesToExclude requestBodiesToExclude or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestBodiesToExclude(java.util.List requestBodiesToExclude) { + this.requestBodiesToExclude = requestBodiesToExclude; + return this; + } + /** * A list of request cookie names whose value will be excluded from inspection during * preconfigured WAF evaluation. 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 66f38f2168f..e8d029041e8 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-rev20260908-2.0.0 - Compute Engine API v1-rev20260908-2.0.0 + v1-rev20260910-2.0.0 + Compute Engine API v1-rev20260910-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/v1/README.md b/clients/google-api-services-compute/v1/README.md index 708269af2a5..fb34ab1d925 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-rev20260908-2.0.0 + v1-rev20260910-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20260908-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20260910-2.0.0' } ```